global: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_*
authorTom Rini <trini@konsulko.com>
Wed, 16 Nov 2022 18:10:37 +0000 (13:10 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 5 Dec 2022 21:06:07 +0000 (16:06 -0500)
The rest of the unmigrated CONFIG symbols in the CONFIG_SYS_SDRAM
namespace do not easily transition to Kconfig. In many cases they likely
should come from the device tree instead. Move these out of CONFIG
namespace and in to CFG namespace.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
589 files changed:
README
arch/arc/lib/cache.c
arch/arc/lib/cpu.c
arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c
arch/arm/cpu/armv8/fsl-layerscape/cpu.c
arch/arm/dts/rockchip-optee.dtsi
arch/arm/include/asm/emif.h
arch/arm/include/asm/iproc-common/configs.h
arch/arm/mach-aspeed/ast2500/board_common.c
arch/arm/mach-aspeed/ast2600/board_common.c
arch/arm/mach-at91/arm920t/lowlevel_init.S
arch/arm/mach-at91/arm926ejs/lowlevel_init.S
arch/arm/mach-davinci/misc.c
arch/arm/mach-exynos/dmc_init_ddr3.c
arch/arm/mach-imx/imx8m/soc.c
arch/arm/mach-imx/imx8ulp/soc.c
arch/arm/mach-imx/mx6/litesom.c
arch/arm/mach-imx/mx6/opos6ul.c
arch/arm/mach-imx/spl.c
arch/arm/mach-k3/common.c
arch/arm/mach-k3/r5_mpu.c
arch/arm/mach-keystone/ddr3.c
arch/arm/mach-mediatek/mt7623/init.c
arch/arm/mach-mediatek/mt7981/init.c
arch/arm/mach-mediatek/mt7986/init.c
arch/arm/mach-mvebu/alleycat5/cpu.c
arch/arm/mach-mvebu/arm64-common.c
arch/arm/mach-mvebu/armada8k/dram.c
arch/arm/mach-omap2/am33xx/board.c
arch/arm/mach-omap2/emif-common.c
arch/arm/mach-omap2/sec-common.c
arch/arm/mach-owl/soc.c
arch/arm/mach-rockchip/sdram.c
arch/arm/mach-socfpga/board.c
arch/arm/mach-sunxi/dram_helpers.c
arch/arm/mach-sunxi/dram_suniv.c
arch/arm/mach-sunxi/dram_sunxi_dw.c
arch/arm/mach-tegra/board2.c
arch/arm/mach-zynq/cpu.c
arch/m68k/cpu/mcf532x/speed.c
arch/m68k/include/asm/immap.h
arch/m68k/lib/traps.c
arch/mips/lib/traps.c
arch/mips/mach-jz47xx/jz4780/jz4780.c
arch/mips/mach-mscc/cpu.c
arch/mips/mach-mscc/dram.c
arch/mips/mach-mscc/include/mach/ddr.h
arch/mips/mach-mtmips/mt7621/spl/start.S
arch/mips/mach-octeon/dram.c
arch/nios2/cpu/cpu.c
arch/powerpc/cpu/mpc83xx/spd_sdram.c
arch/powerpc/cpu/mpc85xx/cpu.c
arch/powerpc/cpu/mpc85xx/mp.c
arch/powerpc/cpu/mpc8xxx/pamu_table.c
arch/powerpc/lib/bootm.c
arch/sandbox/cpu/state.c
arch/sandbox/dts/sandbox.dts
arch/sandbox/dts/sandbox64.dts
arch/sh/cpu/u-boot.lds
arch/sh/lib/board.c
arch/sh/lib/bootm.c
arch/xtensa/cpu/cpu.c
board/BuR/brppt1/board.c
board/BuS/eb_cpu5282/eb_cpu5282.c
board/CZ.NIC/turris_mox/turris_mox.c
board/Marvell/mvebu_alleycat-5/board.c
board/Marvell/mvebu_armada-37xx/board.c
board/Marvell/mvebu_armada-8k/board.c
board/Marvell/octeontx/board.c
board/Marvell/octeontx2/board.c
board/Marvell/octeontx2_cn913x/board.c
board/armltd/integrator/integrator.c
board/armltd/vexpress/vexpress_common.c
board/astro/mcf5373l/mcf5373l.c
board/atmel/at91sam9260ek/at91sam9260ek.c
board/atmel/at91sam9261ek/at91sam9261ek.c
board/atmel/at91sam9263ek/at91sam9263ek.c
board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c
board/atmel/at91sam9n12ek/at91sam9n12ek.c
board/atmel/at91sam9rlek/at91sam9rlek.c
board/atmel/at91sam9x5ek/at91sam9x5ek.c
board/atmel/sam9x60ek/sam9x60ek.c
board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c
board/atmel/sama5d2_icp/sama5d2_icp.c
board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c
board/atmel/sama5d3_xplained/sama5d3_xplained.c
board/atmel/sama5d3xek/sama5d3xek.c
board/atmel/sama5d4_xplained/sama5d4_xplained.c
board/atmel/sama5d4ek/sama5d4ek.c
board/atmel/sama7g5ek/sama7g5ek.c
board/bluewater/gurnard/gurnard.c
board/bosch/guardian/board.c
board/bosch/shc/board.c
board/broadcom/bcm_ep/board.c
board/calao/usb_a9263/usb_a9263.c
board/cobra5272/cobra5272.c
board/compulab/cm_t43/cm_t43.c
board/compulab/cm_t43/spl.c
board/cssi/MCR3000/MCR3000.c
board/ea/ea-lpc3250devkitv2/ea-lpc3250devkitv2.c
board/eets/pdu001/board.c
board/egnite/ethernut5/ethernut5.c
board/emulation/qemu-arm/qemu-arm.c
board/esd/meesc/meesc.c
board/freescale/common/arm_sleep.c
board/freescale/common/mpc85xx_sleep.c
board/freescale/ls1012afrdm/ls1012afrdm.c
board/freescale/ls1012aqds/ls1012aqds.c
board/freescale/ls1012ardb/ls1012ardb.c
board/freescale/ls1021aqds/ddr.c
board/freescale/ls1021atsn/ls1021atsn.c
board/freescale/ls1021atwr/ls1021atwr.c
board/freescale/m5208evbe/m5208evbe.c
board/freescale/m5235evb/m5235evb.c
board/freescale/m5249evb/m5249evb.c
board/freescale/m5253demo/m5253demo.c
board/freescale/m5272c3/m5272c3.c
board/freescale/m5275evb/m5275evb.c
board/freescale/m5282evb/m5282evb.c
board/freescale/m53017evb/README
board/freescale/m53017evb/m53017evb.c
board/freescale/m5329evb/m5329evb.c
board/freescale/m5373evb/README
board/freescale/m5373evb/m5373evb.c
board/freescale/mpc837xerdb/mpc837xerdb.c
board/freescale/mx51evk/mx51evk.c
board/freescale/p1_p2_rdb_pc/ddr.c
board/friendlyarm/nanopi2/board.c
board/gardena/smart-gateway-at91sam/board.c
board/gdsys/mpc8308/sdram.c
board/grinn/chiliboard/board.c
board/imgtec/boston/ddr.c
board/imgtec/malta/lowlevel_init.S
board/imgtec/malta/malta.c
board/imgtec/xilfpga/xilfpga.c
board/inversepath/usbarmory/usbarmory.c
board/isee/igep003x/board.c
board/keymile/common/common.c
board/keymile/km83xx/km83xx.c
board/keymile/pg-wcom-ls102xa/ddr.c
board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c
board/l+g/vinco/vinco.c
board/mediatek/mt7622/mt7622_rfb.c
board/mediatek/mt7623/mt7623_rfb.c
board/mediatek/mt7629/mt7629_rfb.c
board/mediatek/mt8518/mt8518_ap1.c
board/mscc/jr2/jr2.c
board/mscc/luton/luton.c
board/mscc/ocelot/ocelot.c
board/mscc/serval/serval.c
board/mscc/servalt/servalt.c
board/phytec/phycore_am335x_r2/board.c
board/phytium/pomelo/pomelo.c
board/renesas/alt/alt.c
board/renesas/blanche/blanche.c
board/renesas/gose/gose.c
board/renesas/grpeach/grpeach.c
board/renesas/koelsch/koelsch.c
board/renesas/lager/lager.c
board/renesas/porter/porter.c
board/renesas/silk/silk.c
board/renesas/stout/stout.c
board/ronetix/pm9g45/pm9g45.c
board/samsung/arndale/arndale.c
board/samsung/common/board.c
board/sandbox/sandbox.c
board/siemens/common/board.c
board/siemens/corvus/board.c
board/siemens/iot2050/board.c
board/siemens/smartweb/smartweb.c
board/siemens/taurus/taurus.c
board/sipeed/maix/maix.c
board/socrates/sdram.c
board/softing/vining_fpga/socfpga.c
board/solidrun/mx6cuboxi/mx6cuboxi.c
board/sysam/amcore/amcore.c
board/sysam/stmark2/stmark2.c
board/tbs/tbs2910/tbs2910.c
board/tcl/sl50/board.c
board/ti/am335x/board.c
board/ti/am43xx/board.c
board/ti/am57xx/board.c
board/ti/am65x/evm.c
board/ti/dra7xx/evm.c
board/ti/j721e/evm.c
board/ti/j721s2/evm.c
board/ti/ks2_evm/board.c
board/ti/ti816x/evm.c
board/timll/devkit3250/devkit3250.c
board/toradex/apalis_imx6/apalis_imx6.c
board/toradex/colibri_imx6/colibri_imx6.c
board/vscom/baltos/board.c
board/work-microwave/work_92105/work_92105.c
board/xilinx/zynq/board.c
board/xilinx/zynqmp/zynqmp.c
boot/image-board.c
cmd/ti/ddr3.c
common/board_f.c
doc/arch/m68k.rst
doc/arch/nios2.rst
drivers/ddr/fsl/arm_ddr_gen3.c
drivers/ddr/fsl/fsl_ddr_gen4.c
drivers/ddr/fsl/main.c
drivers/ddr/fsl/mpc85xx_ddr_gen3.c
drivers/ddr/marvell/axp/ddr3_axp.h
drivers/pci/Kconfig
drivers/pci/pci-rcar-gen2.c
drivers/pci/pci_sh7751.c
drivers/pci/pcie_dw_mvebu.c
drivers/pci/pcie_layerscape.h
drivers/ram/aspeed/sdram_ast2500.c
drivers/ram/aspeed/sdram_ast2600.c
drivers/ram/mediatek/ddr3-mt7629.c
drivers/ram/octeon/octeon_ddr.c
drivers/ram/rockchip/dmc-rk3368.c
drivers/ram/rockchip/sdram_common.c
drivers/ram/rockchip/sdram_px30.c
drivers/ram/rockchip/sdram_rk3066.c
drivers/ram/rockchip/sdram_rk3128.c
drivers/ram/rockchip/sdram_rk3188.c
drivers/ram/rockchip/sdram_rk322x.c
drivers/ram/rockchip/sdram_rk3288.c
drivers/ram/rockchip/sdram_rk3308.c
drivers/ram/rockchip/sdram_rk3328.c
drivers/ram/rockchip/sdram_rk3399.c
drivers/ram/rockchip/sdram_rk3568.c
drivers/usb/host/ehci-rmobile.c
drivers/video/sunxi/sunxi_display.c
include/configs/10m50_devboard.h
include/configs/3c120_devboard.h
include/configs/M5208EVBE.h
include/configs/M5235EVB.h
include/configs/M5249EVB.h
include/configs/M5253DEMO.h
include/configs/M5272C3.h
include/configs/M5275EVB.h
include/configs/M5282EVB.h
include/configs/M53017EVB.h
include/configs/M5329EVB.h
include/configs/M5373EVB.h
include/configs/MCR3000.h
include/configs/MPC837XERDB.h
include/configs/MPC8548CDS.h
include/configs/P1010RDB.h
include/configs/P2041RDB.h
include/configs/SBx81LIFKW.h
include/configs/SBx81LIFXCAT.h
include/configs/T102xRDB.h
include/configs/T104xRDB.h
include/configs/T208xQDS.h
include/configs/T208xRDB.h
include/configs/T4240RDB.h
include/configs/am62x_evm.h
include/configs/am64x_evm.h
include/configs/am65x_evm.h
include/configs/amcore.h
include/configs/ap121.h
include/configs/ap143.h
include/configs/ap152.h
include/configs/apalis-imx8.h
include/configs/apalis_imx6.h
include/configs/arbel.h
include/configs/aristainetos2.h
include/configs/aspeed-common.h
include/configs/astro_mcf5373l.h
include/configs/at91sam9260ek.h
include/configs/at91sam9261ek.h
include/configs/at91sam9263ek.h
include/configs/at91sam9m10g45ek.h
include/configs/at91sam9n12ek.h
include/configs/at91sam9rlek.h
include/configs/at91sam9x5ek.h
include/configs/ax25-ae350.h
include/configs/axs10x.h
include/configs/bcm947622.h
include/configs/bcm94908.h
include/configs/bcm94912.h
include/configs/bcm963138.h
include/configs/bcm963146.h
include/configs/bcm963148.h
include/configs/bcm963158.h
include/configs/bcm963178.h
include/configs/bcm96756.h
include/configs/bcm96813.h
include/configs/bcm96846.h
include/configs/bcm96855.h
include/configs/bcm96856.h
include/configs/bcm96858.h
include/configs/bcm96878.h
include/configs/bcm_ns3.h
include/configs/bcmstb.h
include/configs/bitmain_antminer_s9.h
include/configs/bk4r1.h
include/configs/bmips_bcm3380.h
include/configs/bmips_bcm6318.h
include/configs/bmips_bcm63268.h
include/configs/bmips_bcm6328.h
include/configs/bmips_bcm6338.h
include/configs/bmips_bcm6348.h
include/configs/bmips_bcm6358.h
include/configs/bmips_bcm6362.h
include/configs/bmips_bcm6368.h
include/configs/bmips_bcm6838.h
include/configs/boston.h
include/configs/brppt2.h
include/configs/bur_am335x_common.h
include/configs/capricorn-common.h
include/configs/cgtqmx8.h
include/configs/ci20.h
include/configs/cl-som-imx7.h
include/configs/cm_fx6.h
include/configs/cobra5272.h
include/configs/colibri-imx6ull.h
include/configs/colibri-imx8x.h
include/configs/colibri_imx6.h
include/configs/colibri_imx7.h
include/configs/colibri_vf.h
include/configs/corstone1000.h
include/configs/corvus.h
include/configs/da850evm.h
include/configs/dart_6ul.h
include/configs/devkit3250.h
include/configs/dh_imx6.h
include/configs/display5.h
include/configs/dragonboard410c.h
include/configs/dragonboard820c.h
include/configs/durian.h
include/configs/ea-lpc3250devkitv2.h
include/configs/eb_cpu5282.h
include/configs/el6x_common.h
include/configs/embestmx6boards.h
include/configs/emsdp.h
include/configs/espresso7420.h
include/configs/ethernut5.h
include/configs/exynos5-common.h
include/configs/exynos5250-common.h
include/configs/exynos7420-common.h
include/configs/exynos78x0-common.h
include/configs/gardena-smart-gateway-at91sam.h
include/configs/gardena-smart-gateway-mt7688.h
include/configs/gazerbeam.h
include/configs/ge_b1x5v2.h
include/configs/ge_bx50v3.h
include/configs/grpeach.h
include/configs/gw_ventana.h
include/configs/gxp.h
include/configs/highbank.h
include/configs/hikey.h
include/configs/hikey960.h
include/configs/hsdk-4xd.h
include/configs/hsdk.h
include/configs/imgtec_xilfpga.h
include/configs/imx27lite-common.h
include/configs/imx6-engicam.h
include/configs/imx6_logic.h
include/configs/imx6dl-mamoj.h
include/configs/imx6q-bosch-acc.h
include/configs/imx6ulz_smm_m2.h
include/configs/imx7-cm.h
include/configs/imx8mm-cl-iot-gate.h
include/configs/imx8mm_beacon.h
include/configs/imx8mm_data_modul_edm_sbc.h
include/configs/imx8mm_evk.h
include/configs/imx8mm_icore_mx8mm.h
include/configs/imx8mm_venice.h
include/configs/imx8mn_beacon.h
include/configs/imx8mn_bsh_smm_s2_common.h
include/configs/imx8mn_evk.h
include/configs/imx8mn_var_som.h
include/configs/imx8mn_venice.h
include/configs/imx8mp_dhcom_pdk2.h
include/configs/imx8mp_evk.h
include/configs/imx8mp_icore_mx8mp.h
include/configs/imx8mp_rsb3720.h
include/configs/imx8mp_venice.h
include/configs/imx8mq_cm.h
include/configs/imx8mq_evk.h
include/configs/imx8mq_phanbell.h
include/configs/imx8qm_mek.h
include/configs/imx8qm_rom7720.h
include/configs/imx8qxp_mek.h
include/configs/imx8ulp_evk.h
include/configs/imx93_evk.h
include/configs/integrator-common.h
include/configs/iot_devkit.h
include/configs/j721e_evm.h
include/configs/j721s2_evm.h
include/configs/km/km-mpc83xx.h
include/configs/km/pg-wcom-ls102xa.h
include/configs/kmcent2.h
include/configs/kontron-sl-mx6ul.h
include/configs/kontron-sl-mx8mm.h
include/configs/kontron_pitx_imx8m.h
include/configs/kontron_sl28.h
include/configs/kp_imx53.h
include/configs/kp_imx6q_tpc.h
include/configs/legoev3.h
include/configs/librem5.h
include/configs/linkit-smart-7688.h
include/configs/liteboard.h
include/configs/ls1012a2g5rdb.h
include/configs/ls1012a_common.h
include/configs/ls1012afrdm.h
include/configs/ls1012aqds.h
include/configs/ls1012ardb.h
include/configs/ls1021aiot.h
include/configs/ls1021aqds.h
include/configs/ls1021atsn.h
include/configs/ls1021atwr.h
include/configs/ls1028a_common.h
include/configs/ls1043a_common.h
include/configs/ls1046a_common.h
include/configs/ls1088a_common.h
include/configs/ls2080a_common.h
include/configs/lx2160a_common.h
include/configs/m53menlo.h
include/configs/malta.h
include/configs/maxbcm.h
include/configs/mccmon6.h
include/configs/meerkat96.h
include/configs/meesc.h
include/configs/meson64.h
include/configs/microchip_mpfs_icicle.h
include/configs/msc_sm2s_imx8mp.h
include/configs/mt7620.h
include/configs/mt7621.h
include/configs/mt7622.h
include/configs/mt7623.h
include/configs/mt7628.h
include/configs/mt7629.h
include/configs/mt7981.h
include/configs/mt7986.h
include/configs/mt8518.h
include/configs/mv-common.h
include/configs/mvebu_alleycat-5.h
include/configs/mvebu_armada-37xx.h
include/configs/mvebu_armada-8k.h
include/configs/mx23_olinuxino.h
include/configs/mx23evk.h
include/configs/mx28evk.h
include/configs/mx51evk.h
include/configs/mx53cx9020.h
include/configs/mx53loco.h
include/configs/mx53ppd.h
include/configs/mx6cuboxi.h
include/configs/mx6memcal.h
include/configs/mx6sabre_common.h
include/configs/mx6slevk.h
include/configs/mx6sllevk.h
include/configs/mx6sxsabreauto.h
include/configs/mx6sxsabresd.h
include/configs/mx6ul_14x14_evk.h
include/configs/mx6ullevk.h
include/configs/mx7dsabresd.h
include/configs/mx7ulp_com.h
include/configs/mx7ulp_evk.h
include/configs/mys_6ulx.h
include/configs/nitrogen6x.h
include/configs/nokia_rx51.h
include/configs/novena.h
include/configs/npi_imx6ull.h
include/configs/nsim.h
include/configs/o4-imx6ull-nano.h
include/configs/octeon_common.h
include/configs/octeontx2_common.h
include/configs/octeontx_common.h
include/configs/odroid.h
include/configs/odroid_xu3.h
include/configs/omapl138_lcdk.h
include/configs/openpiton-riscv64.h
include/configs/opos6uldev.h
include/configs/origen.h
include/configs/owl-common.h
include/configs/p1_p2_rdb_pc.h
include/configs/pcl063.h
include/configs/pcl063_ull.h
include/configs/pcm052.h
include/configs/pcm058.h
include/configs/peach-pi.h
include/configs/peach-pit.h
include/configs/phycore_imx8mm.h
include/configs/phycore_imx8mp.h
include/configs/pic32mzdask.h
include/configs/pico-imx6.h
include/configs/pico-imx6ul.h
include/configs/pico-imx7d.h
include/configs/pico-imx8mq.h
include/configs/pm9261.h
include/configs/pm9263.h
include/configs/pm9g45.h
include/configs/poleg.h
include/configs/pomelo.h
include/configs/presidio_asic.h
include/configs/px30_common.h
include/configs/qemu-arm.h
include/configs/qemu-ppce500.h
include/configs/qemu-riscv.h
include/configs/r2dplus.h
include/configs/rcar-gen2-common.h
include/configs/rcar-gen3-common.h
include/configs/rk3036_common.h
include/configs/rk3066_common.h
include/configs/rk3128_common.h
include/configs/rk3188_common.h
include/configs/rk322x_common.h
include/configs/rk3288_common.h
include/configs/rk3308_common.h
include/configs/rk3328_common.h
include/configs/rk3368_common.h
include/configs/rk3399_common.h
include/configs/rk3568_common.h
include/configs/rpi.h
include/configs/rv1108_common.h
include/configs/s5p4418_nanopi2.h
include/configs/s5p_goni.h
include/configs/s5pc210_universal.h
include/configs/sam9x60_curiosity.h
include/configs/sam9x60ek.h
include/configs/sama5d27_wlsom1_ek.h
include/configs/sama5d2_icp.h
include/configs/sama5d2_ptc_ek.h
include/configs/sama5d3_xplained.h
include/configs/sama5d3xek.h
include/configs/sama5d4_xplained.h
include/configs/sama5d4ek.h
include/configs/sama7g5ek.h
include/configs/sandbox.h
include/configs/siemens-am33x-common.h
include/configs/sifive-unleashed.h
include/configs/sifive-unmatched.h
include/configs/sipeed-maix.h
include/configs/smartweb.h
include/configs/smdk5420.h
include/configs/smdkc100.h
include/configs/smdkv310.h
include/configs/smegw01.h
include/configs/snapper9g45.h
include/configs/sniper.h
include/configs/socfpga_common.h
include/configs/socfpga_soc64_common.h
include/configs/socrates.h
include/configs/somlabs_visionsom_6ull.h
include/configs/stih410-b2260.h
include/configs/stm32mp13_common.h
include/configs/stm32mp15_common.h
include/configs/stmark2.h
include/configs/stv0991.h
include/configs/sunxi-common.h
include/configs/synquacer.h
include/configs/taurus.h
include/configs/tb100.h
include/configs/tbs2910.h
include/configs/tegra-common.h
include/configs/theadorable.h
include/configs/thunderx_88xx.h
include/configs/ti814x_evm.h
include/configs/ti816x_evm.h
include/configs/ti_armv7_common.h
include/configs/total_compute.h
include/configs/tplink_wdr4300.h
include/configs/tqma6.h
include/configs/trats.h
include/configs/trats2.h
include/configs/turris_mox.h
include/configs/udoo.h
include/configs/udoo_neo.h
include/configs/usb_a9263.h
include/configs/usbarmory.h
include/configs/vcoreiii.h
include/configs/verdin-imx8mm.h
include/configs/verdin-imx8mp.h
include/configs/vexpress_aemv8.h
include/configs/vexpress_common.h
include/configs/vf610twr.h
include/configs/vinco.h
include/configs/vining_2000.h
include/configs/vocore2.h
include/configs/wandboard.h
include/configs/warp7.h
include/configs/work_92105.h
include/configs/xea.h
include/configs/xenguest_arm64.h
include/configs/xilinx_zynqmp_mini_nand.h
include/configs/xpress.h
include/configs/xtfpga.h
include/init.h
include/system-constants.h
post/drivers/memory.c
test/dm/remoteproc.c

diff --git a/README b/README
index 5ab042a..b095937 100644 (file)
--- a/README
+++ b/README
@@ -1441,7 +1441,7 @@ Configuration Settings:
                the RAM base is not zero, or RAM is divided into banks,
                this variable needs to be recalcuated to get the address.
 
-- CONFIG_SYS_SDRAM_BASE:
+- CFG_SYS_SDRAM_BASE:
                Physical start address of SDRAM. _Must_ be 0 here.
 
 - CONFIG_SYS_FLASH_BASE:
index 4c696cb..d97a578 100644 (file)
@@ -476,9 +476,9 @@ static void __slc_rgn_op(unsigned long paddr, unsigned long sz, const int op)
 static void arc_ioc_setup(void)
 {
        /* IOC Aperture start is equal to DDR start */
-       unsigned int ap_base = CONFIG_SYS_SDRAM_BASE;
+       unsigned int ap_base = CFG_SYS_SDRAM_BASE;
        /* IOC Aperture size is equal to DDR size */
-       long ap_size = CONFIG_SYS_SDRAM_SIZE;
+       long ap_size = CFG_SYS_SDRAM_SIZE;
 
        /* Unsupported configuration. See [ NOTE 2 ] for more details. */
        if (!slc_exists())
index 6b21520..1567857 100644 (file)
@@ -20,7 +20,7 @@ int arch_cpu_init(void)
        timer_init();
 
        gd->cpu_clk = get_board_sys_clk();
-       gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+       gd->ram_size = CFG_SYS_SDRAM_SIZE;
 
        cache_init();
 
index b4d113d..954fa5f 100644 (file)
@@ -29,7 +29,7 @@
  */
 static void __secure ls1_save_ddr_head(void)
 {
-       const char *src = (const char *)CONFIG_SYS_SDRAM_BASE;
+       const char *src = (const char *)CFG_SYS_SDRAM_BASE;
        char *dest = (char *)(OCRAM_BASE_S_ADDR + OCRAM_S_SIZE - DDR_RESV_LEN);
        struct ccsr_scfg __iomem *scfg = (void *)CFG_SYS_FSL_SCFG_ADDR;
        int i;
index ef71e2c..bbaa91f 100644 (file)
@@ -1441,7 +1441,7 @@ int dram_init_banksize(void)
        }
 #endif
 
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        if (gd->ram_size > CONFIG_SYS_DDR_BLOCK1_SIZE) {
                gd->bd->bi_dram[0].size = CONFIG_SYS_DDR_BLOCK1_SIZE;
                gd->bd->bi_dram[1].start = CONFIG_SYS_DDR_BLOCK2_BASE;
@@ -1571,7 +1571,7 @@ void update_early_mmu_table(void)
 
        if (gd->ram_size <= CONFIG_SYS_FSL_DRAM_SIZE1) {
                mmu_change_region_attr(
-                                       CONFIG_SYS_SDRAM_BASE,
+                                       CFG_SYS_SDRAM_BASE,
                                        gd->ram_size,
                                        PTE_BLOCK_MEMTYPE(MT_NORMAL)    |
                                        PTE_BLOCK_OUTER_SHARE           |
@@ -1579,7 +1579,7 @@ void update_early_mmu_table(void)
                                        PTE_TYPE_VALID);
        } else {
                mmu_change_region_attr(
-                                       CONFIG_SYS_SDRAM_BASE,
+                                       CFG_SYS_SDRAM_BASE,
                                        CONFIG_SYS_DDR_BLOCK1_SIZE,
                                        PTE_BLOCK_MEMTYPE(MT_NORMAL)    |
                                        PTE_BLOCK_OUTER_SHARE           |
index 328ba90..d84c10c 100644 (file)
@@ -32,8 +32,8 @@
                                        arch = "arm";
                                        os = "tee";
                                        compression = "none";
-                                       load = <(CONFIG_SYS_SDRAM_BASE + 0x8400000)>;
-                                       entry = <(CONFIG_SYS_SDRAM_BASE + 0x8400000)>;
+                                       load = <(CFG_SYS_SDRAM_BASE + 0x8400000)>;
+                                       entry = <(CFG_SYS_SDRAM_BASE + 0x8400000)>;
 
                                        blob-ext {
                                                filename = "tee.bin";
index 3542434..2141a45 100644 (file)
        (DMM_SDRC_MAP_EMIF1_AND_EMIF2 << EMIF_SDRC_MAP_SHIFT) |\
        (DMM_SDRC_ADDR_SPC_SDRAM << EMIF_SDRC_ADDRSPC_SHIFT) |\
        (DMM_SDRC_INTL_128B << EMIF_SDRC_INTL_SHIFT) |\
-       (CONFIG_SYS_SDRAM_BASE << EMIF_SYS_ADDR_SHIFT))
+       (CFG_SYS_SDRAM_BASE << EMIF_SYS_ADDR_SHIFT))
 
 #define DMM_LISA_MAP_EMIF1_ONLY_BASE_VAL       (\
        (DMM_SDRC_MAP_EMIF1_ONLY << EMIF_SDRC_MAP_SHIFT)|\
index 4733c07..c63c27d 100644 (file)
@@ -12,6 +12,6 @@
 #define CONFIG_IPROC
 
 /* Memory Info */
-#define CONFIG_SYS_SDRAM_BASE          0x61000000
+#define CFG_SYS_SDRAM_BASE             0x61000000
 
 #endif /* __IPROC_COMMON_CONFIGS_H */
index aca2002..bae1027 100644 (file)
@@ -31,7 +31,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        return 0;
 }
index 82ff219..dc6cdc3 100644 (file)
@@ -54,7 +54,7 @@ int board_init(void)
        int i = 0, rc;
        struct udevice *dev;
 
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        while (1) {
                rc = uclass_get_device(UCLASS_MISC, i++, &dev);
index 57e51c8..3b91a0c 100644 (file)
@@ -114,38 +114,38 @@ SMRDATA1:
        .word CONFIG_SYS_SDRC_CR_VAL
        .word AT91_ASM_MC_SDRAMC_MR
        .word CONFIG_SYS_SDRC_MR_VAL
-       .word CONFIG_SYS_SDRAM
-       .word CONFIG_SYS_SDRAM_VAL
+       .word CFG_SYS_SDRAM
+       .word CFG_SYS_SDRAM_VAL
        .word AT91_ASM_MC_SDRAMC_MR
        .word CONFIG_SYS_SDRC_MR_VAL1
-       .word CONFIG_SYS_SDRAM
-       .word CONFIG_SYS_SDRAM_VAL
-       .word CONFIG_SYS_SDRAM
-       .word CONFIG_SYS_SDRAM_VAL
-       .word CONFIG_SYS_SDRAM
-       .word CONFIG_SYS_SDRAM_VAL
-       .word CONFIG_SYS_SDRAM
-       .word CONFIG_SYS_SDRAM_VAL
-       .word CONFIG_SYS_SDRAM
-       .word CONFIG_SYS_SDRAM_VAL
-       .word CONFIG_SYS_SDRAM
-       .word CONFIG_SYS_SDRAM_VAL
-       .word CONFIG_SYS_SDRAM
-       .word CONFIG_SYS_SDRAM_VAL
-       .word CONFIG_SYS_SDRAM
-       .word CONFIG_SYS_SDRAM_VAL
+       .word CFG_SYS_SDRAM
+       .word CFG_SYS_SDRAM_VAL
+       .word CFG_SYS_SDRAM
+       .word CFG_SYS_SDRAM_VAL
+       .word CFG_SYS_SDRAM
+       .word CFG_SYS_SDRAM_VAL
+       .word CFG_SYS_SDRAM
+       .word CFG_SYS_SDRAM_VAL
+       .word CFG_SYS_SDRAM
+       .word CFG_SYS_SDRAM_VAL
+       .word CFG_SYS_SDRAM
+       .word CFG_SYS_SDRAM_VAL
+       .word CFG_SYS_SDRAM
+       .word CFG_SYS_SDRAM_VAL
+       .word CFG_SYS_SDRAM
+       .word CFG_SYS_SDRAM_VAL
        .word AT91_ASM_MC_SDRAMC_MR
        .word CONFIG_SYS_SDRC_MR_VAL2
-       .word CONFIG_SYS_SDRAM1
-       .word CONFIG_SYS_SDRAM_VAL
+       .word CFG_SYS_SDRAM1
+       .word CFG_SYS_SDRAM_VAL
        .word AT91_ASM_MC_SDRAMC_TR
        .word CONFIG_SYS_SDRC_TR_VAL
-       .word CONFIG_SYS_SDRAM
-       .word CONFIG_SYS_SDRAM_VAL
+       .word CFG_SYS_SDRAM
+       .word CFG_SYS_SDRAM_VAL
        .word AT91_ASM_MC_SDRAMC_MR
        .word CONFIG_SYS_SDRC_MR_VAL3
-       .word CONFIG_SYS_SDRAM
-       .word CONFIG_SYS_SDRAM_VAL
+       .word CFG_SYS_SDRAM
+       .word CFG_SYS_SDRAM_VAL
 SMRDATA1E:
        /* SMRDATA1 is 176 bytes long */
 #endif /* CONFIG_IS_ENABLED(SKIP_LOWLEVEL_INIT) */
index c51eee2..ecfe589 100644 (file)
@@ -201,38 +201,38 @@ SMRDATA1:
        .word CONFIG_SYS_SDRC_MDR_VAL
        .word AT91_ASM_SDRAMC_MR
        .word CONFIG_SYS_SDRC_MR_VAL2
-       .word CONFIG_SYS_SDRAM_BASE
-       .word CONFIG_SYS_SDRAM_VAL1
+       .word CFG_SYS_SDRAM_BASE
+       .word CFG_SYS_SDRAM_VAL1
        .word AT91_ASM_SDRAMC_MR
        .word CONFIG_SYS_SDRC_MR_VAL3
-       .word CONFIG_SYS_SDRAM_BASE
-       .word CONFIG_SYS_SDRAM_VAL2
-       .word CONFIG_SYS_SDRAM_BASE
-       .word CONFIG_SYS_SDRAM_VAL3
-       .word CONFIG_SYS_SDRAM_BASE
-       .word CONFIG_SYS_SDRAM_VAL4
-       .word CONFIG_SYS_SDRAM_BASE
-       .word CONFIG_SYS_SDRAM_VAL5
-       .word CONFIG_SYS_SDRAM_BASE
-       .word CONFIG_SYS_SDRAM_VAL6
-       .word CONFIG_SYS_SDRAM_BASE
-       .word CONFIG_SYS_SDRAM_VAL7
-       .word CONFIG_SYS_SDRAM_BASE
-       .word CONFIG_SYS_SDRAM_VAL8
-       .word CONFIG_SYS_SDRAM_BASE
-       .word CONFIG_SYS_SDRAM_VAL9
+       .word CFG_SYS_SDRAM_BASE
+       .word CFG_SYS_SDRAM_VAL2
+       .word CFG_SYS_SDRAM_BASE
+       .word CFG_SYS_SDRAM_VAL3
+       .word CFG_SYS_SDRAM_BASE
+       .word CFG_SYS_SDRAM_VAL4
+       .word CFG_SYS_SDRAM_BASE
+       .word CFG_SYS_SDRAM_VAL5
+       .word CFG_SYS_SDRAM_BASE
+       .word CFG_SYS_SDRAM_VAL6
+       .word CFG_SYS_SDRAM_BASE
+       .word CFG_SYS_SDRAM_VAL7
+       .word CFG_SYS_SDRAM_BASE
+       .word CFG_SYS_SDRAM_VAL8
+       .word CFG_SYS_SDRAM_BASE
+       .word CFG_SYS_SDRAM_VAL9
        .word AT91_ASM_SDRAMC_MR
        .word CONFIG_SYS_SDRC_MR_VAL4
-       .word CONFIG_SYS_SDRAM_BASE
-       .word CONFIG_SYS_SDRAM_VAL10
+       .word CFG_SYS_SDRAM_BASE
+       .word CFG_SYS_SDRAM_VAL10
        .word AT91_ASM_SDRAMC_MR
        .word CONFIG_SYS_SDRC_MR_VAL5
-       .word CONFIG_SYS_SDRAM_BASE
-       .word CONFIG_SYS_SDRAM_VAL11
+       .word CFG_SYS_SDRAM_BASE
+       .word CFG_SYS_SDRAM_VAL11
        .word AT91_ASM_SDRAMC_TR
        .word CONFIG_SYS_SDRC_TR_VAL2
-       .word CONFIG_SYS_SDRAM_BASE
-       .word CONFIG_SYS_SDRAM_VAL12
+       .word CFG_SYS_SDRAM_BASE
+       .word CFG_SYS_SDRAM_VAL12
        /* User reset enable*/
        .word AT91_ASM_RSTC_MR
        .word CONFIG_SYS_RSTC_RMR_VAL
index 73fdd1f..42078b3 100644 (file)
@@ -26,14 +26,14 @@ int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
        gd->ram_size = get_ram_size(
-                       (void *)CONFIG_SYS_SDRAM_BASE,
+                       (void *)CFG_SYS_SDRAM_BASE,
                        CONFIG_MAX_RAM_BANK_SIZE);
        return 0;
 }
 
 int dram_init_banksize(void)
 {
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = gd->ram_size;
 
        return 0;
index fa867f2..cad8ccc 100644 (file)
@@ -236,7 +236,7 @@ int ddr3_mem_ctrl_init(struct mem_timings *mem, int reset)
  * better have similar timings, since there's only a single adjustment that is
  * shared by both chips).
  */
-const unsigned int test_addr = CONFIG_SYS_SDRAM_BASE;
+const unsigned int test_addr = CFG_SYS_SDRAM_BASE;
 
 /* Test pattern with which RAM will be tested */
 static const unsigned int test_pattern[] = {
index a486328..8050406 100644 (file)
@@ -178,7 +178,7 @@ static unsigned int imx8m_find_dram_entry_in_mem_map(void)
        int i;
 
        for (i = 0; i < ARRAY_SIZE(imx8m_mem_map); i++)
-               if (imx8m_mem_map[i].phys == CONFIG_SYS_SDRAM_BASE)
+               if (imx8m_mem_map[i].phys == CFG_SYS_SDRAM_BASE)
                        return i;
 
        hang(); /* Entry not found, this must never happen. */
index 802cb0e..5d95fb8 100644 (file)
@@ -373,7 +373,7 @@ static unsigned int imx8ulp_find_dram_entry_in_mem_map(void)
        int i;
 
        for (i = 0; i < ARRAY_SIZE(imx8ulp_arm64_mem_map); i++)
-               if (imx8ulp_arm64_mem_map[i].phys == CONFIG_SYS_SDRAM_BASE)
+               if (imx8ulp_arm64_mem_map[i].phys == CFG_SYS_SDRAM_BASE)
                        return i;
 
        hang(); /* Entry not found, this must never happen. */
index 699a3dc..2ba3245 100644 (file)
@@ -172,7 +172,7 @@ static void spl_dram_init(void)
         * Get actual RAM size, so we can adjust DDR row size for <512M
         * memories
         */
-       ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, SZ_512M);
+       ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE, SZ_512M);
        if (ram_size < SZ_512M) {
                mem_ddr.rowaddr = 14;
                mx6_dram_cfg(&ddr_sysinfo, &mx6_mmcd_calib, &mem_ddr);
index e9d7874..38ead8a 100644 (file)
@@ -44,7 +44,7 @@ static int setup_fec(void)
 int board_init(void)
 {
        /* Address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_FEC_MXC
        setup_fec();
index 6b8f411..cb9801b 100644 (file)
@@ -349,7 +349,7 @@ void *board_spl_fit_buffer_addr(ulong fit_size, int sectors, int bl_len)
 #if defined(CONFIG_MX6) && defined(CONFIG_SPL_OS_BOOT)
 int dram_init_banksize(void)
 {
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = imx_ddr_size();
 
        return 0;
index 227706e..d5e1f8e 100644 (file)
@@ -561,7 +561,7 @@ void remove_fwl_configs(struct fwl_data *fwl_data, size_t fwl_data_size)
 void spl_enable_dcache(void)
 {
 #if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
-       phys_addr_t ram_top = CONFIG_SYS_SDRAM_BASE;
+       phys_addr_t ram_top = CFG_SYS_SDRAM_BASE;
 
        dram_init();
 
index 3d2ff67..2aec962 100644 (file)
@@ -24,7 +24,7 @@ struct mpu_region_config k3_mpu_regions[16] = {
         O_I_WB_RD_WR_ALLOC, REGION_8MB},
 
        /* U-Boot's code area marking it as WB and Write allocate */
-       {CONFIG_SYS_SDRAM_BASE, REGION_2, XN_DIS, PRIV_RW_USR_RW,
+       {CFG_SYS_SDRAM_BASE, REGION_2, XN_DIS, PRIV_RW_USR_RW,
         O_I_WB_RD_WR_ALLOC, REGION_2GB},
        /* mcu_r5fss0_core0 BTCM area marking it as WB and Write allocate. */
        {0x41010000, 3, XN_DIS, PRIV_RW_USR_RW, O_I_WB_RD_WR_ALLOC,
index 53117c2..ea7d0b9 100644 (file)
@@ -318,7 +318,7 @@ void ddr3_init_ecc(u32 base, u32 ddr3_size)
        }
 
        ddr3_ecc_init_range(base);
-       ddr3_reset_data(CONFIG_SYS_SDRAM_BASE, ddr3_size);
+       ddr3_reset_data(CFG_SYS_SDRAM_BASE, ddr3_size);
 
        /* mapping DDR3 ECC system interrupt from CIC2 to GIC */
 #if defined(CONFIG_SOC_K2HK) || defined(CONFIG_SOC_K2L)
index 5d837e0..988b057 100644 (file)
@@ -25,7 +25,7 @@ int dram_init(void)
 {
        u32 i;
 
-       if (((size_t)preloader_param >= CONFIG_SYS_SDRAM_BASE) &&
+       if (((size_t)preloader_param >= CFG_SYS_SDRAM_BASE) &&
            ((size_t)preloader_param % sizeof(size_t) == 0) &&
            preloader_param->magic == BOOT_ARGUMENT_MAGIC &&
            preloader_param->dram_rank_num <=
@@ -35,7 +35,7 @@ int dram_init(void)
                for (i = 0; i < preloader_param->dram_rank_num; i++)
                        gd->ram_size += preloader_param->dram_rank_size[i];
        } else {
-               gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
+               gd->ram_size = get_ram_size((long *)CFG_SYS_SDRAM_BASE,
                                            SZ_2G);
        }
 
index a895506..d8b10f0 100644 (file)
@@ -14,7 +14,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, SZ_2G);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE, SZ_2G);
 
        return 0;
 }
index cf89e63..fb74b2f 100644 (file)
@@ -14,7 +14,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, SZ_2G);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE, SZ_2G);
 
        return 0;
 }
index cc7f979..8204d96 100644 (file)
@@ -21,8 +21,8 @@ DECLARE_GLOBAL_DATA_PTR;
 static struct mm_region ac5_mem_map[] = {
        {
                /* RAM */
-               .phys = CONFIG_SYS_SDRAM_BASE,
-               .virt = CONFIG_SYS_SDRAM_BASE,
+               .phys = CFG_SYS_SDRAM_BASE,
+               .virt = CFG_SYS_SDRAM_BASE,
                .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
                         PTE_BLOCK_INNER_SHARE
        },
@@ -102,7 +102,7 @@ int alleycat5_dram_init_banksize(void)
        /*
         * Config single DRAM bank
         */
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = gd->ram_size;
 
        return 0;
index e3098a7..2c94f89 100644 (file)
@@ -32,7 +32,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 {
-       unsigned long top = CONFIG_SYS_SDRAM_BASE + min(gd->ram_size, USABLE_RAM_SIZE);
+       unsigned long top = CFG_SYS_SDRAM_BASE + min(gd->ram_size, USABLE_RAM_SIZE);
 
        return (gd->ram_top > top) ? top : gd->ram_top;
 }
index bab375e..6c801bf 100644 (file)
@@ -38,7 +38,7 @@ int a8k_dram_init_banksize(void)
         */
        phys_size_t max_bank0_size = SZ_4G - SZ_1G;
 
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        if (gd->ram_size <= max_bank0_size) {
                gd->bd->bi_dram[0].size = gd->ram_size;
                return 0;
index 44d5214..86755d6 100644 (file)
@@ -72,14 +72,14 @@ int dram_init(void)
 
        /* dram_init must store complete ramsize in gd->ram_size */
        gd->ram_size = get_ram_size(
-                       (void *)CONFIG_SYS_SDRAM_BASE,
+                       (void *)CFG_SYS_SDRAM_BASE,
                        CONFIG_MAX_RAM_BANK_SIZE);
        return 0;
 }
 
 int dram_init_banksize(void)
 {
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = gd->ram_size;
 
        return 0;
@@ -520,7 +520,7 @@ void board_init_f(ulong dummy)
        sdram_init();
        /* dram_init must store complete ramsize in gd->ram_size */
        gd->ram_size = get_ram_size(
-                       (void *)CONFIG_SYS_SDRAM_BASE,
+                       (void *)CFG_SYS_SDRAM_BASE,
                        CONFIG_MAX_RAM_BANK_SIZE);
 }
 #endif
index 312f868..a6a97af 100644 (file)
@@ -389,7 +389,7 @@ static void dra7_enable_ecc(u32 base, const struct emif_regs *regs)
                /* Set region1 memory with 0 */
                rgn_start = (regs->emif_ecc_address_range_1 &
                             EMIF_ECC_REG_ECC_START_ADDR_MASK) << 16;
-               rgn = rgn_start + CONFIG_SYS_SDRAM_BASE;
+               rgn = rgn_start + CFG_SYS_SDRAM_BASE;
                size = (regs->emif_ecc_address_range_1 &
                        EMIF_ECC_REG_ECC_END_ADDR_MASK) + 0x10000 - rgn_start;
 
@@ -400,7 +400,7 @@ static void dra7_enable_ecc(u32 base, const struct emif_regs *regs)
                /* Set region2 memory with 0 */
                rgn_start = (regs->emif_ecc_address_range_2 &
                             EMIF_ECC_REG_ECC_START_ADDR_MASK) << 16;
-               rgn = rgn_start + CONFIG_SYS_SDRAM_BASE;
+               rgn = rgn_start + CFG_SYS_SDRAM_BASE;
                size = (regs->emif_ecc_address_range_2 &
                        EMIF_ECC_REG_ECC_END_ADDR_MASK) + 0x10000 - rgn_start;
 
@@ -1340,7 +1340,7 @@ void dmm_init(u32 base)
 
        mapped_size = 0;
        section_cnt = 3;
-       sys_addr = CONFIG_SYS_SDRAM_BASE;
+       sys_addr = CFG_SYS_SDRAM_BASE;
        emif1_size = get_emif_mem_size(EMIF1_BASE);
        emif2_size = get_emif_mem_size(EMIF2_BASE);
        debug("emif1_size 0x%x emif2_size 0x%x\n", emif1_size, emif2_size);
@@ -1568,7 +1568,7 @@ void sdram_init(void)
                size_prog = log_2_n_round_down(size_prog);
                size_prog = (1 << size_prog);
 
-               size_detect = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
+               size_detect = get_ram_size((long *)CFG_SYS_SDRAM_BASE,
                                                size_prog);
                /* Compare with the size programmed */
                if (size_detect != size_prog) {
index 0551bc1..0f9b915 100644 (file)
@@ -198,11 +198,11 @@ u32 get_sec_mem_start(void)
         */
        if (sec_mem_start == 0)
                sec_mem_start =
-                       (CONFIG_SYS_SDRAM_BASE + (
+                       (CFG_SYS_SDRAM_BASE + (
 #if defined(CONFIG_OMAP54XX)
                        omap_sdram_size()
 #else
-                       get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
+                       get_ram_size((void *)CFG_SYS_SDRAM_BASE,
                                     CONFIG_MAX_RAM_BANK_SIZE)
 #endif
                        - sec_mem_size));
index 4baef2e..f0f46f2 100644 (file)
@@ -50,7 +50,7 @@ int dram_init(void)
 /* This is called after dram_init() so use get_ram_size result */
 int dram_init_banksize(void)
 {
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = gd->ram_size;
 
        return 0;
index 12f1d7e..e086c47 100644 (file)
@@ -37,7 +37,7 @@ struct tos_parameter_t {
 
 int dram_init_banksize(void)
 {
-       size_t top = min((unsigned long)(gd->ram_size + CONFIG_SYS_SDRAM_BASE),
+       size_t top = min((unsigned long)(gd->ram_size + CFG_SYS_SDRAM_BASE),
                         (unsigned long)(gd->ram_top));
 
 #ifdef CONFIG_ARM64
@@ -48,26 +48,26 @@ int dram_init_banksize(void)
 #ifdef CONFIG_SPL_OPTEE_IMAGE
        struct tos_parameter_t *tos_parameter;
 
-       tos_parameter = (struct tos_parameter_t *)(CONFIG_SYS_SDRAM_BASE +
+       tos_parameter = (struct tos_parameter_t *)(CFG_SYS_SDRAM_BASE +
                        TRUST_PARAMETER_OFFSET);
 
        if (tos_parameter->tee_mem.flags == 1) {
-               gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+               gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
                gd->bd->bi_dram[0].size = tos_parameter->tee_mem.phy_addr
-                                       - CONFIG_SYS_SDRAM_BASE;
+                                       - CFG_SYS_SDRAM_BASE;
                gd->bd->bi_dram[1].start = tos_parameter->tee_mem.phy_addr +
                                        tos_parameter->tee_mem.size;
                gd->bd->bi_dram[1].size = top - gd->bd->bi_dram[1].start;
        } else {
-               gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+               gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
                gd->bd->bi_dram[0].size = 0x8400000;
                /* Reserve 32M for OPTEE with TA */
-               gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE
+               gd->bd->bi_dram[1].start = CFG_SYS_SDRAM_BASE
                                        + gd->bd->bi_dram[0].size + 0x2000000;
                gd->bd->bi_dram[1].size = top - gd->bd->bi_dram[1].start;
        }
 #else
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = top - gd->bd->bi_dram[0].start;
 #endif
 #endif
@@ -207,7 +207,7 @@ int dram_init(void)
 
 phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 {
-       unsigned long top = CONFIG_SYS_SDRAM_BASE + SDRAM_MAX_SIZE;
+       unsigned long top = CFG_SYS_SDRAM_BASE + SDRAM_MAX_SIZE;
 
        return (gd->ram_top > top) ? top : gd->ram_top;
 }
index b49006c..09e0919 100644 (file)
@@ -46,7 +46,7 @@ void s_init(void) {
 int board_init(void)
 {
        /* Address of boot parameters for ATAG (if ATAG is used) */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        return 0;
 }
index 2c87319..cdf2750 100644 (file)
@@ -33,11 +33,11 @@ void mctl_await_completion(u32 *reg, u32 mask, u32 val)
 bool mctl_mem_matches(u32 offset)
 {
        /* Try to write different values to RAM at two addresses */
-       writel(0, CONFIG_SYS_SDRAM_BASE);
-       writel(0xaa55aa55, (ulong)CONFIG_SYS_SDRAM_BASE + offset);
+       writel(0, CFG_SYS_SDRAM_BASE);
+       writel(0xaa55aa55, (ulong)CFG_SYS_SDRAM_BASE + offset);
        dsb();
        /* Check if the same value is actually observed when reading back */
-       return readl(CONFIG_SYS_SDRAM_BASE) ==
-              readl((ulong)CONFIG_SYS_SDRAM_BASE + offset);
+       return readl(CFG_SYS_SDRAM_BASE) ==
+              readl((ulong)CFG_SYS_SDRAM_BASE + offset);
 }
 #endif
index 56c2d55..3aa3ce7 100644 (file)
@@ -175,9 +175,9 @@ static int sdr_readpipe_scan(void)
        u32 k = 0;
 
        for (k = 0; k < 32; k++)
-               writel(k, CONFIG_SYS_SDRAM_BASE + 4 * k);
+               writel(k, CFG_SYS_SDRAM_BASE + 4 * k);
        for (k = 0; k < 32; k++) {
-               if (readl(CONFIG_SYS_SDRAM_BASE + 4 * k) != k)
+               if (readl(CFG_SYS_SDRAM_BASE + 4 * k) != k)
                        return 0;
        }
        return 1;
@@ -266,11 +266,11 @@ static u32 dram_get_dram_size(struct dram_para *para)
        dram_para_setup(para);
        dram_scan_readpipe(para);
        for (i = 0; i < 32; i++) {
-               *((u8 *)(CONFIG_SYS_SDRAM_BASE + 0x200 + i)) = 0x11;
-               *((u8 *)(CONFIG_SYS_SDRAM_BASE + 0x600 + i)) = 0x22;
+               *((u8 *)(CFG_SYS_SDRAM_BASE + 0x200 + i)) = 0x11;
+               *((u8 *)(CFG_SYS_SDRAM_BASE + 0x600 + i)) = 0x22;
        }
        for (i = 0; i < 32; i++) {
-               val1 = *((u8 *)(CONFIG_SYS_SDRAM_BASE + 0x200 + i));
+               val1 = *((u8 *)(CFG_SYS_SDRAM_BASE + 0x200 + i));
                if (val1 == 0x22)
                        count++;
        }
@@ -283,11 +283,11 @@ static u32 dram_get_dram_size(struct dram_para *para)
        para->row_width = rowflag;
        dram_para_setup(para);
        if (colflag == 10) {
-               addr1 = CONFIG_SYS_SDRAM_BASE + 0x400000;
-               addr2 = CONFIG_SYS_SDRAM_BASE + 0xc00000;
+               addr1 = CFG_SYS_SDRAM_BASE + 0x400000;
+               addr2 = CFG_SYS_SDRAM_BASE + 0xc00000;
        } else {
-               addr1 = CONFIG_SYS_SDRAM_BASE + 0x200000;
-               addr2 = CONFIG_SYS_SDRAM_BASE + 0x600000;
+               addr1 = CFG_SYS_SDRAM_BASE + 0x200000;
+               addr2 = CFG_SYS_SDRAM_BASE + 0x600000;
        }
        for (i = 0; i < 32; i++) {
                *((u8 *)(addr1 + i)) = 0x33;
@@ -319,7 +319,7 @@ static u32 dram_get_dram_size(struct dram_para *para)
 
 static void simple_dram_check(void)
 {
-       volatile u32 *dram = (u32 *)CONFIG_SYS_SDRAM_BASE;
+       volatile u32 *dram = (u32 *)CFG_SYS_SDRAM_BASE;
        int i;
 
        for (i = 0; i < 0x40; i++)
index 9107b11..4af5922 100644 (file)
@@ -711,7 +711,7 @@ static unsigned long mctl_calc_rank_size(struct rank_para *rank)
  */
 static void mctl_r40_detect_rank_count(struct dram_para *para)
 {
-       ulong rank1_base = (ulong) CONFIG_SYS_SDRAM_BASE +
+       ulong rank1_base = (ulong) CFG_SYS_SDRAM_BASE +
                           mctl_calc_rank_size(&para->ranks[0]);
        struct sunxi_mctl_ctl_reg * const mctl_ctl =
                        (struct sunxi_mctl_ctl_reg *)SUNXI_DRAM_CTL0_BASE;
@@ -744,10 +744,10 @@ static void mctl_r40_detect_rank_count(struct dram_para *para)
 
 static void mctl_auto_detect_dram_size(uint16_t socid, struct dram_para *para)
 {
-       mctl_auto_detect_dram_size_rank(socid, para, (ulong)CONFIG_SYS_SDRAM_BASE, &para->ranks[0]);
+       mctl_auto_detect_dram_size_rank(socid, para, (ulong)CFG_SYS_SDRAM_BASE, &para->ranks[0]);
 
        if ((socid == SOCID_A64 || socid == SOCID_R40) && para->dual_rank) {
-               mctl_auto_detect_dram_size_rank(socid, para, (ulong)CONFIG_SYS_SDRAM_BASE + mctl_calc_rank_size(&para->ranks[0]), &para->ranks[1]);
+               mctl_auto_detect_dram_size_rank(socid, para, (ulong)CFG_SYS_SDRAM_BASE + mctl_calc_rank_size(&para->ranks[0]), &para->ranks[1]);
        }
 }
 
index 82d3d33..54bbd8a 100644 (file)
@@ -370,7 +370,7 @@ int dram_init_banksize(void)
 
        /* fall back to default DRAM bank size computation */
 
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = usable_ram_size_below_4g();
 
 #ifdef CONFIG_PCI
@@ -412,5 +412,5 @@ phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 
        /* fall back to default usable RAM computation */
 
-       return CONFIG_SYS_SDRAM_BASE + usable_ram_size_below_4g();
+       return CFG_SYS_SDRAM_BASE + usable_ram_size_below_4g();
 }
index ac595ee..3b6518c 100644 (file)
@@ -54,7 +54,7 @@ int arch_cpu_init(void)
        writel(0x757BDF0D, &devcfg_base->unlock);
        writel(0xFFFFFFFF, &devcfg_base->rom_shadow);
 
-#if (CONFIG_SYS_SDRAM_BASE == 0)
+#if (CFG_SYS_SDRAM_BASE == 0)
        /* remap DDR to zero, FILTERSTART */
        writel(0, &scu_base->filter_start);
 
index e298579..dac2229 100644 (file)
@@ -239,7 +239,7 @@ int clock_pll(int fsys, int flags)
         * software workaround for SDRAM opeartion after exiting LIMP
         * mode errata
         */
-       out_be32(sdram_workaround, CONFIG_SYS_SDRAM_BASE);
+       out_be32(sdram_workaround, CFG_SYS_SDRAM_BASE);
 #endif
 
        /* wait for DQS logic to relock */
index f2eb6fc..672aa0b 100644 (file)
 
 #ifdef CONFIG_PCI
 #define CFG_SYS_PCI_BAR0               (0x40000000)
-#define CFG_SYS_PCI_BAR1               (CONFIG_SYS_SDRAM_BASE)
+#define CFG_SYS_PCI_BAR1               (CFG_SYS_SDRAM_BASE)
 #define CFG_SYS_PCI_TBATR0             (CONFIG_SYS_MBAR)
-#define CFG_SYS_PCI_TBATR1             (CONFIG_SYS_SDRAM_BASE)
+#define CFG_SYS_PCI_TBATR1             (CFG_SYS_SDRAM_BASE)
 #endif
 #endif                         /* CONFIG_M547x */
 
index 0c2c1a9..28fe803 100644 (file)
@@ -62,7 +62,7 @@ static void trap_init(ulong value) {
 
 int arch_initr_trap(void)
 {
-       trap_init(CONFIG_SYS_SDRAM_BASE);
+       trap_init(CFG_SYS_SDRAM_BASE);
 
        return 0;
 }
index 7577fdd..7a682f2 100644 (file)
@@ -135,7 +135,7 @@ void trap_restore(void)
 
 int arch_initr_trap(void)
 {
-       trap_init(CONFIG_SYS_SDRAM_BASE);
+       trap_init(CFG_SYS_SDRAM_BASE);
 
        return 0;
 }
index cff98b0..15d1eff 100644 (file)
@@ -78,7 +78,7 @@ void board_init_f(ulong dummy)
 
 phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 {
-       return CONFIG_SYS_SDRAM_BASE + (256 * 1024 * 1024);
+       return CFG_SYS_SDRAM_BASE + (256 * 1024 * 1024);
 }
 
 int print_cpuinfo(void)
index 5bc3100..d484eb9 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if CONFIG_SYS_SDRAM_SIZE <= SZ_64M
+#if CFG_SYS_SDRAM_SIZE <= SZ_64M
 #define MSCC_RAM_TLB_SIZE   SZ_64M
 #define MSCC_ATTRIB2   MMU_REGIO_INVAL
-#elif CONFIG_SYS_SDRAM_SIZE <= SZ_128M
+#elif CFG_SYS_SDRAM_SIZE <= SZ_128M
 #define MSCC_RAM_TLB_SIZE   SZ_64M
 #define MSCC_ATTRIB2   MMU_REGIO_RW
-#elif CONFIG_SYS_SDRAM_SIZE <= SZ_256M
+#elif CFG_SYS_SDRAM_SIZE <= SZ_256M
 #define MSCC_RAM_TLB_SIZE   SZ_256M
 #define MSCC_ATTRIB2   MMU_REGIO_INVAL
-#elif CONFIG_SYS_SDRAM_SIZE <= SZ_512M
+#elif CFG_SYS_SDRAM_SIZE <= SZ_512M
 #define MSCC_RAM_TLB_SIZE   SZ_256M
 #define MSCC_ATTRIB2   MMU_REGIO_RW
 #else
index c53a420..f7fbd33 100644 (file)
@@ -67,6 +67,6 @@ int print_cpuinfo(void)
 
 int dram_init(void)
 {
-       gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+       gd->ram_size = CFG_SYS_SDRAM_SIZE;
        return 0;
 }
index d52eabb..75fb3ca 100644 (file)
@@ -13,7 +13,7 @@
 #include <mach/common.h>
 
 #define MIPS_VCOREIII_MEMORY_DDR3
-#define MIPS_VCOREIII_DDR_SIZE CONFIG_SYS_SDRAM_SIZE
+#define MIPS_VCOREIII_DDR_SIZE CFG_SYS_SDRAM_SIZE
 
 #if defined(CONFIG_DDRTYPE_H5TQ1G63BFA)        /* Serval1 Refboard */
 
index 3cad356..6b9f253 100644 (file)
@@ -18,7 +18,7 @@
 #include "dram.h"
 
 #ifndef CONFIG_SYS_INIT_SP_ADDR
-#define CONFIG_SYS_INIT_SP_ADDR        (CONFIG_SYS_SDRAM_BASE + \
+#define CONFIG_SYS_INIT_SP_ADDR        (CFG_SYS_SDRAM_BASE + \
                                CONFIG_SYS_INIT_SP_OFFSET)
 #endif
 
index 9c5789b..85cb084 100644 (file)
@@ -81,7 +81,7 @@ phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 {
        if (IS_ENABLED(CONFIG_RAM_OCTEON)) {
                /* Map a maximum of 256MiB - return not size but address */
-               return CONFIG_SYS_SDRAM_BASE + min(gd->ram_size,
+               return CFG_SYS_SDRAM_BASE + min(gd->ram_size,
                                                   UBOOT_RAM_SIZE_MAX);
        } else {
                return gd->ram_top;
index 4dd9c10..8554450 100644 (file)
@@ -73,7 +73,7 @@ static int nios_cpu_setup(void *ctx, struct event *event)
        if (ret)
                return ret;
 
-       gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+       gd->ram_size = CFG_SYS_SDRAM_SIZE;
 #ifndef CONFIG_ROM_STUBS
        copy_exception_trampoline();
 #endif
index e12043b..6d1c6b0 100644 (file)
@@ -288,7 +288,7 @@ long int spd_sdram()
        /*
         * Set up LAWBAR for all of DDR.
         */
-       ecm->bar = CONFIG_SYS_SDRAM_BASE & 0xfffff000;
+       ecm->bar = CFG_SYS_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);
index b0363c9..6acd31d 100644 (file)
@@ -424,7 +424,7 @@ int dram_init(void)
        defined(CONFIG_ARCH_QEMU_E500)
        gd->ram_size = fsl_ddr_sdram_size();
 #else
-       gd->ram_size = (phys_size_t)CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
+       gd->ram_size = (phys_size_t)CFG_SYS_SDRAM_SIZE * 1024 * 1024;
 #endif
 
        return 0;
index f109ecb..44f8ed8 100644 (file)
@@ -195,7 +195,7 @@ u32 determine_mp_bootpg(unsigned int *pagesize)
        /* use last 4K of mapped memory */
        bootpg = ((gd->ram_size > CONFIG_MAX_MEM_MAPPED) ?
                CONFIG_MAX_MEM_MAPPED : gd->ram_size) +
-               CONFIG_SYS_SDRAM_BASE - 4096;
+               CFG_SYS_SDRAM_BASE - 4096;
        if (pagesize)
                *pagesize = 4096;
 
index d917e9d..71496ab 100644 (file)
@@ -16,7 +16,7 @@ void construct_pamu_addr_table(struct pamu_addr_tbl *tbl, int *num_entries)
        int j;
 
        tbl->start_addr[i] =
-                       (uint64_t)virt_to_phys((void *)CONFIG_SYS_SDRAM_BASE);
+                       (uint64_t)virt_to_phys((void *)CFG_SYS_SDRAM_BASE);
        tbl->size[i] = (phys_size_t)(min(gd->ram_size, CONFIG_MAX_MEM_MAPPED));
        tbl->end_addr[i] = tbl->start_addr[i] +  tbl->size[i] - 1;
 
index 8ae8d8a..1df0822 100644 (file)
@@ -126,7 +126,7 @@ void arch_lmb_reserve(struct lmb *lmb)
 
 #ifdef DEBUG
        if (((u64)bootmap_base + bootm_size) >
-           (CONFIG_SYS_SDRAM_BASE + (u64)gd->ram_size))
+           (CFG_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");
index a681e47..dd7978c 100644 (file)
@@ -448,7 +448,7 @@ int state_init(void)
 {
        state = &main_state;
 
-       state->ram_size = CONFIG_SYS_SDRAM_SIZE;
+       state->ram_size = CFG_SYS_SDRAM_SIZE;
        state->ram_buf = os_malloc(state->ram_size);
        if (!state->ram_buf) {
                printf("Out of memory\n");
index 2051207..88b57bf 100644 (file)
@@ -25,7 +25,7 @@
        };
 
        memory {
-               reg = <0 CONFIG_SYS_SDRAM_SIZE>;
+               reg = <0 CFG_SYS_SDRAM_SIZE>;
        };
 
        reserved-memory {
index 3eb0457..a9cd790 100644 (file)
@@ -21,7 +21,7 @@
        };
 
        memory {
-               reg = /bits/ 64 <0 CONFIG_SYS_SDRAM_SIZE>;
+               reg = /bits/ 64 <0 CFG_SYS_SDRAM_SIZE>;
        };
 
        reserved-memory {
index 85ee547..d360eea 100644 (file)
@@ -18,7 +18,7 @@ OUTPUT_ARCH(sh)
 
 MEMORY
 {
-       ram     : ORIGIN = CONFIG_SYS_SDRAM_BASE, LENGTH = CONFIG_SYS_SDRAM_SIZE
+       ram     : ORIGIN = CFG_SYS_SDRAM_BASE, LENGTH = CFG_SYS_SDRAM_SIZE
 }
 
 ENTRY(_start)
index 3fa093a..b31fa6d 100644 (file)
@@ -11,8 +11,8 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((long *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
 
        return 0;
 }
index a5fad6c..b205e5e 100644 (file)
@@ -88,7 +88,7 @@ int do_bootm_linux(int flag, int argc, char *const argv[],
                set_sh_linux_param((unsigned long)param + ORIG_ROOT_DEV, 0x0200);
                set_sh_linux_param((unsigned long)param + LOADER_TYPE, 0x0001);
                set_sh_linux_param((unsigned long)param + INITRD_START,
-                       GET_INITRD_START(images->rd_start, CONFIG_SYS_SDRAM_BASE));
+                       GET_INITRD_START(images->rd_start, CFG_SYS_SDRAM_BASE));
                set_sh_linux_param((unsigned long)param + INITRD_SIZE,
                        images->rd_end - images->rd_start);
        }
index a09e103..98d9753 100644 (file)
@@ -45,7 +45,7 @@ int print_cpuinfo(void)
 
 int arch_cpu_init(void)
 {
-       gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+       gd->ram_size = CFG_SYS_SDRAM_SIZE;
        return 0;
 }
 
index c8dc186..36945bb 100644 (file)
@@ -150,7 +150,7 @@ int board_init(void)
 #if defined(CONFIG_HW_WATCHDOG)
        hw_watchdog_init();
 #endif
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        return 0;
 }
index 2b08930..f9a37e7 100644 (file)
@@ -40,8 +40,8 @@ int dram_init(void)
        MCFSDRAMC_DCR = MCFSDRAMC_DCR_RTIM_6 |
                        MCFSDRAMC_DCR_RC((15 * CONFIG_SYS_CLK / 1000000) >> 4);
        asm (" nop");
-#ifdef CONFIG_SYS_SDRAM_BASE0
-       MCFSDRAMC_DACR0 = MCFSDRAMC_DACR_BASE(CONFIG_SYS_SDRAM_BASE0)|
+#ifdef CFG_SYS_SDRAM_BASE0
+       MCFSDRAMC_DACR0 = MCFSDRAMC_DACR_BASE(CFG_SYS_SDRAM_BASE0)|
                MCFSDRAMC_DACR_CASL(1) | MCFSDRAMC_DACR_CBM(3) |
                MCFSDRAMC_DACR_PS_32;
        asm (" nop");
@@ -54,7 +54,7 @@ int dram_init(void)
        for (i = 0; i < 10; i++)
                asm (" nop");
 
-       *(unsigned long *)(CONFIG_SYS_SDRAM_BASE0) = 0xA5A5A5A5;
+       *(unsigned long *)(CFG_SYS_SDRAM_BASE0) = 0xA5A5A5A5;
        asm (" nop");
        MCFSDRAMC_DACR0 |= MCFSDRAMC_DACR_RE;
        asm (" nop");
@@ -65,12 +65,12 @@ int dram_init(void)
        MCFSDRAMC_DACR0 |= MCFSDRAMC_DACR_IMRS;
        asm (" nop");
        /* write SDRAM mode register */
-       *(unsigned long *)(CONFIG_SYS_SDRAM_BASE0 + 0x80440) = 0xA5A5A5A5;
+       *(unsigned long *)(CFG_SYS_SDRAM_BASE0 + 0x80440) = 0xA5A5A5A5;
        asm (" nop");
-       size += CONFIG_SYS_SDRAM_SIZE0 * 1024 * 1024;
+       size += CFG_SYS_SDRAM_SIZE0 * 1024 * 1024;
 #endif
-#ifdef CONFIG_SYS_SDRAM_BASE1xx
-       MCFSDRAMC_DACR1 = MCFSDRAMC_DACR_BASE (CONFIG_SYS_SDRAM_BASE1)
+#ifdef CFG_SYS_SDRAM_BASE1xx
+       MCFSDRAMC_DACR1 = MCFSDRAMC_DACR_BASE (CFG_SYS_SDRAM_BASE1)
                        | MCFSDRAMC_DACR_CASL (1)
                        | MCFSDRAMC_DACR_CBM (3)
                        | MCFSDRAMC_DACR_PS_16;
@@ -79,15 +79,15 @@ int dram_init(void)
 
        MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_IP;
 
-       *(unsigned short *) (CONFIG_SYS_SDRAM_BASE1) = 0xA5A5;
+       *(unsigned short *) (CFG_SYS_SDRAM_BASE1) = 0xA5A5;
        MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_RE;
 
        for (i = 0; i < 2000; i++)
                asm (" nop");
 
        MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_IMRS;
-       *(unsigned int *) (CONFIG_SYS_SDRAM_BASE1 + 0x220) = 0xA5A5;
-       size += CONFIG_SYS_SDRAM_SIZE1 * 1024 * 1024;
+       *(unsigned int *) (CFG_SYS_SDRAM_BASE1 + 0x220) = 0xA5A5;
+       size += CFG_SYS_SDRAM_SIZE1 * 1024 * 1024;
 #endif
        gd->ram_size = size;
 
index ff1c4cb..a52a032 100644 (file)
@@ -139,7 +139,7 @@ int board_fix_fdt(void *blob)
 int board_init(void)
 {
        /* address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        return 0;
 }
index 619cd6c..0c4f8e0 100644 (file)
@@ -7,7 +7,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        return 0;
 }
index c6ecc32..45fe3e5 100644 (file)
@@ -80,7 +80,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        return 0;
 }
index 77c7dd7..a8899af 100644 (file)
@@ -150,7 +150,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        return 0;
 }
index 059ebf8..2246535 100644 (file)
@@ -63,7 +63,7 @@ int timer_init(void)
 int dram_init(void)
 {
        gd->ram_size = smc_dram_size(0);
-       gd->ram_size -= CONFIG_SYS_SDRAM_BASE;
+       gd->ram_size -= CFG_SYS_SDRAM_BASE;
        mem_map_fill();
 
        return 0;
index 63aa2d6..e7899f4 100644 (file)
@@ -105,7 +105,7 @@ int timer_init(void)
 int dram_init(void)
 {
        gd->ram_size = smc_dram_size(0);
-       gd->ram_size -= CONFIG_SYS_SDRAM_BASE;
+       gd->ram_size -= CFG_SYS_SDRAM_BASE;
 
        mem_map_fill();
 
index 953e9db..3d20cfb 100644 (file)
@@ -34,7 +34,7 @@ int board_early_init_r(void)
 int board_init(void)
 {
        /* address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        return 0;
 }
index 4959a7f..ad02cf1 100644 (file)
@@ -137,7 +137,7 @@ int misc_init_r (void)
 
 int dram_init (void)
 {
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 #ifdef CONFIG_CM_SPD_DETECT
        {
 extern void dram_query(void);
@@ -160,12 +160,12 @@ extern void dram_query(void);
         *
         */
        sdram_shift = ((cm_reg_sdram & 0x0000001C)/4)%4;
-       gd->ram_size = get_ram_size((long *) CONFIG_SYS_SDRAM_BASE +
+       gd->ram_size = get_ram_size((long *) CFG_SYS_SDRAM_BASE +
                                    REMAPPED_FLASH_SZ,
                                    0x01000000 << sdram_shift);
        }
 #else
-       gd->ram_size = get_ram_size((long *) CONFIG_SYS_SDRAM_BASE +
+       gd->ram_size = get_ram_size((long *) CFG_SYS_SDRAM_BASE +
                                    REMAPPED_FLASH_SZ,
                                    PHYS_SDRAM_1_SIZE);
 #endif /* CM_SPD_DETECT */
index 1c83019..763131c 100644 (file)
@@ -73,7 +73,7 @@ static void flash__init(void)
 int dram_init(void)
 {
        gd->ram_size =
-               get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, PHYS_SDRAM_1_SIZE);
+               get_ram_size((long *)CFG_SYS_SDRAM_BASE, PHYS_SDRAM_1_SIZE);
        return 0;
 }
 
index 3e2f79a..43563c4 100644 (file)
@@ -39,12 +39,12 @@ int dram_init(void)
         * GPIO configuration for bus should be set correctly from reset,
         * so we do not care! First, set up address space: at this point,
         * we should be running from internal SRAM;
-        * so use CONFIG_SYS_SDRAM_BASE as the base address for SDRAM,
+        * so use CFG_SYS_SDRAM_BASE as the base address for SDRAM,
         * and do not care where it is
         */
-       __raw_writel((CONFIG_SYS_SDRAM_BASE & 0xFFF00000) | 0x00000018,
+       __raw_writel((CFG_SYS_SDRAM_BASE & 0xFFF00000) | 0x00000018,
                        &sdp->cs0);
-       __raw_writel((CONFIG_SYS_SDRAM_BASE & 0xFFF00000) | 0x00000000,
+       __raw_writel((CFG_SYS_SDRAM_BASE & 0xFFF00000) | 0x00000000,
                        &sdp->cs1);
        /*
         * I am not sure from the data sheet, but it seems burst length
@@ -72,7 +72,7 @@ int dram_init(void)
         */
        __raw_writel(0x71462C00, &sdp->ctrl);
        /* Dummy write to start SDRAM */
-       writel(0, CONFIG_SYS_SDRAM_BASE);
+       writel(0, CFG_SYS_SDRAM_BASE);
 #endif
 
        /*
@@ -82,8 +82,8 @@ int dram_init(void)
         * (Do not rely on the SDCS register(s) being set to 0x00000000
         * during reset as stated in the data sheet.)
         */
-       gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
-                               0x80000000 - CONFIG_SYS_SDRAM_BASE);
+       gd->ram_size = get_ram_size((long *)CFG_SYS_SDRAM_BASE,
+                               0x80000000 - CFG_SYS_SDRAM_BASE);
 
        return 0;
 }
index d2c6ada..b8e02f4 100644 (file)
@@ -81,7 +81,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
        at91sam9260ek_nand_hw_init();
@@ -92,8 +92,8 @@ int board_init(void)
 int dram_init(void)
 {
        gd->ram_size = get_ram_size(
-               (void *)CONFIG_SYS_SDRAM_BASE,
-               CONFIG_SYS_SDRAM_SIZE);
+               (void *)CFG_SYS_SDRAM_BASE,
+               CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
index 2992353..eab3a13 100644 (file)
@@ -156,7 +156,7 @@ int board_init(void)
        gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9261EK;
 #endif
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
        at91sam9261ek_nand_hw_init();
@@ -176,8 +176,8 @@ int board_eth_init(struct bd_info *bis)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-               CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+               CFG_SYS_SDRAM_SIZE);
 
        return 0;
 }
index b2b7093..15f20b6 100644 (file)
@@ -95,7 +95,7 @@ int board_init(void)
        /* arch number of AT91SAM9263EK-Board */
        gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9263EK;
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
        at91sam9263ek_nand_hw_init();
@@ -108,8 +108,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-               CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+               CFG_SYS_SDRAM_SIZE);
 
        return 0;
 }
index 2f3a772..f53c1cf 100644 (file)
@@ -168,7 +168,7 @@ int board_init(void)
        gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9M10G45EK;
 
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
        at91sam9m10g45ek_nand_hw_init();
@@ -181,8 +181,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *) CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *) CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
index 5468519..a3e294c 100644 (file)
@@ -99,7 +99,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_NAND_ATMEL
        at91sam9n12ek_nand_hw_init();
@@ -114,8 +114,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                       CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                       CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
index bca7c8d..11725f7 100644 (file)
@@ -93,7 +93,7 @@ int board_init(void)
        /* arch number of AT91SAM9RLEK-Board */
        gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9RLEK;
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
        at91sam9rlek_nand_hw_init();
@@ -104,7 +104,7 @@ int board_init(void)
 int dram_init(void)
 {
        gd->ram_size = get_ram_size(
-               (void *)CONFIG_SYS_SDRAM_BASE,
-               CONFIG_SYS_SDRAM_SIZE);
+               (void *)CFG_SYS_SDRAM_BASE,
+               CFG_SYS_SDRAM_SIZE);
        return 0;
 }
index 817aa2f..ab666b6 100644 (file)
@@ -115,7 +115,7 @@ int board_init(void)
        gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9X5EK;
 
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
        at91sam9x5ek_nand_hw_init();
@@ -129,8 +129,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *) CONFIG_SYS_SDRAM_BASE,
-                                       CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *) CFG_SYS_SDRAM_BASE,
+                                       CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
index 786de18..a3e35f3 100644 (file)
@@ -120,7 +120,7 @@ int misc_init_r(void)
 int board_init(void)
 {
        /* address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
        sam9x60ek_nand_hw_init();
@@ -130,7 +130,7 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
        return 0;
 }
index 6524867..6e41017 100644 (file)
@@ -65,7 +65,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        rgb_leds_init();
 
@@ -84,8 +84,8 @@ int misc_init_r(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
index 0207770..fabe492 100644 (file)
@@ -54,7 +54,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        rgb_leds_init();
 
@@ -63,8 +63,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
index 16e9183..854715e 100644 (file)
@@ -115,7 +115,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        rgb_leds_init();
 
@@ -130,8 +130,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
index a778f26..ce73a80 100644 (file)
@@ -94,7 +94,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_NAND_ATMEL
        sama5d3_xplained_nand_hw_init();
@@ -110,8 +110,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
 
        return 0;
 }
index 008f1db..660a6b9 100644 (file)
@@ -147,7 +147,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_NAND_ATMEL
        sama5d3xek_nand_hw_init();
@@ -166,8 +166,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
index 4058594..780aba1 100644 (file)
@@ -121,7 +121,7 @@ int misc_init_r(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_NAND_ATMEL
        sama5d4_xplained_nand_hw_init();
@@ -135,8 +135,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
index ef5a8a0..2226906 100644 (file)
@@ -107,7 +107,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_NAND_ATMEL
        sama5d4ek_nand_hw_init();
@@ -121,8 +121,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
index 7d83e76..295fd07 100644 (file)
@@ -67,7 +67,7 @@ int misc_init_r(void)
 int board_init(void)
 {
        /* address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        board_leds_init();
 
@@ -76,7 +76,7 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
        return 0;
 }
index 35c74ba..9b42299 100644 (file)
@@ -307,7 +307,7 @@ int board_init(void)
        gd->bd->bi_arch_number = MACH_TYPE_SNAPPER_9260;
 
        /* Address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
        ret = gurnard_nand_hw_init();
@@ -407,8 +407,8 @@ int board_eth_init(struct bd_info *bis)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
index bdf8d06..c31e2c8 100644 (file)
@@ -182,7 +182,7 @@ int board_init(void)
        hw_watchdog_init();
 #endif
 
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_MTD_RAW_NAND
        gpmc_init();
index a7a9775..e3a9c00 100644 (file)
@@ -449,7 +449,7 @@ int board_init(void)
        if (read_eeprom() < 0)
                puts("EEPROM Content Invalid.\n");
 
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 #if defined(CONFIG_NOR) || defined(CONFIG_MTD_RAW_NAND)
        gpmc_init();
 #endif
index 6064eb4..e91fa40 100644 (file)
@@ -26,7 +26,7 @@ int board_init(void)
         * Address of boot parameters passed to kernel
         * Use default offset 0x100
         */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        return 0;
 }
@@ -36,14 +36,14 @@ int board_init(void)
  */
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((long *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
 int dram_init_banksize(void)
 {
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = gd->ram_size;
 
        return 0;
index c89ad0b..3d31776 100644 (file)
@@ -95,7 +95,7 @@ static void usb_a9263_macb_hw_init(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
        usb_a9263_nand_hw_init();
@@ -111,8 +111,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
index 3e24188..69a9df9 100644 (file)
@@ -28,7 +28,7 @@ int dram_init(void)
        /* Dummy write to start SDRAM */
        *((volatile unsigned long *) 0) = 0;
 
-       gd->ram_size = CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
+       gd->ram_size = CFG_SYS_SDRAM_SIZE * 1024 * 1024;
 
        return 0;
 };
index bcfe1bf..5df378a 100644 (file)
@@ -45,7 +45,7 @@ int power_init_board(void)
 
 int board_init(void)
 {
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
        gpmc_init();
        set_i2c_pin_mux();
        i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
index e67bf81..a6223a4 100644 (file)
@@ -119,7 +119,7 @@ void sdram_init(void)
        unsigned long ram_size;
 
        config_ddr(0, &ioregs_ddr3, NULL, NULL, &ddr3_emif_regs, 0);
-       ram_size = get_ram_size((long int *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
+       ram_size = get_ram_size((long int *)CFG_SYS_SDRAM_BASE, 0x80000000);
        if (ram_size == 0x80000000 ||
            ram_size == 0x40000000 ||
            ram_size == 0x20000000)
@@ -127,7 +127,7 @@ void sdram_init(void)
 
        ddr3_emif_regs.sdram_config = 0x638453B2;
        config_ddr(0, &ioregs_ddr3, NULL, NULL, &ddr3_emif_regs, 0);
-       ram_size = get_ram_size((long int *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
+       ram_size = get_ram_size((long int *)CFG_SYS_SDRAM_BASE, 0x80000000);
        if (ram_size == 0x08000000)
                return;
 
index c20e871..e95e04a 100644 (file)
@@ -114,7 +114,7 @@ int dram_init(void)
        out_be32(&memctl->memc_mcr, 0x80002038);
        udelay(200);
 
-       gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size((long *)CFG_SYS_SDRAM_BASE,
                                    SDRAM_MAX_SIZE);
 
        return 0;
index 72cf46c..2b03e48 100644 (file)
@@ -29,13 +29,13 @@ board_early_init_f(void)
 int
 board_init(void)
 {
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x2000;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x2000;
        return 0;
 }
 
 int
 dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, SZ_64M);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE, SZ_64M);
        return 0;
 }
index 1054837..648d77f 100644 (file)
@@ -286,7 +286,7 @@ int board_init(void)
        hw_watchdog_init();
 #endif
 
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
        return 0;
 }
 
index a5d79d8..913c2ea 100644 (file)
@@ -85,8 +85,8 @@ DECLARE_GLOBAL_DATA_PTR;
 int dram_init(void)
 {
        gd->ram_size = get_ram_size(
-                       (void *)CONFIG_SYS_SDRAM_BASE,
-                       CONFIG_SYS_SDRAM_SIZE);
+                       (void *)CFG_SYS_SDRAM_BASE,
+                       CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
@@ -135,7 +135,7 @@ int board_init(void)
        at91_periph_clk_enable(ATMEL_ID_PIOC);
 
        /* Set adress of boot parameters. */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
        /* Initialize UARTs and power management. */
        ethernut5_power_init();
 #ifdef CONFIG_CMD_NAND
index 16237e2..3df3e41 100644 (file)
@@ -126,7 +126,7 @@ void *board_fdt_blob_setup(int *err)
 {
        *err = 0;
        /* QEMU loads a generated DTB for us at the start of RAM. */
-       return (void *)CONFIG_SYS_SDRAM_BASE;
+       return (void *)CFG_SYS_SDRAM_BASE;
 }
 
 void enable_caches(void)
index 98043b0..2304e9e 100644 (file)
@@ -264,7 +264,7 @@ int board_init(void)
        meesc_ethercat_hw_init();
 
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
        meesc_nand_hw_init();
index f5bed6c..46ffd81 100644 (file)
@@ -61,7 +61,7 @@ static void dp_ddr_restore(void)
 
        /* get the address of ddr date from SPARECR3 */
        src = (u64 *)in_le32(&scfg->sparecr[2]);
-       dst = (u64 *)CONFIG_SYS_SDRAM_BASE;
+       dst = (u64 *)CFG_SYS_SDRAM_BASE;
 
        for (i = 0; i < DDR_BUFF_LEN / 8; i++)
                *dst++ = *src++;
index 71922aa..d3323b9 100644 (file)
@@ -50,7 +50,7 @@ static void dp_ddr_restore(void)
 
        /* get the address of ddr date from SPARECR3 */
        src = (u64 *)(in_be32(&scfg->sparecr[2]) + DDR_BUFF_LEN - 8);
-       dst = (u64 *)(CONFIG_SYS_SDRAM_BASE + DDR_BUFF_LEN - 8);
+       dst = (u64 *)(CFG_SYS_SDRAM_BASE + DDR_BUFF_LEN - 8);
 
        for (i = 0; i < DDR_BUFF_LEN / 8; i++)
                *dst-- = *src--;
index bc37c55..f2b8750 100644 (file)
@@ -102,7 +102,7 @@ int dram_init(void)
                else
                        gd->ram_size = SYS_SDRAM_SIZE_512;
 #else
-               gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+               gd->ram_size = CFG_SYS_SDRAM_SIZE;
 #endif
        }
        return 0;
@@ -139,7 +139,7 @@ int dram_init(void)
                gd->ram_size = SYS_SDRAM_SIZE_512;
        }
 #else
-       gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+       gd->ram_size = CFG_SYS_SDRAM_SIZE;
 #endif
        mmdc_init(&mparam);
 
index 3f70fbc..f17a6c1 100644 (file)
@@ -66,7 +66,7 @@ int dram_init(void)
 {
        gd->ram_size = tfa_get_dram_size();
        if (!gd->ram_size)
-               gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+               gd->ram_size = CFG_SYS_SDRAM_SIZE;
 
        return 0;
 }
@@ -90,7 +90,7 @@ int dram_init(void)
        };
 
        mmdc_init(&mparam);
-       gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+       gd->ram_size = CFG_SYS_SDRAM_SIZE;
 #if !defined(CONFIG_SPL) || defined(CONFIG_SPL_BUILD)
        /* This will break-before-make MMU for DDR */
        update_early_mmu_table();
index 456609d..62c935e 100644 (file)
@@ -113,7 +113,7 @@ int dram_init(void)
 {
        gd->ram_size = tfa_get_dram_size();
        if (!gd->ram_size)
-               gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+               gd->ram_size = CFG_SYS_SDRAM_SIZE;
 
        return 0;
 }
@@ -140,7 +140,7 @@ int dram_init(void)
        mmdc_init(&mparam);
 #endif
 
-       gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+       gd->ram_size = CFG_SYS_SDRAM_SIZE;
 #if !defined(CONFIG_SPL) || defined(CONFIG_SPL_BUILD)
        /* This will break-before-make MMU for DDR */
        update_early_mmu_table();
index 66fe151..4e70acc 100644 (file)
@@ -192,7 +192,7 @@ int fsl_initdram(void)
 
 int dram_init_banksize(void)
 {
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = gd->ram_size;
 
        return 0;
index 4325439..d144f25 100644 (file)
@@ -47,7 +47,7 @@ static void ddrmc_init(void)
        if (is_warm_boot()) {
                out_be32(&ddr->sdram_cfg_2,
                         DDR_SDRAM_CFG_2 & ~SDRAM_CFG2_D_INIT);
-               out_be32(&ddr->init_addr, CONFIG_SYS_SDRAM_BASE);
+               out_be32(&ddr->init_addr, CFG_SYS_SDRAM_BASE);
                out_be32(&ddr->init_ext_addr, (1 << 31));
 
                /* DRAM VRef will not be trained */
index 33027ad..8b74d45 100644 (file)
@@ -162,7 +162,7 @@ void ddrmc_init(void)
        if (is_warm_boot()) {
                out_be32(&ddr->sdram_cfg_2,
                         DDR_SDRAM_CFG_2 & ~SDRAM_CFG2_D_INIT);
-               out_be32(&ddr->init_addr, CONFIG_SYS_SDRAM_BASE);
+               out_be32(&ddr->init_addr, CFG_SYS_SDRAM_BASE);
                out_be32(&ddr->init_ext_addr, (1 << 31));
 
                /* DRAM VRef will not be trained */
index 7bfb455..6125c9e 100644 (file)
@@ -29,7 +29,7 @@ int dram_init(void)
        sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);
        u32 dramsize, i;
 
-       dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
+       dramsize = CFG_SYS_SDRAM_SIZE * 0x100000;
 
        for (i = 0x13; i < 0x20; i++) {
                if (dramsize == (1 << i))
@@ -37,35 +37,35 @@ int dram_init(void)
        }
        i--;
 
-       out_be32(&sdram->cs0, CONFIG_SYS_SDRAM_BASE | i);
-#ifdef CONFIG_SYS_SDRAM_BASE1
-       out_be32(&sdram->cs1, CONFIG_SYS_SDRAM_BASE | i);
+       out_be32(&sdram->cs0, CFG_SYS_SDRAM_BASE | i);
+#ifdef CFG_SYS_SDRAM_BASE1
+       out_be32(&sdram->cs1, CFG_SYS_SDRAM_BASE | i);
 #endif
-       out_be32(&sdram->cfg1, CONFIG_SYS_SDRAM_CFG1);
-       out_be32(&sdram->cfg2, CONFIG_SYS_SDRAM_CFG2);
+       out_be32(&sdram->cfg1, CFG_SYS_SDRAM_CFG1);
+       out_be32(&sdram->cfg2, CFG_SYS_SDRAM_CFG2);
 
        udelay(500);
 
        /* Issue PALL */
-       out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2);
+       out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 2);
        asm("nop");
 
        /* Perform two refresh cycles */
-       out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4);
-       out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4);
+       out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 4);
+       out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 4);
        asm("nop");
 
        /* Issue LEMR */
-       out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE);
+       out_be32(&sdram->mode, CFG_SYS_SDRAM_MODE);
        asm("nop");
-       out_be32(&sdram->mode, CONFIG_SYS_SDRAM_EMOD);
+       out_be32(&sdram->mode, CFG_SYS_SDRAM_EMOD);
        asm("nop");
 
-       out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2);
+       out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 2);
        asm("nop");
 
        out_be32(&sdram->ctrl,
-               (CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000F00);
+               (CFG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000F00);
        asm("nop");
 
        udelay(100);
index e7c7a94..44161a0 100644 (file)
@@ -44,7 +44,7 @@ int dram_init(void)
                GPIO_PAR_SDRAM_SRAS | GPIO_PAR_SDRAM_SCKE |
                GPIO_PAR_SDRAM_SDCS(3));
 
-       dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
+       dramsize = CFG_SYS_SDRAM_SIZE * 0x100000;
        for (i = 0x13; i < 0x20; i++) {
                if (dramsize == (1 << i))
                        break;
@@ -61,7 +61,7 @@ int dram_init(void)
 
                /* Initialize DACR0 */
                out_be32(&sdram->dacr0,
-                       SDRAMC_DARCn_BA(CONFIG_SYS_SDRAM_BASE) |
+                       SDRAMC_DARCn_BA(CFG_SYS_SDRAM_BASE) |
                        SDRAMC_DARCn_CASL_C1 | SDRAMC_DARCn_CBM_CMD20 |
                        SDRAMC_DARCn_PS_32);
                asm("nop");
@@ -80,7 +80,7 @@ int dram_init(void)
                }
 
                /* Write to this block to initiate precharge */
-               *(u32 *) (CONFIG_SYS_SDRAM_BASE) = 0xA5A59696;
+               *(u32 *) (CFG_SYS_SDRAM_BASE) = 0xA5A59696;
 
                /*  Set RE (bit 15) in DACR */
                setbits_be32(&sdram->dacr0, SDRAMC_DARCn_RE);
@@ -95,7 +95,7 @@ int dram_init(void)
                asm("nop");
 
                /* Write to the SDRAM Mode Register */
-               *(u32 *) (CONFIG_SYS_SDRAM_BASE + 0x400) = 0xA5A59696;
+               *(u32 *) (CFG_SYS_SDRAM_BASE + 0x400) = 0xA5A59696;
        }
 
        gd->ram_size = dramsize;
index 48c0079..efff055 100644 (file)
@@ -86,7 +86,7 @@ int dram_init(void)
        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 */
 
-       gd->ram_size = CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
+       gd->ram_size = CFG_SYS_SDRAM_SIZE * 1024 * 1024;
 
        return 0;
 };
index 85f5f0c..179a2a2 100644 (file)
@@ -47,7 +47,7 @@ int dram_init(void)
                __asm__("nop");
 
                /* Initialize DMR0 */
-               dramsize = (CONFIG_SYS_SDRAM_SIZE << 20);
+               dramsize = (CFG_SYS_SDRAM_SIZE << 20);
                temp = (dramsize - 1) & 0xFFFC0000;
                mbar_writeLong(MCFSIM_DMR0, temp | 1);
                __asm__("nop");
@@ -57,7 +57,7 @@ int dram_init(void)
                __asm__("nop");
 
                /* Write to this block to initiate precharge */
-               *(u32 *) (CONFIG_SYS_SDRAM_BASE) = 0xa5a5a5a5;
+               *(u32 *) (CFG_SYS_SDRAM_BASE) = 0xa5a5a5a5;
                mb();
                __asm__("nop");
 
@@ -74,7 +74,7 @@ int dram_init(void)
                               mbar_readLong(MCFSIM_DACR0) | 0x0040);
                __asm__("nop");
 
-               *(u32 *) (CONFIG_SYS_SDRAM_BASE + 0x800) = 0xa5a5a5a5;
+               *(u32 *) (CFG_SYS_SDRAM_BASE + 0x800) = 0xa5a5a5a5;
                mb();
        }
 
index 9580cf2..3c20a23 100644 (file)
@@ -30,7 +30,7 @@ int dram_init(void)
        /* Dummy write to start SDRAM */
        *((volatile unsigned long *)0) = 0;
 
-       gd->ram_size = CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
+       gd->ram_size = CFG_SYS_SDRAM_SIZE * 1024 * 1024;
 
        return 0;
        };
index 1c4fb72..00fa35c 100644 (file)
@@ -35,7 +35,7 @@ int dram_init(void)
        out_be16(&gpio_reg->par_sdram, 0x3FF);
 
        /* Set up chip select */
-       out_be32(&sdp->sdbar0, CONFIG_SYS_SDRAM_BASE);
+       out_be32(&sdp->sdbar0, CFG_SYS_SDRAM_BASE);
        out_be32(&sdp->sdbmr0, MCF_SDRAMC_SDMRn_BAM_32M | MCF_SDRAMC_SDMRn_V);
 
        /* Set up timing */
@@ -49,34 +49,34 @@ int dram_init(void)
        setbits_be32(&sdp->sdcr, MCF_SDRAMC_SDCR_IPALL);
 
        /* Dummy write to start SDRAM */
-       *((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
+       *((volatile unsigned long *)CFG_SYS_SDRAM_BASE) = 0xa5a59696;
 
        /* Send LEMR */
        setbits_be32(&sdp->sdmr,
                MCF_SDRAMC_SDMR_BNKAD_LEMR | MCF_SDRAMC_SDMR_AD(0x0) |
                MCF_SDRAMC_SDMR_CMD);
-       *((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
+       *((volatile unsigned long *)CFG_SYS_SDRAM_BASE) = 0xa5a59696;
 
        /* Send LMR */
        out_be32(&sdp->sdmr, 0x058d0000);
-       *((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
+       *((volatile unsigned long *)CFG_SYS_SDRAM_BASE) = 0xa5a59696;
 
        /* Stop sending commands */
        clrbits_be32(&sdp->sdmr, MCF_SDRAMC_SDMR_CMD);
 
        /* Set precharge */
        setbits_be32(&sdp->sdcr, MCF_SDRAMC_SDCR_IPALL);
-       *((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
+       *((volatile unsigned long *)CFG_SYS_SDRAM_BASE) = 0xa5a59696;
 
        /* Stop manual precharge, send 2 IREF */
        clrbits_be32(&sdp->sdcr, MCF_SDRAMC_SDCR_IPALL);
        setbits_be32(&sdp->sdcr, MCF_SDRAMC_SDCR_IREF);
-       *((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
-       *((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
+       *((volatile unsigned long *)CFG_SYS_SDRAM_BASE) = 0xa5a59696;
+       *((volatile unsigned long *)CFG_SYS_SDRAM_BASE) = 0xa5a59696;
 
 
        out_be32(&sdp->sdmr, 0x018d0000);
-       *((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
+       *((volatile unsigned long *)CFG_SYS_SDRAM_BASE) = 0xa5a59696;
 
        /* Stop sending commands */
        clrbits_be32(&sdp->sdmr, MCF_SDRAMC_SDMR_CMD);
@@ -91,7 +91,7 @@ int dram_init(void)
                | MCF_SDRAMC_SDCR_RCNT((SDRAM_TREFI/(PERIOD*64)) - 1 + 1)
                | MCF_SDRAMC_SDCR_DQS_OE(0x3));
 
-       gd->ram_size = CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
+       gd->ram_size = CFG_SYS_SDRAM_SIZE * 1024 * 1024;
 
        return 0;
 };
index e1ea9b3..53e0f20 100644 (file)
@@ -21,7 +21,7 @@ int dram_init(void)
 {
        u32 dramsize, i, dramclk;
 
-       dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
+       dramsize = CFG_SYS_SDRAM_SIZE * 0x100000;
        for (i = 0x13; i < 0x20; i++) {
                if (dramsize == (1 << i))
                        break;
@@ -40,7 +40,7 @@ int dram_init(void)
 
                /* Initialize DACR0 */
                MCFSDRAMC_DACR0 = (0
-                       | MCFSDRAMC_DACR_BASE(CONFIG_SYS_SDRAM_BASE)
+                       | MCFSDRAMC_DACR_BASE(CFG_SYS_SDRAM_BASE)
                        | MCFSDRAMC_DACR_CASL(1)
                        | MCFSDRAMC_DACR_CBM(3)
                        | MCFSDRAMC_DACR_PS_32);
@@ -62,7 +62,7 @@ int dram_init(void)
                }
 
                /* Write to this block to initiate precharge */
-               *(u32 *)(CONFIG_SYS_SDRAM_BASE) = 0xA5A59696;
+               *(u32 *)(CFG_SYS_SDRAM_BASE) = 0xA5A59696;
                asm("nop");
 
                /* Set RE (bit 15) in DACR */
@@ -79,7 +79,7 @@ int dram_init(void)
                asm("nop");
 
                /* Write to the SDRAM Mode Register */
-               *(u32 *)(CONFIG_SYS_SDRAM_BASE + 0x400) = 0xA5A59696;
+               *(u32 *)(CFG_SYS_SDRAM_BASE + 0x400) = 0xA5A59696;
        }
        gd->ram_size = dramsize;
 
index 8a7d8ca..0de36a7 100644 (file)
@@ -106,7 +106,7 @@ 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
 
-CONFIG_SYS_SDRAM_BASE          -- defines the DRAM Base
+CFG_SYS_SDRAM_BASE             -- defines the DRAM Base
 
 2. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL
 ===========================================
index c9f8935..76ebc0a 100644 (file)
@@ -29,7 +29,7 @@ int dram_init(void)
        sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);
        u32 dramsize, i;
 
-       dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
+       dramsize = CFG_SYS_SDRAM_SIZE * 0x100000;
 
        for (i = 0x13; i < 0x20; i++) {
                if (dramsize == (1 << i))
@@ -37,35 +37,35 @@ int dram_init(void)
        }
        i--;
 
-       out_be32(&sdram->cs0, CONFIG_SYS_SDRAM_BASE | i);
-#ifdef CONFIG_SYS_SDRAM_BASE1
-       out_be32(&sdram->cs1, CONFIG_SYS_SDRAM_BASE | i);
+       out_be32(&sdram->cs0, CFG_SYS_SDRAM_BASE | i);
+#ifdef CFG_SYS_SDRAM_BASE1
+       out_be32(&sdram->cs1, CFG_SYS_SDRAM_BASE | i);
 #endif
-       out_be32(&sdram->cfg1, CONFIG_SYS_SDRAM_CFG1);
-       out_be32(&sdram->cfg2, CONFIG_SYS_SDRAM_CFG2);
+       out_be32(&sdram->cfg1, CFG_SYS_SDRAM_CFG1);
+       out_be32(&sdram->cfg2, CFG_SYS_SDRAM_CFG2);
 
        udelay(500);
 
        /* Issue PALL */
-       out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2);
+       out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 2);
        asm("nop");
 
        /* Perform two refresh cycles */
-       out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4);
-       out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4);
+       out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 4);
+       out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 4);
        asm("nop");
 
        /* Issue LEMR */
-       out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE);
+       out_be32(&sdram->mode, CFG_SYS_SDRAM_MODE);
        asm("nop");
-       out_be32(&sdram->mode, CONFIG_SYS_SDRAM_EMOD);
+       out_be32(&sdram->mode, CFG_SYS_SDRAM_EMOD);
        asm("nop");
 
-       out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2);
+       out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 2);
        asm("nop");
 
        out_be32(&sdram->ctrl,
-               (CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000c00);
+               (CFG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000c00);
        asm("nop");
 
        udelay(100);
index 7a75b04..b278dbf 100644 (file)
@@ -29,7 +29,7 @@ int dram_init(void)
        sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);
        u32 dramsize, i;
 
-       dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
+       dramsize = CFG_SYS_SDRAM_SIZE * 0x100000;
 
        for (i = 0x13; i < 0x20; i++) {
                if (dramsize == (1 << i))
@@ -37,30 +37,30 @@ int dram_init(void)
        }
        i--;
 
-       out_be32(&sdram->cs0, CONFIG_SYS_SDRAM_BASE | i);
-       out_be32(&sdram->cfg1, CONFIG_SYS_SDRAM_CFG1);
-       out_be32(&sdram->cfg2, CONFIG_SYS_SDRAM_CFG2);
+       out_be32(&sdram->cs0, CFG_SYS_SDRAM_BASE | i);
+       out_be32(&sdram->cfg1, CFG_SYS_SDRAM_CFG1);
+       out_be32(&sdram->cfg2, CFG_SYS_SDRAM_CFG2);
 
        /* Issue PALL */
-       out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2);
+       out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 2);
 
        /* Issue LEMR */
-       out_be32(&sdram->mode, CONFIG_SYS_SDRAM_EMOD);
-       out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE | 0x04000000);
+       out_be32(&sdram->mode, CFG_SYS_SDRAM_EMOD);
+       out_be32(&sdram->mode, CFG_SYS_SDRAM_MODE | 0x04000000);
 
        udelay(500);
 
        /* Issue PALL */
-       out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2);
+       out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 2);
 
        /* Perform two refresh cycles */
-       out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4);
-       out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4);
+       out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 4);
+       out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 4);
 
-       out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE);
+       out_be32(&sdram->mode, CFG_SYS_SDRAM_MODE);
 
        out_be32(&sdram->ctrl,
-               (CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000c00);
+               (CFG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000c00);
 
        udelay(100);
 
index bba5420..bfbcd5d 100644 (file)
@@ -105,7 +105,7 @@ 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
 
-CONFIG_SYS_SDRAM_BASE  -- defines the DRAM Base
+CFG_SYS_SDRAM_BASE     -- defines the DRAM Base
 
 2. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL
 ===========================================
index cfa5ca4..0e9eec3 100644 (file)
@@ -29,7 +29,7 @@ int dram_init(void)
        sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);
        u32 dramsize, i;
 
-       dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
+       dramsize = CFG_SYS_SDRAM_SIZE * 0x100000;
 
        for (i = 0x13; i < 0x20; i++) {
                if (dramsize == (1 << i))
@@ -37,30 +37,30 @@ int dram_init(void)
        }
        i--;
 
-       out_be32(&sdram->cs0, CONFIG_SYS_SDRAM_BASE | i);
-       out_be32(&sdram->cfg1, CONFIG_SYS_SDRAM_CFG1);
-       out_be32(&sdram->cfg2, CONFIG_SYS_SDRAM_CFG2);
+       out_be32(&sdram->cs0, CFG_SYS_SDRAM_BASE | i);
+       out_be32(&sdram->cfg1, CFG_SYS_SDRAM_CFG1);
+       out_be32(&sdram->cfg2, CFG_SYS_SDRAM_CFG2);
 
        /* Issue PALL */
-       out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2);
+       out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 2);
 
        /* Issue LEMR */
-       out_be32(&sdram->mode, CONFIG_SYS_SDRAM_EMOD);
-       out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE | 0x04000000);
+       out_be32(&sdram->mode, CFG_SYS_SDRAM_EMOD);
+       out_be32(&sdram->mode, CFG_SYS_SDRAM_MODE | 0x04000000);
 
        udelay(500);
 
        /* Issue PALL */
-       out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2);
+       out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 2);
 
        /* Perform two refresh cycles */
-       out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4);
-       out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4);
+       out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 4);
+       out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 4);
 
-       out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE);
+       out_be32(&sdram->mode, CFG_SYS_SDRAM_MODE);
 
        out_be32(&sdram->ctrl,
-               (CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000c00);
+               (CFG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000c00);
 
        udelay(100);
 
index 2650d30..85d43cc 100644 (file)
@@ -97,10 +97,10 @@ int dram_init(void)
 int fixed_sdram(void)
 {
        immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
-       u32 msize = CONFIG_SYS_SDRAM_SIZE;
+       u32 msize = CFG_SYS_SDRAM_SIZE;
        u32 msize_log2 = __ilog2(msize);
 
-       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_SDRAM_BASE & 0xfffff000;
+       im->sysconf.ddrlaw[0].bar = CFG_SYS_SDRAM_BASE & 0xfffff000;
        im->sysconf.ddrlaw[0].ar = LBLAWAR_EN | (msize_log2 - 1);
 
        im->sysconf.ddrcdr = CONFIG_SYS_DDRCDR_VALUE;
@@ -127,7 +127,7 @@ int fixed_sdram(void)
 
        im->ddr.sdram_cfg |= SDRAM_CFG_MEM_EN;
        udelay(2000);
-       return CONFIG_SYS_SDRAM_SIZE >> 20;
+       return CFG_SYS_SDRAM_SIZE >> 20;
 }
 #endif /*!CONFIG_SYS_SPD_EEPROM */
 
index 46095ac..86364ac 100644 (file)
@@ -30,7 +30,7 @@ DECLARE_GLOBAL_DATA_PTR;
 int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
                                PHYS_SDRAM_1_SIZE);
        return 0;
 }
index 038e673..f896fd7 100644 (file)
@@ -244,7 +244,7 @@ phys_size_t fixed_sdram(void)
        printf("Configuring DDR for %s MT/s data rate\n",
                        strmhz(buf, sysinfo.freq_ddrbus));
 
-       ddr_size = CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
+       ddr_size = CFG_SYS_SDRAM_SIZE * 1024 * 1024;
 
        fsl_ddr_set_memctl_regs(&ddr_cfg_regs, 0, 0);
 
index 70e4dfc..9541972 100644 (file)
@@ -507,7 +507,7 @@ int splash_screen_prepare(void)
 /* u-boot dram initialize */
 int dram_init(void)
 {
-       gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+       gd->ram_size = CFG_SYS_SDRAM_SIZE;
        return 0;
 }
 
@@ -518,10 +518,10 @@ int dram_init_banksize(void)
        unsigned int reg_val = readl(SCR_USER_SIG6_READ);
 
        /* set global data memory */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x00000100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x00000100;
 
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_dram[0].size  = CONFIG_SYS_SDRAM_SIZE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].size  = CFG_SYS_SDRAM_SIZE;
 
        /* Number of Row: 14 bits */
        if ((reg_val >> 28) == 14)
index c6eb11e..d9dfb25 100644 (file)
@@ -45,15 +45,15 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* Address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        return 0;
 }
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
 
        return 0;
 }
index 47b8804..4889a6a 100644 (file)
@@ -34,11 +34,11 @@ DECLARE_GLOBAL_DATA_PTR;
 static long fixed_sdram(void)
 {
        immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
-       u32 msize = CONFIG_SYS_SDRAM_SIZE;
+       u32 msize = CFG_SYS_SDRAM_SIZE;
        u32 msize_log2 = __ilog2(msize);
 
        out_be32(&im->sysconf.ddrlaw[0].bar,
-                CONFIG_SYS_SDRAM_BASE  & 0xfffff000);
+                CFG_SYS_SDRAM_BASE  & 0xfffff000);
        out_be32(&im->sysconf.ddrlaw[0].ar, LBLAWAR_EN | (msize_log2 - 1));
        out_be32(&im->sysconf.ddrcdr, CONFIG_SYS_DDRCDR_VALUE);
 
@@ -66,7 +66,7 @@ static long fixed_sdram(void)
        setbits_be32(&im->ddr.sdram_cfg, SDRAM_CFG_MEM_EN);
        sync();
 
-       return get_ram_size(CONFIG_SYS_SDRAM_BASE, msize);
+       return get_ram_size(CFG_SYS_SDRAM_BASE, msize);
 }
 
 int dram_init(void)
index 6423c1e..b472ca5 100644 (file)
@@ -95,7 +95,7 @@ int board_init(void)
        hw_watchdog_init();
 #endif
 
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
        gpmc_init();
 
        return 0;
index 5b245cb..8532225 100644 (file)
@@ -27,7 +27,7 @@ phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
-       if (gd->ram_top < CONFIG_SYS_SDRAM_BASE) {
+       if (gd->ram_top < CFG_SYS_SDRAM_BASE) {
                /* 2GB wrapped around to 0 */
                return CKSEG0ADDR(256 << 20);
        }
index bed2497..aa910bf 100644 (file)
@@ -118,7 +118,7 @@ _msc01:
        /* setup basic address decode */
        PTR_LI  t0, CKSEG1ADDR(MALTA_MSC01_BIU_BASE)
        li      t1, 0x0
-       li      t2, -CONFIG_SYS_SDRAM_SIZE
+       li      t2, -CFG_SYS_SDRAM_SIZE
        sw      t1, MSC01_BIU_MCBAS1L_OFS(t0)
        sw      t2, MSC01_BIU_MCMSK1L_OFS(t0)
        sw      t1, MSC01_BIU_MCBAS2L_OFS(t0)
@@ -168,7 +168,7 @@ _msc01:
        sw      t3, MSC01_PCI_SC2PIOMAPL_OFS(t0)
 
        /* setup PCI_BAR0 memory window */
-       li      t1, -CONFIG_SYS_SDRAM_SIZE
+       li      t1, -CFG_SYS_SDRAM_SIZE
        sw      t1, MSC01_PCI_BAR0_OFS(t0)
 
        /* setup PCI to SysCon/CPU translation */
index 9853a0b..4a72ab5 100644 (file)
@@ -94,7 +94,7 @@ static enum sys_con malta_sys_con(void)
 
 int dram_init(void)
 {
-       gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+       gd->ram_size = CFG_SYS_SDRAM_SIZE;
 
        return 0;
 }
index 6a83637..7122692 100644 (file)
@@ -19,7 +19,7 @@ int dram_init(void)
 {
        /* MIG IP block is smart and doesn't need SW
         * to do any init */
-       gd->ram_size = CONFIG_SYS_SDRAM_SIZE;   /* in bytes */
+       gd->ram_size = CFG_SYS_SDRAM_SIZE;      /* in bytes */
 
        return 0;
 }
index 7dbb3a9..f3a0de3 100644 (file)
@@ -412,7 +412,7 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, 1 << 30);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE, 1 << 30);
        return 0;
 }
 
index 02ae7df..5462a3d 100644 (file)
@@ -185,7 +185,7 @@ int spl_start_uboot(void)
  */
 int board_init(void)
 {
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        gpmc_init();
 
index c8138dc..0252ada 100644 (file)
@@ -52,7 +52,7 @@ int set_km_env(void)
        char envval[16];
        char *p;
 
-       pnvramaddr = CONFIG_SYS_SDRAM_BASE + gd->ram_size -
+       pnvramaddr = CFG_SYS_SDRAM_BASE + gd->ram_size -
                CONFIG_KM_RESERVED_PRAM - CONFIG_KM_PHRAM - CONFIG_KM_PNVRAM;
        sprintf(envval, "0x%x", pnvramaddr);
        env_set("pnvramaddr", envval);
@@ -65,7 +65,7 @@ int set_km_env(void)
                CONFIG_KM_PNVRAM) / 0x400;
        env_set_ulong("pram", pram);
 
-       varaddr = CONFIG_SYS_SDRAM_BASE + gd->ram_size -
+       varaddr = CFG_SYS_SDRAM_BASE + gd->ram_size -
                CONFIG_KM_RESERVED_PRAM - CONFIG_KM_PHRAM;
        env_set_hex("varaddr", varaddr);
        sprintf(envval, "0x%x", varaddr);
index 6a7b848..ddd8f7a 100644 (file)
@@ -142,10 +142,10 @@ static int fixed_sdram(void)
        setbits_be32(&im->ddr.sdram_cfg, SDRAM_CFG_MEM_EN);
 
        disable_addr_trans();
-       msize = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_SDRAM_SIZE);
+       msize = get_ram_size(CFG_SYS_SDRAM_BASE, CFG_SYS_SDRAM_SIZE);
        enable_addr_trans();
        msize /= (1024 * 1024);
-       if (CONFIG_SYS_SDRAM_SIZE >> 20 != msize) {
+       if (CFG_SYS_SDRAM_SIZE >> 20 != msize) {
                for (ddr_size = msize << 20, ddr_size_log2 = 0;
                        (ddr_size > 1);
                        ddr_size = ddr_size >> 1, ddr_size_log2++)
@@ -169,7 +169,7 @@ int dram_init(void)
                return -ENXIO;
 
        out_be32(&im->sysconf.ddrlaw[0].bar,
-               CONFIG_SYS_SDRAM_BASE & LAWBAR_BAR);
+               CFG_SYS_SDRAM_BASE & LAWBAR_BAR);
        msize = fixed_sdram();
 
 #if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER)
index 4ec60f1..556d39d 100644 (file)
@@ -84,7 +84,7 @@ int fsl_initdram(void)
 
 int dram_init_banksize(void)
 {
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = gd->ram_size;
 
        return 0;
index 3719bcf..1a7fa3f 100644 (file)
@@ -184,7 +184,7 @@ int arch_memory_test_prepare(u32 *vstart, u32 *size, phys_addr_t *phys_offset)
 {
        /* Define only 1MiB range for mem_regions at the middle of the RAM */
        /* For 1GiB range mem_regions takes approx. 4min */
-       *vstart = CONFIG_SYS_SDRAM_BASE + (gd->ram_size >> 1);
+       *vstart = CFG_SYS_SDRAM_BASE + (gd->ram_size >> 1);
        *size = 1 << 20;
        return 0;
 }
index d47c7b5..b3c176d 100644 (file)
@@ -164,7 +164,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #if !CONFIG_IS_ENABLED(DM_SPI)
        vinco_spi0_hw_init();
@@ -188,8 +188,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
index 0504d61..ff233e9 100644 (file)
@@ -14,7 +14,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
        return 0;
 }
 
index 755e879..ec10f77 100644 (file)
@@ -12,7 +12,7 @@ DECLARE_GLOBAL_DATA_PTR;
 int board_init(void)
 {
        /* address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        return 0;
 }
index d1bca6d..55f7696 100644 (file)
@@ -11,7 +11,7 @@ DECLARE_GLOBAL_DATA_PTR;
 int board_init(void)
 {
        /* address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        return 0;
 }
index fce5de6..2490b15 100644 (file)
@@ -14,7 +14,7 @@ DECLARE_GLOBAL_DATA_PTR;
 int board_init(void)
 {
        /* address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        debug("gd->fdt_blob is %p\n", gd->fdt_blob);
        return 0;
index 6abf08b..84b95be 100644 (file)
@@ -28,7 +28,7 @@ int board_early_init_r(void)
                        ICPU_GENERAL_CTRL_IF_SI_OWNER(2));
 
        /* Address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE;
 
        return 0;
 }
index 76e3f2e..48170b3 100644 (file)
@@ -29,7 +29,7 @@ int board_early_init_r(void)
        writel(0, BASE_CFG + ICPU_SW_MODE);
 
        /* Address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE;
 
        return 0;
 }
index 2a75ec2..f261346 100644 (file)
@@ -77,7 +77,7 @@ int board_early_init_r(void)
                        ICPU_GENERAL_CTRL_IF_SI_OWNER(2));
 
        /* Address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE;
 
        return 0;
 }
index 87e7907..99d5f5b 100644 (file)
@@ -22,7 +22,7 @@ int board_early_init_r(void)
        writel(0, BASE_CFG + ICPU_SW_MODE);
 
        /* Address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE;
 
        return 0;
 }
index bd8c7e8..4999316 100644 (file)
@@ -22,7 +22,7 @@ int board_early_init_r(void)
        writel(0, BASE_CFG + ICPU_SW_MODE);
 
        /* Address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE;
 
        return 0;
 }
index d97ebd0..e84dd25 100644 (file)
@@ -166,7 +166,7 @@ void sdram_init(void)
                   0);
 
        /* Detect memory physically present */
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
                                    CONFIG_MAX_RAM_BANK_SIZE);
 
        /* Reconfigure memory for actual detected size */
@@ -269,7 +269,7 @@ void set_mux_conf_regs(void)
  */
 int board_init(void)
 {
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
        return 0;
 }
 
index 4fbe1e5..75d2636 100644 (file)
@@ -24,7 +24,7 @@ int dram_init(void)
        ddr_init();
 
        gd->mem_clk = 0;
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, 0x7b000000);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE, 0x7b000000);
 
        sec_init();
        debug("PBF relocate done\n");
index 3b60afc..85fbaf0 100644 (file)
@@ -70,7 +70,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        /* Force ethernet PHY out of reset */
        gpio_request(ETHERNET_PHY_RESET, "phy_reset");
index a365269..ea09057 100644 (file)
@@ -312,7 +312,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        return 0;
 }
index 6197e54..2d1435a 100644 (file)
@@ -78,7 +78,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        /* Force ethernet PHY out of reset */
        gpio_request(ETHERNET_PHY_RESET, "phy_reset");
index 199ec4a..f609e4f 100644 (file)
@@ -20,7 +20,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
-       gd->bd->bi_boot_params = (CONFIG_SYS_SDRAM_BASE + 0x100);
+       gd->bd->bi_boot_params = (CFG_SYS_SDRAM_BASE + 0x100);
 
        return 0;
 }
index 87607df..c3ebcd3 100644 (file)
@@ -80,7 +80,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        /* Force ethernet PHY out of reset */
        gpio_request(ETHERNET_PHY_RESET, "phy_reset");
index 8e24ac0..1437875 100644 (file)
@@ -89,7 +89,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        /* Force ethernet PHY out of reset */
        gpio_request(ETHERNET_PHY_RESET, "phy_reset");
index 1a3a4c1..db1fb4b 100644 (file)
@@ -78,7 +78,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        /* Force ethernet PHY out of reset */
        gpio_request(ETHERNET_PHY_RESET, "phy_reset");
index 4558070..6ecebfe 100644 (file)
@@ -71,7 +71,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        /* Force ethernet PHY out of reset */
        gpio_request(ETHERNET_PHY_RESET, "phy_reset");
index 56bdb34..f069ecc 100644 (file)
@@ -88,7 +88,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        cpld_init();
 
index 23b55e3..c56582a 100644 (file)
@@ -126,7 +126,7 @@ int board_init(void)
        /* arch number of AT91SAM9M10G45EK-Board */
        gd->bd->bi_arch_number = MACH_TYPE_PM9G45;
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
        pm9g45_nand_hw_init();
@@ -141,15 +141,15 @@ int board_init(void)
 int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
 int dram_init_banksize(void)
 {
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_dram[0].size = CONFIG_SYS_SDRAM_SIZE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].size = CFG_SYS_SDRAM_SIZE;
 
        return 0;
 }
index 5320c1f..a992dc6 100644 (file)
@@ -46,7 +46,7 @@ int dram_init(void)
        u32 addr;
 
        for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
-               addr = CONFIG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
+               addr = CFG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
                gd->ram_size += get_ram_size((long *)addr, SDRAM_BANK_SIZE);
        }
        return 0;
@@ -64,7 +64,7 @@ int dram_init_banksize(void)
        u32 addr, size;
 
        for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
-               addr = CONFIG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
+               addr = CFG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
                size = get_ram_size((long *)addr, SDRAM_BANK_SIZE);
 
                gd->bd->bi_dram[i].start = addr;
index 943b498..16ce5cb 100644 (file)
@@ -122,7 +122,7 @@ int dram_init(void)
        unsigned long addr;
 
        for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
-               addr = CONFIG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
+               addr = CFG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
                gd->ram_size += get_ram_size((long *)addr, SDRAM_BANK_SIZE);
        }
        return 0;
@@ -134,7 +134,7 @@ int dram_init_banksize(void)
        unsigned long addr, size;
 
        for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
-               addr = CONFIG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
+               addr = CFG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
                size = get_ram_size((long *)addr, SDRAM_BANK_SIZE);
 
                gd->bd->bi_dram[i].start = addr;
index 4c655df..8b953f9 100644 (file)
@@ -115,7 +115,7 @@ enum env_location env_get_location(enum env_operation op, int prio)
 
 int dram_init(void)
 {
-       gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+       gd->ram_size = CFG_SYS_SDRAM_SIZE;
        return 0;
 }
 
@@ -173,7 +173,7 @@ int board_late_init(void)
 int init_addr_map(void)
 {
        if (IS_ENABLED(CONFIG_ADDR_MAP))
-               addrmap_set_entry(0, 0, CONFIG_SYS_SDRAM_SIZE, 0);
+               addrmap_set_entry(0, 0, CFG_SYS_SDRAM_SIZE, 0);
 
        return 0;
 }
index 85025f2..2efede6 100644 (file)
@@ -85,7 +85,7 @@ int board_init(void)
 #ifdef CONFIG_MACH_TYPE
        gd->bd->bi_arch_number = CONFIG_MACH_TYPE;
 #endif
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_FACTORYSET
        factoryset_read_eeprom(FACTORYSET_EEPROM_ADDR);
index d876280..569b86d 100644 (file)
@@ -262,7 +262,7 @@ void at91_udp_hw_init(void)
 int board_init(void)
 {
        /* address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        /* we have to request the gpios again after relocation */
        corvus_request_gpio();
@@ -287,8 +287,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
index b965ae9..8f4b0ea 100644 (file)
@@ -146,7 +146,7 @@ int dram_init_banksize(void)
        dram_init();
 
        /* Bank 0 declares the memory available in the DDR low region */
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = gd->ram_size;
 
        /* Bank 1 declares the memory available in the DDR high region */
index ce6c877..3d0f734 100644 (file)
@@ -167,7 +167,7 @@ int board_init(void)
 #endif
 
        /* Adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        smartweb_nand_hw_init();
        smartweb_macb_hw_init();
@@ -177,8 +177,8 @@ int board_init(void)
 int dram_init(void)
 {
        gd->ram_size = get_ram_size(
-               (void *)CONFIG_SYS_SDRAM_BASE,
-               CONFIG_SYS_SDRAM_SIZE);
+               (void *)CFG_SYS_SDRAM_BASE,
+               CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
index 47d3f6a..1eee972 100644 (file)
@@ -185,8 +185,8 @@ void mem_init(void)
        sdramc_configure(AT91_SDRAMC_NC_10);
 
        /* Do memtest for 128MB */
-       ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                               CONFIG_SYS_SDRAM_SIZE);
+       ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                               CFG_SYS_SDRAM_SIZE);
 
        /*
         * If 32MB or 16MB should be supported check also for
@@ -306,7 +306,7 @@ struct at91_udc_data board_udc_data  = {
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        taurus_request_gpio();
 #ifdef CONFIG_CMD_NAND
@@ -326,8 +326,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
        return 0;
 }
 
index a218278..79e492f 100644 (file)
@@ -11,7 +11,7 @@
 
 phys_size_t get_effective_memsize(void)
 {
-       return CONFIG_SYS_SDRAM_SIZE;
+       return CFG_SYS_SDRAM_SIZE;
 }
 
 static int sram_init(void)
index 04527cf..ad49999 100644 (file)
@@ -51,11 +51,11 @@ phys_size_t fixed_sdram(void)
        asm ("sync; isync; msync");
        udelay(1000);
 
-       if (get_ram_size(0, CONFIG_SYS_SDRAM_SIZE<<20) == CONFIG_SYS_SDRAM_SIZE<<20) {
+       if (get_ram_size(0, CFG_SYS_SDRAM_SIZE<<20) == CFG_SYS_SDRAM_SIZE<<20) {
                /*
                 * OK, size detected -> all done
                 */
-               return CONFIG_SYS_SDRAM_SIZE<<20;
+               return CFG_SYS_SDRAM_SIZE<<20;
        }
 
        return 0;                               /* nothing found !              */
index 2299227..b3f9550 100644 (file)
@@ -30,7 +30,7 @@ int board_late_init(void)
        status_led_set(2, CONFIG_LED_STATUS_ON);
 
        /* Address of boot parameters for ATAG (if ATAG is used) */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
        ret = gpio_request(usb_nrst_gpio, "usb_nrst_gpio");
        if (!ret)
index 8e80ca6..7c44379 100644 (file)
@@ -107,7 +107,7 @@ int dram_init(void)
 {
        u32 max_size = imx_ddr_size();
 
-       gd->ram_size = get_ram_size_stride_test((u32 *) CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size_stride_test((u32 *) CFG_SYS_SDRAM_BASE,
                                                (u32)max_size);
 
        return 0;
@@ -288,7 +288,7 @@ int board_init(void)
        int ret = 0;
 
        /* address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_VIDEO_IPUV3
        ret = setup_display();
index beab4e9..5426fc4 100644 (file)
@@ -88,7 +88,7 @@ int dram_init(void)
         */
        out_be32(&dc->dacr0, 0x00003304);
 
-       dramsize = ((CONFIG_SYS_SDRAM_SIZE)-1) & 0xfffc0000;
+       dramsize = ((CFG_SYS_SDRAM_SIZE)-1) & 0xfffc0000;
        out_be32(&dc->dmr0,  dramsize|1);
 
        /* issue a PRECHARGE ALL */
@@ -102,8 +102,8 @@ int dram_init(void)
        out_be32(&dc->dacr0, 0x0000b344);
        out_be32((u32 *)0x00000c00, 0xbeaddeed);
 
-       gd->ram_size = get_ram_size(CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size(CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
 
        return 0;
 }
index d48da48..475e3ed 100644 (file)
@@ -35,7 +35,7 @@ int dram_init(void)
         * Serial Boot: The dram is already initialized in start.S
         * only require to return DRAM size
         */
-       dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
+       dramsize = CFG_SYS_SDRAM_SIZE * 0x100000;
 
        gd->ram_size = dramsize;
 
index 3a447ca..8d9eedb 100644 (file)
@@ -144,7 +144,7 @@ static const struct boot_mode board_boot_modes[] = {
 int board_init(void)
 {
        /* address of boot parameters */
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_VIDEO_IPUV3
        setup_display();
index b7ddc3b..839a692 100644 (file)
@@ -238,7 +238,7 @@ int board_init(void)
        hw_watchdog_init();
 #endif
 
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
        return 0;
 }
 
index b97fedd..9e58281 100644 (file)
@@ -704,7 +704,7 @@ int board_init(void)
        hw_watchdog_init();
 #endif
 
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 #if defined(CONFIG_NOR) || defined(CONFIG_MTD_RAW_NAND)
        gpmc_init();
 #endif
index 529129e..d0b7a14 100644 (file)
@@ -639,7 +639,7 @@ int board_init(void)
        u32 mreqprio_0, mreqprio_1, modena_init0_bw_fractional,
            modena_init0_bw_integer, modena_init0_watermark_0;
 
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
        gpmc_init();
 
        /*
index cfc825e..652c40f 100644 (file)
@@ -661,7 +661,7 @@ bool am571x_idk_needs_lcd(void)
 int board_init(void)
 {
        gpmc_init();
-       gd->bd->bi_boot_params = (CONFIG_SYS_SDRAM_BASE + 0x100);
+       gd->bd->bi_boot_params = (CFG_SYS_SDRAM_BASE + 0x100);
 
        return 0;
 }
index 34ec391..b266ccb 100644 (file)
@@ -75,13 +75,13 @@ phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 int dram_init_banksize(void)
 {
        /* Bank 0 declares the memory available in the DDR low region */
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = 0x80000000;
        gd->ram_size = 0x80000000;
 
 #ifdef CONFIG_PHYS_64BIT
        /* Bank 1 declares the memory available in the DDR high region */
-       gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE1;
+       gd->bd->bi_dram[1].start = CFG_SYS_SDRAM_BASE1;
        gd->bd->bi_dram[1].size = 0x80000000;
        gd->ram_size = 0x100000000;
 #endif
index a854d61..1c00e25 100644 (file)
@@ -644,7 +644,7 @@ int dram_init_banksize(void)
 
        ram_size = board_ti_get_emif_size();
 
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = get_effective_memsize();
        if (ram_size > CONFIG_MAX_MEM_MAPPED) {
                gd->bd->bi_dram[1].start = 0x200000000;
index d6e431e..d4e672a 100644 (file)
@@ -71,13 +71,13 @@ phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 int dram_init_banksize(void)
 {
        /* Bank 0 declares the memory available in the DDR low region */
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = 0x80000000;
        gd->ram_size = 0x80000000;
 
 #ifdef CONFIG_PHYS_64BIT
        /* Bank 1 declares the memory available in the DDR high region */
-       gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE1;
+       gd->bd->bi_dram[1].start = CFG_SYS_SDRAM_BASE1;
        gd->bd->bi_dram[1].size = 0x80000000;
        gd->ram_size = 0x100000000;
 #endif
index e09adc8..4d28582 100644 (file)
@@ -60,13 +60,13 @@ phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 int dram_init_banksize(void)
 {
        /* Bank 0 declares the memory available in the DDR low region */
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = 0x7fffffff;
        gd->ram_size = 0x80000000;
 
 #ifdef CONFIG_PHYS_64BIT
        /* Bank 1 declares the memory available in the DDR high region */
-       gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE1;
+       gd->bd->bi_dram[1].start = CFG_SYS_SDRAM_BASE1;
        gd->bd->bi_dram[1].size = 0x37fffffff;
        gd->ram_size = 0x400000000;
 #endif
index 51e8de4..3481873 100644 (file)
@@ -46,7 +46,7 @@ int dram_init(void)
 
        ddr3_size = ddr3_init();
 
-       gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size((long *)CFG_SYS_SDRAM_BASE,
                                    CONFIG_MAX_RAM_BANK_SIZE);
 #if defined(CONFIG_TI_AEMIF)
        if (!(board_is_k2g_ice() || board_is_k2g_i1()))
@@ -71,7 +71,7 @@ struct legacy_img_hdr *spl_get_load_buffer(ssize_t offset, size_t size)
 
 int board_init(void)
 {
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
        return 0;
 }
 
@@ -120,7 +120,7 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 
        /* adjust memory start address for LPAE */
        if (lpae) {
-               start[0] -= CONFIG_SYS_SDRAM_BASE;
+               start[0] -= CFG_SYS_SDRAM_BASE;
                start[0] += CONFIG_SYS_LPAE_SDRAM_BASE;
        }
 
@@ -174,11 +174,11 @@ void ft_board_setup_ex(void *blob, struct bd_info *bd)
                                            "linux,initrd-end", NULL);
                        if (prop1 && prop2) {
                                initrd_start = __be64_to_cpu(*prop1);
-                               initrd_start -= CONFIG_SYS_SDRAM_BASE;
+                               initrd_start -= CFG_SYS_SDRAM_BASE;
                                initrd_start += CONFIG_SYS_LPAE_SDRAM_BASE;
                                initrd_start = __cpu_to_be64(initrd_start);
                                initrd_end = __be64_to_cpu(*prop2);
-                               initrd_end -= CONFIG_SYS_SDRAM_BASE;
+                               initrd_end -= CFG_SYS_SDRAM_BASE;
                                initrd_end += CONFIG_SYS_LPAE_SDRAM_BASE;
                                initrd_end = __cpu_to_be64(initrd_end);
 
@@ -221,7 +221,7 @@ void ft_board_setup_ex(void *blob, struct bd_info *bd)
                        *reserve_start = __cpu_to_be64(*reserve_start);
                        size = __cpu_to_be64(*(reserve_start + 1));
                        if (size) {
-                               *reserve_start -= CONFIG_SYS_SDRAM_BASE;
+                               *reserve_start -= CFG_SYS_SDRAM_BASE;
                                *reserve_start +=
                                        CONFIG_SYS_LPAE_SDRAM_BASE;
                                *reserve_start =
index 2d42af6..8c70835 100644 (file)
@@ -27,7 +27,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 #if defined(CONFIG_MTD_RAW_NAND)
        gpmc_init();
 #endif
index 9d4ffb0..efef855 100644 (file)
@@ -56,7 +56,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
        /* adress of boot parameters */
-       gd->bd->bi_boot_params  = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params  = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_SYS_FLASH_CFI
        /* Use 16-bit memory interface for NOR Flash */
@@ -76,8 +76,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
 
        return 0;
 }
index 96d0185..3c7cfa3 100644 (file)
@@ -79,7 +79,7 @@ DECLARE_GLOBAL_DATA_PTR;
 int dram_init(void)
 {
        /* use the DDR controllers configured size */
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
                                    (ulong)imx_ddr_size());
 
        return 0;
index 475250d..65e0e9a 100644 (file)
@@ -73,7 +73,7 @@ DECLARE_GLOBAL_DATA_PTR;
 int dram_init(void)
 {
        /* use the DDR controllers configured size */
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
                                    (ulong)imx_ddr_size());
 
        return 0;
index 07fe454..f335d5b 100644 (file)
@@ -266,7 +266,7 @@ int board_init(void)
        hw_watchdog_init();
 #endif
 
-       gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 #if defined(CONFIG_NOR) || defined(CONFIG_MTD_RAW_NAND)
        gpmc_init();
 #endif
index 5d12f84..c8e791a 100644 (file)
@@ -67,15 +67,15 @@ int board_init(void)
 {
        reset_periph();
        /* adress of boot parameters */
-       gd->bd->bi_boot_params  = CONFIG_SYS_SDRAM_BASE + 0x100;
+       gd->bd->bi_boot_params  = CFG_SYS_SDRAM_BASE + 0x100;
 
        return 0;
 }
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
 
        return 0;
 }
index 17ee541..df4c457 100644 (file)
@@ -105,7 +105,7 @@ int board_late_init(void)
        return board_late_init_xilinx();
 }
 
-#if !defined(CONFIG_SYS_SDRAM_BASE) && !defined(CONFIG_SYS_SDRAM_SIZE)
+#if !defined(CFG_SYS_SDRAM_BASE) && !defined(CFG_SYS_SDRAM_SIZE)
 int dram_init_banksize(void)
 {
        return fdtdec_setup_memory_banksize();
@@ -123,8 +123,8 @@ int dram_init(void)
 #else
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
 
        zynq_ddrc_init();
 
index 579708d..e3f70c4 100644 (file)
@@ -236,7 +236,7 @@ unsigned long do_go_exec(ulong (*entry)(int, char * const []), int argc,
        return ret;
 }
 
-#if !defined(CONFIG_SYS_SDRAM_BASE) && !defined(CONFIG_SYS_SDRAM_SIZE)
+#if !defined(CFG_SYS_SDRAM_BASE) && !defined(CFG_SYS_SDRAM_SIZE)
 int dram_init_banksize(void)
 {
        int ret;
@@ -261,7 +261,7 @@ int dram_init(void)
 #else
 int dram_init_banksize(void)
 {
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = get_effective_memsize();
 
        mem_map_fill();
@@ -271,8 +271,8 @@ int dram_init_banksize(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                   CONFIG_SYS_SDRAM_SIZE);
+       gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+                                   CFG_SYS_SDRAM_SIZE);
 
        return 0;
 }
index 34d1e5f..8813be5 100644 (file)
@@ -116,8 +116,8 @@ ulong env_get_bootm_low(void)
                return tmp;
        }
 
-#if defined(CONFIG_SYS_SDRAM_BASE)
-       return CONFIG_SYS_SDRAM_BASE;
+#if defined(CFG_SYS_SDRAM_BASE)
+       return CFG_SYS_SDRAM_BASE;
 #elif defined(CONFIG_ARM) || defined(CONFIG_MICROBLAZE) || defined(CONFIG_RISCV)
        return gd->bd->bi_dram[0].start;
 #else
index aaaedfe..bbd406f 100644 (file)
@@ -20,7 +20,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 #ifdef CONFIG_ARCH_KEYSTONE
 #include <asm/arch/ddr3.h>
-#define DDR_MIN_ADDR           CONFIG_SYS_SDRAM_BASE
+#define DDR_MIN_ADDR           CFG_SYS_SDRAM_BASE
 #define STACKSIZE              (512 << 10)     /* 512 KiB */
 
 #define DDR_REMAP_ADDR         0x80000000
@@ -247,9 +247,9 @@ static int is_addr_valid(u32 addr)
        /* Check in ecc address range 1 */
        if (ecc_ctrl & EMIF_ECC_REG_ECC_ADDR_RGN_1_EN_MASK) {
                start_addr = ((range & EMIF_ECC_REG_ECC_START_ADDR_MASK) << 16)
-                               + CONFIG_SYS_SDRAM_BASE;
+                               + CFG_SYS_SDRAM_BASE;
                end_addr = (range & EMIF_ECC_REG_ECC_END_ADDR_MASK) + 0xFFFF +
-                               CONFIG_SYS_SDRAM_BASE;
+                               CFG_SYS_SDRAM_BASE;
                if ((addr >= start_addr) && (addr <= end_addr))
                        /* addr within ecc address range 1 */
                        return 1;
@@ -259,9 +259,9 @@ static int is_addr_valid(u32 addr)
        if (ecc_ctrl & EMIF_ECC_REG_ECC_ADDR_RGN_2_EN_MASK) {
                range = readl(&emif->emif_ecc_address_range_2);
                start_addr = ((range & EMIF_ECC_REG_ECC_START_ADDR_MASK) << 16)
-                               + CONFIG_SYS_SDRAM_BASE;
+                               + CFG_SYS_SDRAM_BASE;
                end_addr = (range & EMIF_ECC_REG_ECC_END_ADDR_MASK) + 0xFFFF +
-                               CONFIG_SYS_SDRAM_BASE;
+                               CFG_SYS_SDRAM_BASE;
                if ((addr >= start_addr) && (addr <= end_addr))
                        /* addr within ecc address range 2 */
                        return 1;
@@ -309,11 +309,11 @@ static int do_ddr_test(struct cmd_tbl *cmdtp,
        start_addr = hextoul(argv[2], NULL);
        end_addr = hextoul(argv[3], NULL);
 
-       if ((start_addr < CONFIG_SYS_SDRAM_BASE) ||
-           (start_addr > (CONFIG_SYS_SDRAM_BASE +
+       if ((start_addr < CFG_SYS_SDRAM_BASE) ||
+           (start_addr > (CFG_SYS_SDRAM_BASE +
             get_effective_memsize() - 1)) ||
-           (end_addr < CONFIG_SYS_SDRAM_BASE) ||
-           (end_addr > (CONFIG_SYS_SDRAM_BASE +
+           (end_addr < CFG_SYS_SDRAM_BASE) ||
+           (end_addr > (CFG_SYS_SDRAM_BASE +
             get_effective_memsize() - 1)) || (start_addr >= end_addr)) {
                puts("Invalid start or end address!\n");
                return cmd_usage(cmdtp);
index e6117a7..aab1130 100644 (file)
@@ -329,12 +329,12 @@ __weak int mach_cpu_init(void)
 /* Get the top of usable RAM */
 __weak phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 {
-#if defined(CONFIG_SYS_SDRAM_BASE) && CONFIG_SYS_SDRAM_BASE > 0
+#if defined(CFG_SYS_SDRAM_BASE) && CFG_SYS_SDRAM_BASE > 0
        /*
         * Detect whether we have so much RAM that it goes past the end of our
         * 32-bit address space. If so, clip the usable RAM so it doesn't.
         */
-       if (gd->ram_top < CONFIG_SYS_SDRAM_BASE)
+       if (gd->ram_top < CFG_SYS_SDRAM_BASE)
                /*
                 * Will wrap back to top of 32-bit space when reservations
                 * are made.
@@ -369,8 +369,8 @@ static int setup_dest_addr(void)
         */
        gd->ram_size -= CONFIG_SYS_MEM_TOP_HIDE;
 #endif
-#ifdef CONFIG_SYS_SDRAM_BASE
-       gd->ram_base = CONFIG_SYS_SDRAM_BASE;
+#ifdef CFG_SYS_SDRAM_BASE
+       gd->ram_base = CFG_SYS_SDRAM_BASE;
 #endif
        gd->ram_top = gd->ram_base + get_effective_memsize();
        gd->ram_top = board_get_usable_ram_top(gd->mon_len);
index 15806df..584503e 100644 (file)
@@ -142,21 +142,21 @@ CONFIG_SYS_CACHE_DCACR:
   cache-related registers config
 CONFIG_SYS_CACHE_ACRX:
   cache-related registers config
-CONFIG_SYS_SDRAM_BASE:
+CFG_SYS_SDRAM_BASE:
   SDRAM config for SDRAM controller-specific registers
-CONFIG_SYS_SDRAM_SIZE:
+CFG_SYS_SDRAM_SIZE:
   SDRAM config for SDRAM controller-specific registers
-CONFIG_SYS_SDRAM_BASEX:
+CFG_SYS_SDRAM_BASEX:
   SDRAM config for SDRAM controller-specific registers
-CONFIG_SYS_SDRAM_CFG1:
+CFG_SYS_SDRAM_CFG1:
   SDRAM config for SDRAM controller-specific registers
-CONFIG_SYS_SDRAM_CFG2:
+CFG_SYS_SDRAM_CFG2:
   SDRAM config for SDRAM controller-specific registers
-CONFIG_SYS_SDRAM_CTRL:
+CFG_SYS_SDRAM_CTRL:
   SDRAM config for SDRAM controller-specific registers
-CONFIG_SYS_SDRAM_MODE:
+CFG_SYS_SDRAM_MODE:
   SDRAM config for SDRAM controller-specific registers
-CONFIG_SYS_SDRAM_EMOD:
+CFG_SYS_SDRAM_EMOD:
   SDRAM config for SDRAM controller-specific registers, please
   see arch/m68k/cpu/<specific_cpu>/start.S files to see how
   these options are used.
index 35defb0..34a75e7 100644 (file)
@@ -96,8 +96,8 @@ to 0xDxxx_xxxx.
 
 .. code-block:: c
 
-   #define CONFIG_SYS_SDRAM_BASE               0xc8000000
-   #define CONFIG_SYS_SDRAM_SIZE               0x08000000
+   #define CFG_SYS_SDRAM_BASE          0xc8000000
+   #define CFG_SYS_SDRAM_SIZE          0x08000000
 
 You will need to change the environment variables location and setting,
 too. You may change other configs to fit your board.
index 5e8fb7a..9dada5e 100644 (file)
@@ -130,7 +130,7 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
        if (is_warm_boot()) {
                ddr_out32(&ddr->sdram_cfg_2,
                          regs->ddr_sdram_cfg_2 & ~SDRAM_CFG2_D_INIT);
-               ddr_out32(&ddr->init_addr, CONFIG_SYS_SDRAM_BASE);
+               ddr_out32(&ddr->init_addr, CFG_SYS_SDRAM_BASE);
                ddr_out32(&ddr->init_ext_addr, DDR_INIT_ADDR_EXT_UIA);
 
                /* DRAM VRef will not be trained */
index 3c1f7a1..f8d1468 100644 (file)
@@ -230,7 +230,7 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
        if (is_warm_boot()) {
                ddr_out32(&ddr->sdram_cfg_2,
                          regs->ddr_sdram_cfg_2 & ~SDRAM_CFG2_D_INIT);
-               ddr_out32(&ddr->init_addr, CONFIG_SYS_SDRAM_BASE);
+               ddr_out32(&ddr->init_addr, CFG_SYS_SDRAM_BASE);
                ddr_out32(&ddr->init_ext_addr, DDR_INIT_ADDR_EXT_UIA);
 
                /* DRAM VRef will not be trained */
index fcff223..4975dbb 100644 (file)
@@ -30,7 +30,7 @@
  */
 #ifndef CFG_SYS_FSL_DDR_SDRAM_BASE_PHY
 #ifdef CONFIG_MPC83xx
-#define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY CONFIG_SYS_SDRAM_BASE
+#define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY CFG_SYS_SDRAM_BASE
 #else
 #define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY CONFIG_SYS_DDR_SDRAM_BASE
 #endif
index 0f2dc24..1c4a1ca 100644 (file)
@@ -162,7 +162,7 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
        if (is_warm_boot()) {
                out_be32(&ddr->sdram_cfg_2,
                         regs->ddr_sdram_cfg_2 & ~SDRAM_CFG2_D_INIT);
-               out_be32(&ddr->init_addr, CONFIG_SYS_SDRAM_BASE);
+               out_be32(&ddr->init_addr, CFG_SYS_SDRAM_BASE);
                out_be32(&ddr->init_ext_addr, DDR_INIT_ADDR_EXT_UIA);
 
                /* DRAM VRef will not be trained */
index a14c766..c40cd76 100644 (file)
 #define FAR_END_DIMM_ADDR              0x50
 #define MAX_DIMM_ADDR                  0x60
 
-#ifndef CONFIG_SYS_SDRAM_SIZE
+#ifndef CFG_SYS_SDRAM_SIZE
 #define SDRAM_CS_SIZE                  0xFFFFFFF
 #else
-#define SDRAM_CS_SIZE                  ((CONFIG_SYS_SDRAM_SIZE >> 10) - 1)
+#define SDRAM_CS_SIZE                  ((CFG_SYS_SDRAM_SIZE >> 10) - 1)
 #endif
 #define SDRAM_CS_BASE                  0x0
 #define SDRAM_DIMM_SIZE                        0x80000000
index 22f4995..a3b662f 100644 (file)
@@ -60,7 +60,7 @@ config PCI_MAP_SYSTEM_MEMORY
          instead of a physical address (e.g. on MIPS). The PCI core will then remap
          the virtual memory base address to a physical address when adding the PCI
          region of type PCI_REGION_SYS_MEMORY.
-         This should only be required on MIPS where CONFIG_SYS_SDRAM_BASE is still
+         This should only be required on MIPS where CFG_SYS_SDRAM_BASE is still
          being used as virtual address.
 
 config PCI_SRIOV
index dc11402..b81eb35 100644 (file)
@@ -191,7 +191,7 @@ static int rcar_gen2_pci_probe(struct udevice *dev)
 
        /* AHB-PCI Bridge Communication Registers */
        writel(RCAR_AHB_BUS_MODE, priv->cfg_base + RCAR_AHB_BUS_CTR_REG);
-       writel((CONFIG_SYS_SDRAM_BASE & 0xf0000000) | RCAR_PCIAHB_PREFETCH16,
+       writel((CFG_SYS_SDRAM_BASE & 0xf0000000) | RCAR_PCIAHB_PREFETCH16,
               priv->cfg_base + RCAR_PCIAHB_WIN1_CTR_REG);
        writel(0xf0000000 | RCAR_PCIAHB_PREFETCH16,
               priv->cfg_base + RCAR_PCIAHB_WIN2_CTR_REG);
@@ -204,7 +204,7 @@ static int rcar_gen2_pci_probe(struct udevice *dev)
        /* PCI Configuration Registers for AHBPCI */
        devad = setup_bus_address(dev, PCI_BDF(0, 0, 0), 0);
        writel(priv->cfg_base + 0x800, devad + PCI_BASE_ADDRESS_0);
-       writel(CONFIG_SYS_SDRAM_BASE & 0xf0000000, devad + PCI_BASE_ADDRESS_1);
+       writel(CFG_SYS_SDRAM_BASE & 0xf0000000, devad + PCI_BASE_ADDRESS_1);
        writel(0xf0000000, devad + PCI_BASE_ADDRESS_2);
        writel(PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER |
               PCI_COMMAND_PARITY | PCI_COMMAND_SERR,
index d514c04..c1be56c 100644 (file)
@@ -158,9 +158,9 @@ static int sh7751_pci_probe(struct udevice *dev)
 
        /* Set up target memory mappings (for external DMA access) */
        /* Map both P0 and P2 range to Area 3 RAM for ease of use */
-       p4_out(CONFIG_SYS_SDRAM_SIZE - 0x100000, SH7751_PCILSR0);
-       p4_out(CONFIG_SYS_SDRAM_BASE & 0x1FF00000, SH7751_PCILAR0);
-       p4_out(CONFIG_SYS_SDRAM_BASE & 0xFFF00000, SH7751_PCICONF5);
+       p4_out(CFG_SYS_SDRAM_SIZE - 0x100000, SH7751_PCILSR0);
+       p4_out(CFG_SYS_SDRAM_BASE & 0x1FF00000, SH7751_PCILAR0);
+       p4_out(CFG_SYS_SDRAM_BASE & 0xFFF00000, SH7751_PCICONF5);
 
        p4_out(0, SH7751_PCILSR1);
        p4_out(0, SH7751_PCILAR1);
index 99891dc..a0b82c7 100644 (file)
@@ -459,9 +459,9 @@ static void pcie_dw_set_host_bars(const void *regs_base)
        }
 
        /* Set the BAR base and size towards DDR */
-       bar0 = CONFIG_SYS_SDRAM_BASE & ~0xf;
+       bar0 = CFG_SYS_SDRAM_BASE & ~0xf;
        bar0 |= PCI_BASE_ADDRESS_MEM_TYPE_32;
-       writel(CONFIG_SYS_SDRAM_BASE, regs_base + PCIE_CONFIG_BAR0);
+       writel(CFG_SYS_SDRAM_BASE, regs_base + PCIE_CONFIG_BAR0);
 
        reg = ((size >> 20) - 1) << 12;
        writel(size, regs_base + RESIZABLE_BAR_CTL0);
index a527741..b7f692f 100644 (file)
 #include <asm/arch-ls102xa/svr.h>
 
 #ifndef CFG_SYS_PCI_MEMORY_BUS
-#define CFG_SYS_PCI_MEMORY_BUS CONFIG_SYS_SDRAM_BASE
+#define CFG_SYS_PCI_MEMORY_BUS CFG_SYS_SDRAM_BASE
 #endif
 
 #ifndef CFG_SYS_PCI_MEMORY_PHYS
-#define CFG_SYS_PCI_MEMORY_PHYS CONFIG_SYS_SDRAM_BASE
+#define CFG_SYS_PCI_MEMORY_PHYS CFG_SYS_SDRAM_BASE
 #endif
 
 #ifndef CFG_SYS_PCI_MEMORY_SIZE
index 141b19b..dc466a8 100644 (file)
@@ -203,7 +203,7 @@ static void ast2500_sdrammc_calc_size(struct dram_info *info)
        u32 test_pattern = 0xdeadbeef;
        u32 cap_param = SDRAM_CONF_CAP_1024M;
        u32 refresh_timing_param = DDR4_TRFC;
-       const u32 write_addr_base = CONFIG_SYS_SDRAM_BASE + write_test_offset;
+       const u32 write_addr_base = CFG_SYS_SDRAM_BASE + write_test_offset;
 
        for (ram_size = SDRAM_MAX_SIZE; ram_size > SDRAM_MIN_SIZE;
             ram_size >>= 1) {
@@ -231,7 +231,7 @@ static void ast2500_sdrammc_calc_size(struct dram_info *info)
                        ((refresh_timing_param & SDRAM_AC_TRFC_MASK)
                         << SDRAM_AC_TRFC_SHIFT));
 
-       info->info.base = CONFIG_SYS_SDRAM_BASE;
+       info->info.base = CFG_SYS_SDRAM_BASE;
        info->info.size = ram_size - ast2500_sdrammc_get_vga_mem_size(info);
        clrsetbits_le32(&info->regs->config,
                        (SDRAM_CONF_CAP_MASK << SDRAM_CONF_CAP_SHIFT),
index 5d42608..a2d7ca8 100644 (file)
@@ -838,7 +838,7 @@ static void ast2600_sdrammc_calc_size(struct dram_info *info)
        u32 test_pattern = 0xdeadbeef;
        u32 cap_param = SDRAM_CONF_CAP_2048M;
        u32 refresh_timing_param = DDR4_TRFC;
-       const u32 write_addr_base = CONFIG_SYS_SDRAM_BASE + write_test_offset;
+       const u32 write_addr_base = CFG_SYS_SDRAM_BASE + write_test_offset;
 
        for (ram_size = SDRAM_MAX_SIZE; ram_size > SDRAM_MIN_SIZE;
             ram_size >>= 1) {
@@ -866,7 +866,7 @@ static void ast2600_sdrammc_calc_size(struct dram_info *info)
                        ((refresh_timing_param & SDRAM_AC_TRFC_MASK)
                         << SDRAM_AC_TRFC_SHIFT));
 
-       info->info.base = CONFIG_SYS_SDRAM_BASE;
+       info->info.base = CFG_SYS_SDRAM_BASE;
        info->info.size = ram_size - ast2600_sdrammc_get_vga_mem_size(info);
 
        clrsetbits_le32(&info->regs->config, SDRAM_CONF_CAP_MASK,
@@ -1015,7 +1015,7 @@ static void ast2600_sdrammc_update_size(struct dram_info *info)
                break;
        }
 
-       info->info.base = CONFIG_SYS_SDRAM_BASE;
+       info->info.base = CFG_SYS_SDRAM_BASE;
        info->info.size = ram_size - ast2600_sdrammc_get_vga_mem_size(info);
 
        if (0 == (conf & SDRAM_CONF_ECC_SETUP))
index d12a3b4..1737fda 100644 (file)
@@ -243,17 +243,17 @@ static int mtk_ddr3_rank_size_detect(struct udevice *dev)
         * and it has maximum addressing region
         */
 
-       writel(WALKING_PATTERN, CONFIG_SYS_SDRAM_BASE);
+       writel(WALKING_PATTERN, CFG_SYS_SDRAM_BASE);
 
-       if (readl(CONFIG_SYS_SDRAM_BASE) != WALKING_PATTERN)
+       if (readl(CFG_SYS_SDRAM_BASE) != WALKING_PATTERN)
                return -EINVAL;
 
        for (step = 0; step < 5; step++) {
-               writel(~WALKING_PATTERN, CONFIG_SYS_SDRAM_BASE +
+               writel(~WALKING_PATTERN, CFG_SYS_SDRAM_BASE +
                       (WALKING_STEP << step));
 
-               start = readl(CONFIG_SYS_SDRAM_BASE);
-               test = readl(CONFIG_SYS_SDRAM_BASE + (WALKING_STEP << step));
+               start = readl(CFG_SYS_SDRAM_BASE);
+               test = readl(CFG_SYS_SDRAM_BASE + (WALKING_STEP << step));
                if ((test != ~WALKING_PATTERN) || test == start)
                        break;
        }
@@ -727,7 +727,7 @@ static int mtk_ddr3_get_info(struct udevice *dev, struct ram_info *info)
        struct mtk_ddr3_priv *priv = dev_get_priv(dev);
        u32 val = readl(priv->emi + EMI_CONA);
 
-       info->base = CONFIG_SYS_SDRAM_BASE;
+       info->base = CFG_SYS_SDRAM_BASE;
 
        switch ((val & EMI_COL_ADDR_MASK) >> EMI_COL_ADDR_SHIFT) {
        case 0:
index 42daf06..bb21078 100644 (file)
@@ -2687,7 +2687,7 @@ static int octeon_ddr_probe(struct udevice *dev)
        if (!mem_mbytes)
                return -ENODEV;
 
-       priv->info.base = CONFIG_SYS_SDRAM_BASE;
+       priv->info.base = CFG_SYS_SDRAM_BASE;
        priv->info.size = MB(mem_mbytes);
 
        /*
index 69c454a..6929a7e 100644 (file)
@@ -617,12 +617,12 @@ static int sdram_col_row_detect(struct udevice *dev)
 
        /* Detect col */
        for (col = 11; col >= 9; col--) {
-               writel(0, CONFIG_SYS_SDRAM_BASE);
-               addr = CONFIG_SYS_SDRAM_BASE +
+               writel(0, CFG_SYS_SDRAM_BASE);
+               addr = CFG_SYS_SDRAM_BASE +
                        (1 << (col + params->chan.bw - 1));
                writel(test_pattern, addr);
                if ((readl(addr) == test_pattern) &&
-                   (readl(CONFIG_SYS_SDRAM_BASE) == 0))
+                   (readl(CFG_SYS_SDRAM_BASE) == 0))
                        break;
        }
 
@@ -637,11 +637,11 @@ static int sdram_col_row_detect(struct udevice *dev)
 
        /* Detect row*/
        for (row = 16; row >= 12; row--) {
-               writel(0, CONFIG_SYS_SDRAM_BASE);
-               addr = CONFIG_SYS_SDRAM_BASE + (1 << (row + 15 - 1));
+               writel(0, CFG_SYS_SDRAM_BASE);
+               addr = CFG_SYS_SDRAM_BASE + (1 << (row + 15 - 1));
                writel(test_pattern, addr);
                if ((readl(addr) == test_pattern) &&
-                   (readl(CONFIG_SYS_SDRAM_BASE) == 0))
+                   (readl(CFG_SYS_SDRAM_BASE) == 0))
                        break;
        }
 
index b3e7421..ec46ba5 100644 (file)
@@ -220,12 +220,12 @@ int sdram_detect_col(struct sdram_cap_info *cap_info,
        u32 bw = cap_info->bw;
 
        for (col = coltmp; col >= 9; col -= 1) {
-               writel(0, CONFIG_SYS_SDRAM_BASE);
-               test_addr = (void __iomem *)(CONFIG_SYS_SDRAM_BASE +
+               writel(0, CFG_SYS_SDRAM_BASE);
+               test_addr = (void __iomem *)(CFG_SYS_SDRAM_BASE +
                                (1ul << (col + bw - 1ul)));
                writel(PATTERN, test_addr);
                if ((readl(test_addr) == PATTERN) &&
-                   (readl(CONFIG_SYS_SDRAM_BASE) == 0))
+                   (readl(CFG_SYS_SDRAM_BASE) == 0))
                        break;
        }
        if (col == 8) {
@@ -245,12 +245,12 @@ int sdram_detect_bank(struct sdram_cap_info *cap_info,
        u32 bk;
        u32 bw = cap_info->bw;
 
-       test_addr = (void __iomem *)(CONFIG_SYS_SDRAM_BASE +
+       test_addr = (void __iomem *)(CFG_SYS_SDRAM_BASE +
                        (1ul << (coltmp + bktmp + bw - 1ul)));
-       writel(0, CONFIG_SYS_SDRAM_BASE);
+       writel(0, CFG_SYS_SDRAM_BASE);
        writel(PATTERN, test_addr);
        if ((readl(test_addr) == PATTERN) &&
-           (readl(CONFIG_SYS_SDRAM_BASE) == 0))
+           (readl(CFG_SYS_SDRAM_BASE) == 0))
                bk = 3;
        else
                bk = 2;
@@ -268,12 +268,12 @@ int sdram_detect_bg(struct sdram_cap_info *cap_info,
        u32 dbw;
        u32 bw = cap_info->bw;
 
-       test_addr = (void __iomem *)(CONFIG_SYS_SDRAM_BASE +
+       test_addr = (void __iomem *)(CFG_SYS_SDRAM_BASE +
                        (1ul << (coltmp + bw + 1ul)));
-       writel(0, CONFIG_SYS_SDRAM_BASE);
+       writel(0, CFG_SYS_SDRAM_BASE);
        writel(PATTERN, test_addr);
        if ((readl(test_addr) == PATTERN) &&
-           (readl(CONFIG_SYS_SDRAM_BASE) == 0))
+           (readl(CFG_SYS_SDRAM_BASE) == 0))
                dbw = 0;
        else
                dbw = 1;
@@ -337,12 +337,12 @@ int sdram_detect_row(struct sdram_cap_info *cap_info,
        void __iomem *test_addr;
 
        for (row = rowtmp; row > 12; row--) {
-               writel(0, CONFIG_SYS_SDRAM_BASE);
-               test_addr = (void __iomem *)(CONFIG_SYS_SDRAM_BASE +
+               writel(0, CFG_SYS_SDRAM_BASE);
+               test_addr = (void __iomem *)(CFG_SYS_SDRAM_BASE +
                                (1ul << (row + bktmp + coltmp + bw - 1ul)));
                writel(PATTERN, test_addr);
                if ((readl(test_addr) == PATTERN) &&
-                   (readl(CONFIG_SYS_SDRAM_BASE) == 0))
+                   (readl(CFG_SYS_SDRAM_BASE) == 0))
                        break;
        }
        if (row == 12) {
@@ -363,8 +363,8 @@ int sdram_detect_row_3_4(struct sdram_cap_info *cap_info,
        u32 row = cap_info->cs0_row;
        void __iomem *test_addr, *test_addr1;
 
-       test_addr = CONFIG_SYS_SDRAM_BASE;
-       test_addr1 = (void __iomem *)(CONFIG_SYS_SDRAM_BASE +
+       test_addr = CFG_SYS_SDRAM_BASE;
+       test_addr1 = (void __iomem *)(CFG_SYS_SDRAM_BASE +
                        (0x3ul << (row + bktmp + coltmp + bw - 1ul - 1ul)));
 
        writel(0, test_addr);
@@ -421,15 +421,15 @@ int sdram_detect_cs1_row(struct sdram_cap_info *cap_info, u32 dram_type)
 
                /* detect cs1 row */
                for (row = cap_info->cs0_row; row > 12; row--) {
-                       test_addr = (void __iomem *)(CONFIG_SYS_SDRAM_BASE +
+                       test_addr = (void __iomem *)(CFG_SYS_SDRAM_BASE +
                                    cs0_cap +
                                    (1ul << (row + bktmp + coltmp + bw - 1ul)));
-                       writel(0, CONFIG_SYS_SDRAM_BASE + cs0_cap);
+                       writel(0, CFG_SYS_SDRAM_BASE + cs0_cap);
                        writel(PATTERN, test_addr);
 
                        if (((readl(test_addr) & byte_mask) ==
                             (PATTERN & byte_mask)) &&
-                           ((readl(CONFIG_SYS_SDRAM_BASE + cs0_cap) &
+                           ((readl(CFG_SYS_SDRAM_BASE + cs0_cap) &
                              byte_mask) == 0)) {
                                break;
                        }
index c024a0c..98b2593 100644 (file)
@@ -726,7 +726,7 @@ static int px30_dmc_probe(struct udevice *dev)
 
        priv->pmugrf = syscon_get_first_range(ROCKCHIP_SYSCON_PMUGRF);
        debug("%s: grf=%p\n", __func__, priv->pmugrf);
-       priv->info.base = CONFIG_SYS_SDRAM_BASE;
+       priv->info.base = CFG_SYS_SDRAM_BASE;
        priv->info.size =
                rockchip_sdram_size((phys_addr_t)&priv->pmugrf->os_reg[2]);
 
index 832154e..a2425f2 100644 (file)
@@ -616,12 +616,12 @@ static int rk3066_dmc_sdram_col_row_detect(struct rk3066_dmc_dram_info *dram, in
 
        /* Detect col. */
        for (col = 11; col >= 9; col--) {
-               writel(0, CONFIG_SYS_SDRAM_BASE);
-               addr = CONFIG_SYS_SDRAM_BASE +
+               writel(0, CFG_SYS_SDRAM_BASE);
+               addr = CFG_SYS_SDRAM_BASE +
                       (1 << (col + sdram_params->ch[channel].bw - 1));
                writel(TEST_PATTERN, addr);
                if ((readl(addr) == TEST_PATTERN) &&
-                   (readl(CONFIG_SYS_SDRAM_BASE) == 0))
+                   (readl(CFG_SYS_SDRAM_BASE) == 0))
                        break;
        }
        if (col == 8) {
@@ -638,11 +638,11 @@ static int rk3066_dmc_sdram_col_row_detect(struct rk3066_dmc_dram_info *dram, in
        rk3066_dmc_move_to_access_state(chan);
        /* Detect row, max 15, min13 for rk3066 */
        for (row = 16; row >= 13; row--) {
-               writel(0, CONFIG_SYS_SDRAM_BASE);
-               addr = CONFIG_SYS_SDRAM_BASE + (1 << (row + 15 - 1));
+               writel(0, CFG_SYS_SDRAM_BASE);
+               addr = CFG_SYS_SDRAM_BASE + (1 << (row + 15 - 1));
                writel(TEST_PATTERN, addr);
                if ((readl(addr) == TEST_PATTERN) &&
-                   (readl(CONFIG_SYS_SDRAM_BASE) == 0))
+                   (readl(CFG_SYS_SDRAM_BASE) == 0))
                        break;
        }
        if (row == 12) {
@@ -854,7 +854,7 @@ static int rk3066_dmc_probe(struct udevice *dev)
                if (ret)
                        return ret;
        } else {
-               priv->info.base = CONFIG_SYS_SDRAM_BASE;
+               priv->info.base = CFG_SYS_SDRAM_BASE;
                priv->info.size = rockchip_sdram_size((phys_addr_t)&priv->pmu->sys_reg[2]);
        }
 
index 16cfbf9..ded6539 100644 (file)
@@ -23,7 +23,7 @@ static int rk3128_dmc_probe(struct udevice *dev)
 
        priv->grf = syscon_get_first_range(ROCKCHIP_SYSCON_GRF);
        debug("%s: grf=%p\n", __func__, priv->grf);
-       priv->info.base = CONFIG_SYS_SDRAM_BASE;
+       priv->info.base = CFG_SYS_SDRAM_BASE;
        priv->info.size = rockchip_sdram_size(
                                (phys_addr_t)&priv->grf->os_reg[1]);
 
index be8ba44..272b1b2 100644 (file)
@@ -638,12 +638,12 @@ static int sdram_col_row_detect(struct dram_info *dram, int channel,
 
        /* Detect col */
        for (col = 11; col >= 9; col--) {
-               writel(0, CONFIG_SYS_SDRAM_BASE);
-               addr = CONFIG_SYS_SDRAM_BASE +
+               writel(0, CFG_SYS_SDRAM_BASE);
+               addr = CFG_SYS_SDRAM_BASE +
                        (1 << (col + sdram_params->ch[channel].bw - 1));
                writel(TEST_PATTEN, addr);
                if ((readl(addr) == TEST_PATTEN) &&
-                   (readl(CONFIG_SYS_SDRAM_BASE) == 0))
+                   (readl(CFG_SYS_SDRAM_BASE) == 0))
                        break;
        }
        if (col == 8) {
@@ -660,11 +660,11 @@ static int sdram_col_row_detect(struct dram_info *dram, int channel,
        move_to_access_state(chan);
        /* Detect row, max 15,min13 in rk3188*/
        for (row = 16; row >= 13; row--) {
-               writel(0, CONFIG_SYS_SDRAM_BASE);
-               addr = CONFIG_SYS_SDRAM_BASE + (1 << (row + 15 - 1));
+               writel(0, CFG_SYS_SDRAM_BASE);
+               addr = CFG_SYS_SDRAM_BASE + (1 << (row + 15 - 1));
                writel(TEST_PATTEN, addr);
                if ((readl(addr) == TEST_PATTEN) &&
-                   (readl(CONFIG_SYS_SDRAM_BASE) == 0))
+                   (readl(CFG_SYS_SDRAM_BASE) == 0))
                        break;
        }
        if (row == 12) {
@@ -919,7 +919,7 @@ static int rk3188_dmc_probe(struct udevice *dev)
        if (ret)
                return ret;
 #else
-       priv->info.base = CONFIG_SYS_SDRAM_BASE;
+       priv->info.base = CFG_SYS_SDRAM_BASE;
        priv->info.size = rockchip_sdram_size(
                                (phys_addr_t)&priv->pmu->sys_reg[2]);
 #endif
index cd4234f..1b204fb 100644 (file)
@@ -636,12 +636,12 @@ static int dram_cap_detect(struct dram_info *dram,
                writel(3, &axi_bus->ddrconf);
        move_to_access_state(dram->chan[0].pctl);
        for (col = 11; col >= 9; col--) {
-               writel(0, CONFIG_SYS_SDRAM_BASE);
-               addr = CONFIG_SYS_SDRAM_BASE +
+               writel(0, CFG_SYS_SDRAM_BASE);
+               addr = CFG_SYS_SDRAM_BASE +
                        (1 << (col + bw - 1));
                writel(TEST_PATTEN, addr);
                if ((readl(addr) == TEST_PATTEN) &&
-                   (readl(CONFIG_SYS_SDRAM_BASE) == 0))
+                   (readl(CFG_SYS_SDRAM_BASE) == 0))
                        break;
        }
        if (col == 8) {
@@ -656,11 +656,11 @@ static int dram_cap_detect(struct dram_info *dram,
 
        /* Detect row*/
        for (row = 16; row >= 12; row--) {
-               writel(0, CONFIG_SYS_SDRAM_BASE);
-               addr = CONFIG_SYS_SDRAM_BASE + (1u << (row + 11 + 3 - 1));
+               writel(0, CFG_SYS_SDRAM_BASE);
+               addr = CFG_SYS_SDRAM_BASE + (1u << (row + 11 + 3 - 1));
                writel(TEST_PATTEN, addr);
                if ((readl(addr) == TEST_PATTEN) &&
-                   (readl(CONFIG_SYS_SDRAM_BASE) == 0))
+                   (readl(CFG_SYS_SDRAM_BASE) == 0))
                        break;
        }
        if (row == 11) {
@@ -672,11 +672,11 @@ static int dram_cap_detect(struct dram_info *dram,
                sdram_params->ch[0].cs0_row = row;
        }
        /* cs detect */
-       writel(0, CONFIG_SYS_SDRAM_BASE);
-       writel(TEST_PATTEN, CONFIG_SYS_SDRAM_BASE + (1u << 30));
-       writel(~TEST_PATTEN, CONFIG_SYS_SDRAM_BASE + (1u << 30) + 4);
-       if ((readl(CONFIG_SYS_SDRAM_BASE + (1u << 30)) == TEST_PATTEN) &&
-           (readl(CONFIG_SYS_SDRAM_BASE) == 0))
+       writel(0, CFG_SYS_SDRAM_BASE);
+       writel(TEST_PATTEN, CFG_SYS_SDRAM_BASE + (1u << 30));
+       writel(~TEST_PATTEN, CFG_SYS_SDRAM_BASE + (1u << 30) + 4);
+       if ((readl(CFG_SYS_SDRAM_BASE + (1u << 30)) == TEST_PATTEN) &&
+           (readl(CFG_SYS_SDRAM_BASE) == 0))
                sdram_params->ch[0].rank = 2;
        else
                sdram_params->ch[0].rank = 1;
@@ -813,7 +813,7 @@ static int rk322x_dmc_probe(struct udevice *dev)
        if (ret)
                return ret;
 #else
-       priv->info.base = CONFIG_SYS_SDRAM_BASE;
+       priv->info.base = CFG_SYS_SDRAM_BASE;
        priv->info.size = rockchip_sdram_size(
                        (phys_addr_t)&priv->grf->os_reg[2]);
 #endif
index 227a3cc..83778ad 100644 (file)
@@ -684,12 +684,12 @@ static int sdram_col_row_detect(struct dram_info *dram, int channel,
 
        /* Detect col */
        for (col = 11; col >= 9; col--) {
-               writel(0, CONFIG_SYS_SDRAM_BASE);
-               addr = CONFIG_SYS_SDRAM_BASE +
+               writel(0, CFG_SYS_SDRAM_BASE);
+               addr = CFG_SYS_SDRAM_BASE +
                        (1 << (col + sdram_params->ch[channel].bw - 1));
                writel(TEST_PATTEN, addr);
                if ((readl(addr) == TEST_PATTEN) &&
-                   (readl(CONFIG_SYS_SDRAM_BASE) == 0))
+                   (readl(CFG_SYS_SDRAM_BASE) == 0))
                        break;
        }
        if (col == 8) {
@@ -705,11 +705,11 @@ static int sdram_col_row_detect(struct dram_info *dram, int channel,
        move_to_access_state(chan);
        /* Detect row*/
        for (row = 16; row >= 12; row--) {
-               writel(0, CONFIG_SYS_SDRAM_BASE);
-               addr = CONFIG_SYS_SDRAM_BASE + (1 << (row + 15 - 1));
+               writel(0, CFG_SYS_SDRAM_BASE);
+               addr = CFG_SYS_SDRAM_BASE + (1 << (row + 15 - 1));
                writel(TEST_PATTEN, addr);
                if ((readl(addr) == TEST_PATTEN) &&
-                   (readl(CONFIG_SYS_SDRAM_BASE) == 0))
+                   (readl(CFG_SYS_SDRAM_BASE) == 0))
                        break;
        }
        if (row == 11) {
@@ -1087,7 +1087,7 @@ static int rk3288_dmc_probe(struct udevice *dev)
        if (ret)
                return ret;
 #else
-       priv->info.base = CONFIG_SYS_SDRAM_BASE;
+       priv->info.base = CFG_SYS_SDRAM_BASE;
        priv->info.size = rockchip_sdram_size(
                        (phys_addr_t)&priv->pmu->sys_reg[2]);
 #endif
index 44d7d8a..10828e8 100644 (file)
@@ -21,7 +21,7 @@ static int rk3308_dmc_probe(struct udevice *dev)
        struct dram_info *priv = dev_get_priv(dev);
 
        priv->grf = syscon_get_first_range(ROCKCHIP_SYSCON_GRF);
-       priv->info.base = CONFIG_SYS_SDRAM_BASE;
+       priv->info.base = CFG_SYS_SDRAM_BASE;
        priv->info.size = rockchip_sdram_size((phys_addr_t)&priv->grf->os_reg2);
 
        return 0;
index 9c6798f..b511c6b 100644 (file)
@@ -580,7 +580,7 @@ static int rk3328_dmc_probe(struct udevice *dev)
 
        priv->grf = syscon_get_first_range(ROCKCHIP_SYSCON_GRF);
        debug("%s: grf=%p\n", __func__, priv->grf);
-       priv->info.base = CONFIG_SYS_SDRAM_BASE;
+       priv->info.base = CFG_SYS_SDRAM_BASE;
        priv->info.size = rockchip_sdram_size(
                                (phys_addr_t)&priv->grf->os_reg[2]);
 #endif
index cbf502b..136e4ed 100644 (file)
@@ -3151,7 +3151,7 @@ static int rk3399_dmc_probe(struct udevice *dev)
 
        priv->pmugrf = syscon_get_first_range(ROCKCHIP_SYSCON_PMUGRF);
        debug("%s: pmugrf = %p\n", __func__, priv->pmugrf);
-       priv->info.base = CONFIG_SYS_SDRAM_BASE;
+       priv->info.base = CFG_SYS_SDRAM_BASE;
        priv->info.size =
                rockchip_sdram_size((phys_addr_t)&priv->pmugrf->os_reg2);
 #endif
index 0ac4b54..f661615 100644 (file)
@@ -21,7 +21,7 @@ static int rk3568_dmc_probe(struct udevice *dev)
        struct dram_info *priv = dev_get_priv(dev);
 
        priv->pmugrf = syscon_get_first_range(ROCKCHIP_SYSCON_PMUGRF);
-       priv->info.base = CONFIG_SYS_SDRAM_BASE;
+       priv->info.base = CFG_SYS_SDRAM_BASE;
        priv->info.size =
                rockchip_sdram_size((phys_addr_t)&priv->pmugrf->pmu_os_reg2);
 
index 130b73d..60525f2 100644 (file)
@@ -90,7 +90,7 @@ int ehci_hcd_init(int index, enum usb_init_type init,
 
        /* AHB-PCI Bridge Communication Registers */
        writel(AHB_BUS_CTR_INIT, &ahbcom_pci->ahb_bus_ctr);
-       writel((CONFIG_SYS_SDRAM_BASE & 0xf0000000) | PCIAHB_WIN_PREFETCH,
+       writel((CFG_SYS_SDRAM_BASE & 0xf0000000) | PCIAHB_WIN_PREFETCH,
               &ahbcom_pci->pciahb_win1_ctr);
        writel(0xf0000000 | PCIAHB_WIN_PREFETCH,
               &ahbcom_pci->pciahb_win2_ctr);
@@ -103,7 +103,7 @@ int ehci_hcd_init(int index, enum usb_init_type init,
        writel(PCIWIN1_PCICMD | AHB_CFG_AHBPCI,
               &ahbcom_pci->ahbpci_win1_ctr);
        writel(phys_base + AHBPCI_OFFSET, &ahbconf_pci->basead);
-       writel(CONFIG_SYS_SDRAM_BASE & 0xf0000000, &ahbconf_pci->win1_basead);
+       writel(CFG_SYS_SDRAM_BASE & 0xf0000000, &ahbconf_pci->win1_basead);
        writel(0xf0000000, &ahbconf_pci->win2_basead);
        writel(SERREN | PERREN | MASTEREN | MEMEN,
               &ahbconf_pci->cmnd_sts);
index 2ee6212..9110a48 100644 (file)
@@ -385,7 +385,7 @@ static void sunxi_frontend_mode_set(const struct ctfb_res_modes *mode,
                (struct sunxi_de_fe_reg *)SUNXI_DE_FE0_BASE;
 
        setbits_le32(&de_fe->bypass, SUNXI_DE_FE_BYPASS_CSC_BYPASS);
-       writel(CONFIG_SYS_SDRAM_BASE + address, &de_fe->ch0_addr);
+       writel(CFG_SYS_SDRAM_BASE + address, &de_fe->ch0_addr);
        writel(mode->xres * 4, &de_fe->ch0_stride);
        writel(SUNXI_DE_FE_INPUT_FMT_ARGB8888, &de_fe->input_fmt);
        writel(SUNXI_DE_FE_OUTPUT_FMT_ARGB8888, &de_fe->output_fmt);
@@ -1222,7 +1222,7 @@ static int sunxi_de_probe(struct udevice *dev)
                           EFI_RESERVED_MEMORY_TYPE);
 #endif
 
-       fb_dma_addr = sunxi_display->fb_addr - CONFIG_SYS_SDRAM_BASE;
+       fb_dma_addr = sunxi_display->fb_addr - CFG_SYS_SDRAM_BASE;
        if (overscan_offset) {
                fb_dma_addr += 0x1000 - (overscan_offset & 0xfff);
                sunxi_display->fb_addr += ALIGN(overscan_offset, 0x1000);
index 719caf7..3a4fbc6 100644 (file)
@@ -30,8 +30,8 @@
  * -The heap is placed below the monitor
  * -The stack is placed below the heap (&grows down).
  */
-#define CONFIG_SYS_SDRAM_BASE          0xc8000000
-#define CONFIG_SYS_SDRAM_SIZE          0x08000000
+#define CFG_SYS_SDRAM_BASE             0xc8000000
+#define CFG_SYS_SDRAM_SIZE             0x08000000
 #define CONFIG_MONITOR_IS_IN_RAM
 
 #endif /* __CONFIG_H */
index ad7bd13..ab88918 100644 (file)
@@ -26,8 +26,8 @@
  * -The heap is placed below the monitor
  * -The stack is placed below the heap (&grows down).
  */
-#define CONFIG_SYS_SDRAM_BASE          0xD0000000
-#define CONFIG_SYS_SDRAM_SIZE          0x08000000
+#define CFG_SYS_SDRAM_BASE             0xD0000000
+#define CFG_SYS_SDRAM_SIZE             0x08000000
 #define CONFIG_MONITOR_IS_IN_RAM
 
 #endif /* __CONFIG_H */
index 25c3f22..6dfa3dd 100644 (file)
 /*
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Please note that CFG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
-#define CONFIG_SYS_SDRAM_SIZE          32      /* SDRAM size in MB */
-#define CONFIG_SYS_SDRAM_CFG1          0x43711630
-#define CONFIG_SYS_SDRAM_CFG2          0x56670000
-#define CONFIG_SYS_SDRAM_CTRL          0xE1002000
-#define CONFIG_SYS_SDRAM_EMOD          0x80010000
-#define CONFIG_SYS_SDRAM_MODE          0x00CD0000
+#define CFG_SYS_SDRAM_BASE             0x40000000
+#define CFG_SYS_SDRAM_SIZE             32      /* SDRAM size in MB */
+#define CFG_SYS_SDRAM_CFG1             0x43711630
+#define CFG_SYS_SDRAM_CFG2             0x56670000
+#define CFG_SYS_SDRAM_CTRL             0xE1002000
+#define CFG_SYS_SDRAM_EMOD             0x80010000
+#define CFG_SYS_SDRAM_MODE             0x00CD0000
 
 /*
  * 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 CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CFG_SYS_SDRAM_BASE + (CFG_SYS_SDRAM_SIZE << 20))
 
 /* FLASH organization */
 #ifdef CONFIG_SYS_FLASH_CFI
 #define DCACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 4)
 #define CONFIG_SYS_ICACHE_INV          (CF_CACR_CINV | CF_CACR_INVI)
-#define CONFIG_SYS_CACHE_ACR0          (CONFIG_SYS_SDRAM_BASE | \
-                                        CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
+#define CONFIG_SYS_CACHE_ACR0          (CFG_SYS_SDRAM_BASE | \
+                                        CF_ADDRMASK(CFG_SYS_SDRAM_SIZE) | \
                                         CF_ACR_EN | CF_ACR_SM_ALL)
 #define CONFIG_SYS_CACHE_ICACR         (CF_CACR_CENB | CF_CACR_CINV | \
                                         CF_CACR_DISD | CF_CACR_INVI | \
index f200d70..e28662c 100644 (file)
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Please note that CFG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
-#define CONFIG_SYS_SDRAM_SIZE          16      /* SDRAM size in MB */
+#define CFG_SYS_SDRAM_BASE             0x00000000
+#define CFG_SYS_SDRAM_SIZE             16      /* SDRAM size in MB */
 
 /*
  * For booting Linux, the board info and command line data
@@ -81,7 +81,7 @@
  * the maximum mapped by the Linux kernel during initialization ??
  */
 /* Initial Memory map for Linux */
-#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CFG_SYS_SDRAM_BASE + (CFG_SYS_SDRAM_SIZE << 20))
 
 /*-----------------------------------------------------------------------
  * FLASH organization
 #define DCACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 4)
 #define CONFIG_SYS_ICACHE_INV          (CF_CACR_CINV)
-#define CONFIG_SYS_CACHE_ACR0          (CONFIG_SYS_SDRAM_BASE | \
-                                        CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
+#define CONFIG_SYS_CACHE_ACR0          (CFG_SYS_SDRAM_BASE | \
+                                        CF_ADDRMASK(CFG_SYS_SDRAM_SIZE) | \
                                         CF_ACR_EN | CF_ACR_SM_ALL)
 #define CONFIG_SYS_CACHE_ICACR         (CF_CACR_CENB | CF_CACR_DISD | \
                                         CF_CACR_CEIB | CF_CACR_DCM | \
index 9ff66d7..f1da278 100644 (file)
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Please note that CFG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
-#define CONFIG_SYS_SDRAM_SIZE          16              /* SDRAM size in MB */
+#define CFG_SYS_SDRAM_BASE             0x00000000
+#define CFG_SYS_SDRAM_SIZE             16              /* SDRAM size in MB */
 #define CONFIG_SYS_FLASH_BASE          (CONFIG_SYS_CS0_BASE)
 
 #if 0 /* test-only */
@@ -67,7 +67,7 @@
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CFG_SYS_SDRAM_BASE + (CFG_SYS_SDRAM_SIZE << 20))
 
 /*-----------------------------------------------------------------------
  * FLASH organization
@@ -90,8 +90,8 @@
 #define CONFIG_SYS_CACHE_ACR0          (CONFIG_SYS_FLASH_BASE | \
                                         CF_ADDRMASK(2) | \
                                         CF_ACR_EN | CF_ACR_SM_ALL)
-#define CONFIG_SYS_CACHE_ACR1          (CONFIG_SYS_SDRAM_BASE | \
-                                        CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
+#define CONFIG_SYS_CACHE_ACR1          (CFG_SYS_SDRAM_BASE | \
+                                        CF_ADDRMASK(CFG_SYS_SDRAM_SIZE) | \
                                         CF_ACR_EN | CF_ACR_SM_ALL)
 #define CONFIG_SYS_CACHE_ICACR         (CF_CACR_CENB | CF_CACR_CEIB | \
                                         CF_CACR_DBWE)
index f7bfe59..bd3c57d 100644 (file)
 /*
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Please note that CFG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
-#define CONFIG_SYS_SDRAM_SIZE          16      /* SDRAM size in MB */
+#define CFG_SYS_SDRAM_BASE             0x00000000
+#define CFG_SYS_SDRAM_SIZE             16      /* SDRAM size in MB */
 
 /*
  * 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 CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CFG_SYS_SDRAM_BASE + (CFG_SYS_SDRAM_SIZE << 20))
 
 /* FLASH organization */
 #define CONFIG_SYS_FLASH_BASE          (CONFIG_SYS_CS0_BASE)
 #define CONFIG_SYS_CACHE_ACR0          (CONFIG_SYS_FLASH_BASE | \
                                         CF_ADDRMASK(8) | \
                                         CF_ACR_EN | CF_ACR_SM_ALL)
-#define CONFIG_SYS_CACHE_ACR1          (CONFIG_SYS_SDRAM_BASE | \
-                                        CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
+#define CONFIG_SYS_CACHE_ACR1          (CFG_SYS_SDRAM_BASE | \
+                                        CF_ADDRMASK(CFG_SYS_SDRAM_SIZE) | \
                                         CF_ACR_EN | CF_ACR_SM_ALL)
 #define CONFIG_SYS_CACHE_ICACR         (CF_CACR_CENB | CF_CACR_CEIB | \
                                         CF_CACR_DBWE)
index dcd8365..7c3bc03 100644 (file)
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Please note that CFG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
-#define CONFIG_SYS_SDRAM_SIZE          4       /* SDRAM size in MB */
+#define CFG_SYS_SDRAM_BASE             0x00000000
+#define CFG_SYS_SDRAM_SIZE             4       /* SDRAM size in MB */
 #define CONFIG_SYS_FLASH_BASE          0xffe00000
 
 /*
@@ -82,7 +82,7 @@
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CFG_SYS_SDRAM_BASE + (CFG_SYS_SDRAM_SIZE << 20))
 
 /*
  * FLASH organization
 #define DCACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 4)
 #define CONFIG_SYS_ICACHE_INV          (CF_CACR_CINV | CF_CACR_INVI)
-#define CONFIG_SYS_CACHE_ACR0          (CONFIG_SYS_SDRAM_BASE | \
-                                        CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
+#define CONFIG_SYS_CACHE_ACR0          (CFG_SYS_SDRAM_BASE | \
+                                        CF_ADDRMASK(CFG_SYS_SDRAM_SIZE) | \
                                         CF_ACR_EN | CF_ACR_SM_ALL)
 #define CONFIG_SYS_CACHE_ICACR         (CF_CACR_CENB | CF_CACR_CINV | \
                                         CF_CACR_DISD | CF_CACR_INVI | \
index 9012794..4eb4abe 100644 (file)
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Please note that CFG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
-#define CONFIG_SYS_SDRAM_SIZE          16      /* SDRAM size in MB */
+#define CFG_SYS_SDRAM_BASE             0x00000000
+#define CFG_SYS_SDRAM_SIZE             16      /* SDRAM size in MB */
 #define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_CS0_BASE
 
 /*
@@ -84,7 +84,7 @@
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CFG_SYS_SDRAM_BASE + (CFG_SYS_SDRAM_SIZE << 20))
 
 /*-----------------------------------------------------------------------
  * FLASH organization
 #define DCACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 4)
 #define CONFIG_SYS_ICACHE_INV          (CF_CACR_CINV | CF_CACR_INVI)
-#define CONFIG_SYS_CACHE_ACR0          (CONFIG_SYS_SDRAM_BASE | \
-                                        CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
+#define CONFIG_SYS_CACHE_ACR0          (CFG_SYS_SDRAM_BASE | \
+                                        CF_ADDRMASK(CFG_SYS_SDRAM_SIZE) | \
                                         CF_ACR_EN | CF_ACR_SM_ALL)
 #define CONFIG_SYS_CACHE_ICACR         (CF_CACR_CENB | CF_CACR_CINV | \
                                         CF_CACR_DISD | CF_CACR_INVI | \
index 925d26e..eda3944 100644 (file)
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Please note that CFG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
-#define        CONFIG_SYS_SDRAM_SIZE           16      /* SDRAM size in MB */
+#define CFG_SYS_SDRAM_BASE             0x00000000
+#define        CFG_SYS_SDRAM_SIZE              16      /* SDRAM size in MB */
 #define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_CS0_BASE
 #define        CONFIG_SYS_INT_FLASH_BASE       0xf0000000
 #define CONFIG_SYS_INT_FLASH_ENABLE    0x21
@@ -85,7 +85,7 @@
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CFG_SYS_SDRAM_BASE + (CFG_SYS_SDRAM_SIZE << 20))
 
 /*-----------------------------------------------------------------------
  * FLASH organization
 #define DCACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 4)
 #define CONFIG_SYS_ICACHE_INV          (CF_CACR_CINV + CF_CACR_DCM)
-#define CONFIG_SYS_CACHE_ACR0          (CONFIG_SYS_SDRAM_BASE | \
-                                        CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
+#define CONFIG_SYS_CACHE_ACR0          (CFG_SYS_SDRAM_BASE | \
+                                        CF_ADDRMASK(CFG_SYS_SDRAM_SIZE) | \
                                         CF_ACR_EN | CF_ACR_SM_ALL)
 #define CONFIG_SYS_CACHE_ICACR         (CF_CACR_CENB | CF_CACR_DISD | \
                                         CF_CACR_CEIB | CF_CACR_DBWE | \
index 79a4e61..159993a 100644 (file)
 /*
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Please note that CFG_SYS_SDRAM_BASE _must_ start at 0
  */
-#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          0x80010000
-#define CONFIG_SYS_SDRAM_MODE          0x00CD0000
+#define CFG_SYS_SDRAM_BASE             0x40000000
+#define CFG_SYS_SDRAM_SIZE             64      /* SDRAM size in MB */
+#define CFG_SYS_SDRAM_CFG1             0x43711630
+#define CFG_SYS_SDRAM_CFG2             0x56670000
+#define CFG_SYS_SDRAM_CTRL             0xE1092000
+#define CFG_SYS_SDRAM_EMOD             0x80010000
+#define CFG_SYS_SDRAM_MODE             0x00CD0000
 
 /*
  * 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 CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CFG_SYS_SDRAM_BASE + (CFG_SYS_SDRAM_SIZE << 20))
 
 /*-----------------------------------------------------------------------
  * FLASH organization
 #define DCACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 4)
 #define CONFIG_SYS_ICACHE_INV          (CF_CACR_CINVA)
-#define CONFIG_SYS_CACHE_ACR0          (CONFIG_SYS_SDRAM_BASE | \
-                                        CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
+#define CONFIG_SYS_CACHE_ACR0          (CFG_SYS_SDRAM_BASE | \
+                                        CF_ADDRMASK(CFG_SYS_SDRAM_SIZE) | \
                                         CF_ACR_EN | CF_ACR_SM_ALL)
 #define CONFIG_SYS_CACHE_ICACR         (CF_CACR_EC | CF_CACR_CINVA | \
                                         CF_CACR_DCM_P)
index fc21af5..d7ece63 100644 (file)
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Please note that CFG_SYS_SDRAM_BASE _must_ start at 0
  */
-#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_SYS_SDRAM_BASE             0x40000000
+#define CFG_SYS_SDRAM_SIZE             32      /* SDRAM size in MB */
+#define CFG_SYS_SDRAM_CFG1             0x53722730
+#define CFG_SYS_SDRAM_CFG2             0x56670000
+#define CFG_SYS_SDRAM_CTRL             0xE1092000
+#define CFG_SYS_SDRAM_EMOD             0x40010000
+#define CFG_SYS_SDRAM_MODE             0x018D0000
 
 /*
  * 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 CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CFG_SYS_SDRAM_BASE + (CFG_SYS_SDRAM_SIZE << 20))
 
 /*-----------------------------------------------------------------------
  * FLASH organization
 #define DCACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 4)
 #define CONFIG_SYS_ICACHE_INV          (CF_CACR_CINVA)
-#define CONFIG_SYS_CACHE_ACR0          (CONFIG_SYS_SDRAM_BASE | \
-                                        CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
+#define CONFIG_SYS_CACHE_ACR0          (CFG_SYS_SDRAM_BASE | \
+                                        CF_ADDRMASK(CFG_SYS_SDRAM_SIZE) | \
                                         CF_ACR_EN | CF_ACR_SM_ALL)
 #define CONFIG_SYS_CACHE_ICACR         (CF_CACR_EC | CF_CACR_CINVA | \
                                         CF_CACR_DCM_P)
index f7c09a2..b2fc692 100644 (file)
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Please note that CFG_SYS_SDRAM_BASE _must_ start at 0
  */
-#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_SYS_SDRAM_BASE             0x40000000
+#define CFG_SYS_SDRAM_SIZE             32      /* SDRAM size in MB */
+#define CFG_SYS_SDRAM_CFG1             0x53722730
+#define CFG_SYS_SDRAM_CFG2             0x56670000
+#define CFG_SYS_SDRAM_CTRL             0xE1092000
+#define CFG_SYS_SDRAM_EMOD             0x40010000
+#define CFG_SYS_SDRAM_MODE             0x018D0000
 
 /*
  * 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 CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CFG_SYS_SDRAM_BASE + (CFG_SYS_SDRAM_SIZE << 20))
 
 /*-----------------------------------------------------------------------
  * FLASH organization
 #define DCACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 4)
 #define CONFIG_SYS_ICACHE_INV          (CF_CACR_CINVA)
-#define CONFIG_SYS_CACHE_ACR0          (CONFIG_SYS_SDRAM_BASE | \
-                                        CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
+#define CONFIG_SYS_CACHE_ACR0          (CFG_SYS_SDRAM_BASE | \
+                                        CF_ADDRMASK(CFG_SYS_SDRAM_SIZE) | \
                                         CF_ACR_EN | CF_ACR_SM_ALL)
 #define CONFIG_SYS_CACHE_ICACR         (CF_CACR_EC | CF_CACR_CINVA | \
                                         CF_CACR_DCM_P)
index a5518d3..2e7140c 100644 (file)
@@ -62,8 +62,8 @@
 #define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_IMMR + 0x2800)
 #define        CONFIG_SYS_INIT_RAM_SIZE        (0x2e00 - 0x2800)
 
-/* RAM configuration (note that CONFIG_SYS_SDRAM_BASE must be zero) */
-#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+/* RAM configuration (note that CFG_SYS_SDRAM_BASE must be zero) */
+#define        CFG_SYS_SDRAM_BASE              0x00000000
 
 /* FLASH organization */
 #define CONFIG_SYS_FLASH_BASE          CONFIG_TEXT_BASE
index 0e70b28..d9627e3 100644 (file)
@@ -59,7 +59,7 @@
 /*
  * DDR Setup
  */
-#define CONFIG_SYS_SDRAM_BASE          0x00000000 /* DDR is system memory */
+#define CFG_SYS_SDRAM_BASE             0x00000000 /* DDR is system memory */
 #define CONFIG_SYS_DDR_SDRAM_CLK_CNTL  0x03000000
 
 #define CONFIG_SYS_DDRCDR_VALUE        (DDRCDR_DHC_EN | DDRCDR_ODT | DDRCDR_Q_DRN)
@@ -69,7 +69,7 @@
 /*
  * Manually set up DDR parameters
  */
-#define CONFIG_SYS_SDRAM_SIZE          0x10000000 /* 256 MiB */
+#define CFG_SYS_SDRAM_SIZE             0x10000000 /* 256 MiB */
 #define CONFIG_SYS_DDR_CS0_BNDS                0x0000000f
 #define CONFIG_SYS_DDR_CS0_CONFIG      (CSCONFIG_EN \
                                        | CSCONFIG_ODT_WR_ONLY_CURRENT \
index c59a376..6a51149 100644 (file)
@@ -40,7 +40,7 @@
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000      /* DDR is system memory*/
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 
 /* I2C addresses of SPD EEPROMs */
 #define SPD_EEPROM_ADDRESS     0x51    /* CTLR 0 DIMM 0 */
index f87e759..21491b9 100644 (file)
 #ifndef __ASSEMBLY__
 extern unsigned long get_sdram_size(void);
 #endif
-#define CONFIG_SYS_SDRAM_SIZE          get_sdram_size() /* DDR size */
+#define CFG_SYS_SDRAM_SIZE             get_sdram_size() /* DDR size */
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 
 #define CONFIG_SYS_CCSRBAR                     0xffe00000
 #define CONFIG_SYS_CCSRBAR_PHYS_LOW            CONFIG_SYS_CCSRBAR
index 8c7b877..d7e06d2 100644 (file)
  */
 #define CONFIG_VERY_BIG_RAM
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 
 #define SPD_EEPROM_ADDRESS     0x52
-#define CONFIG_SYS_SDRAM_SIZE  4096    /* for fixed parameter use */
+#define CFG_SYS_SDRAM_SIZE     4096    /* for fixed parameter use */
 
 /*
  * Local Bus Definitions
index 824190a..417b9ae 100644 (file)
@@ -7,7 +7,7 @@
 #define _CONFIG_SBX81LIFKW_H
 
 /* additions for new ARM relocation support */
-#define CONFIG_SYS_SDRAM_BASE  0x00000000
+#define CFG_SYS_SDRAM_BASE     0x00000000
 
 /*
  * NS16550 Configuration
index e67da1f..87b6822 100644 (file)
@@ -7,7 +7,7 @@
 #define _CONFIG_SBX81LIFXCAT_H
 
 /* additions for new ARM relocation support */
-#define CONFIG_SYS_SDRAM_BASE  0x00000000
+#define CFG_SYS_SDRAM_BASE     0x00000000
 
 /*
  * NS16550 Configuration
index 154b2f1..616387f 100644 (file)
  */
 #define CONFIG_VERY_BIG_RAM
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 #if defined(CONFIG_TARGET_T1024RDB)
 #define SPD_EEPROM_ADDRESS     0x51
-#define CONFIG_SYS_SDRAM_SIZE  4096    /* for fixed parameter use */
+#define CFG_SYS_SDRAM_SIZE     4096    /* for fixed parameter use */
 #elif defined(CONFIG_TARGET_T1023RDB)
-#define CONFIG_SYS_SDRAM_SIZE   2048
+#define CFG_SYS_SDRAM_SIZE   2048
 #endif
 
 /*
index 847cf65..37dfe32 100644 (file)
  */
 #define CONFIG_VERY_BIG_RAM
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 
 #define SPD_EEPROM_ADDRESS     0x51
 
-#define CONFIG_SYS_SDRAM_SIZE  4096    /* for fixed parameter use */
+#define CFG_SYS_SDRAM_SIZE     4096    /* for fixed parameter use */
 
 /*
  * IFC Definitions
index b49c264..8f56de4 100644 (file)
@@ -86,8 +86,8 @@
  */
 #define CONFIG_VERY_BIG_RAM
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
-#define CONFIG_SYS_SDRAM_SIZE  2048    /* for fixed parameter use */
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_SIZE     2048    /* for fixed parameter use */
 #define SPD_EEPROM_ADDRESS1    0x51
 #define SPD_EEPROM_ADDRESS2    0x52
 #define SPD_EEPROM_ADDRESS     SPD_EEPROM_ADDRESS1
index aae41a3..e9db4a2 100644 (file)
@@ -81,8 +81,8 @@
  */
 #define CONFIG_VERY_BIG_RAM
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
-#define CONFIG_SYS_SDRAM_SIZE  2048    /* for fixed parameter use */
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_SIZE     2048    /* for fixed parameter use */
 #define SPD_EEPROM_ADDRESS1    0x51
 #define SPD_EEPROM_ADDRESS2    0x52
 #define SPD_EEPROM_ADDRESS     SPD_EEPROM_ADDRESS1
index 9dc45e3..cc86c9d 100644 (file)
@@ -62,7 +62,7 @@
  */
 #define CONFIG_VERY_BIG_RAM
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 
 /*
  * IFC Definitions
 #define SPD_EEPROM_ADDRESS2    0x54
 #define SPD_EEPROM_ADDRESS3    0x56
 #define SPD_EEPROM_ADDRESS     SPD_EEPROM_ADDRESS1     /* for p3041/p5010 */
-#define CONFIG_SYS_SDRAM_SIZE  4096    /* for fixed parameter use */
+#define CFG_SYS_SDRAM_SIZE     4096    /* for fixed parameter use */
 
 /*
  * IFC Definitions
index 78201ad..57f3f37 100644 (file)
@@ -13,7 +13,7 @@
 #include <environment/ti/mmc.h>
 
 /* DDR Configuration */
-#define CONFIG_SYS_SDRAM_BASE1         0x880000000
+#define CFG_SYS_SDRAM_BASE1            0x880000000
 
 #define PARTS_DEFAULT \
        /* Linux partitions */ \
index 1409407..25c71f0 100644 (file)
@@ -16,7 +16,7 @@
 #include <environment/ti/k3_dfu.h>
 
 /* DDR Configuration */
-#define CONFIG_SYS_SDRAM_BASE1         0x880000000
+#define CFG_SYS_SDRAM_BASE1            0x880000000
 
 #define PARTS_DEFAULT \
        /* Linux partitions */ \
index 0345160..0307426 100644 (file)
@@ -15,7 +15,7 @@
 #include <environment/ti/k3_dfu.h>
 
 /* DDR Configuration */
-#define CONFIG_SYS_SDRAM_BASE1         0x880000000
+#define CFG_SYS_SDRAM_BASE1            0x880000000
 
 #define PARTS_DEFAULT \
        /* Linux partitions */ \
index 2bda66f..eba78d3 100644 (file)
@@ -33,8 +33,8 @@
 /* size of internal SRAM */
 #define CONFIG_SYS_INIT_RAM_SIZE       0x1000
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
-#define CONFIG_SYS_SDRAM_SIZE          0x1000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
+#define CFG_SYS_SDRAM_SIZE             0x1000000
 #define CONFIG_SYS_FLASH_BASE          0xffc00000
 
 /* amcore design has flash data bytes wired swapped */
index 650140b..63c7dfc 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define CONFIG_SYS_SDRAM_BASE           0x80000000
+#define CFG_SYS_SDRAM_BASE           0x80000000
 
 #define CONFIG_SYS_INIT_RAM_ADDR        0xbd000000
 #define CONFIG_SYS_INIT_RAM_SIZE        0x8000
index 3114cf0..865aad2 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define CONFIG_SYS_SDRAM_BASE           0x80000000
+#define CFG_SYS_SDRAM_BASE           0x80000000
 
 #define CONFIG_SYS_INIT_RAM_ADDR        0xbd000000
 #define CONFIG_SYS_INIT_RAM_SIZE        0x2000
index f067445..0464a69 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define CONFIG_SYS_SDRAM_BASE           0x80000000
+#define CFG_SYS_SDRAM_BASE           0x80000000
 
 #define CONFIG_SYS_INIT_RAM_ADDR        0xbd000000
 #define CONFIG_SYS_INIT_RAM_SIZE        0x2000
index e2e491b..cf23837 100644 (file)
@@ -63,7 +63,7 @@
 /* On Apalis iMX8 USDHC1 is eMMC, USDHC2 is 8-bit and USDHC3 is 4-bit MMC/SD */
 #define CFG_SYS_FSL_USDHC_NUM  3
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 #define PHYS_SDRAM_1                   0x80000000
 #define PHYS_SDRAM_2                   0x880000000
 #define PHYS_SDRAM_1_SIZE              SZ_2G           /* 2 GB */
index 30d32d2..356d4c3 100644 (file)
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index f7deba4..ed32e77 100644 (file)
@@ -6,9 +6,9 @@
 #ifndef __CONFIG_ARBEL_H
 #define __CONFIG_ARBEL_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x0
+#define CFG_SYS_SDRAM_BASE             0x0
 #define CONFIG_SYS_BOOTMAPSZ           (20 << 20)
-#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_INIT_RAM_ADDR       CFG_SYS_SDRAM_BASE
 #define CONFIG_SYS_INIT_RAM_SIZE       0x8000
 
 /* Default environemnt variables */
index 35e8840..90cf470 100644 (file)
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 5c90058..cbd0d6c 100644 (file)
@@ -14,7 +14,7 @@
 
 /* Misc CPU related */
 
-#define CONFIG_SYS_SDRAM_BASE          ASPEED_DRAM_BASE
+#define CFG_SYS_SDRAM_BASE             ASPEED_DRAM_BASE
 
 #ifdef CONFIG_PRE_CON_BUF_SZ
 #define CONFIG_SYS_INIT_RAM_ADDR       (ASPEED_SRAM_BASE + CONFIG_PRE_CON_BUF_SZ)
index 58635df..b142ea3 100644 (file)
@@ -57,7 +57,7 @@
 
 #define CONFIG_SYS_CLK                 80000000
 #define CONFIG_SYS_CPU_CLK             (CONFIG_SYS_CLK * 3)
-#define CONFIG_SYS_SDRAM_SIZE          32              /* SDRAM size in MB */
+#define CFG_SYS_SDRAM_SIZE             32              /* SDRAM size in MB */
 
 /*
  * Define baudrate for UART1 (console output, tftp, ...)
  * (Set up by the startup code)
  * for MCF5373, the allowable range is 0x40000000 to 0x7FF00000
  */
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 
 /*
  * Chipselect bank definitions
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + \
-                                               (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CFG_SYS_SDRAM_BASE + \
+                                               (CFG_SYS_SDRAM_SIZE << 20))
 
 /* FLASH organization */
 
 #define DCACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 4)
 #define CONFIG_SYS_ICACHE_INV          (CF_CACR_CINVA)
-#define CONFIG_SYS_CACHE_ACR0          (CONFIG_SYS_SDRAM_BASE | \
-                                        CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
+#define CONFIG_SYS_CACHE_ACR0          (CFG_SYS_SDRAM_BASE | \
+                                        CF_ADDRMASK(CFG_SYS_SDRAM_SIZE) | \
                                         CF_ACR_EN | CF_ACR_SM_ALL)
 #define CONFIG_SYS_CACHE_ICACR         (CF_CACR_EC | CF_CACR_CINVA | \
                                         CF_CACR_DCM_P)
index 574bfe3..0d76f41 100644 (file)
@@ -31,8 +31,8 @@
  * SDRAM: 1 bank, min 32, max 128 MB
  * Initialized before u-boot gets started.
  */
-#define CONFIG_SYS_SDRAM_BASE          ATMEL_BASE_CS1
-#define CONFIG_SYS_SDRAM_SIZE          0x04000000
+#define CFG_SYS_SDRAM_BASE             ATMEL_BASE_CS1
+#define CFG_SYS_SDRAM_SIZE             0x04000000
 
 #define CONFIG_SYS_INIT_RAM_SIZE       (16 * 1024)
 #ifdef CONFIG_AT91SAM9XE
index 2c785ad..dcc1cca 100644 (file)
@@ -17,8 +17,8 @@
 #include <asm/hardware.h>
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x20000000
-#define CONFIG_SYS_SDRAM_SIZE          0x04000000
+#define CFG_SYS_SDRAM_BASE             0x20000000
+#define CFG_SYS_SDRAM_SIZE             0x04000000
 #define CONFIG_SYS_INIT_RAM_SIZE       (16 * 1024)
 #define CONFIG_SYS_INIT_RAM_ADDR       ATMEL_BASE_SRAM
 
index bba8574..aefa9fc 100644 (file)
@@ -23,8 +23,8 @@
 #define CONFIG_SYS_AT91_SLOW_CLOCK     32768
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE          ATMEL_BASE_CS1
-#define CONFIG_SYS_SDRAM_SIZE          0x04000000
+#define CFG_SYS_SDRAM_BASE             ATMEL_BASE_CS1
+#define CFG_SYS_SDRAM_SIZE             0x04000000
 
 #define CONFIG_SYS_INIT_RAM_SIZE       (16 * 1024)
 #define CONFIG_SYS_INIT_RAM_ADDR       ATMEL_BASE_SRAM1
 /* Memory Device Register -> SDRAM */
 #define CONFIG_SYS_SDRC_MDR_VAL                AT91_SDRAMC_MD_SDRAM
 #define CONFIG_SYS_SDRC_MR_VAL2                AT91_SDRAMC_MODE_PRECHARGE
-#define CONFIG_SYS_SDRAM_VAL1          0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL1             0               /* SDRAM_BASE */
 #define CONFIG_SYS_SDRC_MR_VAL3                AT91_SDRAMC_MODE_REFRESH
-#define CONFIG_SYS_SDRAM_VAL2          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL3          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL4          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL5          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL6          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL7          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL8          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL9          0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL2             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL3             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL4             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL5             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL6             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL7             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL8             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL9             0               /* SDRAM_BASE */
 #define CONFIG_SYS_SDRC_MR_VAL4                AT91_SDRAMC_MODE_LMR
-#define CONFIG_SYS_SDRAM_VAL10         0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL10            0               /* SDRAM_BASE */
 #define CONFIG_SYS_SDRC_MR_VAL5                AT91_SDRAMC_MODE_NORMAL
-#define CONFIG_SYS_SDRAM_VAL11         0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL11            0               /* SDRAM_BASE */
 #define CONFIG_SYS_SDRC_TR_VAL2                1200            /* SDRAM_TR */
-#define CONFIG_SYS_SDRAM_VAL12         0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL12            0               /* SDRAM_BASE */
 
 /* setup SMC0, CS0 (NOR Flash) - 16-bit, 15 WS */
 #define CONFIG_SYS_SMC0_SETUP0_VAL                             \
index 3ce264a..08cfee1 100644 (file)
@@ -15,8 +15,8 @@
 #define CONFIG_SYS_AT91_MAIN_CLOCK      12000000 /* from 12 MHz crystal */
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE           0x70000000
-#define CONFIG_SYS_SDRAM_SIZE          0x08000000
+#define CFG_SYS_SDRAM_BASE           0x70000000
+#define CFG_SYS_SDRAM_SIZE             0x08000000
 
 /* NAND flash */
 #ifdef CONFIG_CMD_NAND
index 5e3ded2..76f87c1 100644 (file)
@@ -14,8 +14,8 @@
 #define CONFIG_SYS_AT91_MAIN_CLOCK     16000000        /* main clock xtal */
 
 /* Misc CPU related */
-#define CONFIG_SYS_SDRAM_BASE          0x20000000
-#define CONFIG_SYS_SDRAM_SIZE          0x08000000
+#define CFG_SYS_SDRAM_BASE             0x20000000
+#define CFG_SYS_SDRAM_SIZE             0x08000000
 
 /* DataFlash */
 
index b79c8ba..e1111b6 100644 (file)
@@ -17,8 +17,8 @@
 #define CONFIG_SYS_AT91_MAIN_CLOCK     12000000        /* main clock xtal */
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE          ATMEL_BASE_CS1
-#define CONFIG_SYS_SDRAM_SIZE          0x04000000
+#define CFG_SYS_SDRAM_BASE             ATMEL_BASE_CS1
+#define CFG_SYS_SDRAM_SIZE             0x04000000
 
 #define CONFIG_SYS_INIT_RAM_SIZE       (16 * 1024)
 #define CONFIG_SYS_INIT_RAM_ADDR       ATMEL_BASE_SRAM
index 40ea4ed..eb1d1ad 100644 (file)
@@ -20,8 +20,8 @@
  */
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x20000000
-#define CONFIG_SYS_SDRAM_SIZE          0x08000000      /* 128 megs */
+#define CFG_SYS_SDRAM_BASE             0x20000000
+#define CFG_SYS_SDRAM_SIZE             0x08000000      /* 128 megs */
 
 /* DataFlash */
 
index e3b6956..83ac87b 100644 (file)
@@ -28,7 +28,7 @@
        (PHYS_SDRAM_0 + PHYS_SDRAM_0_SIZE)      /* SDRAM Bank #2 */
 #define PHYS_SDRAM_0_SIZE      0x20000000      /* 512 MB */
 #define PHYS_SDRAM_1_SIZE      0x20000000      /* 512 MB */
-#define CONFIG_SYS_SDRAM_BASE  PHYS_SDRAM_0
+#define CFG_SYS_SDRAM_BASE     PHYS_SDRAM_0
 
 /*
  * Serial console configuration
index 1932713..6d82712 100644 (file)
@@ -20,8 +20,8 @@
  */
 
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
-#define CONFIG_SYS_SDRAM_SIZE          SZ_512M
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_SIZE             SZ_512M
 
 /*
  * UART configuration
index d0c46a2..b02ed1b 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef __BCM947622_H
 #define __BCM947622_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 
 #define COUNTER_FREQUENCY              50000000
 #endif
index 1346ace..246feb6 100644 (file)
@@ -6,6 +6,6 @@
 #ifndef __BCM94908_H
 #define __BCM94908_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 
 #endif
index f3d17dd..c428b1a 100644 (file)
@@ -6,6 +6,6 @@
 #ifndef __BCM94912_H
 #define __BCM94912_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 
 #endif
index 361569a..f1b68ba 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef __BCM963138_H
 #define __BCM963138_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 #define CONFIG_SYS_HZ_CLOCK            500000000
 
 #endif
index edbdfc3..90dfa98 100644 (file)
@@ -6,6 +6,6 @@
 #ifndef __BCM963146_H
 #define __BCM963146_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 
 #endif
index 5a24ccc..54f6750 100644 (file)
@@ -6,6 +6,6 @@
 #ifndef __BCM963148_H
 #define __BCM963148_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 
 #endif
index b15c411..2fdd22d 100644 (file)
@@ -6,6 +6,6 @@
 #ifndef __BCM963158_H
 #define __BCM963158_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 
 #endif
index b25f6a1..32fc4a5 100644 (file)
@@ -6,6 +6,6 @@
 #ifndef __BCM963178_H
 #define __BCM963178_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 
 #endif
index c8f3267..c69d177 100644 (file)
@@ -6,6 +6,6 @@
 #ifndef __BCM96756_H
 #define __BCM96756_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 
 #endif
index 5d9e87b..37d2d91 100644 (file)
@@ -6,6 +6,6 @@
 #ifndef __BCM96813_H
 #define __BCM96813_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 
 #endif
index 1d6d5d6..581fd55 100644 (file)
@@ -6,6 +6,6 @@
 #ifndef __BCM96846_H
 #define __BCM96846_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 
 #endif
index 6e420f2..3fb1ab9 100644 (file)
@@ -6,6 +6,6 @@
 #ifndef __BCM96855_H
 #define __BCM96855_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 
 #endif
index a7ae71e..5f5af32 100644 (file)
@@ -6,6 +6,6 @@
 #ifndef __BCM96856_H
 #define __BCM96856_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 
 #endif
index 4e584b4..9a0d89a 100644 (file)
@@ -6,6 +6,6 @@
 #ifndef __BCM96858_H
 #define __BCM96858_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 
 #endif
index 3e23e94..7702d1f 100644 (file)
@@ -6,6 +6,6 @@
 #ifndef __BCM96878_H
 #define __BCM96878_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 
 #endif
index 76189a4..b546988 100644 (file)
@@ -15,7 +15,7 @@
 #define V2M_BASE                       0x80000000
 #define PHYS_SDRAM_1                   V2M_BASE
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 
 /*
  * Initial SP before reloaction is placed at end of first DRAM bank,
index 9f51b9c..9769a71 100644 (file)
@@ -81,7 +81,7 @@ extern phys_addr_t prior_stage_fdt_address;
  * MiB.  However, BOLT can be configured to allow loading larger
  * initramfs images, in which case this limitation is eliminated.
  */
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 #define CONFIG_SYS_INIT_RAM_SIZE       0x100000
 
 /*
index 829e816..556bfa0 100644 (file)
@@ -6,8 +6,8 @@
 #ifndef __CONFIG_BITMAIN_ANTMINER_S9_H
 #define __CONFIG_BITMAIN_ANTMINER_S9_H
 
-#define CONFIG_SYS_SDRAM_BASE  0x00000000
-#define CONFIG_SYS_SDRAM_SIZE  0x40000000
+#define CFG_SYS_SDRAM_BASE     0x00000000
+#define CFG_SYS_SDRAM_SIZE     0x40000000
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "pxefile_addr_r=0x2000000\0" \
index ca2bc19..a075a5b 100644 (file)
 #define PHYS_SDRAM                     (0x80000000)
 #define PHYS_SDRAM_SIZE                (SZ_512M)
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index c328f41..e40f110 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/sizes.h>
 
 /* RAM */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /* U-Boot */
 
index d16d50e..508317f 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/sizes.h>
 
 /* RAM */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /* U-Boot */
 
index f69c46b..c5bda16 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/sizes.h>
 
 /* RAM */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /* U-Boot */
 
index acd021e..32397c2 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/sizes.h>
 
 /* RAM */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /* U-Boot */
 
index fa9e5f0..18c9972 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/sizes.h>
 
 /* RAM */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /* U-Boot */
 
index bcf5c87..f8d7148 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/sizes.h>
 
 /* RAM */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /* U-Boot */
 
index e31b8bc..d564a32 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/sizes.h>
 
 /* RAM */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /* U-Boot */
 
index 6e707d3..f982a43 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/sizes.h>
 
 /* RAM */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /* U-Boot */
 
index bb72c8c..11d623c 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/sizes.h>
 
 /* RAM */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /* U-Boot */
 
index a1c992b..30965c8 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/sizes.h>
 
 /* RAM */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /* U-Boot */
 
index a09e831..0033a7f 100644 (file)
@@ -22,9 +22,9 @@
  * Memory map
  */
 #ifdef CONFIG_64BIT
-# define CONFIG_SYS_SDRAM_BASE         0xffffffff80000000
+# define CFG_SYS_SDRAM_BASE            0xffffffff80000000
 #else
-# define CONFIG_SYS_SDRAM_BASE         0x80000000
+# define CFG_SYS_SDRAM_BASE            0x80000000
 #endif
 
 #define CONFIG_SYS_INIT_SP_OFFSET      0x400000
index bdedf7e..78b2000 100644 (file)
@@ -76,7 +76,7 @@ BUR_COMMON_ENV \
 
 /* RAM */
 #define PHYS_SDRAM_1                   MMDC0_ARB_BASE_ADDR
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 1bf6baf..f1734aa 100644 (file)
@@ -45,7 +45,7 @@
  * always, even when we have more.  We always start at 0x80000000,
  * and we place the initial stack pointer in our SRAM.
  */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /*
  * Our platforms make use of SPL to initalize the hardware (primarily
index c4110f8..474ad69 100644 (file)
@@ -92,7 +92,7 @@
 
 /* On CCP board, USDHC1 is for eMMC */
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 #define PHYS_SDRAM_1                   0x80000000
 #define PHYS_SDRAM_2                   0x880000000
 /* DDR3 board total DDR is 1 GB */
index c395384..6f2b824 100644 (file)
 
 #define CFG_SYS_FSL_USDHC_NUM  3
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 #define PHYS_SDRAM_1                   0x80000000
 #define PHYS_SDRAM_2                   0x880000000
 #define PHYS_SDRAM_1_SIZE              0x80000000      /* 2 GB */
index b7511ad..f268dfd 100644 (file)
@@ -11,7 +11,7 @@
 
 /* Memory configuration */
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000 /* cached (KSEG0) address */
+#define CFG_SYS_SDRAM_BASE             0x80000000 /* cached (KSEG0) address */
 #define CONFIG_SYS_INIT_SP_OFFSET      0x400000
 
 /* NS16550-ish UARTs */
index fc45e59..eb899c4 100644 (file)
@@ -82,7 +82,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 2544362..47c4aac 100644 (file)
@@ -21,7 +21,7 @@
 /* RAM */
 #define PHYS_SDRAM_1                   MMDC0_ARB_BASE_ADDR
 #define PHYS_SDRAM_2                   MMDC1_ARB_BASE_ADDR
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 52000b5..65b9074 100644 (file)
@@ -30,7 +30,7 @@
  */
 
 #define CONFIG_SYS_CLK                 66000000
-#define CONFIG_SYS_SDRAM_SIZE          16              /* SDRAM size in MB */
+#define CFG_SYS_SDRAM_SIZE             16              /* SDRAM size in MB */
 
 /* ---
  * Define baudrate for UART1 (console output, tftp, ...)
@@ -152,9 +152,9 @@ enter a valid image address in flash */
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Please note that CFG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 
 /*
  *-------------------------------------------------------------------------
@@ -162,7 +162,7 @@ enter a valid image address in flash */
  *-----------------------------------------------------------------------
  */
 
-/* #define CONFIG_SYS_SDRAM_SIZE               16 */
+/* #define CFG_SYS_SDRAM_SIZE          16 */
 
 /*
  *-----------------------------------------------------------------------
@@ -186,8 +186,8 @@ enter a valid image address in flash */
 #define DCACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 4)
 #define CONFIG_SYS_ICACHE_INV          (CF_CACR_CINV | CF_CACR_INVI)
-#define CONFIG_SYS_CACHE_ACR0          (CONFIG_SYS_SDRAM_BASE | \
-                                        CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
+#define CONFIG_SYS_CACHE_ACR0          (CFG_SYS_SDRAM_BASE | \
+                                        CF_ADDRMASK(CFG_SYS_SDRAM_SIZE) | \
                                         CF_ACR_EN | CF_ACR_SM_ALL)
 #define CONFIG_SYS_CACHE_ICACR         (CF_CACR_CENB | CF_CACR_CINV | \
                                         CF_CACR_DISD | CF_CACR_INVI | \
index afe8bad..ca8445a 100644 (file)
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index d641fbf..6002d8d 100644 (file)
@@ -96,7 +96,7 @@
 /* On Colibri iMX8X USDHC1 is eMMC, USDHC2 is 4-bit SD */
 #define CFG_SYS_FSL_USDHC_NUM  2
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 #define PHYS_SDRAM_1                   0x80000000
 #define PHYS_SDRAM_2                   0x880000000
 #define PHYS_SDRAM_1_SIZE              SZ_2G           /* 2 GB */
index 68d923c..14278e9 100644 (file)
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index f9bf849..c080955 100644 (file)
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 0f6f99d..1128307 100644 (file)
@@ -85,7 +85,7 @@
 #define PHYS_SDRAM                     (0x80000000)
 #define PHYS_SDRAM_SIZE                        (256 * SZ_1M)
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 8e0230c..8aec52d 100644 (file)
@@ -22,7 +22,7 @@
 #define PHYS_SDRAM_1           (V2M_BASE)
 #define PHYS_SDRAM_1_SIZE      0x80000000
 
-#define CONFIG_SYS_SDRAM_BASE  PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE     PHYS_SDRAM_1
 
 #define BOOT_TARGET_DEVICES(func) \
        func(USB, usb, 0)
index 9d44e67..c7a3e47 100644 (file)
@@ -32,8 +32,8 @@
 #define CONFIG_USART_ID                        ATMEL_ID_SYS
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE           ATMEL_BASE_CS6
-#define CONFIG_SYS_SDRAM_SIZE          0x08000000
+#define CFG_SYS_SDRAM_BASE           ATMEL_BASE_CS6
+#define CFG_SYS_SDRAM_SIZE             0x08000000
 
 /* NAND flash */
 #ifdef CONFIG_CMD_NAND
index 4f0188d..e2e1cfe 100644 (file)
 /* Load U-Boot Image From MMC */
 
 /* additions for new relocation code, must added to all boards */
-#define CONFIG_SYS_SDRAM_BASE          0xc0000000
+#define CFG_SYS_SDRAM_BASE             0xc0000000
 
 #include <asm/arch/hardware.h>
 
index b944d50..b16f3d4 100644 (file)
@@ -42,7 +42,7 @@
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 #define PHYS_SDRAM_SIZE                        SZ_512M
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 5244b9c..c473f3d 100644 (file)
@@ -15,8 +15,8 @@
 /*
  * Memory configurations
  */
-#define CONFIG_SYS_SDRAM_BASE          EMC_DYCS0_BASE
-#define CONFIG_SYS_SDRAM_SIZE          SZ_64M
+#define CFG_SYS_SDRAM_BASE             EMC_DYCS0_BASE
+#define CFG_SYS_SDRAM_SIZE             SZ_64M
 
 /*
  * DMA
index e694dd7..ddc436d 100644 (file)
@@ -72,7 +72,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 0e5ecab..0a7428b 100644 (file)
 
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
index c37b4c6..daf7ecd 100644 (file)
@@ -17,7 +17,7 @@
 #define PHYS_SDRAM_1                   0x80000000
 /* Note: 8 MiB (0x86000000 - 0x86800000) are reserved for tz/smem/hyp/rmtfs/rfsa */
 #define PHYS_SDRAM_1_SIZE              SZ_1G
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 
 /* Environment */
 #define BOOT_TARGET_DEVICES(func) \
index 1fa5d05..31cd853 100644 (file)
@@ -19,7 +19,7 @@
 #define PHYS_SDRAM_2                   0x100000000
 #define PHYS_SDRAM_2_SIZE              0x5ea4ffff
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 
 #include <config_distro_bootcmd.h>
 
index 8f0e8be..001596c 100644 (file)
@@ -11,7 +11,7 @@
 /* Sdram Bank #1 Address */
 #define PHYS_SDRAM_1                   0x80000000
 #define PHYS_SDRAM_1_SIZE              0x7B000000
-#define CONFIG_SYS_SDRAM_BASE   PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE   PHYS_SDRAM_1
 
 /* BOOT */
 
index 1d65529..fc1c2ae 100644 (file)
@@ -13,7 +13,7 @@
 /*
  * RAM
  */
-#define CONFIG_SYS_SDRAM_BASE EMC_DYCS0_BASE
+#define CFG_SYS_SDRAM_BASE EMC_DYCS0_BASE
 
 /*
  * cmd
index 80a820c..80de73d 100644 (file)
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Please note that CFG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CONFIG_SYS_SDRAM_BASE0         0x00000000
-#define        CONFIG_SYS_SDRAM_SIZE0          16      /* SDRAM size in MB */
+#define CFG_SYS_SDRAM_BASE0            0x00000000
+#define        CFG_SYS_SDRAM_SIZE0             16      /* SDRAM size in MB */
 
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_SDRAM_BASE0
-#define        CONFIG_SYS_SDRAM_SIZE           CONFIG_SYS_SDRAM_SIZE0
+#define CFG_SYS_SDRAM_BASE             CFG_SYS_SDRAM_BASE0
+#define        CFG_SYS_SDRAM_SIZE              CFG_SYS_SDRAM_SIZE0
 
 /*
  * For booting Linux, the board info and command line data
 #define DCACHE_STATUS                  (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - 4)
 #define CONFIG_SYS_ICACHE_INV          (CF_CACR_CINV + CF_CACR_DCM)
-#define CONFIG_SYS_CACHE_ACR0          (CONFIG_SYS_SDRAM_BASE | \
-                                        CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
+#define CONFIG_SYS_CACHE_ACR0          (CFG_SYS_SDRAM_BASE | \
+                                        CF_ADDRMASK(CFG_SYS_SDRAM_SIZE) | \
                                         CF_ACR_EN | CF_ACR_SM_ALL)
 #define CONFIG_SYS_CACHE_ICACR         (CF_CACR_CENB | CF_CACR_DISD | \
                                         CF_CACR_CEIB | CF_CACR_DBWE | \
index 16d2648..d24bc56 100644 (file)
@@ -50,7 +50,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE          PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index a4891dd..e39bb94 100644 (file)
@@ -27,7 +27,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE          PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 60fab04..c2b921e 100644 (file)
@@ -8,8 +8,8 @@
 
 #include <linux/sizes.h>
 
-#define CONFIG_SYS_SDRAM_BASE          0x10000000
-#define CONFIG_SYS_SDRAM_SIZE          SZ_16M
+#define CFG_SYS_SDRAM_BASE             0x10000000
+#define CFG_SYS_SDRAM_SIZE             SZ_16M
 
 /*
  * Environment
index 2f067a4..b4f14a9 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <configs/exynos7420-common.h>
 
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 
 /* DRAM Memory Banks */
 #define SDRAM_BANK_SIZE                (256UL << 20UL) /* 256 MB */
index f19e12d..97a8ffb 100644 (file)
@@ -26,8 +26,8 @@
 #define CONFIG_SYS_INIT_RAM_SIZE       (32 << 10)
 
 /* 128MB SDRAM in 1 bank */
-#define CONFIG_SYS_SDRAM_BASE          0x20000000
-#define CONFIG_SYS_SDRAM_SIZE          (128 << 20)
+#define CFG_SYS_SDRAM_BASE             0x20000000
+#define CFG_SYS_SDRAM_SIZE             (128 << 20)
 
 /* 512kB on-chip NOR flash */
 # define CONFIG_SYS_FLASH_BASE         0x00200000 /* AT91SAM9XE_FLASH_BASE */
index 44f5cb1..dd322c2 100644 (file)
 
 #define CONFIG_RD_LVL
 
-#define PHYS_SDRAM_1           CONFIG_SYS_SDRAM_BASE
+#define PHYS_SDRAM_1           CFG_SYS_SDRAM_BASE
 #define PHYS_SDRAM_1_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_2           (CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
+#define PHYS_SDRAM_2           (CFG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
 #define PHYS_SDRAM_2_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_3           (CONFIG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_3           (CFG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_3_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_4           (CONFIG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_4           (CFG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_4_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_5           (CONFIG_SYS_SDRAM_BASE + (4 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_5           (CFG_SYS_SDRAM_BASE + (4 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_5_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_6           (CONFIG_SYS_SDRAM_BASE + (5 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_6           (CFG_SYS_SDRAM_BASE + (5 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_6_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_7           (CONFIG_SYS_SDRAM_BASE + (6 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_7           (CFG_SYS_SDRAM_BASE + (6 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_7_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_8           (CONFIG_SYS_SDRAM_BASE + (7 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_8           (CFG_SYS_SDRAM_BASE + (7 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_8_SIZE      SDRAM_BANK_SIZE
 
 /* SPI */
index 8e2f135..cc0cf5e 100644 (file)
@@ -9,7 +9,7 @@
 #ifndef __CONFIG_5250_H
 #define __CONFIG_5250_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 
 /* DRAM Memory Banks */
 #define SDRAM_BANK_SIZE                (256UL << 20UL) /* 256 MB */
index a8bef86..cff910c 100644 (file)
 
 /* select serial console configuration */
 
-#define PHYS_SDRAM_1           CONFIG_SYS_SDRAM_BASE
+#define PHYS_SDRAM_1           CFG_SYS_SDRAM_BASE
 #define PHYS_SDRAM_1_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_2           (CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
+#define PHYS_SDRAM_2           (CFG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
 #define PHYS_SDRAM_2_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_3           (CONFIG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_3           (CFG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_3_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_4           (CONFIG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_4           (CFG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_4_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_5           (CONFIG_SYS_SDRAM_BASE + (4 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_5           (CFG_SYS_SDRAM_BASE + (4 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_5_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_6           (CONFIG_SYS_SDRAM_BASE + (5 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_6           (CFG_SYS_SDRAM_BASE + (5 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_6_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_7           (CONFIG_SYS_SDRAM_BASE + (6 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_7           (CFG_SYS_SDRAM_BASE + (6 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_7_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_8           (CONFIG_SYS_SDRAM_BASE + (7 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_8           (CFG_SYS_SDRAM_BASE + (7 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_8_SIZE      SDRAM_BANK_SIZE
 
 /* Configuration of ENV Blocks */
index b05846d..68c36dc 100644 (file)
 #define CONFIG_SYS_BAUDRATE_TABLE \
        {9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600}
 
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 /* DRAM Memory Banks */
 #define SDRAM_BANK_SIZE                (256UL << 20UL) /* 256 MB */
-#define PHYS_SDRAM_1           CONFIG_SYS_SDRAM_BASE
+#define PHYS_SDRAM_1           CFG_SYS_SDRAM_BASE
 #define PHYS_SDRAM_1_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_2           (CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
+#define PHYS_SDRAM_2           (CFG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
 #define PHYS_SDRAM_2_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_3           (CONFIG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_3           (CFG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_3_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_4           (CONFIG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_4           (CFG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_4_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_5           (CONFIG_SYS_SDRAM_BASE + (4 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_5           (CFG_SYS_SDRAM_BASE + (4 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_5_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_6           (CONFIG_SYS_SDRAM_BASE + (5 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_6           (CFG_SYS_SDRAM_BASE + (5 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_6_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_7           (CONFIG_SYS_SDRAM_BASE + (6 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_7           (CFG_SYS_SDRAM_BASE + (6 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_7_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_8           (CONFIG_SYS_SDRAM_BASE + (7 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_8           (CFG_SYS_SDRAM_BASE + (7 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_8_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_9           (CONFIG_SYS_SDRAM_BASE + (8 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_9           (CFG_SYS_SDRAM_BASE + (8 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_9_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_10          (CONFIG_SYS_SDRAM_BASE + (9 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_10          (CFG_SYS_SDRAM_BASE + (9 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_10_SIZE     SDRAM_BANK_SIZE
-#define PHYS_SDRAM_11          (CONFIG_SYS_SDRAM_BASE + (10 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_11          (CFG_SYS_SDRAM_BASE + (10 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_11_SIZE     SDRAM_BANK_SIZE
-#define PHYS_SDRAM_12          (CONFIG_SYS_SDRAM_BASE + (11 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_12          (CFG_SYS_SDRAM_BASE + (11 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_12_SIZE     SDRAM_BANK_SIZE
 
 #ifndef MEM_LAYOUT_ENV_SETTINGS
index ba09831..f5353ec 100644 (file)
@@ -18,8 +18,8 @@
 #define CONFIG_SYS_AT91_MAIN_CLOCK     12000000        /* 12 MHz crystal */
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x20000000
-#define CONFIG_SYS_SDRAM_SIZE          0x08000000      /* 128 megs */
+#define CFG_SYS_SDRAM_BASE             0x20000000
+#define CFG_SYS_SDRAM_SIZE             0x08000000      /* 128 megs */
 
 /* NAND flash */
 #define CFG_SYS_NAND_BASE              0x40000000
index a1400eb..a755714 100644 (file)
@@ -7,7 +7,7 @@
 #define __CONFIG_GARDENA_SMART_GATEWAY_H
 
 /* RAM */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 #define CONFIG_SYS_INIT_SP_OFFSET      0x400000
 
index fa6f0e6..6cdfe8c 100644 (file)
@@ -12,9 +12,9 @@
 /*
  * DDR Setup
  */
-#define CONFIG_SYS_SDRAM_BASE          0x00000000 /* DDR is system memory */
-/* TODO: Check: Can this be unified with CONFIG_SYS_SDRAM_BASE? */
-#define CONFIG_SYS_DDR_SDRAM_BASE      CONFIG_SYS_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             0x00000000 /* DDR is system memory */
+/* TODO: Check: Can this be unified with CFG_SYS_SDRAM_BASE? */
+#define CONFIG_SYS_DDR_SDRAM_BASE      CFG_SYS_SDRAM_BASE
 
 /*
  * Memory test
index c862f15..85ceaf8 100644 (file)
@@ -37,7 +37,7 @@
 /* Memory */
 #define PHYS_SDRAM                    MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE         PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE            PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index d519384..1dba2e9 100644 (file)
@@ -94,7 +94,7 @@
 
 #define CONFIG_SYS_BOOTMAPSZ (256 << 20)     /* 256M */
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE          PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index d2138c2..dd6b22d 100644 (file)
@@ -13,8 +13,8 @@
 /* Miscellaneous */
 
 /* Internal RAM Size (RZ/A1=3M, RZ/A1M=5M, RZ/A1H=10M) */
-#define CONFIG_SYS_SDRAM_BASE          0x20000000
-#define CONFIG_SYS_SDRAM_SIZE          (10 * 1024 * 1024)
+#define CFG_SYS_SDRAM_BASE             0x20000000
+#define CFG_SYS_SDRAM_SIZE             (10 * 1024 * 1024)
 
 /* Network interface */
 #define CONFIG_SH_ETHER_USE_PORT       0
index 645ca16..fe00272 100644 (file)
@@ -53,7 +53,7 @@
 
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE          PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index e3c97b2..2b0b048 100644 (file)
@@ -10,6 +10,6 @@
 #ifndef _GXP_H_
 #define _GXP_H_
 
-#define CONFIG_SYS_SDRAM_BASE   0x40000000
+#define CFG_SYS_SDRAM_BASE   0x40000000
 
 #endif
index a7d21a7..0d281a3 100644 (file)
@@ -14,7 +14,7 @@
  * Miscellaneous configurable options
  */
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 
 #define CONFIG_EXTRA_ENV_SETTINGS                              \
        "fdt_high=0x20000000\0"                                 \
index 18c1e83..775f166 100644 (file)
@@ -24,7 +24,7 @@
 /* 1008 MB (the last 16Mb are secured for TrustZone by ATF*/
 #define PHYS_SDRAM_1_SIZE              0x3EFFFFFF
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 
 #define CONFIG_SYS_INIT_RAM_SIZE       0x1000
 
index 973df8e..914c3ad 100644 (file)
@@ -16,7 +16,7 @@
 #define PHYS_SDRAM_1                   0x00000000
 #define PHYS_SDRAM_1_SIZE              0xC0000000
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 
 #define CONFIG_SYS_INIT_RAM_SIZE       0x1000
 
index 1d7b171..fcb2dec 100644 (file)
@@ -22,8 +22,8 @@
  */
 
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
-#define CONFIG_SYS_SDRAM_SIZE          SZ_1G
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_SIZE             SZ_1G
 
 /*
  * UART configuration
index 9e092e1..0ae9352 100644 (file)
@@ -21,8 +21,8 @@
  */
 
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
-#define CONFIG_SYS_SDRAM_SIZE          SZ_1G
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_SIZE             SZ_1G
 
 /*
  * UART configuration
index 1fc45f9..f1ca28b 100644 (file)
@@ -21,8 +21,8 @@
  */
 
 /* SDRAM Configuration (for final code, data, stack, heap) */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
-#define CONFIG_SYS_SDRAM_SIZE          0x08000000      /* 128 Mbytes */
+#define CFG_SYS_SDRAM_BASE             0x80000000
+#define CFG_SYS_SDRAM_SIZE             0x08000000      /* 128 Mbytes */
 
 /*----------------------------------------------------------------------
  * Commands
index 974dff8..594aa4f 100644 (file)
        "upd=run load update\0"                                         \
 
 /* additions for new relocation code, must be added to all boards */
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 #endif /* __IMX27LITE_COMMON_CONFIG_H */
index b8eb5c8..d4e2583 100644 (file)
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 6b822e7..1b08c5e 100644 (file)
 
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE          PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index f7f8f33..a074df5 100644 (file)
@@ -55,7 +55,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 15171d7..855af29 100644 (file)
@@ -85,7 +85,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                      MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE           PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE           PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR        IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE        IRAM_SIZE
 
index 70b4b84..0a688af 100644 (file)
@@ -63,7 +63,7 @@
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 #define PHYS_SDRAM_SIZE                        SZ_128M
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index c6db5e9..e5118f1 100644 (file)
@@ -69,7 +69,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 917d567..e62f9c5 100644 (file)
 #define CONFIG_SYS_INIT_RAM_SIZE       0x80000
 
 
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 #define PHYS_SDRAM                     0x40000000
 #define PHYS_SDRAM_SIZE                        0x80000000 /* 2GB DDR */
 
index 8e08899..143da00 100644 (file)
@@ -74,7 +74,7 @@
 #define CONFIG_SYS_INIT_RAM_ADDR        0x40000000
 #define CONFIG_SYS_INIT_RAM_SIZE        0x200000
 
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 #define PHYS_SDRAM                     0x40000000
 #define PHYS_SDRAM_SIZE                0x80000000 /* 2GB DDR */
 
index dd9f93f..c766930 100644 (file)
@@ -21,7 +21,7 @@
 #define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
 #define CONFIG_SYS_INIT_RAM_SIZE       0x200000
 
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 #define PHYS_SDRAM                     0x40000000
 #define PHYS_SDRAM_SIZE                        0x40000000 /* Minimum 1 GiB DDR */
 
index f1d1c1c..9937071 100644 (file)
@@ -57,7 +57,7 @@
 #define CONFIG_SYS_INIT_RAM_SIZE        0x200000
 
 
-#define CONFIG_SYS_SDRAM_BASE           0x40000000
+#define CFG_SYS_SDRAM_BASE           0x40000000
 #define PHYS_SDRAM                      0x40000000
 #define PHYS_SDRAM_SIZE                        0x80000000 /* 2GB DDR */
 
index 9cdba70..cd47d84 100644 (file)
@@ -41,7 +41,7 @@
 #define CONFIG_SYS_INIT_RAM_ADDR        0x40000000
 #define CONFIG_SYS_INIT_RAM_SIZE        SZ_2M
 
-#define CONFIG_SYS_SDRAM_BASE           0x40000000
+#define CFG_SYS_SDRAM_BASE           0x40000000
 
 /* SDRAM configuration */
 #define PHYS_SDRAM                      0x40000000
index 0653563..58e165c 100644 (file)
@@ -32,7 +32,7 @@
 #define CONFIG_SYS_INIT_RAM_ADDR        0x40000000
 #define CONFIG_SYS_INIT_RAM_SIZE        SZ_2M
 
-#define CONFIG_SYS_SDRAM_BASE           0x40000000
+#define CFG_SYS_SDRAM_BASE           0x40000000
 
 /* SDRAM configuration */
 #define PHYS_SDRAM                      0x40000000
index 0ae3da1..f532c10 100644 (file)
@@ -78,7 +78,7 @@
 #define CONFIG_SYS_INIT_RAM_ADDR        0x40000000
 #define CONFIG_SYS_INIT_RAM_SIZE        0x200000
 
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 #define PHYS_SDRAM                     0x40000000
 #if CONFIG_IS_ENABLED(IMX8MN_BEACON_2GB_LPDDR)
 #define PHYS_SDRAM_SIZE                0x80000000 /* 2GB DDR */
index d6959ac..415248e 100644 (file)
@@ -26,7 +26,7 @@
 #define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
 #define CONFIG_SYS_INIT_RAM_SIZE       SZ_512K
 
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 #define PHYS_SDRAM                     0x40000000
 
 #endif /* __IMX8MN_BSH_SMM_S2_COMMON_H */
index 9c75e3e..8857bc7 100644 (file)
@@ -49,7 +49,7 @@
 #define CONFIG_SYS_INIT_RAM_SIZE        0x200000
 
 
-#define CONFIG_SYS_SDRAM_BASE           0x40000000
+#define CFG_SYS_SDRAM_BASE           0x40000000
 #define PHYS_SDRAM                      0x40000000
 #define PHYS_SDRAM_SIZE                        0x80000000 /* 2GB DDR */
 
index a484d91..628bb58 100644 (file)
@@ -46,7 +46,7 @@
 #define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
 #define CONFIG_SYS_INIT_RAM_SIZE       SZ_512K
 
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 #define PHYS_SDRAM                     0x40000000
 #define PHYS_SDRAM_SIZE                        SZ_1G /* 1GB DDR */
 
index d5252ab..a169be3 100644 (file)
@@ -26,7 +26,7 @@
 #define CONFIG_SYS_INIT_RAM_ADDR        0x40000000
 #define CONFIG_SYS_INIT_RAM_SIZE        SZ_2M
 
-#define CONFIG_SYS_SDRAM_BASE           0x40000000
+#define CFG_SYS_SDRAM_BASE           0x40000000
 
 /* SDRAM configuration */
 #define PHYS_SDRAM                      0x40000000
index bf87825..62bcef5 100644 (file)
@@ -14,7 +14,7 @@
 #define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
 #define CONFIG_SYS_INIT_RAM_SIZE       0x200000
 
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 #define PHYS_SDRAM                     0x40000000
 #define PHYS_SDRAM_SIZE                        0x20000000 /* Minimum 512 MiB DDR */
 
index 1b533e2..d394762 100644 (file)
@@ -55,7 +55,7 @@
 
 
 /* Totally 2GB DDR */
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 #define PHYS_SDRAM                     0x40000000
 #define PHYS_SDRAM_SIZE                        0x80000000
 
index 7986d20..3e995c9 100644 (file)
@@ -56,7 +56,7 @@
 #define CONFIG_SYS_INIT_RAM_SIZE       0x80000
 
 /* Totally 2GB DDR */
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 #define PHYS_SDRAM                     0x40000000
 #define PHYS_SDRAM_SIZE                        0x80000000
 
index 8f2b474..1943a24 100644 (file)
 
 
 /* Totally 6GB or 4G DDR */
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 #define PHYS_SDRAM                     0x40000000
 #if defined(CONFIG_TARGET_IMX8MP_RSB3720A1_6G)
 #define PHYS_SDRAM_SIZE                        0xC0000000      /* 3 GB */
index b1c213c..7d36058 100644 (file)
@@ -26,7 +26,7 @@
 #define CONFIG_SYS_INIT_RAM_ADDR        0x40000000
 #define CONFIG_SYS_INIT_RAM_SIZE        SZ_2M
 
-#define CONFIG_SYS_SDRAM_BASE           0x40000000
+#define CFG_SYS_SDRAM_BASE           0x40000000
 
 /* SDRAM configuration */
 #define PHYS_SDRAM                      0x40000000
index 4b2107e..271376c 100644 (file)
@@ -50,7 +50,7 @@
 #define CONFIG_SYS_INIT_RAM_SIZE        0x80000
 
 
-#define CONFIG_SYS_SDRAM_BASE           0x40000000
+#define CFG_SYS_SDRAM_BASE           0x40000000
 #define PHYS_SDRAM                      0x40000000
 #define PHYS_SDRAM_SIZE                                        0x40000000 /* 1 GB DDR */
 
index 2d4c8d7..672a9fa 100644 (file)
@@ -56,7 +56,7 @@
 #define CONFIG_SYS_INIT_RAM_SIZE        0x80000
 
 
-#define CONFIG_SYS_SDRAM_BASE           0x40000000
+#define CFG_SYS_SDRAM_BASE           0x40000000
 #define PHYS_SDRAM                      0x40000000
 #define PHYS_SDRAM_SIZE                        0xC0000000 /* 3GB DDR */
 
index 1905e53..dd354b0 100644 (file)
@@ -88,7 +88,7 @@
 #define CONFIG_SYS_INIT_RAM_SIZE        0x80000
 
 
-#define CONFIG_SYS_SDRAM_BASE           0x40000000
+#define CFG_SYS_SDRAM_BASE           0x40000000
 #define PHYS_SDRAM                      0x40000000
 #define PHYS_SDRAM_SIZE                        0x40000000 /* 1GB DDR */
 
index 7f6d59d..f1f907f 100644 (file)
 
 /* On LPDDR4 board, USDHC1 is for eMMC, USDHC2 is for SD on CPU board */
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 #define PHYS_SDRAM_1                   0x80000000
 #define PHYS_SDRAM_2                   0x880000000
 #define PHYS_SDRAM_1_SIZE              0x80000000      /* 2 GB */
index 67f19bc..fe27ac3 100644 (file)
  */
 #define CFG_SYS_FSL_USDHC_NUM  3
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 #define PHYS_SDRAM_1                   0x80000000
 #define PHYS_SDRAM_2                   0x880000000
 #define PHYS_SDRAM_1_SIZE              0x80000000      /* 2 GB */
index 567351f..19f1dba 100644 (file)
 
 /* On LPDDR4 board, USDHC1 is for eMMC, USDHC2 is for SD on CPU board */
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 #define PHYS_SDRAM_1                   0x80000000
 #define PHYS_SDRAM_2                   0x880000000
 #define PHYS_SDRAM_1_SIZE              0x80000000      /* 2 GB */
index 7bf0ce7..592df27 100644 (file)
@@ -54,7 +54,7 @@
 #define CONFIG_SYS_INIT_RAM_SIZE       0x80000
 
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 #define PHYS_SDRAM                     0x80000000
 #define PHYS_SDRAM_SIZE                        0x80000000 /* 2GB DDR */
 
index b281466..077a4d8 100644 (file)
 #define CONFIG_SYS_INIT_RAM_ADDR        0x80000000
 #define CONFIG_SYS_INIT_RAM_SIZE        0x200000
 
-#define CONFIG_SYS_SDRAM_BASE           0x80000000
+#define CFG_SYS_SDRAM_BASE           0x80000000
 #define PHYS_SDRAM                      0x80000000
 #define PHYS_SDRAM_SIZE                        0x80000000 /* 2GB DDR */
 
index 512e0e6..8d0458d 100644 (file)
@@ -30,7 +30,7 @@
  */
 #define PHYS_SDRAM_1           0x00000000      /* SDRAM Bank #1 */
 #define PHYS_SDRAM_1_SIZE      0x08000000      /* 128 MB */
-#define CONFIG_SYS_SDRAM_BASE  PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE     PHYS_SDRAM_1
 
 /*
  * FLASH and environment organization
index a2e50c3..5a769e0 100644 (file)
  *   :           :
  *   :          Specified explicitly by CONFIG_CUSTOM_SYS_INIT_SP_ADDR
  *   :
- *  Specified explicitly by CONFIG_SYS_SDRAM_BASE
+ *  Specified explicitly by CFG_SYS_SDRAM_BASE
  *
  *  NOTES:
  *    - Stack starts from CONFIG_CUSTOM_SYS_INIT_SP_ADDR and grows down,
- *      i.e. towards CONFIG_SYS_SDRAM_BASE but nothing stops it from crossing
- *      that CONFIG_SYS_SDRAM_BASE in which case data won't be really saved on
+ *      i.e. towards CFG_SYS_SDRAM_BASE but nothing stops it from crossing
+ *      that CFG_SYS_SDRAM_BASE in which case data won't be really saved on
  *      stack any longer and values popped from stack will contain garbage
  *      leading to unexpected behavior, typically but not limited to:
  *        - "Returning" back to bogus caller function
 #define DCCM_BASE                      0x80000000
 #define DCCM_SIZE                      SZ_128K
 
-#define CONFIG_SYS_SDRAM_BASE          DCCM_BASE
-#define CONFIG_SYS_SDRAM_SIZE          DCCM_SIZE
+#define CFG_SYS_SDRAM_BASE             DCCM_BASE
+#define CFG_SYS_SDRAM_SIZE             DCCM_SIZE
 
 #define ROM_BASE                       CONFIG_SYS_MONITOR_BASE
 #define ROM_SIZE                       SZ_256K
 
 #define RAM_DATA_BASE                  SYS_INIT_SP_ADDR
-#define RAM_DATA_SIZE                  CONFIG_SYS_SDRAM_SIZE - \
+#define RAM_DATA_SIZE                  CFG_SYS_SDRAM_SIZE - \
                                        (SYS_INIT_SP_ADDR - \
-                                       CONFIG_SYS_SDRAM_BASE) - \
+                                       CFG_SYS_SDRAM_BASE) - \
                                        CONFIG_SYS_MALLOC_LEN - \
                                        CONFIG_ENV_SIZE
 #endif /* _CONFIG_IOT_DEVKIT_H_ */
index 9f54f25..2a0b0c7 100644 (file)
@@ -16,7 +16,7 @@
 #include <environment/ti/k3_dfu.h>
 
 /* DDR Configuration */
-#define CONFIG_SYS_SDRAM_BASE1         0x880000000
+#define CFG_SYS_SDRAM_BASE1            0x880000000
 /* FLASH Configuration */
 #define CONFIG_SYS_FLASH_BASE          0x000000000
 
index 932d7d3..e690ef9 100644 (file)
@@ -17,7 +17,7 @@
 #include <environment/ti/k3_dfu.h>
 
 /* DDR Configuration */
-#define CONFIG_SYS_SDRAM_BASE1         0x880000000
+#define CFG_SYS_SDRAM_BASE1            0x880000000
 
 /* SPL Loader Configuration */
 #if defined(CONFIG_TARGET_J721S2_A72_EVM) || defined(CONFIG_TARGET_J7200_A72_EVM)
index 7d36a25..db1daee 100644 (file)
@@ -7,7 +7,7 @@
 /*
  * DDR Setup
  */
-#define CONFIG_SYS_SDRAM_BASE          0x00000000 /* DDR is system memory */
+#define CFG_SYS_SDRAM_BASE             0x00000000 /* DDR is system memory */
 
 #define CONFIG_SYS_DDR_SDRAM_CLK_CNTL  (DDR_SDRAM_CLK_CNTL_SS_EN | \
                                        DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05)
@@ -17,7 +17,7 @@
 /*
  * Manually set up DDR parameters
  */
-#define CONFIG_SYS_SDRAM_SIZE          0x80000000 /* 2048 MiB */
+#define CFG_SYS_SDRAM_SIZE             0x80000000 /* 2048 MiB */
 
 /*
  * The reserved memory
index ad9853a..b5913ed 100644 (file)
@@ -20,7 +20,7 @@
 #define PHYS_SDRAM_SIZE                        (1u * 1024 * 1024 * 1024)
 
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000UL
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 
 #define SPD_EEPROM_ADDRESS             0x54
 
index c8423fd..dbf038c 100644 (file)
  */
 #define CONFIG_VERY_BIG_RAM
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 
 #define SPD_EEPROM_ADDRESS     0x54
-#define CONFIG_SYS_SDRAM_SIZE  4096    /* for fixed parameter use */
+#define CFG_SYS_SDRAM_SIZE     4096    /* for fixed parameter use */
 
 /******************************************************************************
  * (PRAM usage)
index b3e1fc2..e2808ec 100644 (file)
@@ -14,7 +14,7 @@
 
 /* RAM */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
index a2aedef..73b5951 100644 (file)
@@ -17,7 +17,7 @@
 /* RAM */
 #define PHYS_SDRAM                     DDR_CSD1_BASE_ADDR
 #define PHYS_SDRAM_SIZE                        (SZ_4G)
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 
 #define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
 #define CONFIG_SYS_INIT_RAM_SIZE       0x200000
index 6acd2f7..9b45281 100644 (file)
@@ -64,7 +64,7 @@
 #define CONFIG_SYS_INIT_RAM_ADDR        0x40000000
 #define CONFIG_SYS_INIT_RAM_SIZE        0x80000
 
-#define CONFIG_SYS_SDRAM_BASE           0x40000000
+#define CFG_SYS_SDRAM_BASE           0x40000000
 #define PHYS_SDRAM                      0x40000000
 #define PHYS_SDRAM_SIZE                        0xC0000000 /* 3GB DDR */
 
index 7ed1f15..bbf0761 100644 (file)
@@ -21,7 +21,7 @@
 #define CONFIG_VERY_BIG_RAM
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000
 #define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY 0
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_SYS_DDR_BLOCK2_BASE     0x2080000000ULL
 
 /* early stack pointer */
index c401fd3..967de66 100644 (file)
@@ -67,7 +67,7 @@
 #define PHYS_SDRAM_1_SIZE              (512 * SZ_1M)
 #define PHYS_SDRAM_SIZE                (PHYS_SDRAM_1_SIZE)
 
-#define CONFIG_SYS_SDRAM_BASE          (PHYS_SDRAM_1)
+#define CFG_SYS_SDRAM_BASE             (PHYS_SDRAM_1)
 #define CONFIG_SYS_INIT_RAM_ADDR       (IRAM_BASE_ADDR)
 #define CONFIG_SYS_INIT_RAM_SIZE       (IRAM_SIZE)
 
index b0e49ad..de1fc0b 100644 (file)
@@ -86,7 +86,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 1f642fb..bee064c 100644 (file)
@@ -85,7 +85,7 @@
        "bootscript=source ${bootscraddr}\0"
 
 /* additions for new relocation code, must added to all boards */
-#define CONFIG_SYS_SDRAM_BASE          0xc0000000
+#define CFG_SYS_SDRAM_BASE             0xc0000000
 
 #include <asm/arch/hardware.h>
 
index dbd7d10..3a2c508 100644 (file)
@@ -82,7 +82,7 @@
 #define CONFIG_SYS_INIT_RAM_ADDR        0x40000000
 #define CONFIG_SYS_INIT_RAM_SIZE        0x80000
 
-#define CONFIG_SYS_SDRAM_BASE           0x40000000
+#define CFG_SYS_SDRAM_BASE           0x40000000
 #define PHYS_SDRAM                      0x40000000
 #define PHYS_SDRAM_SIZE                        0xc0000000 /* 3GB LPDDR4 one Rank */
 
index 28372d4..b913450 100644 (file)
@@ -7,7 +7,7 @@
 #define __CONFIG_LINKIT_SMART_7688_H
 
 /* RAM */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 #define CONFIG_SYS_INIT_SP_OFFSET      0x400000
 
index 1d51b87..d1ebd99 100644 (file)
@@ -87,7 +87,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 196e024..f0a9e9a 100644 (file)
@@ -9,7 +9,7 @@
 #include "ls1012a_common.h"
 
 /* DDR */
-#define CONFIG_SYS_SDRAM_SIZE          0x40000000
+#define CFG_SYS_SDRAM_SIZE             0x40000000
 
 #undef CONFIG_EXTRA_ENV_SETTINGS
 #define CONFIG_EXTRA_ENV_SETTINGS              \
index 809f9ae..0712437 100644 (file)
@@ -12,7 +12,7 @@
 
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000
 #define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY 0
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_SYS_DDR_BLOCK2_BASE     0x880000000ULL
 
 /*SPI device */
index 674bcbe..c19ed2f 100644 (file)
@@ -10,7 +10,7 @@
 #include "ls1012a_common.h"
 
 /* DDR */
-#define CONFIG_SYS_SDRAM_SIZE          0x20000000
+#define CFG_SYS_SDRAM_SIZE             0x20000000
 
 #undef BOOT_TARGET_DEVICES
 #define BOOT_TARGET_DEVICES(func) \
index 9ad3a12..54555b3 100644 (file)
@@ -10,7 +10,7 @@
 #include "ls1012a_common.h"
 
 /* DDR */
-#define CONFIG_SYS_SDRAM_SIZE          0x40000000
+#define CFG_SYS_SDRAM_SIZE             0x40000000
 
 /*
  * QIXIS Definitions
index 4f77acd..d74936d 100644 (file)
@@ -10,7 +10,7 @@
 #include "ls1012a_common.h"
 
 /* DDR */
-#define CONFIG_SYS_SDRAM_SIZE          0x40000000
+#define CFG_SYS_SDRAM_SIZE             0x40000000
 
 /*
  * I2C IO expander
index 3579f9c..49a77fd 100644 (file)
@@ -42,7 +42,7 @@
 #define SDRAM_CFG_BI                   0x00000001
 
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000UL
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 
 /*
  * Serial Port
index 4566511..1f5a80f 100644 (file)
@@ -20,7 +20,7 @@
 #define SPD_EEPROM_ADDRESS             0x51
 
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000UL
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 
 #ifdef CONFIG_DDR_ECC
 #define CONFIG_MEM_INIT_VALUE           0xdeadbeef
index 1e2db12..4954606 100644 (file)
@@ -57,7 +57,7 @@
 #define PHYS_SDRAM_SIZE                        (1u * 1024 * 1024 * 1024)
 
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000UL
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 
 /* Serial Port */
 #define CFG_SYS_NS16550_CLK            get_serial_clock()
index 323feb6..d772249 100644 (file)
@@ -60,7 +60,7 @@
 #define PHYS_SDRAM_SIZE                        (1u * 1024 * 1024 * 1024)
 
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000UL
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 
 /*
  * IFC Definitions
index 587f23b..064c4f0 100644 (file)
@@ -15,7 +15,7 @@
 #define CONFIG_VERY_BIG_RAM
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000UL
 #define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY 0
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_SYS_DDR_BLOCK2_BASE     0x2080000000ULL
 
 /*
index df63382..e940dff 100644 (file)
@@ -34,7 +34,7 @@
 #define CONFIG_VERY_BIG_RAM
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000
 #define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY 0
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_SYS_DDR_BLOCK2_BASE      0x880000000ULL
 
 #define CPU_RELEASE_ADDR               secondary_boot_addr
index b09588f..ce254d8 100644 (file)
@@ -34,7 +34,7 @@
 #define CONFIG_VERY_BIG_RAM
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000
 #define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY 0
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_SYS_DDR_BLOCK2_BASE      0x880000000ULL
 
 #define CPU_RELEASE_ADDR               secondary_boot_addr
index 2117b08..f8eaee8 100644 (file)
@@ -32,7 +32,7 @@
 #define CONFIG_VERY_BIG_RAM
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000UL
 #define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY 0
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_SYS_DDR_BLOCK2_BASE     0x8080000000ULL
 /*
  * SMP Definitinos
index c79a507..21c097e 100644 (file)
@@ -19,7 +19,7 @@
 #define CONFIG_VERY_BIG_RAM
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000UL
 #define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY 0
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_SYS_DDR_BLOCK2_BASE     0x8080000000ULL
 
 /*
index 8b2b747..ad85e2d 100644 (file)
@@ -17,8 +17,8 @@
 #define CONFIG_SYS_DDR_SDRAM_BASE              0x80000000UL
 #define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY 0
 #define CONFIG_SYS_DDR_BLOCK2_BASE             0x2080000000ULL
-#define CONFIG_SYS_SDRAM_SIZE                  0x200000000UL
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_SIZE                     0x200000000UL
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_MEM_INIT_VALUE          0xdeadbeef
 #define SPD_EEPROM_ADDRESS1            0x51
 #define SPD_EEPROM_ADDRESS2            0x52
index 1734f32..cbdb2fa 100644 (file)
@@ -20,7 +20,7 @@
 #define PHYS_SDRAM_2_SIZE              (gd->bd->bi_dram[1].size)
 #define PHYS_SDRAM_SIZE                        (gd->ram_size)
 
-#define CONFIG_SYS_SDRAM_BASE          (PHYS_SDRAM_1)
+#define CFG_SYS_SDRAM_BASE             (PHYS_SDRAM_1)
 #define CONFIG_SYS_INIT_RAM_ADDR       (IRAM_BASE_ADDR)
 #define CONFIG_SYS_INIT_RAM_SIZE       (IRAM_SIZE)
 
index 2dd34ea..c9aee00 100644 (file)
  */
 
 #ifdef CONFIG_64BIT
-# define CONFIG_SYS_SDRAM_BASE         0xffffffff80000000
+# define CFG_SYS_SDRAM_BASE            0xffffffff80000000
 #else
-# define CONFIG_SYS_SDRAM_BASE         0x80000000
+# define CFG_SYS_SDRAM_BASE            0x80000000
 #endif
-#define CONFIG_SYS_SDRAM_SIZE          0x10000000      /* 256 MiB */
+#define CFG_SYS_SDRAM_SIZE             0x10000000      /* 256 MiB */
 
 #define CONFIG_SYS_INIT_SP_OFFSET      0x400000
 
index db84302..5ad945b 100644 (file)
@@ -47,6 +47,6 @@
  */
 
 /* Enable DDR support in SPL (DDR3 training from Marvell bin_hdr) */
-#define CONFIG_SYS_SDRAM_SIZE          SZ_1G
+#define CFG_SYS_SDRAM_SIZE             SZ_1G
 
 #endif /* _CONFIG_DB_MV7846MP_GP_H */
index f9f0825..8aa3b0c 100644 (file)
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index c6ce883..2422cbf 100644 (file)
@@ -17,7 +17,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index cd3910e..2e07886 100644 (file)
@@ -44,8 +44,8 @@
 #define PHYS_SDRAM                                     ATMEL_BASE_CS1 /* 0x20000000 */
 #define PHYS_SDRAM_SIZE                                0x02000000     /* 32 MByte */
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
-#define CONFIG_SYS_SDRAM_SIZE          PHYS_SDRAM_SIZE
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
+#define CFG_SYS_SDRAM_SIZE             PHYS_SDRAM_SIZE
 
 #define CONFIG_SYS_INIT_RAM_ADDR       ATMEL_BASE_SRAM0
 #define CONFIG_SYS_INIT_RAM_SIZE       (16 * 1024)
index 726f33c..6331b76 100644 (file)
@@ -36,7 +36,7 @@
 #define STDIN_CFG "serial"
 #endif
 
-#define CONFIG_SYS_SDRAM_BASE          0
+#define CFG_SYS_SDRAM_BASE             0
 
 /* ROM USB boot support, auto-execute boot.scr at scriptaddr */
 #define BOOTENV_DEV_ROMUSB(devtypeu, devtypel, instance) \
index 4c7cfac..3def93d 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <linux/sizes.h>
 
-#define CONFIG_SYS_SDRAM_BASE       0x80000000
+#define CFG_SYS_SDRAM_BASE       0x80000000
 
 #define CONFIG_STANDALONE_LOAD_ADDR 0x80200000
 
index bd35378..ac5ff92 100644 (file)
@@ -49,7 +49,7 @@
 #define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
 #define CONFIG_SYS_INIT_RAM_SIZE       0x80000
 
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 #define PHYS_SDRAM                     0x40000000
 #define PHYS_SDRAM_SIZE                        0x80000000 /* 2GB DDR */
 #define PHYS_SDRAM_2                   0xc0000000
index c76e1fc..65cd6f5 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef __CONFIG_MT7620_H
 #define __CONFIG_MT7620_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 #define CONFIG_SYS_INIT_SP_OFFSET      0x400000
 
index e09e9c8..1211bb4 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef __CONFIG_MT7621_H
 #define __CONFIG_MT7621_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 #define CONFIG_VERY_BIG_RAM
 #define CONFIG_MAX_MEM_MAPPED          0x1c000000
index fd8e30a..e5d60e1 100644 (file)
@@ -15,7 +15,7 @@
 /* SPL -> Uboot */
 #define CONFIG_SYS_UBOOT_START         CONFIG_TEXT_BASE
 /* DRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 
 /* Ethernet */
 #define CONFIG_IPADDR                  192.168.1.1
index 73093f9..39a7ba7 100644 (file)
@@ -21,7 +21,7 @@
 #define MMC_SUPPORTS_TUNING
 
 /* DRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /* This is needed for kernel booting */
 #define FDT_HIGH                       "0xac000000"
index bb12ebf..9c5034f 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef __CONFIG_MT7628_H
 #define __CONFIG_MT7628_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 #define CONFIG_SYS_INIT_SP_OFFSET      0x80000
 
index 668dc3c..d330adb 100644 (file)
@@ -25,7 +25,7 @@
 /* UBoot -> Kernel */
 
 /* DRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 
 /* Ethernet */
 #define CONFIG_IPADDR                  192.168.1.1
index 9f26b0b..249f0b9 100644 (file)
@@ -16,6 +16,6 @@
 #define CONFIG_SYS_UBOOT_START         CONFIG_TEXT_BASE
 
 /* DRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 
 #endif
index 4fbd57a..990e411 100644 (file)
@@ -16,6 +16,6 @@
 #define CONFIG_SYS_UBOOT_START         CONFIG_TEXT_BASE
 
 /* DRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 
 #endif
index 7cabbef..8a8bc85 100644 (file)
@@ -10,8 +10,8 @@
 #define __MT8518_H
 
 /* DRAM definition */
-#define CONFIG_SYS_SDRAM_BASE                  0x40000000
-#define CONFIG_SYS_SDRAM_SIZE                  0x20000000
+#define CFG_SYS_SDRAM_BASE                     0x40000000
+#define CFG_SYS_SDRAM_SIZE                     0x20000000
 
 /* Uboot definition */
 
index e870fc8..e45bfd7 100644 (file)
@@ -27,7 +27,7 @@
  */
 
 /* additions for new ARM relocation support */
-#define CONFIG_SYS_SDRAM_BASE  0x00000000
+#define CFG_SYS_SDRAM_BASE     0x00000000
 
 /*
  * NS16550 Configuration
index 41bdfae..9c4038b 100644 (file)
@@ -9,7 +9,7 @@
 #include <asm/arch/soc.h>
 
 /* additions for new ARM relocation support */
-#define CONFIG_SYS_SDRAM_BASE   0x200000000
+#define CFG_SYS_SDRAM_BASE   0x200000000
 
 #define CONFIG_SYS_BAUDRATE_TABLE   { 9600, 19200, 38400, 57600, \
                                      115200, 230400, 460800, 921600 }
index 6d3cb99..7641b56 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 /* additions for new ARM relocation support */
-#define CONFIG_SYS_SDRAM_BASE  0x00000000
+#define CFG_SYS_SDRAM_BASE     0x00000000
 
 #define CONFIG_SYS_BAUDRATE_TABLE      { 300, 600, 1200, 1800, 2400, 4800, \
                                          9600, 19200, 38400, 57600, 115200, \
index 5debd91..358e06f 100644 (file)
@@ -12,7 +12,7 @@
 #define CONFIG_SYS_TCLK                250000000       /* 250MHz */
 
 /* additions for new ARM relocation support */
-#define CONFIG_SYS_SDRAM_BASE  0x00000000
+#define CFG_SYS_SDRAM_BASE     0x00000000
 
 /* auto boot */
 
index dd303a1..aa3d7a1 100644 (file)
@@ -10,7 +10,7 @@
 /* Memory configuration */
 #define PHYS_SDRAM_1                   0x40000000      /* Base address */
 #define PHYS_SDRAM_1_SIZE              0x08000000      /* Max 128 MB RAM */
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 
 /* Status LED */
 
index 4c05312..f597cdb 100644 (file)
@@ -13,7 +13,7 @@
 /* Memory configuration */
 #define PHYS_SDRAM_1                   0x40000000      /* Base address */
 #define PHYS_SDRAM_1_SIZE              0x08000000      /* Max 128 MB RAM */
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 
 /* Extra Environments */
 #define CONFIG_EXTRA_ENV_SETTINGS \
index 140f5e9..bc8c893 100644 (file)
@@ -13,7 +13,7 @@
 /* Memory configuration */
 #define PHYS_SDRAM_1                   0x40000000      /* Base address */
 #define PHYS_SDRAM_1_SIZE              0x40000000      /* Max 1 GB RAM */
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 
 /* UBI and NAND partitioning */
 
index 95afb35..2229980 100644 (file)
 #define PHYS_SDRAM_1           CSD0_BASE_ADDR
 #define PHYS_SDRAM_1_SIZE      (512 * 1024 * 1024)
 
-#define CONFIG_SYS_SDRAM_BASE          (PHYS_SDRAM_1)
+#define CFG_SYS_SDRAM_BASE             (PHYS_SDRAM_1)
 #define CONFIG_SYS_INIT_RAM_ADDR       (IRAM_BASE_ADDR)
 #define CONFIG_SYS_INIT_RAM_SIZE       (IRAM_SIZE)
 
index 7783563..e84bac6 100644 (file)
@@ -60,7 +60,7 @@
 #define PHYS_SDRAM_2_SIZE              (gd->bd->bi_dram[1].size)
 #define PHYS_SDRAM_SIZE                        (gd->ram_size)
 
-#define CONFIG_SYS_SDRAM_BASE          (PHYS_SDRAM_1)
+#define CFG_SYS_SDRAM_BASE             (PHYS_SDRAM_1)
 #define CONFIG_SYS_INIT_RAM_ADDR       (IRAM_BASE_ADDR)
 #define CONFIG_SYS_INIT_RAM_SIZE       (IRAM_SIZE)
 
index 3c9b2ad..9e837a3 100644 (file)
@@ -95,7 +95,7 @@
 #define PHYS_SDRAM_2_SIZE              (gd->bd->bi_dram[1].size)
 #define PHYS_SDRAM_SIZE                        (gd->ram_size)
 
-#define CONFIG_SYS_SDRAM_BASE          (PHYS_SDRAM_1)
+#define CFG_SYS_SDRAM_BASE             (PHYS_SDRAM_1)
 #define CONFIG_SYS_INIT_RAM_ADDR       (IRAM_BASE_ADDR)
 #define CONFIG_SYS_INIT_RAM_SIZE       (IRAM_SIZE)
 
index b26613a..52ff7b0 100644 (file)
@@ -96,7 +96,7 @@
 #define PHYS_SDRAM_2_SIZE              (gd->bd->bi_dram[1].size)
 #define PHYS_SDRAM_SIZE                        (gd->ram_size)
 
-#define CONFIG_SYS_SDRAM_BASE          (PHYS_SDRAM_1)
+#define CFG_SYS_SDRAM_BASE             (PHYS_SDRAM_1)
 #define CONFIG_SYS_INIT_RAM_ADDR       (IRAM_BASE_ADDR)
 #define CONFIG_SYS_INIT_RAM_SIZE       (IRAM_SIZE)
 
index 1db4d6c..3c4ba09 100644 (file)
@@ -85,7 +85,7 @@
 #include <config_distro_bootcmd.h>
 
 /* Physical Memory Map */
-#define CONFIG_SYS_SDRAM_BASE          MMDC0_ARB_BASE_ADDR
+#define CFG_SYS_SDRAM_BASE          MMDC0_ARB_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index a6cefab..9c160c4 100644 (file)
@@ -27,7 +27,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                    MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE         PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE            PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index bc9fab1..711b5a3 100644 (file)
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE          PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index ca1d077..3c2621d 100644 (file)
@@ -82,7 +82,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 44a5eef..a3a12ae 100644 (file)
@@ -82,7 +82,7 @@
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 #define PHYS_SDRAM_SIZE                        SZ_2G
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index a41e428..f0e239f 100644 (file)
@@ -78,7 +78,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index c655671..a0f9c53 100644 (file)
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 65f0a5c..8199b4b 100644 (file)
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 604923e..827385c 100644 (file)
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index af17658..c39b357 100644 (file)
@@ -81,7 +81,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 62e8e62..362de48 100644 (file)
@@ -26,7 +26,7 @@
 /* Physical Memory Map */
 
 #define PHYS_SDRAM                     0x60000000
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "image=zImage\0" \
index e938249..9ef1eea 100644 (file)
@@ -26,7 +26,7 @@
 
 #define PHYS_SDRAM                     0x60000000
 #define PHYS_SDRAM_SIZE                        SZ_1G
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "script=boot.scr\0" \
index 273f938..cdd1286 100644 (file)
@@ -22,7 +22,7 @@
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 #define PHYS_SDRAM_SIZE                        SZ_256M
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index ec5339d..9d09811 100644 (file)
@@ -90,7 +90,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                    MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE         PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE            PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 2623f99..9ad4f59 100644 (file)
  * FLASH and environment organization
  */
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 #define CONFIG_SYS_INIT_RAM_ADDR       0x4020f800
 #define CONFIG_SYS_INIT_RAM_SIZE       0x800
 
  */
 
 #define SDRAM_SIZE                     0x10000000      /* 256 MB */
-#define SDRAM_END                      (CONFIG_SYS_SDRAM_BASE + SDRAM_SIZE)
+#define SDRAM_END                      (CFG_SYS_SDRAM_BASE + SDRAM_SIZE)
 
 #define IMAGE_MAXSIZE                  0x1FF800        /* 2 MB - 2 kB */
 #define KERNEL_OFFSET                  0x40000         /* 256 kB */
index 9dc05d8..8d39d75 100644 (file)
@@ -30,7 +30,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index ea407c9..080c659 100644 (file)
@@ -23,7 +23,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index d469ef8..b930a53 100644 (file)
@@ -13,8 +13,8 @@
  */
 
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
-#define CONFIG_SYS_SDRAM_SIZE          SZ_256M
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_SIZE             SZ_256M
 
 /*
  * Console configuration
index 00f7d87..5ac951a 100644 (file)
@@ -7,7 +7,7 @@
 #include "mx6_common.h"
 
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 0fa7490..b475354 100644 (file)
@@ -14,6 +14,6 @@
 #define CONFIG_SYS_INIT_SP_OFFSET      0x00180000
 #endif
 
-#define CONFIG_SYS_SDRAM_BASE          0xffffffff80000000
+#define CFG_SYS_SDRAM_BASE             0xffffffff80000000
 
 #endif /* __OCTEON_COMMON_H__ */
index ab1eb78..03d1a8e 100644 (file)
@@ -10,7 +10,7 @@
 /** Maximum size of image supported for bootm (and bootable FIT images) */
 
 /** Memory base address */
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_TEXT_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_TEXT_BASE
 
 /** Stack starting address */
 
index 38f99ab..58275cc 100644 (file)
@@ -36,7 +36,7 @@
 /** Maximum size of image supported for bootm (and bootable FIT images) */
 
 /** Memory base address */
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_TEXT_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_TEXT_BASE
 
 /** Stack starting address */
 
index babd3ca..ce8ea58 100644 (file)
@@ -17,9 +17,9 @@
 #define CONFIG_SYS_PL310_BASE  0x10502000
 #endif
 
-#define CONFIG_SYS_SDRAM_BASE  0x40000000
+#define CFG_SYS_SDRAM_BASE     0x40000000
 #define SDRAM_BANK_SIZE                (256 << 20)     /* 256 MB */
-#define PHYS_SDRAM_1           CONFIG_SYS_SDRAM_BASE
+#define PHYS_SDRAM_1           CFG_SYS_SDRAM_BASE
 
 #include <linux/sizes.h>
 
index 1564629..d2d7fca 100644 (file)
@@ -10,7 +10,7 @@
 #include <configs/exynos5420-common.h>
 #include <configs/exynos5-common.h>
 
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 
 #define TZPC_BASE_OFFSET               0x10000
 
index 2b47d4c..5b0d87a 100644 (file)
 /* defines for SPL */
 
 /* additions for new relocation code, must added to all boards */
-#define CONFIG_SYS_SDRAM_BASE          0xc0000000
+#define CFG_SYS_SDRAM_BASE             0xc0000000
 
 #include <asm/arch/hardware.h>
 
index 3ff8187..5b097e9 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/sizes.h>
 
 /* Environment options */
-#define CONFIG_SYS_SDRAM_BASE 0x80000000
+#define CFG_SYS_SDRAM_BASE 0x80000000
 
 /* ---------------------------------------------------------------------
  * Board boot configuration
index b3cdd2f..53889d6 100644 (file)
@@ -14,7 +14,7 @@
 #define CONFIG_STANDALONE_LOAD_ADDR    CONFIG_SYS_LOAD_ADDR
 
 /* Physical Memory Map */
-#define CONFIG_SYS_SDRAM_BASE          MMDC0_ARB_BASE_ADDR
+#define CFG_SYS_SDRAM_BASE             MMDC0_ARB_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 36aaa7c..6633d54 100644 (file)
@@ -11,8 +11,8 @@
 #include <configs/exynos4-common.h>
 
 /* ORIGEN has 4 bank of DRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
-#define PHYS_SDRAM_1                   CONFIG_SYS_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             0x40000000
+#define PHYS_SDRAM_1                   CFG_SYS_SDRAM_BASE
 #define SDRAM_BANK_SIZE                        (256 << 20)     /* 256 MB */
 
 /* Power Down Modes */
index b0233b9..8d0311c 100644 (file)
@@ -11,7 +11,7 @@
 #define _OWL_COMMON_CONFIG_H_
 
 /* SDRAM Definitions */
-#define CONFIG_SYS_SDRAM_BASE          0x0
+#define CFG_SYS_SDRAM_BASE             0x0
 
 /* Some commands use this as the default load address */
 
index 6e8ac1b..14d702e 100644 (file)
 #define SPD_EEPROM_ADDRESS 0x52
 
 #if defined(CONFIG_TARGET_P1020RDB_PD)
-#define CONFIG_SYS_SDRAM_SIZE_LAW      LAW_SIZE_2G
+#define CFG_SYS_SDRAM_SIZE_LAW LAW_SIZE_2G
 #else
-#define CONFIG_SYS_SDRAM_SIZE_LAW      LAW_SIZE_1G
+#define CFG_SYS_SDRAM_SIZE_LAW LAW_SIZE_1G
 #endif
-#define CONFIG_SYS_SDRAM_SIZE          (1u << (CONFIG_SYS_SDRAM_SIZE_LAW - 19))
+#define CFG_SYS_SDRAM_SIZE             (1u << (CFG_SYS_SDRAM_SIZE_LAW - 19))
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 
 /* Default settings for DDR3 */
 #ifndef CONFIG_TARGET_P2020RDB
index 6267dc7..85cedde 100644 (file)
@@ -34,7 +34,7 @@
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 #define PHYS_SDRAM_SIZE                        SZ_256M
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index e13b5df..f7e36f2 100644 (file)
@@ -36,7 +36,7 @@
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 #define PHYS_SDRAM_SIZE                        SZ_256M
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index a04a03a..586cddf 100644 (file)
 #define PHYS_SDRAM                     (0x80000000)
 #define PHYS_SDRAM_SIZE                        (CONFIG_PCM052_DDR_SIZE * SZ_1M)
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 14cbfde..cf705dc 100644 (file)
@@ -15,7 +15,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE          PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 7a8d3c6..bfc0011 100644 (file)
@@ -20,7 +20,7 @@
 #include <configs/exynos5-dt-common.h>
 #include <configs/exynos5-common.h>
 
-#define CONFIG_SYS_SDRAM_BASE  0x20000000
+#define CFG_SYS_SDRAM_BASE     0x20000000
 
 #define CONFIG_POWER_TPS65090_EC
 
index 2c749ac..09c6b4f 100644 (file)
@@ -20,7 +20,7 @@
 #include <configs/exynos5-dt-common.h>
 #include <configs/exynos5-common.h>
 
-#define CONFIG_SYS_SDRAM_BASE  0x20000000
+#define CFG_SYS_SDRAM_BASE     0x20000000
 
 /* DRAM Memory Banks */
 #define SDRAM_BANK_SIZE                (512UL << 20UL) /* 512 MB */
index c98393b..ac68c93 100644 (file)
@@ -64,7 +64,7 @@
 #define CONFIG_SYS_INIT_RAM_SIZE       SZ_512K
 
 
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 
 #define PHYS_SDRAM                     0x40000000
 #define PHYS_SDRAM_SIZE                 SZ_2G /* 2GB DDR */
index 49cd9d4..aedaf80 100644 (file)
@@ -63,7 +63,7 @@
 #define CONFIG_SYS_INIT_RAM_SIZE       SZ_512K
 
 
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 
 #define PHYS_SDRAM                     0x40000000
 #define PHYS_SDRAM_SIZE                        0x80000000
index 4ea16d6..d9abbbc 100644 (file)
@@ -23,7 +23,7 @@
        (CONFIG_SYS_SRAM_BASE + CONFIG_SYS_SRAM_SIZE - CONFIG_SYS_INIT_RAM_SIZE)
 
 /* SDRAM Configuration (for final code, data, stack, heap) */
-#define CONFIG_SYS_SDRAM_BASE          0x88000000
+#define CFG_SYS_SDRAM_BASE             0x88000000
 
 /* Memory Test */
 
index f95beeb..fc2cab9 100644 (file)
@@ -91,7 +91,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 85772ba..22b4976 100644 (file)
@@ -91,7 +91,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index b3a38d8..f5b9eed 100644 (file)
@@ -93,7 +93,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 17af19d..91baff9 100644 (file)
@@ -67,7 +67,7 @@
 #define CONFIG_SYS_INIT_RAM_SIZE       0x80000
 
 
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 #define PHYS_SDRAM                     0x40000000
 #define PHYS_SDRAM_SIZE                        0x80000000      /* 2 GiB DDR */
 
index adb2f43..3fbddd9 100644 (file)
 /* Memory Device Register -> SDRAM */
 #define CONFIG_SYS_SDRC_MDR_VAL                AT91_SDRAMC_MD_SDRAM
 #define CONFIG_SYS_SDRC_MR_VAL2                AT91_SDRAMC_MODE_PRECHARGE
-#define CONFIG_SYS_SDRAM_VAL1          0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL1             0               /* SDRAM_BASE */
 #define CONFIG_SYS_SDRC_MR_VAL3                AT91_SDRAMC_MODE_REFRESH
-#define CONFIG_SYS_SDRAM_VAL2          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL3          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL4          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL5          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL6          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL7          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL8          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL9          0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL2             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL3             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL4             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL5             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL6             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL7             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL8             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL9             0               /* SDRAM_BASE */
 #define CONFIG_SYS_SDRC_MR_VAL4                AT91_SDRAMC_MODE_LMR
-#define CONFIG_SYS_SDRAM_VAL10         0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL10            0               /* SDRAM_BASE */
 #define CONFIG_SYS_SDRC_MR_VAL5                AT91_SDRAMC_MODE_NORMAL
-#define CONFIG_SYS_SDRAM_VAL11         0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL11            0               /* SDRAM_BASE */
 #define CONFIG_SYS_SDRC_TR_VAL2                1200            /* SDRAM_TR */
-#define CONFIG_SYS_SDRAM_VAL12         0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL12            0               /* SDRAM_BASE */
 
 /* setup SMC0, CS0 (NOR Flash) - 16-bit, 15 WS */
 #define CONFIG_SYS_SMC0_SETUP0_VAL                                     \
        "flashboot=run ramargs;run addip;bootm 0x10050000\0"    \
        ""
 
-#define CONFIG_SYS_SDRAM_BASE  PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE     PHYS_SDRAM
 
 #endif
index 4352a24..c1f6334 100644 (file)
 /* Memory Device Register -> SDRAM */
 #define CONFIG_SYS_SDRC_MDR_VAL                AT91_SDRAMC_MD_SDRAM
 #define CONFIG_SYS_SDRC_MR_VAL2                AT91_SDRAMC_MODE_PRECHARGE
-#define CONFIG_SYS_SDRAM_VAL1          0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL1             0               /* SDRAM_BASE */
 #define CONFIG_SYS_SDRC_MR_VAL3                AT91_SDRAMC_MODE_REFRESH
-#define CONFIG_SYS_SDRAM_VAL2          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL3          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL4          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL5          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL6          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL7          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL8          0               /* SDRAM_BASE */
-#define CONFIG_SYS_SDRAM_VAL9          0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL2             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL3             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL4             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL5             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL6             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL7             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL8             0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL9             0               /* SDRAM_BASE */
 #define CONFIG_SYS_SDRC_MR_VAL4                AT91_SDRAMC_MODE_LMR
-#define CONFIG_SYS_SDRAM_VAL10         0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL10            0               /* SDRAM_BASE */
 #define CONFIG_SYS_SDRC_MR_VAL5                AT91_SDRAMC_MODE_NORMAL
-#define CONFIG_SYS_SDRAM_VAL11         0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL11            0               /* SDRAM_BASE */
 #define CONFIG_SYS_SDRC_TR_VAL2                1200            /* SDRAM_TR */
-#define CONFIG_SYS_SDRAM_VAL12         0               /* SDRAM_BASE */
+#define CFG_SYS_SDRAM_VAL12            0               /* SDRAM_BASE */
 
 /* setup SMC0, CS0 (NOR Flash) - 16-bit, 15 WS */
 #define CONFIG_SYS_SMC0_SETUP0_VAL                                     \
        "flashboot=run ramargs;run addip;bootm 0x10050000\0"    \
        ""
 
-#define CONFIG_SYS_SDRAM_BASE  PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE     PHYS_SDRAM
 
 #endif
index a7deaa3..4a0a168 100644 (file)
@@ -20,8 +20,8 @@
 #define CONFIG_SYS_AT91_MAIN_CLOCK      12000000 /* from 12 MHz crystal */
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE           0x70000000
-#define CONFIG_SYS_SDRAM_SIZE          0x08000000
+#define CFG_SYS_SDRAM_BASE           0x70000000
+#define CFG_SYS_SDRAM_SIZE             0x08000000
 
 /* NAND flash */
 #ifdef CONFIG_CMD_NAND
index 05253d5..365fdd3 100644 (file)
@@ -11,7 +11,7 @@
 #endif
 
 #define CONFIG_SYS_BOOTMAPSZ            (0x30 << 20)
-#define CONFIG_SYS_SDRAM_BASE           0x0
+#define CFG_SYS_SDRAM_BASE           0x0
 
 /* Default environemnt variables */
 #define CONFIG_SERVERIP                 192.168.0.1
index 2e20654..1c11685 100644 (file)
@@ -9,7 +9,7 @@
 #define __POMELO_CONFIG_H__
 
 /* SDRAM Bank #1 start address */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /* SIZE of malloc pool */
 
index f9decb2..bee1ef6 100644 (file)
@@ -36,7 +36,7 @@
 #define DDR_BASE                       0x00000000
 #define PHYS_SDRAM_1                   DDR_BASE
 #define PHYS_SDRAM_1_SIZE              0x80000000 /* 2GB */
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 
 /* Console I/O Buffer Size */
 
index 8b151ef..9937615 100644 (file)
@@ -14,7 +14,7 @@
 #define GICD_BASE                      0xff131000
 #define GICC_BASE                      0xff132000
 
-#define CONFIG_SYS_SDRAM_BASE          0
+#define CFG_SYS_SDRAM_BASE             0
 #define SDRAM_MAX_SIZE                 0xff000000
 #define SDRAM_BANK_SIZE                        (2UL << 30)
 
index 535762e..a67af73 100644 (file)
@@ -10,7 +10,7 @@
 
 /* Physical memory map */
 
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 
 /* GUIDs for capsule updatable firmware images */
 #define QEMU_ARM_UBOOT_IMAGE_GUID \
index 9fc51fd..e7c8109 100644 (file)
@@ -31,7 +31,7 @@ extern unsigned long long get_phys_ccsrbar_addr_early(void);
  */
 #define CONFIG_VERY_BIG_RAM
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 
 #define CONFIG_HWCONFIG
 
index d81e5d6..72f35cc 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <linux/sizes.h>
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 #define CONFIG_STANDALONE_LOAD_ADDR    0x80200000
 
index 406ee62..f6ee720 100644 (file)
@@ -6,8 +6,8 @@
 /* SCIF */
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x8C000000
-#define CONFIG_SYS_SDRAM_SIZE          0x04000000
+#define CFG_SYS_SDRAM_BASE             0x8C000000
+#define CFG_SYS_SDRAM_SIZE             0x04000000
 
 /* Address of u-boot image in Flash */
 #define CONFIG_SYS_BOOTMAPSZ           (8 * 1024 * 1024)
index 3a38e06..61b9447 100644 (file)
@@ -17,8 +17,8 @@
 /* console */
 #define CONFIG_SYS_BAUDRATE_TABLE      { 38400, 115200 }
 
-#define CONFIG_SYS_SDRAM_BASE          (RCAR_GEN2_SDRAM_BASE)
-#define CONFIG_SYS_SDRAM_SIZE          (RCAR_GEN2_UBOOT_SDRAM_SIZE)
+#define CFG_SYS_SDRAM_BASE             (RCAR_GEN2_SDRAM_BASE)
+#define CFG_SYS_SDRAM_SIZE             (RCAR_GEN2_UBOOT_SDRAM_SIZE)
 
 /* Timer */
 #define CONFIG_TMU_TIMER
index 7432cff..5853072 100644 (file)
@@ -26,8 +26,8 @@
 /* MEMORY */
 
 #define DRAM_RSV_SIZE                  0x08000000
-#define CONFIG_SYS_SDRAM_BASE          (0x40000000 + DRAM_RSV_SIZE)
-#define CONFIG_SYS_SDRAM_SIZE          (0x80000000u - DRAM_RSV_SIZE)
+#define CFG_SYS_SDRAM_BASE             (0x40000000 + DRAM_RSV_SIZE)
+#define CFG_SYS_SDRAM_SIZE             (0x80000000u - DRAM_RSV_SIZE)
 #define CONFIG_VERY_BIG_RAM
 #define CONFIG_MAX_MEM_MAPPED          (0x80000000u - DRAM_RSV_SIZE)
 
index 6616396..b4c1972 100644 (file)
@@ -10,7 +10,7 @@
 
 #define CONFIG_SYS_HZ_CLOCK            24000000
 
-#define CONFIG_SYS_SDRAM_BASE          0x60000000
+#define CFG_SYS_SDRAM_BASE             0x60000000
 #define SDRAM_BANK_SIZE                        (512UL << 20UL)
 #define SDRAM_MAX_SIZE                  (CONFIG_NR_DRAM_BANKS * SDRAM_BANK_SIZE)
 
index 9297184..99c86ed 100644 (file)
@@ -11,7 +11,7 @@
 
 #define CONFIG_IRAM_BASE               0x10080000
 
-#define CONFIG_SYS_SDRAM_BASE          0x60000000
+#define CFG_SYS_SDRAM_BASE             0x60000000
 #define SDRAM_BANK_SIZE                        (1024UL << 20UL)
 #define SDRAM_MAX_SIZE                 CONFIG_NR_DRAM_BANKS * SDRAM_BANK_SIZE
 
index 12d4bc6..fac27a7 100644 (file)
@@ -14,7 +14,7 @@
 
 /* RAW SD card / eMMC locations. */
 
-#define CONFIG_SYS_SDRAM_BASE          0x60000000
+#define CFG_SYS_SDRAM_BASE             0x60000000
 #define SDRAM_MAX_SIZE                 0x80000000
 
 /* usb mass storage */
index 6fe1b2d..334fb3a 100644 (file)
@@ -13,7 +13,7 @@
 
 /* spl size 32kb sram - 2kb bootrom */
 
-#define CONFIG_SYS_SDRAM_BASE          0x60000000
+#define CFG_SYS_SDRAM_BASE             0x60000000
 #define SDRAM_BANK_SIZE                        (2UL << 30)
 #define SDRAM_MAX_SIZE                 0x80000000
 
index 4fb86b6..6889ba5 100644 (file)
@@ -12,7 +12,7 @@
 
 #define CONFIG_IRAM_BASE               0x10080000
 
-#define CONFIG_SYS_SDRAM_BASE          0x60000000
+#define CFG_SYS_SDRAM_BASE             0x60000000
 #define SDRAM_BANK_SIZE                        (512UL << 20UL)
 #define SDRAM_MAX_SIZE                 0x80000000
 
index 81f16ed..4aa7e04 100644 (file)
@@ -15,7 +15,7 @@
 
 /* RAW SD card / eMMC locations. */
 
-#define CONFIG_SYS_SDRAM_BASE          0
+#define CFG_SYS_SDRAM_BASE             0
 #define SDRAM_BANK_SIZE                        (2UL << 30)
 #define SDRAM_MAX_SIZE                 0xfe000000
 
index 263d1bd..4b510b1 100644 (file)
@@ -10,7 +10,7 @@
 
 #define CONFIG_IRAM_BASE               0xfff80000
 
-#define CONFIG_SYS_SDRAM_BASE          0
+#define CFG_SYS_SDRAM_BASE             0
 #define SDRAM_MAX_SIZE                 0xff000000
 #define SDRAM_BANK_SIZE                        (2UL << 30)
 
index 1e214e4..132b7d0 100644 (file)
@@ -11,7 +11,7 @@
 #define CONFIG_IRAM_BASE               0xff090000
 
 /* FAT sd card locations. */
-#define CONFIG_SYS_SDRAM_BASE          0
+#define CFG_SYS_SDRAM_BASE             0
 #define SDRAM_MAX_SIZE                 0xff000000
 
 #define ENV_MEM_LAYOUT_SETTINGS \
index 37e0c1d..92cdc1a 100644 (file)
@@ -11,7 +11,7 @@
 #include <asm/arch-rockchip/hardware.h>
 #include <linux/sizes.h>
 
-#define CONFIG_SYS_SDRAM_BASE          0
+#define CFG_SYS_SDRAM_BASE             0
 #define SDRAM_MAX_SIZE                 0xff000000
 
 #define CONFIG_IRAM_BASE               0xff8c0000
index 2f9aee5..78f624d 100644 (file)
@@ -21,7 +21,7 @@
 /* RAW SD card / eMMC locations. */
 
 /* FAT sd card locations. */
-#define CONFIG_SYS_SDRAM_BASE          0
+#define CFG_SYS_SDRAM_BASE             0
 #define SDRAM_MAX_SIZE                 0xf8000000
 
 #ifndef CONFIG_SPL_BUILD
index 15e8152..d43dc25 100644 (file)
@@ -10,7 +10,7 @@
 
 #define CONFIG_IRAM_BASE               0xfdcc0000
 
-#define CONFIG_SYS_SDRAM_BASE          0
+#define CFG_SYS_SDRAM_BASE             0
 #define SDRAM_MAX_SIZE                 0xf0000000
 
 #define ENV_MEM_LAYOUT_SETTINGS                \
index cd8fe8b..2c24944 100644 (file)
@@ -23,7 +23,7 @@
 #endif
 
 /* Memory layout */
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 #define CONFIG_SYS_UBOOT_BASE          CONFIG_TEXT_BASE
 /*
  * The board really has 256M. However, the VC (VideoCore co-processor) shares
@@ -31,7 +31,7 @@
  * smaller amount of RAM is present in order to avoid stomping on the area
  * the VC uses.
  */
-#define CONFIG_SYS_SDRAM_SIZE          SZ_128M
+#define CFG_SYS_SDRAM_SIZE             SZ_128M
 
 /* Devices */
 /* LCD */
index 83c3167..76836ad 100644 (file)
@@ -15,7 +15,7 @@
 #define CONFIG_SYS_TIMER_BASE          0x10350020
 #define CONFIG_SYS_TIMER_COUNTER       (CONFIG_SYS_TIMER_BASE + 8)
 
-#define CONFIG_SYS_SDRAM_BASE          0x60000000
+#define CFG_SYS_SDRAM_BASE             0x60000000
 
 /* rockchip ohci host driver */
 
index ae94f0e..e071d4d 100644 (file)
@@ -18,7 +18,7 @@
 /*-----------------------------------------------------------------------
  *  System memory Configuration
  */
-#define CONFIG_SYS_SDRAM_BASE          0x71000000
+#define CFG_SYS_SDRAM_BASE             0x71000000
 
 /*
  * "(0x40000000 - CONFIG_SYS_RESERVE_MEM_SIZE)" has been used in
@@ -55,7 +55,7 @@
  *        Starting kernel ...
  *        ...
  */
-#define CONFIG_SYS_SDRAM_SIZE          (0xb0000000 - CONFIG_SYS_SDRAM_BASE)
+#define CFG_SYS_SDRAM_SIZE             (0xb0000000 - CFG_SYS_SDRAM_BASE)
 
 #define BMP_LOAD_ADDR                  0x78000000
 
index de4510a..ed891ab 100644 (file)
@@ -14,7 +14,7 @@
 #include <asm/arch/cpu.h>              /* get chip and board defs */
 
 /* DRAM Base */
-#define CONFIG_SYS_SDRAM_BASE          0x30000000
+#define CFG_SYS_SDRAM_BASE             0x30000000
 
 /* Text Base */
 
        "dfu_alt_info=" CONFIG_DFU_ALT "\0"
 
 /* Goni has 3 banks of DRAM, but swap the bank */
-#define PHYS_SDRAM_1           CONFIG_SYS_SDRAM_BASE   /* OneDRAM Bank #0 */
+#define PHYS_SDRAM_1           CFG_SYS_SDRAM_BASE      /* OneDRAM Bank #0 */
 #define PHYS_SDRAM_1_SIZE      (80 << 20)              /* 80 MB in Bank #0 */
 #define PHYS_SDRAM_2           0x40000000              /* mDDR DMC1 Bank #1 */
 #define PHYS_SDRAM_2_SIZE      (256 << 20)             /* 256 MB in Bank #1 */
index 668b526..614d04f 100644 (file)
@@ -14,8 +14,8 @@
 /* Keep L2 Cache Disabled */
 
 /* Universal has 2 banks of DRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
-#define PHYS_SDRAM_1                   CONFIG_SYS_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             0x40000000
+#define PHYS_SDRAM_1                   CFG_SYS_SDRAM_BASE
 
 #define SDRAM_BANK_SIZE                        (256 << 20)     /* 256 MB */
 
index afb1e3d..75302bf 100644 (file)
@@ -17,7 +17,7 @@
 #define CONFIG_USART_ID     0 /* ignored in arm */
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x20000000
-#define CONFIG_SYS_SDRAM_SIZE          0x8000000       /* 128 MB */
+#define CFG_SYS_SDRAM_BASE             0x20000000
+#define CFG_SYS_SDRAM_SIZE             0x8000000       /* 128 MB */
 
 #endif
index 7c5bfdb..22813d4 100644 (file)
@@ -23,8 +23,8 @@
  */
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x20000000
-#define CONFIG_SYS_SDRAM_SIZE          0x10000000      /* 256 megs */
+#define CFG_SYS_SDRAM_BASE             0x20000000
+#define CFG_SYS_SDRAM_SIZE             0x10000000      /* 256 megs */
 
 /* NAND flash */
 #ifdef CONFIG_CMD_NAND
index de6c92e..f826eab 100644 (file)
@@ -16,8 +16,8 @@
 #define CONFIG_SYS_AT91_MAIN_CLOCK      24000000 /* from 24 MHz crystal */
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x20000000
-#define CONFIG_SYS_SDRAM_SIZE          0x10000000
+#define CFG_SYS_SDRAM_BASE             0x20000000
+#define CFG_SYS_SDRAM_SIZE             0x10000000
 
 /* SPL */
 
index ebdb392..01ed1a3 100644 (file)
@@ -15,8 +15,8 @@
 #define CONFIG_SYS_AT91_MAIN_CLOCK      12000000 /* from 12 MHz crystal */
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x20000000
-#define CONFIG_SYS_SDRAM_SIZE          0x20000000
+#define CFG_SYS_SDRAM_BASE             0x20000000
+#define CFG_SYS_SDRAM_SIZE             0x20000000
 
 #ifdef CONFIG_SD_BOOT
 /* u-boot env in sd/mmc card */
index 09cc4dd..2e3c1ea 100644 (file)
@@ -16,8 +16,8 @@
 #define CONFIG_SYS_AT91_MAIN_CLOCK      24000000 /* from 24 MHz crystal */
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x20000000
-#define CONFIG_SYS_SDRAM_SIZE          0x20000000
+#define CFG_SYS_SDRAM_BASE             0x20000000
+#define CFG_SYS_SDRAM_SIZE             0x20000000
 
 /* NAND Flash */
 #ifdef CONFIG_CMD_NAND
index 1c9af9b..4b13a10 100644 (file)
@@ -24,8 +24,8 @@
 #define ATMEL_PMC_UHP                  (1 <<  6)
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE           0x20000000
-#define CONFIG_SYS_SDRAM_SIZE          0x10000000
+#define CFG_SYS_SDRAM_BASE           0x20000000
+#define CFG_SYS_SDRAM_SIZE             0x10000000
 
 /* NAND flash */
 #ifdef CONFIG_CMD_NAND
index afb9b9a..3f58928 100644 (file)
@@ -31,8 +31,8 @@
 #endif
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE           0x20000000
-#define CONFIG_SYS_SDRAM_SIZE          0x20000000
+#define CFG_SYS_SDRAM_BASE           0x20000000
+#define CFG_SYS_SDRAM_SIZE             0x20000000
 
 /* SerialFlash */
 
index 0daadec..084cb4d 100644 (file)
@@ -12,8 +12,8 @@
 #include "at91-sama5_common.h"
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE           0x20000000
-#define CONFIG_SYS_SDRAM_SIZE          0x20000000
+#define CFG_SYS_SDRAM_BASE           0x20000000
+#define CFG_SYS_SDRAM_SIZE             0x20000000
 
 /* NAND flash */
 #ifdef CONFIG_CMD_NAND
index d59899f..cbc1c0f 100644 (file)
@@ -12,8 +12,8 @@
 #include "at91-sama5_common.h"
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE           0x20000000
-#define CONFIG_SYS_SDRAM_SIZE          0x20000000
+#define CFG_SYS_SDRAM_BASE           0x20000000
+#define CFG_SYS_SDRAM_SIZE             0x20000000
 
 /* NAND flash */
 #ifdef CONFIG_CMD_NAND
index 3f905bf..68fa31f 100644 (file)
@@ -12,7 +12,7 @@
 #define CONFIG_SYS_AT91_SLOW_CLOCK      32768
 #define CONFIG_SYS_AT91_MAIN_CLOCK      24000000 /* from 24 MHz crystal */
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x60000000
-#define CONFIG_SYS_SDRAM_SIZE          0x20000000
+#define CFG_SYS_SDRAM_BASE             0x60000000
+#define CFG_SYS_SDRAM_SIZE             0x20000000
 
 #endif
index 0dcb2eb..5a7f5e1 100644 (file)
@@ -13,8 +13,8 @@
 /* Size of our emulated memory */
 #define SB_CONCAT(x, y) x ## y
 #define SB_TO_UL(s) SB_CONCAT(s, UL)
-#define CONFIG_SYS_SDRAM_BASE          0
-#define CONFIG_SYS_SDRAM_SIZE \
+#define CFG_SYS_SDRAM_BASE             0
+#define CFG_SYS_SDRAM_SIZE \
                (SB_TO_UL(CONFIG_SANDBOX_RAM_SIZE_MB) << 20)
 
 #define CONFIG_SYS_BAUDRATE_TABLE      {4800, 9600, 19200, 38400, 57600,\
index c9dd750..31552f4 100644 (file)
@@ -33,7 +33,7 @@
  /* Physical Memory Map */
 #define PHYS_DRAM_1                    0x80000000      /* DRAM Bank #1 */
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_DRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_DRAM_1
  /* Platform/Board specific defs */
 #define CONFIG_SYS_TIMERBASE           0x48040000      /* Use Timer2 */
 
index 2e5592c..5ad2124 100644 (file)
@@ -11,7 +11,7 @@
 
 #include <linux/sizes.h>
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 #define CONFIG_STANDALONE_LOAD_ADDR    0x80200000
 
index 85fab92..f4b1a16 100644 (file)
@@ -11,7 +11,7 @@
 
 #include <linux/sizes.h>
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 #define CONFIG_STANDALONE_LOAD_ADDR    0x80200000
 
index 7159fc3..974531e 100644 (file)
@@ -8,8 +8,8 @@
 
 #include <linux/sizes.h>
 
-#define CONFIG_SYS_SDRAM_BASE 0x80000000
-#define CONFIG_SYS_SDRAM_SIZE SZ_8M
+#define CFG_SYS_SDRAM_BASE 0x80000000
+#define CFG_SYS_SDRAM_SIZE SZ_8M
 
 #ifndef CONFIG_EXTRA_ENV_SETTINGS
 #define CONFIG_EXTRA_ENV_SETTINGS \
index 7c8f167..d2bc73a 100644 (file)
@@ -45,8 +45,8 @@
  * SDRAM: 1 bank, 64 MB, base address 0x20000000
  * Already initialized before u-boot gets started.
  */
-#define CONFIG_SYS_SDRAM_BASE          ATMEL_BASE_CS1
-#define CONFIG_SYS_SDRAM_SIZE          (64 * SZ_1M)
+#define CFG_SYS_SDRAM_BASE             ATMEL_BASE_CS1
+#define CFG_SYS_SDRAM_SIZE             (64 * SZ_1M)
 
 /*
  * Perform a SDRAM Memtest from the start of SDRAM
index 12c2e1f..0392530 100644 (file)
@@ -14,7 +14,7 @@
 
 #define CONFIG_SMDK5420                        /* which is in a SMDK5420 */
 
-#define CONFIG_SYS_SDRAM_BASE  0x20000000
+#define CFG_SYS_SDRAM_BASE     0x20000000
 
 /* DRAM Memory Banks */
 #define SDRAM_BANK_SIZE                (512UL << 20UL) /* 512 MB */
index ba562b2..64963ee 100644 (file)
@@ -16,7 +16,7 @@
 /* input clock of PLL: SMDKC100 has 12MHz input clock */
 
 /* DRAM Base */
-#define CONFIG_SYS_SDRAM_BASE          0x30000000
+#define CFG_SYS_SDRAM_BASE             0x30000000
 
 /* Text Base */
 
@@ -77,7 +77,7 @@
  */
 
 /* SMDKC100 has 1 banks of DRAM, we use only one in U-Boot */
-#define PHYS_SDRAM_1           CONFIG_SYS_SDRAM_BASE   /* SDRAM Bank #1 */
+#define PHYS_SDRAM_1           CFG_SYS_SDRAM_BASE      /* SDRAM Bank #1 */
 #define PHYS_SDRAM_1_SIZE      (128 << 20)     /* 0x8000000, 128 MB Bank #1 */
 
 /*-----------------------------------------------------------------------
index 0b1f0c5..af0c820 100644 (file)
@@ -11,7 +11,7 @@
 #include "exynos4-common.h"
 
 /* High Level Configuration Options */
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 
 /* Handling Sleep Mode*/
 #define S5P_CHECK_SLEEP                        0x00000BAD
 
 /* SMDKV310 has 4 bank of DRAM */
 #define SDRAM_BANK_SIZE                (512UL << 20UL) /* 512 MB */
-#define PHYS_SDRAM_1           CONFIG_SYS_SDRAM_BASE
+#define PHYS_SDRAM_1           CFG_SYS_SDRAM_BASE
 #define PHYS_SDRAM_1_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_2           (CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
+#define PHYS_SDRAM_2           (CFG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
 #define PHYS_SDRAM_2_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_3           (CONFIG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_3           (CFG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_3_SIZE      SDRAM_BANK_SIZE
-#define PHYS_SDRAM_4           (CONFIG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
+#define PHYS_SDRAM_4           (CFG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
 #define PHYS_SDRAM_4_SIZE      SDRAM_BANK_SIZE
 
 /* FLASH and environment organization */
index faa13c6..44b9109 100644 (file)
@@ -38,7 +38,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 7c35c91..9b1cb37 100644 (file)
@@ -21,8 +21,8 @@
 /* CPU */
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE          ATMEL_BASE_CS6
-#define CONFIG_SYS_SDRAM_SIZE          (128 * 1024 * 1024) /* 64MB */
+#define CFG_SYS_SDRAM_BASE             ATMEL_BASE_CS6
+#define CFG_SYS_SDRAM_SIZE             (128 * 1024 * 1024) /* 64MB */
 #define CONFIG_SYS_INIT_RAM_SIZE       0x1000
 #define CONFIG_SYS_INIT_RAM_ADDR       ATMEL_BASE_SRAM
 
index 6054fa4..9551680 100644 (file)
@@ -32,7 +32,7 @@
  * Memory
  */
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /*
  * I2C
index 70a24ed..2656c97 100644 (file)
@@ -38,7 +38,7 @@
  * in U-Boot pre-reloc is higher than in SPL.
  */
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 
 /*
  * U-Boot general configurations
index 2b2d78b..9403e2f 100644 (file)
@@ -70,7 +70,7 @@
  */
 #define PHYS_SDRAM_1                   0x0
 #define PHYS_SDRAM_1_SIZE              (1 * 1024 * 1024 * 1024)
-#define CONFIG_SYS_SDRAM_BASE          0
+#define CFG_SYS_SDRAM_BASE             0
 
 /*
  * Serial / UART configurations
index a60ac6d..c628860 100644 (file)
@@ -55,7 +55,7 @@
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_VERY_BIG_RAM
 
 /* I2C addresses of SPD EEPROMs */
@@ -73,7 +73,7 @@
 #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 */
+#define CFG_SYS_SDRAM_SIZE                     256 /* in Megs */
 
 /*
  * Flash on the LocalBus
index dcb88a3..008aa50 100644 (file)
@@ -53,7 +53,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 1e966a2..806323e 100644 (file)
@@ -11,7 +11,7 @@
 
 /* ram memory-related information */
 #define PHYS_SDRAM_1                   0x40000000
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 #define PHYS_SDRAM_1_SIZE              0x3E000000
 
 #define CONFIG_SYS_HZ_CLOCK            750000000       /* 750 MHz */
index 07a5bfc..d711149 100644 (file)
@@ -13,7 +13,7 @@
 /*
  * Configuration of the external SRAM memory used by U-Boot
  */
-#define CONFIG_SYS_SDRAM_BASE          STM32_DDR_BASE
+#define CFG_SYS_SDRAM_BASE             STM32_DDR_BASE
 
 /*
  * For booting Linux, use the first 256 MB of memory, since this is
index b809f93..f78ce41 100644 (file)
@@ -13,7 +13,7 @@
 /*
  * Configuration of the external SRAM memory used by U-Boot
  */
-#define CONFIG_SYS_SDRAM_BASE                  STM32_DDR_BASE
+#define CFG_SYS_SDRAM_BASE                     STM32_DDR_BASE
 
 /*
  * For booting Linux, use the first 256 MB of memory, since this is
index ba49075..234327e 100644 (file)
 /*
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Please note that CFG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
-#define CONFIG_SYS_SDRAM_SIZE          128     /* SDRAM size in MB */
+#define CFG_SYS_SDRAM_BASE             0x40000000
+#define CFG_SYS_SDRAM_SIZE             128     /* SDRAM size in MB */
 
 #define CONFIG_SYS_DRAM_TEST
 
@@ -75,8 +75,8 @@
  * the maximum mapped by the Linux kernel during initialization ??
  */
 /* Initial Memory map for Linux */
-#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + \
-                                       (CONFIG_SYS_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CFG_SYS_SDRAM_BASE + \
+                                       (CFG_SYS_SDRAM_SIZE << 20))
 
 /* Configuration for environment
  * Environment is embedded in u-boot in the second sector of the flash
@@ -89,8 +89,8 @@
                                         CONFIG_SYS_INIT_RAM_SIZE - 4)
 #define CONFIG_SYS_ICACHE_INV          (CF_CACR_BCINVA + CF_CACR_ICINVA)
 #define CONFIG_SYS_DCACHE_INV          (CF_CACR_DCINVA)
-#define CONFIG_SYS_CACHE_ACR2          (CONFIG_SYS_SDRAM_BASE | \
-                                        CF_ADDRMASK(CONFIG_SYS_SDRAM_SIZE) | \
+#define CONFIG_SYS_CACHE_ACR2          (CFG_SYS_SDRAM_BASE | \
+                                        CF_ADDRMASK(CFG_SYS_SDRAM_SIZE) | \
                                         CF_ACR_EN | CF_ACR_SM_ALL)
 #define CONFIG_SYS_CACHE_ICACR         (CF_CACR_BEC | CF_CACR_IEC | \
                                         CF_CACR_ICINVA | CF_CACR_EUSP)
index 567aa1f..b2dcb60 100644 (file)
@@ -10,7 +10,7 @@
 
 /* ram memory-related information */
 #define PHYS_SDRAM_1                           0x00000000
-#define CONFIG_SYS_SDRAM_BASE                  PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE                     PHYS_SDRAM_1
 #define PHYS_SDRAM_1_SIZE                      0x00198000
 
 /* user interface */
index cd2a74f..e1a66f5 100644 (file)
  */
 #ifdef CONFIG_MACH_SUN9I
 #define SDRAM_OFFSET(x) 0x2##x
-#define CONFIG_SYS_SDRAM_BASE          0x20000000
+#define CFG_SYS_SDRAM_BASE             0x20000000
 #elif defined(CONFIG_MACH_SUNIV)
 #define SDRAM_OFFSET(x) 0x8##x
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 #else
 #define SDRAM_OFFSET(x) 0x4##x
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 /* V3s do not have enough memory to place code at 0x4a000000 */
 #endif
 
@@ -66,7 +66,7 @@
 /* FIXME: this may be larger on some SoCs */
 #define CONFIG_SYS_INIT_RAM_SIZE       0x8000 /* 32 KiB */
 
-#define PHYS_SDRAM_0                   CONFIG_SYS_SDRAM_BASE
+#define PHYS_SDRAM_0                   CFG_SYS_SDRAM_BASE
 #define PHYS_SDRAM_0_SIZE              0x80000000 /* 2 GiB */
 
 /* mmc config */
index 63d897d..daa9bbe 100644 (file)
@@ -11,7 +11,7 @@
 /*
  * SDRAM (for initialize)
  */
-#define CONFIG_SYS_SDRAM_BASE          (0x80000000)    /* Start address of DDR3 */
+#define CFG_SYS_SDRAM_BASE             (0x80000000)    /* Start address of DDR3 */
 #define PHYS_SDRAM_SIZE                        (0x7c000000)    /* Default size (2GB - Secure memory) */
 
 #define CONFIG_VERY_BIG_RAM                            /* SynQuacer supports up to 64GB */
index dd1fe0a..1aba986 100644 (file)
@@ -41,8 +41,8 @@
  * SDRAM: 1 bank, min 32, max 128 MB
  * Initialized before u-boot gets started.
  */
-#define CONFIG_SYS_SDRAM_BASE          ATMEL_BASE_CS1
-#define CONFIG_SYS_SDRAM_SIZE          (128 * SZ_1M)
+#define CFG_SYS_SDRAM_BASE             ATMEL_BASE_CS1
+#define CFG_SYS_SDRAM_SIZE             (128 * SZ_1M)
 
 /*
  * Initial stack pointer: 4k - GENERATED_GBL_DATA_SIZE in internal SRAM,
index 92ee920..cd1309b 100644 (file)
@@ -13,8 +13,8 @@
  */
 
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000
-#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
-#define CONFIG_SYS_SDRAM_SIZE          SZ_128M
+#define CFG_SYS_SDRAM_BASE             CONFIG_SYS_DDR_SDRAM_BASE
+#define CFG_SYS_SDRAM_SIZE             SZ_128M
 
 /*
  * UART configuration
index 7f19785..2d8bde1 100644 (file)
@@ -13,7 +13,7 @@
 /* General configuration */
 
 /* Physical Memory Map */
-#define CONFIG_SYS_SDRAM_BASE          MMDC0_ARB_BASE_ADDR
+#define CFG_SYS_SDRAM_BASE             MMDC0_ARB_BASE_ADDR
 
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
index 92df457..7e764b0 100644 (file)
@@ -40,7 +40,7 @@
 #define PHYS_SDRAM_1           NV_PA_SDRC_CS0
 #define PHYS_SDRAM_1_SIZE      0x20000000      /* 512M */
 
-#define CONFIG_SYS_SDRAM_BASE  PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE     PHYS_SDRAM_1
 
 #define CONFIG_SYS_BOOTMAPSZ   (256 << 20)     /* 256M */
 
index 655fcb0..76b4963 100644 (file)
@@ -68,6 +68,6 @@
 /* Defines for SPL */
 
 /* Enable DDR support in SPL (DDR3 training from Marvell bin_hdr) */
-#define CONFIG_SYS_SDRAM_SIZE          SZ_2G
+#define CFG_SYS_SDRAM_SIZE             SZ_2G
 
 #endif /* _CONFIG_THEADORABLE_H */
index cf2efdb..1f60b9b 100644 (file)
@@ -13,7 +13,7 @@
 /* Link Definitions */
 
 /* SMP Spin Table Definitions */
-#define CPU_RELEASE_ADDR               (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
+#define CPU_RELEASE_ADDR               (CFG_SYS_SDRAM_BASE + 0x7fff0)
 
 /* PL011 Serial Configuration */
 
@@ -30,7 +30,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM_1                   (MEM_BASE)        /* SDRAM Bank #1 */
 #define PHYS_SDRAM_1_SIZE              (0x80000000-MEM_BASE)   /* 2048 MB */
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 
 /* Initial environment variables */
 #define UBOOT_IMG_HEAD_SIZE            0x40
index fc78077..e5b23d2 100644 (file)
@@ -69,7 +69,7 @@
 #define PHYS_DRAM_1_SIZE               0x20000000      /* 512MB */
 #define CONFIG_MAX_RAM_BANK_SIZE       (1024 << 20)    /* 1024MB */
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /**
  * Platform/Board specific defs
index 1bd2a18..4a7c3d5 100644 (file)
@@ -20,7 +20,7 @@
 #define V_SCLK          (V_OSCK >> 1)
 
 #define CONFIG_MAX_RAM_BANK_SIZE       (2048 << 20)    /* 2048MB */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /**
  * Platform/Board specific defs
index b289b9e..d54c208 100644 (file)
@@ -64,7 +64,7 @@
  * initial stack pointer in our SRAM. Otherwise, we can define
  * CONFIG_NR_DRAM_BANKS before including this file.
  */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 /* If DM_I2C, enable non-DM I2C support */
 
index ab6cd06..a609aa3 100644 (file)
@@ -23,7 +23,7 @@
 /* Top 48MB reserved for secure world use */
 #define DRAM_SEC_SIZE          0x03000000
 #define PHYS_SDRAM_1_SIZE      0x80000000 - DRAM_SEC_SIZE
-#define CONFIG_SYS_SDRAM_BASE  PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE     PHYS_SDRAM_1
 
 #define PHYS_SDRAM_2           0x8080000000
 #define PHYS_SDRAM_2_SIZE      0x180000000
index 22d783c..1378981 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define CONFIG_SYS_SDRAM_BASE          0xa0000000
+#define CFG_SYS_SDRAM_BASE             0xa0000000
 
 #define CONFIG_SYS_INIT_RAM_ADDR       0xbd000000
 #define CONFIG_SYS_INIT_RAM_SIZE       0x8000
index a65ebfb..f8e3a2d 100644 (file)
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index ca31868..23dcf20 100644 (file)
@@ -16,8 +16,8 @@
 #endif
 
 /* TRATS has 4 banks of DRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
-#define PHYS_SDRAM_1                   CONFIG_SYS_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             0x40000000
+#define PHYS_SDRAM_1                   CFG_SYS_SDRAM_BASE
 #define SDRAM_BANK_SIZE                        (256 << 20)     /* 256 MB */
 
 /* Tizen - partitions definitions */
index f324ea7..9c6433c 100644 (file)
@@ -17,8 +17,8 @@
 #endif
 
 /* TRATS2 has 4 banks of DRAM */
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
-#define PHYS_SDRAM_1                   CONFIG_SYS_SDRAM_BASE
+#define CFG_SYS_SDRAM_BASE             0x40000000
+#define PHYS_SDRAM_1                   CFG_SYS_SDRAM_BASE
 #define SDRAM_BANK_SIZE                        (256 << 20)     /* 256 MB */
 
 /* Tizen - partitions definitions */
index f549f9f..4ca8eaf 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef _CONFIG_TURRIS_MOX_H
 #define _CONFIG_TURRIS_MOX_H
 
-#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CFG_SYS_SDRAM_BASE             0x00000000
 #define CONFIG_SYS_BAUDRATE_TABLE      { 300, 600, 1200, 1800, 2400, 4800, \
                                          9600, 19200, 38400, 57600, 115200, \
                                          230400, 460800, 500000, 576000, \
index 268c737..c1e80b4 100644 (file)
@@ -49,7 +49,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 1472248..f730926 100644 (file)
@@ -57,7 +57,7 @@
 
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 2cdc3fb..d2fd23e 100644 (file)
@@ -25,8 +25,8 @@
  */
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE          ATMEL_BASE_CS1
-#define CONFIG_SYS_SDRAM_SIZE          0x04000000
+#define CFG_SYS_SDRAM_BASE             ATMEL_BASE_CS1
+#define CFG_SYS_SDRAM_SIZE             0x04000000
 
 #define CONFIG_SYS_INIT_RAM_SIZE       (16 * 1024)
 #define CONFIG_SYS_INIT_RAM_ADDR       ATMEL_BASE_SRAM1
index c381934..e944e78 100644 (file)
@@ -60,7 +60,7 @@
 #define PHYS_SDRAM                     CSD0_BASE_ADDR
 #define PHYS_SDRAM_SIZE                        (gd->ram_size)
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 338d8af..d9e5dfa 100644 (file)
 
 #define CFG_SYS_NS16550_CLK            CONFIG_SYS_MIPS_TIMER_FREQ
 
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 #if defined(CONFIG_DDRTYPE_H5TQ1G63BFA) || defined(CONFIG_DDRTYPE_MT47H128M8HQ)
-#define CONFIG_SYS_SDRAM_SIZE          (128 * SZ_1M)
+#define CFG_SYS_SDRAM_SIZE             (128 * SZ_1M)
 #elif defined(CONFIG_DDRTYPE_MT41J128M16HA) || defined(CONFIG_DDRTYPE_MT41K128M16JT)
-#define CONFIG_SYS_SDRAM_SIZE          (256 * SZ_1M)
+#define CFG_SYS_SDRAM_SIZE             (256 * SZ_1M)
 #elif defined(CONFIG_DDRTYPE_H5TQ4G63MFR) || defined(CONFIG_DDRTYPE_MT41K256M16)
-#define CONFIG_SYS_SDRAM_SIZE          (512 * SZ_1M)
+#define CFG_SYS_SDRAM_SIZE             (512 * SZ_1M)
 #else
 #error Unknown DDR size - please add!
 #endif
index f513dad..b209d97 100644 (file)
@@ -60,7 +60,7 @@
 /* Environment in eMMC, before config block at the end of 1st "boot sector" */
 #endif
 
-#define CONFIG_SYS_SDRAM_BASE           0x40000000
+#define CFG_SYS_SDRAM_BASE           0x40000000
 
 /* SDRAM configuration */
 #define PHYS_SDRAM                      0x40000000
index fea4329..1b9f2ca 100644 (file)
@@ -69,7 +69,7 @@
 #define CONFIG_SYS_INIT_RAM_SIZE       SZ_512K
 
 /* i.MX 8M Plus supports max. 8GB memory in two albeit concecutive banks */
-#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CFG_SYS_SDRAM_BASE             0x40000000
 #define PHYS_SDRAM                     0x40000000
 #define PHYS_SDRAM_SIZE                        (SZ_2G + SZ_1G)
 #define PHYS_SDRAM_2                   0x100000000
index 0c11b6b..9a46d50 100644 (file)
@@ -96,7 +96,7 @@
 /* Top 16MB reserved for secure world use */
 #define DRAM_SEC_SIZE          0x01000000
 #define PHYS_SDRAM_1_SIZE      0x80000000 - DRAM_SEC_SIZE
-#define CONFIG_SYS_SDRAM_BASE  PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE     PHYS_SDRAM_1
 
 #ifdef CONFIG_TARGET_VEXPRESS64_JUNO
 #define PHYS_SDRAM_2                   (0x880000000)
index 5d77306..ef136c7 100644 (file)
 #define PHYS_SDRAM_2_SIZE              0x20000000      /* 512 MB */
 
 /* additions for new relocation code */
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 #define CONFIG_SYS_INIT_RAM_SIZE               0x1000
 
 /* Basic environment settings */
index 215149a..7b526f7 100644 (file)
 #define PHYS_SDRAM                     (0x80000000)
 #define PHYS_SDRAM_SIZE                        (128 * 1024 * 1024)
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index a157296..df0e269 100644 (file)
@@ -24,8 +24,8 @@
 #define CONFIG_SYS_TIMER_COUNTER       0xfc06863c
 
 /* SDRAM */
-#define CONFIG_SYS_SDRAM_BASE           0x20000000
-#define CONFIG_SYS_SDRAM_SIZE          0x4000000
+#define CFG_SYS_SDRAM_BASE           0x20000000
+#define CFG_SYS_SDRAM_SIZE             0x4000000
 
 /* MMC */
 
index a0846b3..7555d97 100644 (file)
@@ -23,7 +23,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 2107bec..38b940d 100644 (file)
@@ -7,7 +7,7 @@
 #define __VOCORE2_CONFIG_H__
 
 /* RAM */
-#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CFG_SYS_SDRAM_BASE             0x80000000
 
 #define CONFIG_SYS_INIT_SP_OFFSET      0x400000
 
index b4c757f..3acef22 100644 (file)
@@ -89,7 +89,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index a4b12dc..cba215c 100644 (file)
@@ -84,7 +84,7 @@
 /* Physical Memory Map */
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index 054eb89..32555c9 100644 (file)
@@ -16,8 +16,8 @@
 /*
  * Memory configurations
  */
-#define CONFIG_SYS_SDRAM_BASE          EMC_DYCS0_BASE
-#define CONFIG_SYS_SDRAM_SIZE          SZ_128M
+#define CFG_SYS_SDRAM_BASE             EMC_DYCS0_BASE
+#define CFG_SYS_SDRAM_SIZE             SZ_128M
 
 #define CONFIG_RTC_DS1374
 
index 19ccf63..87f628d 100644 (file)
@@ -23,7 +23,7 @@
 /* Memory configuration */
 #define PHYS_SDRAM_1                   0x40000000      /* Base address */
 #define PHYS_SDRAM_1_SIZE              0x10000000      /* Max 256 MB RAM */
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM_1
 
 /* Extra Environment */
 #define CONFIG_HOSTNAME                "xea"
index 364dae0..612436a 100644 (file)
@@ -11,7 +11,7 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS
 
-#undef CONFIG_SYS_SDRAM_BASE
+#undef CFG_SYS_SDRAM_BASE
 
 #undef CONFIG_EXTRA_ENV_SETTINGS
 #define CONFIG_EXTRA_ENV_SETTINGS      \
index d2c0e91..1b6e26e 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <configs/xilinx_zynqmp_mini.h>
 
-#define CONFIG_SYS_SDRAM_SIZE  0x1000000
-#define CONFIG_SYS_SDRAM_BASE  0x0
+#define CFG_SYS_SDRAM_SIZE     0x1000000
+#define CFG_SYS_SDRAM_BASE     0x0
 
 #endif /* __CONFIG_ZYNQMP_MINI_NAND_H */
index 7d0402f..613ed95 100644 (file)
@@ -21,7 +21,7 @@
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
 #define PHYS_SDRAM_SIZE                        (128 << 20)
 
-#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
+#define CFG_SYS_SDRAM_BASE             PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
 
index b93451c..8739bb2 100644 (file)
  */
 
 #if XCHAL_HAVE_PTP_MMU || CONFIG_BOARD_SDRAM_SIZE < 0x10000000
-#define CONFIG_SYS_SDRAM_SIZE          CONFIG_BOARD_SDRAM_SIZE
+#define CFG_SYS_SDRAM_SIZE             CONFIG_BOARD_SDRAM_SIZE
 #else
-#define CONFIG_SYS_SDRAM_SIZE          0x10000000
+#define CFG_SYS_SDRAM_SIZE             0x10000000
 #endif
 
-#define CONFIG_SYS_SDRAM_BASE          MEMADDR(0x00000000)
+#define CFG_SYS_SDRAM_BASE             MEMADDR(0x00000000)
 
 /* Lx60 can only map 128kb memory (instead of 256kb) when running under OCD */
 
 #endif
 
 #if defined(CONFIG_MAX_MEM_MAPPED) && \
-       CONFIG_MAX_MEM_MAPPED < CONFIG_SYS_SDRAM_SIZE
+       CONFIG_MAX_MEM_MAPPED < CFG_SYS_SDRAM_SIZE
 #define XTENSA_SYS_TEXT_ADDR           \
        (MEMADDR(CONFIG_MAX_MEM_MAPPED) - CONFIG_SYS_MONITOR_LEN)
 #else
 #define XTENSA_SYS_TEXT_ADDR           \
-       (MEMADDR(CONFIG_SYS_SDRAM_SIZE) - CONFIG_SYS_MONITOR_LEN)
+       (MEMADDR(CFG_SYS_SDRAM_SIZE) - CONFIG_SYS_MONITOR_LEN)
 #endif
 
 /*==============================*/
index d40d11f..699dc24 100644 (file)
@@ -90,8 +90,8 @@ int dram_init(void);
  *
  * If this is not provided, a default implementation will try to set up a
  * single bank. It will do this if CONFIG_NR_DRAM_BANKS and
- * CONFIG_SYS_SDRAM_BASE are set. The bank will have a start address of
- * CONFIG_SYS_SDRAM_BASE and the size will be determined by a call to
+ * CFG_SYS_SDRAM_BASE are set. The bank will have a start address of
+ * CFG_SYS_SDRAM_BASE and the size will be determined by a call to
  * get_effective_memsize().
  *
  * Return: 0 if OK, -ve on error
index 83b41b3..07c3505 100644 (file)
@@ -12,7 +12,7 @@
 #define SYS_INIT_SP_ADDR       CONFIG_CUSTOM_SYS_INIT_SP_ADDR
 #else
 #ifdef CONFIG_MIPS
-#define SYS_INIT_SP_ADDR       (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_INIT_SP_OFFSET)
+#define SYS_INIT_SP_ADDR       (CFG_SYS_SDRAM_BASE + CONFIG_SYS_INIT_SP_OFFSET)
 #else
 #define SYS_INIT_SP_ADDR       \
        (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
index d249942..8deac75 100644 (file)
@@ -467,7 +467,7 @@ int arch_memory_test_prepare(u32 *vstart, u32 *size, phys_addr_t *phys_offset)
 {
        struct bd_info *bd = gd->bd;
 
-       *vstart = CONFIG_SYS_SDRAM_BASE;
+       *vstart = CFG_SYS_SDRAM_BASE;
        *size = (gd->ram_size >= 256 << 20 ?
                        256 << 20 : gd->ram_size) - (1 << 20);
 
index 1cc07bc..b5e9f9d 100644 (file)
@@ -208,7 +208,7 @@ static int dm_test_remoteproc_elf(struct unit_test_state *uts)
         * at SDRAM_BASE *device* address (p_paddr field).
         * Its size is defined by the p_filesz field.
         */
-       phdr->p_paddr = CONFIG_SYS_SDRAM_BASE;
+       phdr->p_paddr = CFG_SYS_SDRAM_BASE;
        loaded_firmware_size = phdr->p_filesz;
 
        /*
@@ -231,7 +231,7 @@ static int dm_test_remoteproc_elf(struct unit_test_state *uts)
        unmap_physmem(loaded_firmware, MAP_NOCACHE);
 
        /* Resource table */
-       shdr->sh_addr = CONFIG_SYS_SDRAM_BASE;
+       shdr->sh_addr = CFG_SYS_SDRAM_BASE;
        rsc_table_size = shdr->sh_size;
 
        loaded_rsc_table_paddr = shdr->sh_addr + DEVICE_TO_PHYSICAL_OFFSET;
@@ -243,7 +243,7 @@ static int dm_test_remoteproc_elf(struct unit_test_state *uts)
        /* Load and verify */
        ut_assertok(rproc_elf32_load_rsc_table(dev, (ulong)valid_elf32, size,
                                               &rsc_addr, &rsc_size));
-       ut_asserteq(rsc_addr, CONFIG_SYS_SDRAM_BASE);
+       ut_asserteq(rsc_addr, CFG_SYS_SDRAM_BASE);
        ut_asserteq(rsc_size, rsc_table_size);
        ut_asserteq_mem(loaded_firmware, valid_elf32 + shdr->sh_offset,
                        shdr->sh_size);