]> git.sur5r.net Git - u-boot/commit
Change initdram() return type to phys_size_t
authorBecky Bruce <becky.bruce@freescale.com>
Mon, 9 Jun 2008 21:03:40 +0000 (16:03 -0500)
committerWolfgang Denk <wd@denx.de>
Thu, 12 Jun 2008 06:50:18 +0000 (08:50 +0200)
commit9973e3c614721bbf169882ffc3be266a6611cd60
tree01ca6844089d2ea999566aa558acea50a9e606a1
parent391fd93ab23e15ab3dd58a54f5b609024009c378
Change initdram() return type to phys_size_t

This patch changes the return type of initdram() from long int to phys_size_t.
This is required for a couple of reasons: long int limits the amount of dram
to 2GB, and u-boot in general is moving over to phys_size_t to represent the
size of physical memory.  phys_size_t is defined as an unsigned long on almost
all current platforms.

This patch *only* changes the return type of the initdram function (in
include/common.h, as well as in each board's implementation of initdram).  It
does not actually modify the code inside the function on any of the platforms;
platforms which wish to support more than 2GB of DRAM will need to modify
their initdram() function code.

Build tested with MAKEALL for ppc, arm, mips, mips-el. Booted on powerpc
MPC8641HPCN.

Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
273 files changed:
board/BuS/EB+MCF-EV123/EB+MCF-EV123.c
board/LEOX/elpt860/elpt860.c
board/MAI/AmigaOneG3SE/AmigaOneG3SE.c
board/Marvell/db64360/sdram_init.c
board/Marvell/db64460/sdram_init.c
board/RPXClassic/RPXClassic.c
board/RPXlite/RPXlite.c
board/RPXlite_dw/RPXlite_dw.c
board/RRvision/RRvision.c
board/a3000/a3000.c
board/adder/adder.c
board/ads5121/ads5121.c
board/alaska/alaska.c
board/altera/dk1c20/dk1c20.c
board/altera/dk1s10/dk1s10.c
board/altera/ep1c20/ep1c20.c
board/altera/ep1s10/ep1s10.c
board/altera/ep1s40/ep1s40.c
board/amcc/acadia/memory.c
board/amcc/bamboo/bamboo.c
board/amcc/bubinga/bubinga.c
board/amcc/canyonlands/canyonlands.c
board/amcc/ebony/ebony.c
board/amcc/ocotea/ocotea.c
board/amcc/sequoia/sdram.c
board/amcc/taihu/taihu.c
board/amcc/walnut/walnut.c
board/amcc/yosemite/yosemite.c
board/amirix/ap1000/ap1000.c
board/atc/atc.c
board/atmel/atngw100/atngw100.c
board/atmel/atstk1000/atstk1000.c
board/atum8548/atum8548.c
board/barco/barco.c
board/barco/barco_svc.h
board/bc3450/bc3450.c
board/bf533-ezkit/bf533-ezkit.c
board/bf533-stamp/bf533-stamp.c
board/bf537-stamp/bf537-stamp.c
board/bf561-ezkit/bf561-ezkit.c
board/bmw/bmw.c
board/c2mon/c2mon.c
board/canmb/canmb.c
board/cm5200/cm5200.c
board/cmi/cmi.c
board/cobra5272/cobra5272.c
board/cogent/mb.c
board/cpc45/cpc45.c
board/cpu86/cpu86.c
board/cpu87/cpu87.c
board/cray/L1/L1.c
board/csb272/csb272.c
board/csb472/csb472.c
board/cu824/cu824.c
board/dave/PPChameleonEVB/PPChameleonEVB.c
board/dbau1x00/dbau1x00.c
board/eXalion/eXalion.c
board/eltec/bab7xx/bab7xx.c
board/eltec/elppc/elppc.c
board/eltec/mhpc/mhpc.c
board/emk/top5200/top5200.c
board/emk/top860/top860.c
board/ep8248/ep8248.c
board/ep8260/ep8260.c
board/ep82xxm/ep82xxm.c
board/ep88x/ep88x.c
board/eric/eric.c
board/esd/adciop/adciop.c
board/esd/apc405/apc405.c
board/esd/ash405/ash405.c
board/esd/cms700/cms700.c
board/esd/cpci2dp/cpci2dp.c
board/esd/cpci405/cpci405.c
board/esd/cpci5200/cpci5200.c
board/esd/cpci750/sdram_init.c
board/esd/cpciiser4/cpciiser4.c
board/esd/dasa_sim/dasa_sim.c
board/esd/dp405/dp405.c
board/esd/du405/du405.c
board/esd/hh405/hh405.c
board/esd/hub405/hub405.c
board/esd/mecp5200/mecp5200.c
board/esd/ocrtc/ocrtc.c
board/esd/pci405/pci405.c
board/esd/pf5200/pf5200.c
board/esd/plu405/plu405.c
board/esd/pmc405/pmc405.c
board/esd/pmc440/sdram.c
board/esd/tasreg/tasreg.c
board/esd/voh405/voh405.c
board/esd/vom405/vom405.c
board/esd/wuh405/wuh405.c
board/esteem192e/esteem192e.c
board/etin/debris/debris.c
board/etin/kvme080/kvme080.c
board/etx094/etx094.c
board/evb64260/sdram_init.c
board/exbitgen/exbitgen.c
board/fads/fads.c
board/flagadm/flagadm.c
board/freescale/m52277evb/m52277evb.c
board/freescale/m5235evb/m5235evb.c
board/freescale/m5249evb/m5249evb.c
board/freescale/m5253evbe/m5253evbe.c
board/freescale/m5275evb/m5275evb.c
board/freescale/m5329evb/m5329evb.c
board/freescale/m5373evb/m5373evb.c
board/freescale/m54455evb/m54455evb.c
board/freescale/m547xevb/m547xevb.c
board/freescale/m548xevb/m548xevb.c
board/freescale/mpc7448hpc2/mpc7448hpc2.c
board/freescale/mpc8260ads/mpc8260ads.c
board/freescale/mpc8266ads/mpc8266ads.c
board/freescale/mpc8313erdb/sdram.c
board/freescale/mpc8315erdb/sdram.c
board/freescale/mpc8323erdb/mpc8323erdb.c
board/freescale/mpc832xemds/mpc832xemds.c
board/freescale/mpc8349emds/mpc8349emds.c
board/freescale/mpc8349itx/mpc8349itx.c
board/freescale/mpc8360emds/mpc8360emds.c
board/freescale/mpc8360erdk/mpc8360erdk.c
board/freescale/mpc837xemds/mpc837xemds.c
board/freescale/mpc837xerdb/mpc837xerdb.c
board/freescale/mpc8540ads/mpc8540ads.c
board/freescale/mpc8541cds/mpc8541cds.c
board/freescale/mpc8544ds/mpc8544ds.c
board/freescale/mpc8548cds/mpc8548cds.c
board/freescale/mpc8555cds/mpc8555cds.c
board/freescale/mpc8560ads/mpc8560ads.c
board/freescale/mpc8568mds/mpc8568mds.c
board/freescale/mpc8610hpcd/mpc8610hpcd.c
board/freescale/mpc8641hpcn/mpc8641hpcn.c
board/funkwerk/vovpn-gw/vovpn-gw.c
board/g2000/g2000.c
board/gaisler/gr_cpci_ax2000/gr_cpci_ax2000.c
board/gaisler/gr_ep2s60/gr_ep2s60.c
board/gaisler/gr_xc3s_1500/gr_xc3s_1500.c
board/gaisler/grsim/grsim.c
board/gaisler/grsim_leon2/grsim_leon2.c
board/gen860t/gen860t.c
board/genietv/genietv.c
board/gth/gth.c
board/gth2/gth2.c
board/gw8260/gw8260.c
board/hermes/hermes.c
board/hidden_dragon/hidden_dragon.c
board/hmi1001/hmi1001.c
board/hymod/hymod.c
board/icecube/icecube.c
board/icu862/icu862.c
board/idmr/idmr.c
board/ids8247/ids8247.c
board/incaip/incaip.c
board/inka4x0/inka4x0.c
board/ip860/ip860.c
board/iphase4539/iphase4539.c
board/ispan/ispan.c
board/ivm/ivm.c
board/jse/sdram.c
board/jupiter/jupiter.c
board/kup/kup4k/kup4k.c
board/kup/kup4x/kup4x.c
board/lantec/lantec.c
board/linkstation/linkstation.c
board/lwmon/lwmon.c
board/lwmon5/sdram.c
board/m5271evb/m5271evb.c
board/m5272c3/m5272c3.c
board/m5282evb/m5282evb.c
board/mbx8xx/mbx8xx.c
board/mcc200/mcc200.c
board/mgcoge/mgcoge.c
board/mgsuvd/mgsuvd.c
board/ml2/ml2.c
board/motionpro/motionpro.c
board/mousse/mousse.c
board/mpc8540eval/mpc8540eval.c
board/mpl/mip405/mip405.c
board/mpl/pati/pati.c
board/mpl/pip405/pip405.c
board/munices/munices.c
board/musenki/musenki.c
board/mvblm7/mvblm7.c
board/mvblue/mvblue.c
board/mvs1/mvs1.c
board/nc650/nc650.c
board/netphone/netphone.c
board/netstal/hcu4/hcu4.c
board/netstal/hcu5/sdram.c
board/netstal/mcu25/mcu25.c
board/netta/netta.c
board/netta2/netta2.c
board/netvia/netvia.c
board/nx823/nx823.c
board/o2dnt/o2dnt.c
board/oxc/oxc.c
board/pb1x00/pb1x00.c
board/pcippc2/pcippc2.c
board/pcs440ep/pcs440ep.c
board/pm520/pm520.c
board/pm826/pm826.c
board/pm828/pm828.c
board/pm854/pm854.c
board/pm856/pm856.c
board/pn62/pn62.c
board/ppmc7xx/ppmc7xx.c
board/ppmc8260/ppmc8260.c
board/prodrive/p3mx/sdram_init.c
board/psyent/pci5441/pci5441.c
board/psyent/pk1c20/pk1c20.c
board/purple/purple.c
board/qemu-mips/qemu-mips.c
board/quad100hd/quad100hd.c
board/quantum/quantum.c
board/r360mpi/r360mpi.c
board/rattler/rattler.c
board/rbc823/rbc823.c
board/rmu/rmu.c
board/rpxsuper/rpxsuper.c
board/rsdproto/rsdproto.c
board/sacsng/sacsng.c
board/sandburst/common/sb_common.c
board/sandpoint/sandpoint.c
board/sbc405/sbc405.c
board/sbc8240/sbc8240.c
board/sbc8260/sbc8260.c
board/sbc8349/sbc8349.c
board/sbc8548/sbc8548.c
board/sbc8560/sbc8560.c
board/sbc8641d/sbc8641d.c
board/sc3/sc3.c
board/siemens/CCM/ccm.c
board/siemens/IAD210/IAD210.c
board/siemens/SCM/scm.c
board/siemens/pcu_e/pcu_e.c
board/sixnet/sixnet.c
board/sl8245/sl8245.c
board/snmc/qs850/qs850.c
board/snmc/qs860t/qs860t.c
board/socrates/sdram.c
board/sorcery/sorcery.c
board/spc1920/spc1920.c
board/spd8xx/spd8xx.c
board/ssv/adnpesc1/adnpesc1.c
board/stxgp3/stxgp3.c
board/stxssa/stxssa.c
board/stxxtc/stxxtc.c
board/svm_sc8xx/svm_sc8xx.c
board/tb0229/tb0229.c
board/total5200/total5200.c
board/tqc/tqm5200/tqm5200.c
board/tqc/tqm8260/tqm8260.c
board/tqc/tqm8272/tqm8272.c
board/tqc/tqm834x/tqm834x.c
board/tqc/tqm85xx/sdram.c
board/tqc/tqm8xx/tqm8xx.c
board/uc100/uc100.c
board/uc101/uc101.c
board/utx8245/utx8245.c
board/v37/v37.c
board/v38b/v38b.c
board/w7o/w7o.c
board/westel/amx860/amx860.c
board/xilinx/ml300/ml300.c
board/xpedite1k/xpedite1k.c
board/zeus/zeus.c
board/zpc1900/zpc1900.c
cpu/ppc4xx/44x_spd_ddr2.c
cpu/ppc4xx/denali_spd_ddr2.c
cpu/ppc4xx/sdram.c
include/common.h
nand_spl/board/amcc/bamboo/sdram.c
nand_spl/board/amcc/canyonlands/ddr2_fixed.c