]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
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)
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

index dcfd83ed2792870150cddbe0c3cb5b6cce1683f6..fad9c406d9bab6417140e7e84fe494d84ed072ad 100644 (file)
@@ -39,7 +39,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        int size,i;
 
index 775db738e6c3a7680900fd4096c302fa474a91ea..5f506314c5efc7f41c6554a0df61afa11e6321e1 100644 (file)
@@ -35,7 +35,7 @@
 ** ------
 **              int             board_early_init_f(void)
 **              int             checkboard(void)
-**              long int        initdram(int board_type)
+**              phys_size_t     initdram(int board_type)
 ** called from 'board_init_f()' into 'common/board.c'
 **
 **              void            reset_phy(void)
@@ -179,7 +179,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 3bbc09dd9c0a428be257fdc77f258b0f358b0a11..e118563fc42c37ec2e4692ff8f7672197a56bf2c 100644 (file)
@@ -81,7 +81,7 @@ int checkboard (void)
        return 0;
 }
 
-long initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return articiaS_ram_init ();
 }
index f04aaf9a6edb12f0228187826acc3dd1c4b5d85d..ecadaf2710282a5641195d7e0e2606b31f7374b7 100644 (file)
@@ -1728,7 +1728,7 @@ long int dram_size (long int *base, long int maxsize)
 
 /* ppcboot interface function to SDRAM init - this is where all the
  * controlling logic happens */
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        int s0 = 0, s1 = 0;
        int checkbank[4] = {[0 ... 3] = 0 };
index 176220232e5de79e3510a838a6af867d4ce6cd6b..f36f3484aba03eb9fc0f3b221df9880f9917c497 100644 (file)
@@ -1737,7 +1737,7 @@ long int dram_size (long int *base, long int maxsize)
 
 /* ppcboot interface function to SDRAM init - this is where all the
  * controlling logic happens */
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        int s0 = 0, s1 = 0;
        int checkbank[4] = {[0 ... 3] = 0 };
index 49cb8ad24f6df1efbd9b3fff353a7023c174b3cb..804635a4aee6403a74d628e490070569a1b4d8ff 100644 (file)
@@ -165,7 +165,7 @@ void rpxclassic_init (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index f37e07b9234eff7e441c0d2956a97e7bcf019315..bca31e4c8e6e5d0933c5abc53f1cbe43be478739 100644 (file)
@@ -102,7 +102,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index d3dc081219874206bbedf1be9a619e625758296d..d6fabf04eaca0585a20a7b8c4d84f0cee03eccb4 100644 (file)
@@ -104,7 +104,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index f46bb9e8e4891b4fb89292a1390f6af545c33c98..c0b772d7272801e3823fe78f68b7398bf4187a5d 100644 (file)
@@ -110,7 +110,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 737d35d76c522e5dad6f7854d573e9b94ea5776a..c1eceaa2f4566e00cfdc6435588bf73064f2c83c 100644 (file)
@@ -38,7 +38,7 @@ int checkboard (void)
 
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long size;
        long new_bank0_end;
index 817c8649aa630cdc5e9ca1d985a93415682c1334..e8a5737f587ad827a3a96ff6c109e7c51e0db527 100644 (file)
@@ -65,7 +65,7 @@ static uint sdram_table[] = {
        0xfffffc27, 0xfffffc04, 0xfffffc04, 0xfffffc04
 };
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long int msize;
        volatile immap_t     *immap  = (volatile immap_t *)CFG_IMMR;
index 289266529590812b6a52b04a068cdb02d10b21bd..ef666633304517788c4be750fdb000a29cdce998 100644 (file)
@@ -112,7 +112,7 @@ int board_early_init_f (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        u32 msize = 0;
 
index 9531703fc936263dc2b7e69fe66a7da0dc657c95..49a8f712ba9aed64ef8290b550e54e7934d610ae 100644 (file)
@@ -131,7 +131,7 @@ void setupBat (ulong size)
        mtspr (DBAT7U, batu);
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong size;
 
index d0eb9eacb88cd2e4d36bbf898514d1ce9eb46006..46695bea92459c24fa1a998b8363d92b54c7ffed 100644 (file)
@@ -50,7 +50,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return (0);
 }
index c45e7f15d7cc7f99c251b9a6ab8271e6af405d3d..64d591e714e079dcf82c59afc91d84bca69f73e3 100644 (file)
@@ -54,7 +54,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return (0);
 }
index 29491391ef23bc9c843fab7b3394b73cd9df897a..c5bfb85a715f74bc6587e06b3e3d395cd7c5194e 100644 (file)
@@ -34,7 +34,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return (0);
 }
index 9c7e28e68cea409b945f6a042337210b396bb428..de9bf42bdcf689a513a92740952cd521cfbf1097 100644 (file)
@@ -34,7 +34,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return (0);
 }
index cb755504765e7246a75fbe3357dcb034b47e805d..c0eca17b92d28ceac3d09760f4fc418acca5b1c4 100644 (file)
@@ -29,7 +29,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return (0);
 }
index 3dec3159a597008075d47caaeef9bac464a59de6..48a6725745614dbcf16d11e032d72da464fa2f5d 100644 (file)
@@ -59,7 +59,7 @@ static void cram_bcr_write(u32 wr_val)
 }
 #endif
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
 #if defined(CONFIG_NAND_SPL)
        u32 reg;
index 0c7d69e78379aa7bc5fe9cc02670d4dcdfe74e87..f4157017f192b3d7d4feac66f28a9681e7f31021 100644 (file)
@@ -453,7 +453,7 @@ int checkboard(void)
 }
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
 #if !(defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL))
        long dram_size;
index 9d508b8937e0f005ab06c832203a195741a5a337..74a2a1c2144b486317f065de21954d8cd6299c9f 100644 (file)
@@ -70,7 +70,7 @@ int checkboard(void)
   initdram(int board_type) reads EEPROM via I2c. EEPROM contains all of
   the necessary info for SDRAM controller configuration
    ------------------------------------------------------------------------- */
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        long int ret;
 
index 4e3b349ef816622d72c6edb10d122e1c26e37d8b..e0e0211a675488cbfa4f75d0d91e889a81e986e5 100644 (file)
@@ -205,7 +205,7 @@ u32 ddr_clktr(u32 default_val) {
  * I2C SPD DIMM autodetection/calibration doesn't fit into the 4k of boot
  * code.
  */
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        return CFG_MBYTES_SDRAM << 20;
 }
index c6375aca8d7f19c1d74d1bf77e51d48ea469c2e0..9bcdf5997f1babca86f011fd23b4a0523b7acf94 100644 (file)
@@ -104,7 +104,7 @@ int checkboard(void)
        return (0);
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        long dram_size = 0;
 
index 79c1a1b496d86981f40f1742617345a02198765a..eea1e1e177c350bffdba3707220984c1b4f15ac8 100644 (file)
@@ -201,7 +201,7 @@ int checkboard (void)
 }
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long dram_size = 0;
 
index b43ec48091f3820fb2f6815eddedaaedbd247b5c..77e6c7b4d1297d7185461d22b3d6d1a18082fcbe 100644 (file)
@@ -52,7 +52,7 @@ extern void denali_core_search_data_eye(void);
  * initdram -- 440EPx's DDR controller is a DENALI Core
  *
  ************************************************************************/
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
 #if !defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL)
 #if !defined(CONFIG_NAND_SPL)
index e4fdf4ae74ab9463ef4f6bcdfc9308cd9d661606..254e3eb837b37b221ce4c64a186158da1ba4377a 100644 (file)
@@ -78,10 +78,10 @@ int checkboard(void)
 }
 
 /*************************************************************************
- *  long int initdram
+ *  phys_size_t initdram
  *
  ************************************************************************/
-long int initdram(int board)
+phys_size_t initdram(int board)
 {
        return CFG_SDRAM_SIZE_PER_BANK * CFG_SDRAM_BANKS; /* 128Mbytes */
 }
index 641987e871ce0bbaca92a3461d0067190763b4a0..28dcb66ebc4bd3693b2ed183a9f4a783f99cfaa4 100644 (file)
@@ -89,7 +89,7 @@ int checkboard(void)
  * initdram(int board_type) reads EEPROM via I2c. EEPROM contains all of
  * the necessary info for SDRAM controller configuration
  */
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        return spd_sdram();
 }
index 83455375def6c5831261e7c82291ced16b664f2e..3b1f8e2d79aeebae7400902fd6778d39b366af9a 100644 (file)
@@ -281,7 +281,7 @@ void sdram_tr1_set(int ram_address, int* tr1_value)
        *tr1_value = (first_good + last_bad) / 2;
 }
 
-long int initdram(int board)
+phys_size_t initdram(int board)
 {
        register uint reg;
        int tr1_bank1, tr1_bank2;
index 7d11b29b59ab714775953d7a092f424d0b17400c..55277e72d544623cb247629d5e2fabb245cb9da0 100644 (file)
@@ -133,7 +133,7 @@ int checkboard (void)
 }
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        char *s = getenv ("dramsize");
 
index fe321558224ebba5871c2b8b0b61738fbcb85c2a..79527f438420b5c9b7321dbbeba4442d032cedef 100644 (file)
@@ -340,7 +340,7 @@ int misc_init_r(void)
        return (0);
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
index c649855d63988e937e5f1a5d3bba446fe72bab1a..375f0e7e1777cfb499e8b262b93462d4aa3d1aad 100644 (file)
@@ -64,7 +64,7 @@ int board_early_init_f(void)
        return 0;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        unsigned long expected_size;
        unsigned long actual_size;
index 33bdba6f5df46dda66d20773e0f96d6f0a6997cb..6371e2d4e3acb1f13ecb481d1d88d5eb1bba0bcf 100644 (file)
@@ -90,7 +90,7 @@ int board_early_init_f(void)
        return 0;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        unsigned long expected_size;
        unsigned long actual_size;
index 2f6ae29d99708d8499833047b2ded968d884a682..4d8c6fbae3de15d16390d784b00d50a23ed4dc5d 100644 (file)
@@ -98,7 +98,7 @@ long int fixed_sdram (void)
 }
 #endif /* !defined(CONFIG_SPD_EEPROM) */
 
-long int
+phys_size_t
 initdram(int board_type)
 {
        long dram_size = 0;
index becbd0abda623cd85271acc8725cc80cc6d23f6f..72e7e0b0506e4353424ab8f56a6f50c521429e27 100644 (file)
@@ -83,7 +83,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long size;
        long new_bank0_end;
index 088f61e74e6e0926725f2084ce24dea69244cd29..bd924f2b18efac907391a6a7cd067c9f50b176ec 100644 (file)
@@ -59,7 +59,7 @@ typedef struct SBootInfo {
 
 /* barcohydra.c */
 int checkboard(void);
-long int initdram(int board_type);
+phys_size_t initdram(int board_type);
 void pci_init_board(void);
 void check_flash(void);
 int write_flash(char *addr, char value);
index 56a73fe4d0c7acf84ef632e85ac6d2b27ab81002..a728dc64d7494d6a890ca5551d6cbee2f8382fb6 100644 (file)
@@ -104,7 +104,7 @@ static void sdram_start (int hi_addr)
  */
 
 #if defined(CONFIG_MPC5200)
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
        ulong dramsize2 = 0;
@@ -205,7 +205,7 @@ long int initdram (int board_type)
 
 #elif defined(CONFIG_MGT5100)
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
 #ifndef CFG_RAMBOOT
index 738f69c781f924d0ceb0d4d359e2eab5901cba33..583560adb32b987417120e576e09c3c9e3a28ca7 100644 (file)
@@ -39,7 +39,7 @@ int checkboard(void)
        return 0;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
 #ifdef DEBUG
        int brate;
index c4dde92c1a16e8b1047943b4a02da9b6599d4379..7a17dfa55bdf413ead6243d8fbf4c86c9bb1af42 100644 (file)
@@ -48,7 +48,7 @@ int checkboard(void)
        return 0;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
 #ifdef DEBUG
        printf("SDRAM attributes:\n");
index e714177d7cb945e9a12849c58e76b6b371fe390c..cd7a04dbfa031b23880ef575a05cf465c4c60422 100644 (file)
@@ -97,7 +97,7 @@ void cf_outsw(unsigned short *addr, unsigned short *sect_buf, int words)
 }
 #endif                         /* CONFIG_BFIN_IDE */
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
 #ifdef DEBUG
        int brate;
index d504217a1a71ed2f56a9a1e9bb6d8ba98f8734b5..7345b42cb41fb764836fa3fbdcc47749b7e2721f 100644 (file)
@@ -39,7 +39,7 @@ int checkboard(void)
        return 0;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
 #ifdef DEBUG
        int brate;
index 485e050b19a65319a5b272326b32ff64193a4ec5..043143163ae0e99c3cca11b2c4bc24b174febbf8 100644 (file)
@@ -51,7 +51,7 @@ int checkboard(void)
     return 0;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
     return 64*1024*1024;
 }
index ca8eb0cb02bbddec7839acf5eb511772fcbd6198..7d2f746f4526238f23a69ddb61c20565257dca32 100644 (file)
@@ -108,7 +108,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 1782b314f88d71a833f623d892b0eb8eca0cc75a..d3711d0779948d8adee35e65b352122ece041e4f 100644 (file)
@@ -82,7 +82,7 @@ static void sdram_start (int hi_addr)
  */
 
 #if defined(CONFIG_MPC5200)
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
        ulong dramsize2 = 0;
@@ -185,7 +185,7 @@ long int initdram (int board_type)
 
 #elif defined(CONFIG_MGT5100)
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
 #ifndef CFG_RAMBOOT
index 79fb71dc704ee3f997b64694a228edbc155f15c6..3e952d869f7e6100ae3963509a293a81eceb8863 100644 (file)
@@ -114,7 +114,7 @@ static mem_conf_t* get_mem_config(int board_type)
 /*
  * Initalize SDRAM - configure SDRAM controller, detect memory size.
  */
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        ulong dramsize = 0;
 #ifndef CFG_RAMBOOT
index cbf34f7854ea0146418ab35c4080646e3dc1ae36..8501cae21adf3260f27ab2e68bf475c73ed075f5 100644 (file)
@@ -62,7 +62,7 @@ int checkboard(void)
 /*
  * Get RAM size.
  */
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        return (SRAM_SIZE);             /* We currently have a static size adapted for cmi board. */
 }
index 86c7ee1eec02a74d64885b329947999b82263813..b9285505041759e9b6e0405f018497402e0cec5c 100644 (file)
@@ -32,7 +32,7 @@ int checkboard (void)
        return 0;
 };
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile sdramctrl_t *sdp = (sdramctrl_t *) (MMAP_SDRAM);
 
index 917132b3fbca8e900f57a1615677d91949101446..619aea3c0cb2240cf69310783f19f672d24b8ba5 100644 (file)
@@ -233,7 +233,7 @@ int misc_init_f (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
 #ifdef CONFIG_CMA111
        return (32L * 1024L * 1024L);
index 79eb47317621dfa3f2a39f7246822e8a36b7d717..f4e867ce7d00891c4ca9e141353cd90fcd8c8737 100644 (file)
@@ -61,7 +61,7 @@ int checkboard(void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        int m, row, col, bank, i, ref;
        unsigned long start, end;
index 0eb94efdaa70ce1384e513e9968a80cb71718284..9e76c72d3e3631ff8140f016974361511965239a 100644 (file)
@@ -273,7 +273,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
        return (size);
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
index a2fd19398bd5f758648b6ad9f4d803bab7243a5f..f5a5de5d820b645ec789db1cf19e229c319e4167 100644 (file)
@@ -274,7 +274,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
        return (size);
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
index a72ba4620b52a264c478aee49e967cd95551a3b5..f0dfa07fdcc8830a74f87dfa2aeed0210ef3238a 100644 (file)
@@ -170,7 +170,7 @@ int misc_init_r (void)
 }
 
 /* ------------------------------------------------------------------------- */
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return (L1_MEMSIZE);
 }
index 640412d10d1bb3d7ba5e694d2ce6890a2076fba9..5a585ae37f79398f65fbfae31c4598c7a2bf6780 100644 (file)
@@ -120,7 +120,7 @@ int checkboard(void)
  * configured by initialization code
  *
  */
-long initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong tot_size;
        ulong bank_size;
index 1fbf17f9441aada8eec3675e4aa9338642fb1a8f..9dc130efc1757fec448959aeab21224d0af2efa5 100644 (file)
@@ -88,7 +88,7 @@ int checkboard(void)
  * configured by initialization code
  *
  */
-long initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong tot_size;
        ulong bank_size;
index 3edd27a3ebd101443f439d26857c35acda5cb9e0..ecf6328945bb29a2f2a968d46547bf5dbd4c4287 100644 (file)
@@ -45,7 +45,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        long size;
        long new_bank0_end;
index e8302d9fc7f72befebaa790f499ab098201474ab..c9b288a41308221277b0044bb74604b4254db68d 100644 (file)
@@ -203,7 +203,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;
 
index 1be72a2dd3e7731795c583688a7ccc58a38ec679..629dc317e090589b1d193ceb8cf5fb4019ef7c2c 100644 (file)
@@ -27,7 +27,7 @@
 #include <asm/mipsregs.h>
 #include <asm/io.h>
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        /* Sdram is setup by assembler code */
        /* If memory could be changed, we should return the true value here */
index 2e3f51998ee5b178b4edc53915452ea823fd90cc..385b498d09f287783ae7ae5ca9a7e55955c6dc65 100644 (file)
@@ -52,7 +52,7 @@ int checkflash (void)
        return (0);
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        int i, cnt;
        volatile uchar *base = CFG_SDRAM_BASE;
index 555475e4d9c5872a3d52bc3f9465def4aa88466c..af52352374cd80d8f124eca0242a6e2cb6f1b1e1 100644 (file)
@@ -162,7 +162,7 @@ long int dram_size (int board_type)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return dram_size (board_type);
 }
index 108adb13d5fb70c4d9ab79973756e562ba43c6ee..1b70605e28a282cc62882a77f60b8bde13a6d7fe 100644 (file)
@@ -104,7 +104,7 @@ long int dram_size (int board_type)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return dram_size (board_type);
 }
index 0ffbdf0e575a765536c3d3b29811159b2b5ac28d..3666791e986d439ec2686c06c3c4c5dc1547fc17 100644 (file)
@@ -251,7 +251,7 @@ int misc_init_r (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index ccbd72a79b5b7e883842f4966e10529a1002cd80..27886261c779bf0bf2d18b89930166ab374d1e06 100644 (file)
@@ -32,7 +32,7 @@
  * initialize SDRAM/DDRAM controller.
  * TBD: get data from I2C EEPROM
  *****************************************************************************/
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
 #ifndef CFG_RAMBOOT
index 84afaaa2b2a0011144a328ac070e75d385ff422a..aca4991f54ac2815b987ae172f1eb350618c2e8a 100644 (file)
@@ -76,7 +76,7 @@ int checkboard (void)
 /*****************************************************************************
  * Initialize DRAM controller
  *****************************************************************************/
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 69975caa2ee512264cbf1694e44771f8148a1f36..4cfb2acc85c3109bc850d01df7a1127bd97d2ee4 100644 (file)
@@ -208,7 +208,7 @@ int board_early_init_f (void)
        return 0;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        vu_char *bcsr = (vu_char *)CFG_BCSR;
        long int msize = 16L << (bcsr[2] & 3);
index b9e1df43d75848dfa1e0cd4e874081894179ba2f..0e43c6df974e60a982a04de0e4430a90c293b0ae 100644 (file)
@@ -243,7 +243,7 @@ int checkboard (void)
 /* ------------------------------------------------------------------------- */
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
index 27443d3dfbc0be9ff82d7c764c357a533c599bf4..03baf0b59a45bb324b30914746530d152b84217b 100644 (file)
@@ -219,7 +219,7 @@ int board_early_init_f (void)
        return 0;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        /* Size in MB of SDRAM populated on board*/
        long int msize = 256;
index 5f57f36bbf564605f4e7a0adb82eb9670cd5e379..92e5f0c12c25e84ad3eb910f0e963f99cbf2b76b 100644 (file)
@@ -86,7 +86,7 @@ int board_early_init_f (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long int msize;
        volatile immap_t     *immap  = (volatile immap_t *)CFG_IMMR;
index 14ba9b0a4132d9f1dc81b3b4bdba0946a8f30a06..972d485b5a6d06e8373cabae9d73cc300fde1eec 100644 (file)
@@ -121,7 +121,7 @@ int checkboard (void)
 */
 /* ------------------------------------------------------------------------- */
 /* ------------------------------------------------------------------------- */
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
 #ifndef CONFIG_ERIC
        int i;
index 7a11a12cefbb5035e4912096ef167bd42e126a80..0f655b78a5f0e79d99df92f216d842855df67e02 100644 (file)
@@ -79,7 +79,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return (16 * 1024 * 1024);
 }
index 2cb743ef49643853424bc1480d16bf0e5a0be800..83657c8d5dfb8e7896c70beef1f5ae1cff09fec2 100644 (file)
@@ -423,7 +423,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;
 
index 8a5b03bcedb3d35a8ac79e247028a2cb2f27dea8..25360a65659ef5a8cd0ad04e6c22bcba10412b7f 100644 (file)
@@ -207,7 +207,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;
 
index 3d4f2371d957e26109fb71910c2f4e00499b8a63..ba27c030b7a95601601b7efcd779f36668e211aa 100644 (file)
@@ -141,7 +141,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;
 
index 36bf329f8192f8962159f3caaa22b7aea955b746..54de0b80628171fd4fe39c809a2542b20b26e944 100644 (file)
@@ -117,7 +117,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;
 
index 69cb8cef562f65239da73e9201d9284d58efc7f3..b856705ff98a698b109265120f7a8f9ef465aec0 100644 (file)
@@ -495,7 +495,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;
 
index adb8597e1cf70096d29bcda40fac575711628078..20130acfe858fec4eb24a7407ee15cd997bdd614 100644 (file)
@@ -84,7 +84,7 @@ static void sdram_start(int hi_addr)
  *            is something else than 0x00000000.
  */
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        ulong dramsize = 0;
        ulong test1, test2;
index f43e83f4914dbd56a349911815bb36c15cee0fd0..a479f0f5f83672440a7a18f8c1e007e8baf80778 100644 (file)
@@ -1602,7 +1602,7 @@ dram_size(long int *base, long int maxsize)
 
 /* ppcboot interface function to SDRAM init - this is where all the
  * controlling logic happens */
-long int
+phys_size_t
 initdram(int board_type)
 {
        int s0 = 0, s1 = 0;
index fcb8cbbe735caf24f07e576103ea7b91097dbb29..204117edf5f0ed48deac6627994f11db65a6ded5 100644 (file)
@@ -186,7 +186,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return (16 * 1024 * 1024);
 }
index 2f8ab1a47873e1dfb28c8f24d7e34393a3f8456e..fb0c77e56649d40cad288687aa25dc8d55da098b 100644 (file)
@@ -206,7 +206,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return (16 * 1024 * 1024);
 }
index 240ab78aa796e71f3b352543ec1ac846297087cb..bb3baa477ee442d7ae158306508792187b9bbdd8 100644 (file)
@@ -122,7 +122,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;
 
index 69432138d3152f75e059cd459ce574bc6bbff4f8..78ae4ba67b6fb9dd71d2690e62b07743e0a5c916 100644 (file)
@@ -200,7 +200,7 @@ int checkboard (void)
 }
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return (16 * 1024 * 1024);
 }
index 279d9214e2cf4db0085ee3e417c0bc72207e6438..802491a313a1afad43d20fe274b1d8d3c6f75ae4 100644 (file)
@@ -644,7 +644,7 @@ int checkboard (void)
 }
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;
 
index 25c8068fdecc8824b01ffd8f85ef3b5ef37fcbf6..03b87c9dfcad1d36c7eeced72754c6f59bfd1b1e 100644 (file)
@@ -229,7 +229,7 @@ int checkboard (void)
 }
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;
 
index ea49f264ab866e531df16f7e391dc585a85b9459..6d776b7a63c273f870dcbb4147e9c957782f35d7 100644 (file)
@@ -84,7 +84,7 @@ static void sdram_start(int hi_addr)
  *            is something else than 0x00000000.
  */
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        ulong dramsize = 0;
        ulong test1, test2;
index 261b8a54d022bbe55c0c108b7683d124d96b114c..7b0edd5958d682683d7d7a945470951163dfe042 100644 (file)
@@ -101,7 +101,7 @@ int checkboard (void)
 }
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;
 
index c4ab0720091d69798147e91b07f8bc33d2ab43af..f740d595bef01f9b7458708eab5c074611d31282 100644 (file)
@@ -358,7 +358,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;
 
index 48b80bfc5fb8d07e27f62fc6ce2c20d431480a8b..7970f8988fce6cfd8a5ecc0275d6d7358c8ae696 100644 (file)
@@ -84,7 +84,7 @@ static void sdram_start(int hi_addr)
  *            is something else than 0x00000000.
  */
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        ulong dramsize = 0;
        ulong test1, test2;
index 57762b54ee043e3262996e3f77323a584857d1e2..fc71e9a2a1aa0a7dff03d46826e2ead6d37c66ac 100644 (file)
@@ -232,7 +232,7 @@ int checkboard (void)
 }
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;
 
index 7499671aaf5d031c81994df148aa40a9a94a7dc8..326d560352c0deeb33f17c787685715574e7196c 100644 (file)
@@ -157,7 +157,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;
 
index 624c45791fa41f6823371baae65a161fb97a7569..c7294c994598649797ab04fe2644a35f006bf50e 100644 (file)
@@ -50,7 +50,7 @@ extern void denali_core_search_data_eye(void);
  * initdram -- 440EPx's DDR controller is a DENALI Core
  *
  ************************************************************************/
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
 #if !defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL)
 #if !defined(CONFIG_NAND_SPL)
index 16724005b76889bd1856014414205bd21829ee04..fabb7464fde55e379094d8b8ce21a0d46328947b 100644 (file)
@@ -77,7 +77,7 @@ int checkboard (void) {
 };
 
 
-long int initdram (int board_type) {
+phys_size_t initdram (int board_type) {
        unsigned long   junk = 0xa5a59696;
 
        /*
index 87a584979b9c545e1500218f3e14774b85d61229..52534220a74ee3a6cda0ab1c3ed320d623394a98 100644 (file)
@@ -305,7 +305,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;
 
index 8be552e2ea2511e3c2ae750db8b654670d022221..af8efcff3e2966d2f39da7314bdf12536b643d07 100644 (file)
@@ -129,7 +129,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;
 
index dba3ce88840e2f629955a1fd069e48c17eb426b1..0590fc78f8d50272b0b48a2b61066c0673e3acf5 100644 (file)
@@ -205,7 +205,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;
 
index 3959eead27205bfe37105464e561ef3cb65d80e7..f3c8662cdba42b37693ffb90640ff5d6cad970dd 100644 (file)
@@ -101,7 +101,7 @@ int checkboard (void)
 /* ------------------------------------------------------------------------- */
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 67375e9feadd02dcade0cfd9383d355e03d142c9..763760fd23e6464ec831816f866e748c2ba71af6 100644 (file)
@@ -53,7 +53,7 @@ int checkflash (void)
 }
 #endif
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        int m, row, col, bank, i;
        unsigned long start, end;
index de62fa0973870b18085da16c364aae110604dc54..bfd6854c5d661b2c1c2f3afb7f824f4205af3731 100644 (file)
@@ -93,7 +93,7 @@ unsigned long setdram(int m, int row, int col, int bank)
        return (1 << (col + row + 3) ) * bank * m;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        unsigned int msr;
        long int size = 0;
index eb58b5d52989641f0cfc408e5fa38a676e154120..7806519e305b0a4feca9fe4f8c166d2853e4f946 100644 (file)
@@ -125,7 +125,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index fae6d1090dfdc7bb295deffb355f408cb657132f..9ae446544171ed76ef845012950fc7fcf547b7b9 100644 (file)
@@ -524,7 +524,7 @@ static long int dram_size (long int *base, long int maxsize)
 
 /* U-Boot interface function to SDRAM init - this is where all the
  * controlling logic happens */
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong checkbank[4] = {[0 ... 3] = 0 };
        int bank_no;
index 49031cfce6660b62e26cc40551c81a024157be5b..0b08a39f90ded230671def5ebd2f82f341e37bc4 100644 (file)
@@ -71,7 +71,7 @@ int checkboard (void)
 }
 
 /* ************************************************************************ */
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 /* ------------------------------------------------------------------------ --
  * Purpose     : Determines size of mounted DRAM.
  * Remarks     : Size is determined by reading SDRAM configuration registers as
index 8f5736b4141a08d3094fda521e759e3c884525e4..9e601df1bc705573d3863f8cbc640c8a3b370650 100644 (file)
@@ -600,7 +600,7 @@ static int initsdram(uint base, uint *noMbytes)
 
 /* ========================================================================= */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        uint sdramsz = 0;       /* size of sdram in Mbytes */
        uint base = 0;          /* base of dram in bytes */
index 9c553676ec171aa491e1b36f4ef6076a2b03a8b9..7caedc99a32f063bc0cba55d36c6ca259f86c8ff 100644 (file)
@@ -96,7 +96,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 98424c898bdc847279a9b1de512e0d56757a3a09..e5f47d2d93860b774ae9223a6773b725bd396fbc 100644 (file)
@@ -36,7 +36,7 @@ int checkboard(void)
        return 0;
 };
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile sdramc_t *sdram = (volatile sdramc_t *)(MMAP_SDRAM);
        u32 dramsize, i;
index 585854cd91b7f7ef4c500f82290d0f0fdadfd22b..c2c8fe859085c1373f58bc564a915590843962e8 100644 (file)
@@ -37,7 +37,7 @@ int checkboard(void)
        return 0;
 };
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile sdram_t *sdram = (volatile sdram_t *)(MMAP_SDRAM);
        volatile gpio_t *gpio = (volatile gpio_t *)(MMAP_GPIO);
index e8f621ba3f3afa6d34a0f6e200e6d0c46f31221b..c9ed341bbd1c875788bbd0b4172344db4e7eeeb9 100644 (file)
@@ -49,7 +49,7 @@ int checkboard (void) {
 };
 
 
-long int initdram (int board_type) {
+phys_size_t initdram (int board_type) {
        unsigned long   junk = 0xa5a59696;
 
        /*
index 43aa84de227e081c08f8c56ea132fc3bb1a5b91d..f80a47c7b77db2fc3c326bbfc0c0a1a3c5f424bf 100644 (file)
@@ -34,7 +34,7 @@ int checkboard(void)
        return 0;
 };
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        int i;
 
index a1b2902935f4f17f07c525cc44d7b2192085a8f1..be19e02751cb055ae7d6e780562cc0a684b772d1 100644 (file)
@@ -36,7 +36,7 @@ int checkboard(void)
        return 0;
 };
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile sdramctrl_t *sdp = (sdramctrl_t *)(MMAP_SDRAM);
        volatile gpio_t *gpio_reg = (gpio_t *)(MMAP_GPIO);
index 242eb1a18825602baddab18fc2182909afb5e42a..f9fa9fb9cf2b2d6de83ab143ca7f764a1eb3446d 100644 (file)
@@ -37,7 +37,7 @@ int checkboard(void)
        return 0;
 };
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile sdram_t *sdram = (volatile sdram_t *)(MMAP_SDRAM);
        u32 dramsize, i;
index 26b87b99f0b96eb16341e54865cc16a6639693dd..a269ee6d44cd8b8bf1fdfdd7e8d9d6cd42738bfb 100644 (file)
@@ -37,7 +37,7 @@ int checkboard(void)
        return 0;
 };
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile sdram_t *sdram = (volatile sdram_t *)(MMAP_SDRAM);
        u32 dramsize, i;
index 6a0278252faade611e038a223eda6009fe3041b8..0480b5468580dc324ff0beebe52200abca1e160f 100644 (file)
@@ -37,7 +37,7 @@ int checkboard(void)
        return 0;
 };
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile sdramc_t *sdram = (volatile sdramc_t *)(MMAP_SDRAM);
        volatile gpio_t *gpio = (volatile gpio_t *)(MMAP_GPIO);
index 539da78de984782b161574ab1afea1ea2fb63265..6d7d27090f1f950a33f13f6e21ee7b284b96f7bc 100644 (file)
@@ -38,7 +38,7 @@ int checkboard(void)
        return 0;
 };
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile siu_t *siu = (siu_t *) (MMAP_SIU);
        volatile sdram_t *sdram = (volatile sdram_t *)(MMAP_SDRAM);
index 03728074863b19eed9b06add838ef688178a61dd..e6510c9559f9bd632b4a17937eb2b4a3963143c8 100644 (file)
@@ -38,7 +38,7 @@ int checkboard(void)
        return 0;
 };
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile siu_t *siu = (siu_t *) (MMAP_SIU);
        volatile sdram_t *sdram = (volatile sdram_t *)(MMAP_SDRAM);
index f6cd192a810f1f0112ef02716c78aa2783758bf1..b3d83cc19f7793bded7bd1c160f370d4c1873dc7 100644 (file)
@@ -81,7 +81,7 @@ long int dram_size (int board_type)
        return 0x20000000;      /* 256M bytes */
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return dram_size (board_type);
 }
index 548d813af5d4352adffd4c05f7f884f451a6eef0..6f683f031bd8dfd3ffed1cadfc1f137a24750ad2 100644 (file)
@@ -304,7 +304,7 @@ int board_early_init_f (void)
 
 #define ns2clk(ns) (ns / (1000000000 / CONFIG_8260_CLKIN) + 1)
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
 #if   CONFIG_ADSTYPE == CFG_PQ2FADS
        long int msize = 32;
index 8f7273c41d8761d30d03ed18ed71f7cd038fa2ec..090a534134ae23e04b1bae655ab001e6f5a9a6b1 100644 (file)
@@ -251,7 +251,7 @@ int checkboard(void)
     return 0;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        /* Autoinit part stolen from board/sacsng/sacsng.c */
     volatile immap_t *immap         = (immap_t *)CFG_IMMR;
index 16ec4bbf54645a63b6c915778f8d1fd87e0832b1..afd8b9d5ed4af180d78c798c2b15ada2247be270 100644 (file)
@@ -104,7 +104,7 @@ static long fixed_sdram(void)
        return msize;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile immap_t *im = (volatile immap_t *)CFG_IMMR;
        volatile lbus83xx_t *lbc = &im->lbus;
index f97e3c78043ed139ae6b6dc0277566c3ee8060ea..07e6486eeac019a115b8708be03e127022669f4e 100644 (file)
@@ -101,7 +101,7 @@ static long fixed_sdram(void)
        return msize;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile immap_t *im = (volatile immap_t *)CFG_IMMR;
        u32 msize;
index afc0eee3b70783fc0222d4375e006c48c32ca4a3..f5220abdb0b94af45809e371f7e6b110e78933ee 100644 (file)
@@ -73,7 +73,7 @@ int board_early_init_f(void)
 
 int fixed_sdram(void);
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile immap_t *im = (immap_t *) CFG_IMMR;
        u32 msize = 0;
index c10b30f24e2b3ca53e3ace4cf895ddbdc67482d9..4ad6e9d4545a0130ad1026604327fc8a7d940106 100644 (file)
@@ -94,7 +94,7 @@ int board_early_init_r(void)
 
 int fixed_sdram(void);
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile immap_t *im = (immap_t *) CFG_IMMR;
        u32 msize = 0;
index e18e68e8cec3f17622a005530bb3ebdbe2bf405c..4d57fafc9ad33d9661b356148d587ccc32be0365 100644 (file)
@@ -59,7 +59,7 @@ int board_early_init_f (void)
 
 #define ns2clk(ns) (ns / (1000000000 / CONFIG_8349_CLKIN) + 1)
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *im = (immap_t *)CFG_IMMR;
        u32 msize = 0;
index 0317bfe6d4eda4d8c5ad164a7913c650b913dc05..d3fc560df3586f6c5465741ebaa8d196287ccbcd 100644 (file)
@@ -128,7 +128,7 @@ volatile static struct pci_controller hose[] = {
 };
 #endif                         /* CONFIG_PCI */
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile immap_t *im = (immap_t *) CFG_IMMR;
        u32 msize = 0;
index 2119320da7f423d6395e4eef87dafa409790f7bc..5c3b5dbc934d0f98aa7e704dd99d03d7db92ecea 100644 (file)
@@ -122,7 +122,7 @@ extern void ddr_enable_ecc(unsigned int dram_size);
 int fixed_sdram(void);
 void sdram_init(void);
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile immap_t *im = (immap_t *) CFG_IMMR;
        u32 msize = 0;
index 3bcdda7334b5886da334b40ed5ca89951bec2cf2..61d70001473329d584f1f52f98f228137f45f356 100644 (file)
@@ -266,7 +266,7 @@ int fixed_sdram(void)
        return msize;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
 #if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRC)
        extern void ddr_enable_ecc(unsigned int dram_size);
index 40a505b1d4cb0aeb3f08097fd943fc4b787fbb1f..40f1e63281d5a2992da2f349eeb4bd43e1e3eb4b 100644 (file)
@@ -75,7 +75,7 @@ extern void ddr_enable_ecc(unsigned int dram_size);
 #endif
 int fixed_sdram(void);
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile immap_t *im = (immap_t *) CFG_IMMR;
        u32 msize = 0;
index f73fd5aa55c5b6dc6f40e6c23caf386c2e8f7302..aaefc189913e4bb4c29238bcfd72ad59014ca652 100644 (file)
@@ -64,7 +64,7 @@ void ddr_enable_ecc(unsigned int dram_size);
 #endif
 int fixed_sdram(void);
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        immap_t *im = (immap_t *) CFG_IMMR;
        u32 msize = 0;
index 051f98570f815f5bfaa3f55d9ffc1941a184e96e..4f068cc8849a78d36d96b46a3ce1f74acce2918a 100644 (file)
@@ -61,7 +61,7 @@ int checkboard (void)
 }
 
 
-long int
+phys_size_t
 initdram(int board_type)
 {
        long dram_size = 0;
index 420a89ab1fd56624717ae51a3cc0e8d1c471efdd..3669ba95d35b062dfe7c1c514eebc03ffa2cf376 100644 (file)
@@ -240,7 +240,7 @@ int checkboard (void)
        return 0;
 }
 
-long int
+phys_size_t
 initdram(int board_type)
 {
        long dram_size = 0;
index 5041426edca5fe10131cf36232cff66ca5b61f74..f615b2384a967360a09796aaf647119dabc2c413 100644 (file)
@@ -59,7 +59,7 @@ int checkboard (void)
        return 0;
 }
 
-long int
+phys_size_t
 initdram(int board_type)
 {
        long dram_size = 0;
index ad29734b20f245d1de3a9654bdd7c72efb60d325..0b037cc69792319095706a416958b01dbef75bbf 100644 (file)
@@ -88,7 +88,7 @@ int checkboard (void)
        return 0;
 }
 
-long int
+phys_size_t
 initdram(int board_type)
 {
        long dram_size = 0;
index 74e20cb23fe16d706b8ad2e32ef2d833207d8626..9a65101dd275be552eef6acb0d3118c60da18928 100644 (file)
@@ -238,7 +238,7 @@ int checkboard (void)
        return 0;
 }
 
-long int
+phys_size_t
 initdram(int board_type)
 {
        long dram_size = 0;
index 144b584800d3d70c0c22b28941c991ce976ce5c3..2c14a880e0d9451c40204b4c461975e7b5d441ac 100644 (file)
@@ -264,7 +264,7 @@ int checkboard (void)
 }
 
 
-long int
+phys_size_t
 initdram(int board_type)
 {
        long dram_size = 0;
index f1928abf98cdcb6123358ddc66ebaeab24c883d8..2ccff7d81e9b7effeefbabfb5b5e6111ca0cbbe1 100644 (file)
@@ -140,7 +140,7 @@ int checkboard (void)
        return 0;
 }
 
-long int
+phys_size_t
 initdram(int board_type)
 {
        long dram_size = 0;
index ce563dc67a996d018c3f1c435115d28bacc59bbc..c85f373c1aaaded3e8db7ba0839434f63a031d8c 100644 (file)
@@ -113,7 +113,7 @@ int checkboard(void)
 }
 
 
-long int
+phys_size_t
 initdram(int board_type)
 {
        long dram_size = 0;
index 915fb58ee9c86db6fe4b45f0fa7db3bca601239f..cf540fc6518df7324fba3273e866d231806f1b99 100644 (file)
@@ -53,7 +53,7 @@ int checkboard(void)
 }
 
 
-long int
+phys_size_t
 initdram(int board_type)
 {
        long dram_size = 0;
index 9b5429afa525f390acd82353d1739ff09120eb38..1c3f627a44f47a487ccb9fb045d95c8fd38c6586 100644 (file)
@@ -318,7 +318,7 @@ do_reset (void *cmdtp, int flag, int argc, char *argv[])
 
 #define ns2clk(ns) (ns / (1000000000 / CONFIG_8260_CLKIN) + 1)
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
 #ifndef CFG_RAMBOOT
        volatile immap_t *immap;
index 9fcab74849834b91790b13a533b205ad3b611d9e..647f4b705b46f6d6797cc5778215a4cdd76f4b03 100644 (file)
@@ -131,7 +131,7 @@ long int init_sdram_static_settings(void)
  }
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long int ret;
 
index d99b45523ac84b211edf566b1b0b05dca6ca1a18..105a74714b965e4ca8f176fec792dfdf029b9160 100644 (file)
@@ -22,7 +22,7 @@
 #include <config.h>
 #include <asm/leon.h>
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        return 1;
 }
index e8617f0755ea543da5fc01ab79abda5d2b036360..2904d32586b3eccc1fe7b94599a67c3e8073bee5 100644 (file)
@@ -22,7 +22,7 @@
 #include <config.h>
 #include <asm/leon.h>
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        return 1;
 }
index 1ee70248124928f6f196e366ea1946a7b5327bf4..fc8cf84f9927656e44127442ce552688a6abbcbe 100644 (file)
@@ -22,7 +22,7 @@
 #include <config.h>
 #include <asm/leon.h>
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        return 1;
 }
index 70a2f23c55ac787d14dcd0467344bf7ac7579d63..deccd3d0e7870de04501119f801fecb2b27c9302 100644 (file)
@@ -26,7 +26,7 @@
 #include <common.h>
 #include <asm/leon.h>
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        return 1;
 }
index 55dfe8286a59344a6cf72a1484321ecc3a59cdbb..61445fe254f8ac24bf75d1aa92f611c2a1de749e 100644 (file)
@@ -26,7 +26,7 @@
 #include <common.h>
 #include <asm/leon.h>
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        return 1;
 }
index 73cc16d479276e0c014b97929ac332b129680240..e3d0e435d466ae8f8d58b5b7b4967842f6b2d53e 100644 (file)
@@ -158,7 +158,7 @@ int checkboard (void)
 /*
  * Initialize SDRAM
  */
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immr = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
index c75507f61d4167b046742e7004ffe164ce4ffd73..fc2116967a47f63ea48f86c3173c4ae4f65d2455 100644 (file)
@@ -118,7 +118,7 @@ static void PrintState (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *im = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &im->im_memctl;
index b1fcbf5cc36a2f49239aaf549ee4e24506a2d9b9..788a6a0948930a6e13ed9d26fa5275087f28c84d 100644 (file)
@@ -265,7 +265,7 @@ int initsdram (uint base, uint * noMbytes)
 #endif
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        u32 *i;
        u32 j;
index 3e56678c08ac4285e45e53955232a73653350000..cea65c677f0d92d637bbf0f62a40f5ba2adb9ffd 100644 (file)
@@ -83,7 +83,7 @@ void hw_watchdog_reset(void){
        }
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        /* Sdram is setup by assembler code */
        /* If memory could be changed, we should return the true value here */
index 2719a9585faa7e03006c1784f9662e197a5c23da..42c9e0d1089c39dc166f7068041e0e38f88ef141 100644 (file)
@@ -606,7 +606,7 @@ int testdram (void)
 /*                                                                  */
 /*                                                                  */
 /*********************************************************************/
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
index 8fd081fef3a33fb856a680dad619e3b395b73f45..f9b57204f0a5b4b748dcdf5d388fd50969bf575f 100644 (file)
@@ -134,7 +134,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index daab8334eeb1c57212b2c358d724c63fcd6686aa..5713a3384feef9502cc1e9f453f09ee9c5f287c4 100644 (file)
@@ -44,7 +44,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long size;
        long new_bank0_end;
index 8bdfe78e41f462224cb5e5fafa562bb6a68a2bb5..8cfd75bd832ac21e6084cd8eeb5d526c97d10d88 100644 (file)
@@ -80,7 +80,7 @@ static void sdram_start (int hi_addr)
  *           is something else than 0x00000000.
  */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
 #ifndef CFG_RAMBOOT
index 13e60e22268a30a450dfe6dccad73a68470cfabe..91aaab1b08d47361c2ae359ee0428a43647ef675 100644 (file)
@@ -364,7 +364,7 @@ misc_init_f (void)
 
 /* ------------------------------------------------------------------------- */
 
-long
+phys_size_t
 initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
index 07ba2459d89023c59c9faff3a8f125d5f3cea4c6..760db736872a5a0890e78229b64f05ace66b0c26 100644 (file)
@@ -134,7 +134,7 @@ static void sdram_start (int hi_addr)
  */
 
 #if defined(CONFIG_MPC5200)
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
        ulong dramsize2 = 0;
@@ -259,7 +259,7 @@ long int initdram (int board_type)
 
 #elif defined(CONFIG_MGT5100)
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
 #ifndef CFG_RAMBOOT
index 8da9d1c9a49f70882781c0b198c7e9c9a114573a..18aa8bf6dd98930715c1e5050b0f76aa57ead809 100644 (file)
@@ -94,7 +94,7 @@ static long int dram_size (long int, long int *, long int);
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 081c37533591c0c09d5c64c352c3b631dc5064e4..4f073fc319020df7cdee452f4c3f4e767c752af8 100644 (file)
@@ -29,7 +29,7 @@ int checkboard (void) {
        return 0;
 };
 
-long int initdram (int board_type) {
+phys_size_t initdram (int board_type) {
        int i;
 
        /*
index 7176770f6854731c7b9871bc5598c987f44a594d..8ec4cd717995b708a39cdb22efd51356690cddd6 100644 (file)
@@ -276,7 +276,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
        return (size);
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
index dc513739fa3fce57c133cc18313f599006924389..ac7ad8f292e438b00aa36607c8054d40a64cf373 100644 (file)
@@ -53,7 +53,7 @@ static ulong max_sdram_size(void)
        return size;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        int   rows, cols, best_val = *INCA_IP_SDRAM_MC_CFGPB0;
        ulong size, max_size       = 0;
index 46074e4649dacbc127dec224ab58fd821a104289..a2e35ff0f641bc54896c63ebfd784c2e3c7f4751 100644 (file)
@@ -92,7 +92,7 @@ static void sdram_start (int hi_addr)
  *           is something else than 0x00000000.
  */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
 #ifndef CFG_RAMBOOT
index 9dd809b67823784a80df0c171ae6b91e26f106b6..375cd4d2668b7235953ebf903704f3c6c0860225 100644 (file)
@@ -137,7 +137,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 0ca9cf5137eac4e1c0a91736f12273fb4c6c8bdc..e5d0254a12fe895f203eea799e32ac162781ac26 100644 (file)
@@ -193,7 +193,7 @@ const iop_conf_t iop_conf_tab[4][32] = {
         }
 };
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
index d39b8cd53359fd54e375f89208ae358cf627e5c9..12fb91fb8ac07230bb29e4b6e1da9849a30dcd8a 100644 (file)
@@ -356,7 +356,7 @@ static int hwc_board_type (char **str)
        return id;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long maxsize = hwc_main_sdram_size();
 
index 7927ea9a50289e16486071a73333f45bbb1f2395..4882f0450d7b7f5ec2fcd51cabfe705939e8ec49 100644 (file)
@@ -159,7 +159,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immr = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
index 9060d979d0a636b1d67bfec65edd5b7269e74204..8ba6c454fd3b681e76132ff5d3163619b81419ef 100644 (file)
@@ -30,7 +30,7 @@
  * in lib_ppc/board.c to initialize the memory and return what I
  * found.
  */
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        /* Configure the SDRAMS */
 
index efdc333493ec6d40413d37cf87b12f2346958048..7913c753765f609646ac5deaf6826434b9bb5488 100644 (file)
@@ -92,7 +92,7 @@ static void sdram_start (int hi_addr)
  *            is something else than 0x00000000.
  */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
        ulong dramsize2 = 0;
index 4e377a142bb5dadb795f87a6db068ecee288499f..66d618072d69a9e170e46d4d9fa240390bef10cc 100644 (file)
@@ -137,7 +137,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index cd9ed13d6d5f4ee53027c1b6a138f6af5c9973bc..f07ef187030db9086f55137158a521281d9468b1 100644 (file)
@@ -134,7 +134,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 417dbbb05b0a669f4150e9a4e633fc5334866e15..46f4da9e66122cb7a0434dfd184c5967eea44cb4 100644 (file)
@@ -109,7 +109,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index f6bc0a958da9812ad4250028a89edfb9f1779144..241cf032d86698dbff68c58f3854317231ced2cb 100644 (file)
@@ -50,7 +50,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return (get_ram_size(CFG_SDRAM_BASE, CFG_MAX_RAM_SIZE));
 }
index c68978aa984bb416a8db8e36f7b1da008a4e9436..4a2d8e4a4fd9dec55b99e37b6963170562e508f5 100644 (file)
@@ -192,7 +192,7 @@ int checkboard (void)
 }
 
 /***********************************************************************
-F* Function:     long int initdram (int board_type) P*A*Z*
+F* Function:     phys_size_t initdram (int board_type) P*A*Z*
  *
 P* Parameters:   int board_type
 P*                - Usually type of the board - ignored here.
@@ -209,7 +209,7 @@ D* Design:       wd@denx.de
 C* Coding:       wd@denx.de
 V* Verification: dzu@denx.de
  ***********************************************************************/
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immr = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
index 36b51007eadba92dc2c156dee05e5ea1f830aba2..0a13831156ca81d4532d1b4ad044f057e6de3dde 100644 (file)
@@ -158,7 +158,7 @@ static void program_ecc(u32 start_address,
  * initdram -- 440EPx's DDR controller is a DENALI Core
  *
  ************************************************************************/
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
 #if 0 /* test-only: will remove this define later, when ECC problems are solved! */
        /* CL=3 */
index 9caad6325a5a3094be214045c973c87217eafb73..e089d5f02f1ff7c473d90d884c4207ca99dbc49e 100644 (file)
@@ -29,7 +29,7 @@ int checkboard (void) {
        return 0;
 };
 
-long int initdram (int board_type) {
+phys_size_t initdram (int board_type) {
 
        int i;
 
index 6dcda4f25413828999285e46cc57d1bbc75f3b44..d17cb2ef98d8e3536af6bf946ce430b353448fd5 100644 (file)
@@ -31,7 +31,7 @@ int checkboard (void) {
        return 0;
        };
 
-long int initdram (int board_type) {
+phys_size_t initdram (int board_type) {
        volatile sdramctrl_t * sdp = (sdramctrl_t *)(MMAP_SDRAM);
 
        sdp->sdram_sdtr = 0xf539;
index 7d6d1d6231a1b1daa6be1ed33bf93c5587d4168a..50e5e77368651498f5209438bc4984d5505c6bba 100644 (file)
@@ -32,7 +32,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        u32 dramsize, i, dramclk;
 
index 9a9bf809eaa2bc005fe20f638dcee0250f93f1d1..414d87919333ee574cdd0b6799c31cf2141c3fef 100644 (file)
@@ -304,7 +304,7 @@ static ulong get_ramsize (dimm_t * dimm)
        return size;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index a4c4644b4c003513c9abc64ba341d937c1045b6b..77ee3d7ed72cbbff27fffb83971f6c52ebbc394d 100644 (file)
@@ -96,7 +96,7 @@ static void sdram_start (int hi_addr)
  *           is something else than 0x00000000.
  */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
        ulong dramsize2 = 0;
index e7c3fa00c761796a4ec601f0d83257a3e2d22b54..89ced1eca7b0c09a8befc4e3cd2527f19c9052cf 100644 (file)
@@ -249,7 +249,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
        return (size);
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
index e0123bfa501b5bfddbd8265ae70a2134b314f7c2..d81cafbb43803cf8f4481f2877b5db7b942eab18 100644 (file)
@@ -66,7 +66,7 @@ int checkboard (void)
        return (0);
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index f32e512d4f35ae6dbedb2dc5d11d57d1b41665d0..981e1decda55ca2e11d043eb42b2aec0f38ecddb 100644 (file)
@@ -53,7 +53,7 @@ int checkboard (void)
 }
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return 32 * 1024 * 1024;
 }
index 68257b861d53a9a52c808a0a503c383c1f60db17..3b340622266f5f2df8caf57e1cc2fdf69b114292 100644 (file)
@@ -132,7 +132,7 @@ static void sdram_start(int hi_addr)
 /*
  * Initalize SDRAM - configure SDRAM controller, detect memory size.
  */
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        ulong dramsize = 0;
 #ifndef CFG_RAMBOOT
index 7208a17c1a6ab86479c1193aea5383609c080920..f8f152976c2900011d2c20d3bdb41c3fdfe14720 100644 (file)
@@ -55,7 +55,7 @@ int checkflash (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return CFG_RAM_SIZE;
 }
index 8328b3a062c3416581e657a011450a36addcf82b..1ac333c815772813ca4b076c5dbf8aa997f0b1e8 100644 (file)
@@ -61,7 +61,7 @@ int checkboard (void)
        return (0);
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long dram_size = 0;
 
index 9e8f9bbdd41ab95434d695e511609e869be8c64b..cf0afd1addf28d0b9ddaef97d97481b42941a0e8 100644 (file)
@@ -620,7 +620,7 @@ int checkboard (void)
 /* ------------------------------------------------------------------------- */
 static int test_dram (unsigned long ramsize);
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
 
        unsigned long bank_reg[4], tmp, bank_size;
index 7893d61f163c21f893b29bcad8bbdc5db79ff6f5..475741d2af77b50a677e225d887547d24c386103 100644 (file)
@@ -149,7 +149,7 @@ extern void mem_test_reloc(void);
 /*
  * Get RAM size.
  */
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        unsigned char board_rev;
        unsigned long reg;
index 38286081ae79bb62af6fd1a37295d0de39f94fbd..6cba892e78d990f9213f6f7f223fa529d901109b 100644 (file)
@@ -608,7 +608,7 @@ int checkboard (void)
 /* ------------------------------------------------------------------------- */
 static int test_dram (unsigned long ramsize);
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long bank_reg[4], tmp, bank_size;
        int i, ds;
index 395909d7cdafc5fb971bc39b93592d65e740050e..162f89c50045c6e3a99f8247591bfd1620d262f4 100644 (file)
@@ -74,7 +74,7 @@ static void sdram_start (int hi_addr)
  *            is something else than 0x00000000.
  */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
        ulong dramsize2 = 0;
index 4408b07c5531a7460700b252a1e9debe721388cc..b2b70e756d4d11aa232c32431fafd2b8af3c2b5c 100644 (file)
@@ -45,7 +45,7 @@ int checkflash (void)
 }
 #endif
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long size;
        long new_bank0_end;
index c02c59ce8a5b2f794da36737d47bb3a3f375e236..41cb39dc9c99171a359aac6a557a9f20ac4fd6fe 100644 (file)
@@ -73,7 +73,7 @@ int fixed_sdram(void)
        return CFG_DDR_SIZE;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile immap_t *im = (immap_t *) CFG_IMMR;
        u32 msize = 0;
index ee8f3e3015f865e1d0484e1997f80eeaaafae990..a979102ab5a5b40895454fabc83a5fd6906b4935 100644 (file)
@@ -76,7 +76,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long size;
        long new_bank0_end;
index f8a8cb7578b42ed8380c757f2a4d68e266907b29..58b84f5ae163b7171852368a6774bbe11369bf08 100644 (file)
@@ -136,7 +136,7 @@ static void test_dram (unsigned long *start, unsigned long *end)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 707e4b97d1713099d258cc732dc22c4beeac0560..657abc46d8617efe3fae67e271a76dcc95116b2f 100644 (file)
@@ -128,7 +128,7 @@ static long int dram_size (long int, long int *, long int);
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 1072b3f88a22dd834dec52b9e8b0b41bca771dcf..38eb7c81181b6f68e2f2b6623a4aaa85fd2403ae 100644 (file)
@@ -404,7 +404,7 @@ void check_ram(unsigned int addr, unsigned int size)
        }
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 42c7c16cdf01ca5eed700d1b6bb14fa415bd29f9..c144741822b41fdc90d1af7cb41d2307bbebc992 100644 (file)
@@ -154,7 +154,7 @@ int misc_init_r(void)
        return 0;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        long dram_size = 0;
        u16 boardVersReg = in_be16((u16 *)HCU_MACH_VERSIONS_REGISTER);
index d8817b831af0b51178756f1744ae41dd3daa0986..80e84aebb86665fa8821794e73f2956b4910804f 100644 (file)
@@ -199,7 +199,7 @@ static void program_ecc(unsigned long start_address, unsigned long num_bytes)
  * initdram -- 440EPx's DDR controller is a DENALI Core
  *
  ************************************************************************/
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned int dram_size = 0;
 
index 07891f6785a83844c9780d031c23cbb7199f088b..ed171bfeb072a841c9dd66b341353130fcd3088b 100644 (file)
@@ -161,7 +161,7 @@ int misc_init_r(void)
        return 0;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        unsigned int dram_size = 64*1024*1024;
        init_ppc405_sdram(dram_size);
index 5a75e53e0de6657a74c2b6946393afa2de5d4405..1183f33ef8c776cfffdc14419eef402ba087ea44 100644 (file)
@@ -337,7 +337,7 @@ void check_ram(unsigned int addr, unsigned int size)
        }
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index b216c5a8eff229ed504bebaf8e3caa0f131fd0b9..a97c14cee7766dca59d2a6247f8bc4aa990f6bf5 100644 (file)
@@ -402,7 +402,7 @@ void check_ram(unsigned int addr, unsigned int size)
        }
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 856b7769cd697ceb5222181984258fa0d52b4a0e..4140bac861193a071db7d497b177a4ba80636048 100644 (file)
@@ -245,7 +245,7 @@ int checkboard(void)
 #define MCR_MCLF(x)            ((unsigned long)((x) & 15) << (31 - 23))
 #define MCR_MCLF_MASK          MCR_MCLF(15)
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 4a426ec4980326ed96df67b9811df5963fb9a91d..18840ff48f212a34edf7125b80574cb8c43ff718 100644 (file)
@@ -157,7 +157,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 81a27002f43efc46f8ddaac6dd9224fb8e288edf..a4eed3a43611d5e77e2116b2a29432bd9985a20c 100644 (file)
@@ -67,7 +67,7 @@ static void sdram_start (int hi_addr)
  *            use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
  *            is something else than 0x00000000.
  */
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
        ulong dramsize2 = 0;
index 6cc3cc5a3e48e7e45da7404541a150b82d1598db..b61d3995121ef7bfa84453736bdab56a0c0be763 100644 (file)
@@ -34,7 +34,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
 #ifndef CFG_RAMBOOT
        long size;
index 82b7235209ddea479714f5add85f29e8d597765e..82e2613e2db4fd6f2b2b8bfb0f9162729213586f 100644 (file)
@@ -27,7 +27,7 @@
 #include <asm/mipsregs.h>
 #include <asm/io.h>
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        /* Sdram is setup by assembler code */
        /* If memory could be changed, we should return the true value here */
index 1148c6aa273d814501f772917d11469db8ce5d43..c1917c11b44abc206a0b5794eb4e4b2d5a6656ff 100644 (file)
@@ -63,7 +63,7 @@ u32 pcippc2_sdram_size (void)
        return in32 (REG (CPC0, RGBAN1));
 }
 
-long initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return cpc710_ram_init ();
 }
index 2b8992ec1dc1e97f5d5ee88dc50e8753335463ec..f66f3f233ecf31d829aa3b9a904cb8e9dedb20c7 100644 (file)
@@ -537,7 +537,7 @@ void spd_ddr_init_hang (void)
        }
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long dram_size = 0;
 
index 14c3f1d442f0c1d0e06df7ae08053d84dc4016bb..83d9bcd025f35f183eb45fdab32f6356fa4c2dff 100644 (file)
@@ -84,7 +84,7 @@ static void sdram_start (int hi_addr)
  */
 
 #if defined(CONFIG_MPC5200)
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
        ulong dramsize2 = 0;
@@ -187,7 +187,7 @@ long int initdram (int board_type)
 
 #elif defined(CONFIG_MGT5100)
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
 #ifndef CFG_RAMBOOT
index 1420e649d217da8941a01dcdc48729cc903e59e9..7ee3ab65c06483101984c17729eb29f3ac8d99ac 100644 (file)
@@ -279,7 +279,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
 }
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
index 98cd80bc8d5a758562cb2de4ec2759ef6d35f37b..6038e9758d16325d6bf1f93e0104d56825e950ff 100644 (file)
@@ -312,7 +312,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
 }
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
index 5d3252573ebe68b16ec1c9511fa867ec28f09c9c..555f6c0caab928ff1dceff01a0e590edcd30ac8e 100644 (file)
@@ -71,7 +71,7 @@ int checkboard (void)
 }
 
 
-long int
+phys_size_t
 initdram(int board_type)
 {
        long dram_size = 0;
index 6386abcd3f53035b03507559c339b2a883143ee8..bf325f89efc57fb821bd4ed8007733b362994435 100644 (file)
@@ -225,7 +225,7 @@ int checkboard (void)
 }
 
 
-long int
+phys_size_t
 initdram(int board_type)
 {
        long dram_size = 0;
index b2f348d4d6d5b24d101d831a1f279c0a34bb5c22..d905b2965cc7fa0a23ccd52090664ca43e564563 100644 (file)
@@ -75,7 +75,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long size;
        long new_bank0_end;
index 402ac5e20198b6c0b961bcc90fb4654ddc76f4be..061e01ec4fcbd2fa27f144e8d34d4ea18a344026 100644 (file)
@@ -29,7 +29,7 @@ extern void _start_warm(void);
  * the SDRAM was already initialised by board_asm_init (see init.S) so we just
  * return the size of RAM.
  */
-long initdram( int board_type )
+phys_size_t initdram( int board_type )
 {
     return CFG_SDRAM_SIZE;
 }
index 2b20c26f17478a43e56e108bf95df67b57865813..f3c85096b3fa4005da5f2dfe3739e45d6d3abb06 100644 (file)
@@ -199,7 +199,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
index 0464860424eae14a39f32b961ac51cd9ea38f0fb..d881d38079edbb7a0b6978add8e27d0c25750841 100644 (file)
@@ -160,7 +160,7 @@ long int dram_size (long int *base, long int maxsize)
 #define SDRAM_NOP                      0x5
 #define SDRAM_SELF_REFRESH             0x7
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        int tmp;
        int start;
index ea80dd139546282741771c974f6182ef6ffc0649..0afef6f967ad0ffe0b22d6c86477ff52833c1fa2 100644 (file)
@@ -34,7 +34,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return (0);
 }
index 1924ae3d172b3f2ea2a87d91bb6ca6e4207a66b0..95b48bc57b8b9f32106c0d90615934aaf6b4afce 100644 (file)
@@ -34,7 +34,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return (0);
 }
index 72d5734427adab9e97fe0af810eeef48073af98d..97755911297608976c8b862ebecedfd0bdbfbdc1 100644 (file)
@@ -124,7 +124,7 @@ static void sdram_timing_init (ulong size)
        }
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        /* The only supported number of SDRAM banks is 4.
         */
index 6e6eab27779b9018fc77edb732c008bcd6712b8a..7a69a00f99a0f0293c1be8127e5ab615933be857 100644 (file)
@@ -26,7 +26,7 @@
 #include <asm/mipsregs.h>
 #include <asm/io.h>
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        /* Sdram is setup by assembler code */
        /* If memory could be changed, we should return the true value here */
index 638bd6ca220dcad1fcf5da019c6dd7e36e391c59..81186782b2fad12037e941f03d507b45fc7352ed 100644 (file)
@@ -87,7 +87,7 @@ int checkboard(void)
        return 0;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        return CFG_SDRAM_SIZE;
 }
index afa6e113d828f771780159949b3f78ed623f145c..345f127b63a5c262741a8dcfa42f863bd5d4554f 100644 (file)
@@ -102,7 +102,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index ffb4c0ecf9f188d251bb5ad3bafd17ff96112114..c51e412f46d64c24f80da41fcb297ea19fad2c8f 100644 (file)
@@ -103,7 +103,7 @@ static long int dram_size (long int, long int *, long int);
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index be7977dec47e0d7fd5344271889f0287bf0b38ec..ad75c215612e57332ad0e63615d67b7121741e3d 100644 (file)
@@ -185,7 +185,7 @@ const iop_conf_t iop_conf_tab[4][32] = {
     }
 };
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        long int msize = CFG_SDRAM_SIZE;
 
index 9e60c2b646978beb3193740a2bc537f4e0610aa9..5b62af61467648867de300fcd92ace28f9f00409 100644 (file)
@@ -142,7 +142,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 8cb03c7f8495ab05464e2fc753e5766207e49810..e22dc5258738a28905d0ba56ed995c8529ce3c16 100644 (file)
@@ -92,7 +92,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index b4331f1cdeada216ebcbf72f7ff466a1f64eb06c..f633c5c476bf5ead2a4b47c455ac465a2cd03c24 100644 (file)
@@ -225,7 +225,7 @@ int checkboard(void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
     volatile immap_t *immap  = (immap_t *)CFG_IMMR;
     volatile memctl8260_t *memctl = &immap->im_memctl;
index 312d4b8605dd7fb4f28a7cbab5b682d6287a4cbc..eeec3b4dcd419cca328da3dc42b8e957d72fd755 100644 (file)
@@ -282,7 +282,7 @@ int misc_init_f (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
index e85a0fc4dbe9404af8f2d89a58a65be281d7394e..ecbe0211e9b984e8e58e2717fc12dbf2960f5b18 100644 (file)
@@ -159,7 +159,7 @@ int checkboard(void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
     volatile immap_t *immap  = (immap_t *)CFG_IMMR;
     volatile memctl8260_t *memctl = &immap->im_memctl;
index 8a831fa35f167cb0eb58a9c6ecca13c00fc2fc58..51b1c751408d2fb1e27696f0c765fc1d3ef222d3 100644 (file)
@@ -200,7 +200,7 @@ void sbcommon_fans(void)
  *  Initialize sdram
  *
  ************************************************************************/
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long dram_size = 0;
 
index aeb10a74347e721cbae6153d2fde87320106450b..7429647b80fd4fa78f86a13dfefb968e68faca73 100644 (file)
@@ -50,7 +50,7 @@ int checkflash (void)
 }
 #endif
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long size;
        long new_bank0_end;
index 0ae6d0ba4558a175379887d2165d821e065d6d57..7818cd7e5557a2b6e09dc67d93bf475c7d85c0a8 100644 (file)
@@ -96,7 +96,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return  spd_sdram ();
 }
index 8a52f67418090a4899f53de22ede19966386cb41..175720d90657bcfa8ed3191cfd500f99346f67b2 100644 (file)
@@ -45,7 +45,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        long size;
        long new_bank0_end;
index 48aefa010e240a63dc315f95b4078a37d252ed7e..5781f6281b78dfbe1e7454247b3291ad3cdb2c3d 100644 (file)
@@ -208,7 +208,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
index e89b6e824866e9217f0836ecd53a977f2443561b..4a44fda31e917711ff1cb828df3dd125fe58f192 100644 (file)
@@ -52,7 +52,7 @@ int board_early_init_f (void)
 
 #define ns2clk(ns) (ns / (1000000000 / CONFIG_8349_CLKIN) + 1)
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *im = (immap_t *)CFG_IMMR;
        u32 msize = 0;
index 9c8c6733f7a0bae277ab2a3db006f2a8ae57ebe2..91b40e59f0586752dd7558da0bf5bbb2ffd7a125 100644 (file)
@@ -81,7 +81,7 @@ int checkboard (void)
        return 0;
 }
 
-long int
+phys_size_t
 initdram(int board_type)
 {
        long dram_size = 0;
index 8df4f3a97538bfa498d5c935d40e44c2b51f64a0..2946ca105577bcc28d23ccc94b6304fc0d7d9c91 100644 (file)
@@ -257,7 +257,7 @@ int checkboard (void)
 }
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long dram_size = 0;
 
index 519f3327843ac031cb7dd1b2dfe13468f7ad36a0..c724effa06357f43137eea9cabeb8201e4c45901 100644 (file)
@@ -57,7 +57,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long dram_size = 0;
 
index fbdc1d769c6aa683e3373b929efa4ac6cb9f3144..3d1a6542dc3bd044936b11fd2ad62ef532068c60 100644 (file)
@@ -579,7 +579,7 @@ static int printSDRAMConfig(char reg, unsigned long cr)
 static unsigned int mbcf[] = {mem_mb0cf, mem_mb1cf, mem_mb2cf, mem_mb3cf};
 #endif
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned int mems=0;
        unsigned long ul1;
index 5a32e45e289049fac4b92aa82231255404d234df..d653763285ed58baec88f7b8747f4d845af32305 100644 (file)
@@ -155,7 +155,7 @@ static void init_leds (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
     volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
     volatile memctl8xx_t *memctl = &immap->im_memctl;
index e498937b65f8b85e468cd3ac3285a94bce9941c8..9c0ff02783405e44b2c1104939f5ba680f30409b 100644 (file)
@@ -100,7 +100,7 @@ const uint sdram_table[] = {
 /* ------------------------------------------------------------------------- */
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 8783aafe9a124a16797f4275747572409f97f974..6a9dd25835a913cc865164756442a53ec724024a 100644 (file)
@@ -306,7 +306,7 @@ int power_on_reset (void)
        return gd->reset_status & RSR_CSRS ? 0 : 1;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
index 2309069a606dac43241002fbc0365b2362e75ce8..5647f7af04f799e605d381621a2723366c17eaa0 100644 (file)
@@ -156,7 +156,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immr = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
index 798e1855bd4902028b093f4841a1cab29ef7a7fa..dcd34726b00ad8a4c01b2cb6aeacc95d57174390 100644 (file)
@@ -496,7 +496,7 @@ const uint sdram_table[] =
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile immap_t     *immap = (immap_t *)CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 593eb4ee80e5bea5db5cd95fe657f0d320e7d616..86478871bcbd52e08c89abfa0a960d2d91888205 100644 (file)
@@ -34,7 +34,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
 #ifndef CFG_RAMBOOT
        long size;
index 637f1250e90243f2cca004288d993c18327c1299..ba5a8fb0a1f6a89a01f25975ca3ef5278dfbd2f8 100644 (file)
@@ -143,7 +143,7 @@ int checkboard (void)
 #define REFRESH_INIT_LOOPS (0)
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index a11d8630102cda1363b1a4cd486d753305d17be8..17c93562173246bb550afdcaf46a5ee5d28dcee8 100644 (file)
@@ -115,7 +115,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 329eaccd5dba38f4976210ff68a69b595dbc27b6..768fe05a241751ebd807fd56e43fc52a52ef2c76 100644 (file)
@@ -76,7 +76,7 @@ long int sdram_setup(int casl)
 }
 #endif
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long dram_size = 0;
 #if defined(CONFIG_SPD_EEPROM)
index 165e9e2999fd48214efa3f4bf17f07ceae59a172..2b789d47415dc6dea84f17e64e27c59cb6cb2237 100644 (file)
@@ -27,7 +27,7 @@
 #include <asm/mmu.h>
 #include <pci.h>
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong size;
 
index 1f5dcb5d3e0e22760f0fa47c8f85296b14141f30..a32aad0ee43ce0a746075c4e03d59edbc7c4b417 100644 (file)
@@ -82,7 +82,7 @@ const uint sdram_table[] = {
        _NOT_USED_, _NOT_USED_, _NOT_USED_,
 };
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immr = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
index c79b9b0dd5ea65c05bede3f171c556616d8a7359..6387f8a65c50aa98dee5bfbe398cef2e7c8654af 100644 (file)
@@ -143,7 +143,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index 3ee8ba588dc20a8597c7642c2731ed024fa7e5ab..71de20899ef787bc9681a6849d0a3633e591a729 100644 (file)
@@ -57,7 +57,7 @@ int checkboard (void)
        return 0;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return (0);
 }
index f04ffa80468ee358660408dc40c6d6ca8f42fa49..218e8053f1d38e24aa50dd794f1709e1ea15e251 100644 (file)
@@ -275,7 +275,7 @@ show_activity(int flag)
        next_led_update += (get_tbclk() / 4);
 }
 
-long int
+phys_size_t
 initdram (int board_type)
 {
        long dram_size = 0;
index 08177e1aec6e1d378c8091dd985a3ca0968194e7..2c4b54642aa3ed941052199e121403c5a92f11ba 100644 (file)
@@ -291,7 +291,7 @@ show_activity(int flag)
        next_led_update += (get_tbclk() / 4);
 }
 
-long int
+phys_size_t
 initdram (int board_type)
 {
        long dram_size = 0;
index 87a2022761384a5b37d5b1779035daef54b47161..a7503743934dd3ae3fd479066f7ec1c889717b5b 100644 (file)
@@ -399,7 +399,7 @@ void check_ram(unsigned int addr, unsigned int size)
 
 #define DO_LOOP do { for (;;) asm volatile ("nop" : : : "memory"); } while(0)
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index b900e6bd1b770d4e091626492ff8967d2bdb3bd3..06fb18b344c88cddb222d26160ce4f4638e71dfc 100644 (file)
@@ -100,7 +100,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index d08b4224516da4b74eabd2f5061bccfad6a404a3..921bd3adcdb524cde53362e54541e88452d8ccc6 100644 (file)
@@ -32,7 +32,7 @@ void pci_init_board (void)
 }
 #endif
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        return get_ram_size (CFG_SDRAM_BASE, 0x8000000);
 }
index c8d4c67102d4e5586058e22de14bc84688e56ffd..868ebd5f540418cc9e7128e69fa746c708c5730c 100644 (file)
@@ -36,7 +36,7 @@
 #include "mt48lc16m16a2-75.h"
 #endif
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        sdram_conf_t sdram_conf;
 
index f9891dbb74fb4c717216e074ca9fbb2e197bf6ff..8b8e461374986c596eab91c45d80aa6e1f391865 100644 (file)
@@ -104,7 +104,7 @@ static void sdram_start (int hi_addr)
  *           is something else than 0x00000000.
  */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
        ulong dramsize2 = 0;
index 736c410ede8facfec6039f4949c89fa9d2c19460..f201045d9558e45686a18e3790eb692e65c55d08 100644 (file)
@@ -283,7 +283,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
        return (size);
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
index ec1a37c7f91dc4cf3eb4c5a6ab7340ebd35c9898..29099f5ed15719930f5866807849a363fdcfaff3 100644 (file)
@@ -555,7 +555,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
        return (size);
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
index aea985ccc6c1a85476276ed34d2169e8fd7849bb..278780dde5b469309512e836c5472be86f812341 100644 (file)
@@ -85,7 +85,7 @@ int board_early_init_r (void) {
 /**************************************************************************
  * DRAM initalization and size detection
  */
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long bank_size;
        long size;
index 442ff667c0e1b9d8fc0c6b18b80b0a4293e22fde..33bc4077e547e50fe4201c74b7a9807f30d762b9 100644 (file)
@@ -286,7 +286,7 @@ void board_add_ram_info (int use_default)
        }
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long dram_size = 0;
        int casl;
index 18bf2a83029c4afedf5a5cbbf5a96b85b4d3088f..96b6103fc79eb24328b5873a66a20f38b5aaf2f6 100644 (file)
@@ -139,7 +139,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index a5dd95d78ee8e032b3f5a2df99b29c7d4a8c5d74..896f9693e3ddf31e987c687455a860f4291fe25f 100644 (file)
@@ -169,7 +169,7 @@ int checkboard (void)
 /*
  * Initialize SDRAM
  */
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
index f7265139653d81691dbd0958a40617da06d3397b..69ba5078d4e78a651f7839d56da045e7a56a59b8 100644 (file)
@@ -146,7 +146,7 @@ static void sdram_start (int hi_addr)
  *           is something else than 0x00000000.
  */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
 #ifndef CFG_RAMBOOT
index 834fd84079b2eb05313c987adf3774d421bf8b72..e2a961a3a3f2bbdc93ffb0dde5dda8136c13b2eb 100644 (file)
@@ -46,7 +46,7 @@ int checkboard(void)
 }
 
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        long size;
        long new_bank0_end;
index 2e4757302410d2c2125a7069d70a5c544560ffbc..2067fedfcaea172ece4ff136f229a491e787a917 100644 (file)
@@ -90,7 +90,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
     volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
     volatile memctl8xx_t *memctl = &immap->im_memctl;
index ec032eef8ded81c90a539de5e3608c7c10f49232..8815a0cb4afd0ab300e85fc17a9bab2f9305fdf7 100644 (file)
@@ -71,7 +71,7 @@ static void sdram_start(int hi_addr)
 #endif /* !CFG_RAMBOOT */
 
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        ulong dramsize = 0;
        ulong dramsize2 = 0;
index 7a3d63a4bf30c5326d0b9d67d26750cb8b785b8e..0e3b84c61348f047882d7b6971dc8129696c868e 100644 (file)
@@ -152,7 +152,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        /*
         * ToDo: Move the asm init routine sdram_init() to this C file,
index 8826667cdc7d20e42265e915effd825788c76352..4742aafc5e30c0e8ff7347d5ea68d24ff1b73457 100644 (file)
@@ -61,7 +61,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
 
        volatile immap_t     *immap = (immap_t *)CFG_IMMR;
index 58bfac07166ffe6171c1f96882c52ca2f2c1e59a..5d493eeb733dfd0bf23fe43f7c270818ad9112b3 100644 (file)
@@ -79,7 +79,7 @@ checkboard(void)
        return (0);
 }
 
-long int
+phys_size_t
 initdram(int board_type)
 {
        return 128 * 1024 * 1024;
index 8411cf06f761816a15d3fd04157e190341cc2ddb..bc7e3bd17cbedd9c27a73a2d6dbcde802d7fc216 100644 (file)
@@ -104,7 +104,7 @@ int checkboard (void)
 }
 
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        long dram_size = 0;
 
index 1239ea0bd9aa698ba27618bc6086b094c35bc26d..0113d4845e4e3b967fdbe4bab3758247cfb20546 100644 (file)
@@ -208,7 +208,7 @@ static u32 detect_sdram_size(void)
        return size;
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return detect_sdram_size();
 }
index 7db535e8a479220e6fc96d04776007d81f45679a..103ef714fd19ba105ed77a303bdccd02c1dec80b 100644 (file)
@@ -220,7 +220,7 @@ void nvram_write(long dest, const void *src, size_t count)
 }
 #endif /* CFG_NVRAM_ACCESS_ROUTINE */
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        vu_char *bcsr = (vu_char *)CFG_BCSR;
        volatile immap_t *immap = (immap_t *)CFG_IMMR;
index 521491820d7a89e616352a3421397fb7f875719b..c28fc463b5a025ccbff89ef72a5e6531b26afb7e 100644 (file)
@@ -389,7 +389,7 @@ static unsigned long sdram_memsize(void)
  *              banks appropriately. If Auto Memory Configuration is
  *              not used, it is assumed that no DIMM is plugged
  *-----------------------------------------------------------------------------*/
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        unsigned char iic0_dimm_addr[] = SPD_EEPROM_ADDRESS;
        unsigned char spd0[MAX_SPD_BYTES];
@@ -3081,7 +3081,7 @@ static void ppc440sp_sdram_register_dump(void)
  *             banks. The configuration is performed using static, compile-
  *             time parameters.
  *---------------------------------------------------------------------------*/
-long initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        /*
         * Only run this SDRAM init code once. For NAND booting
index ad805b937b1942ed64fa7481524d225d6764c2bd..3bd637567c3f0b728c38866c317e62fa88f3aec1 100644 (file)
@@ -1022,7 +1022,7 @@ static void program_ddr0_44(unsigned long dimm_ranks[],
  *              banks appropriately. If Auto Memory Configuration is
  *              not used, it is assumed that no DIMM is plugged
  *-----------------------------------------------------------------------------*/
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        unsigned char const iic0_dimm_addr[] = SPD_EEPROM_ADDRESS;
        unsigned long dimm_ranks[MAXDIMMS];
index c7771addaac890229cc182a226467762e8f40f50..7d60ad667fd7353dfe950b898ba16cfb1634ff54 100644 (file)
@@ -164,7 +164,7 @@ static ulong compute_rtr(ulong speed, ulong rows, ulong refresh)
 /*
  * Autodetect onboard SDRAM on 405 platforms
  */
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        ulong speed;
        ulong sdtr1;
@@ -346,7 +346,7 @@ static void sdram_tr1_set(int ram_address, int* tr1_value)
  *      so this should be extended for other future boards
  *      using this routine!
  */
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        int i;
        int tr1_bank1;
index 8fa339db76987a6c22d0efb0b27479ed5daacbd1..fd5adb3d6db444b43f86a3b73d9b6f69053ed1b6 100644 (file)
@@ -202,7 +202,7 @@ int serial_buffered_tstc (void);
 void   hang            (void) __attribute__ ((noreturn));
 
 /* */
-long int initdram (int);
+phys_size_t initdram (int);
 int    display_options (void);
 void   print_size (phys_size_t, const char *);
 int    print_buffer (ulong addr, void* data, uint width, uint count, uint linelen);
index ca25252edfd8564c3e2edb3bf91a393fb564523b..adede44c37e9b920c37d8d5b6ebb57d8077abe1d 100644 (file)
@@ -36,7 +36,7 @@ static void wait_init_complete(void)
 }
 
 /*
- * long int initdram(int board_type)
+ * phys_size_t initdram(int board_type)
  *
  * As the name already indicates, this function is called very early
  * from start.S and configures the SDRAM with fixed values. This is needed,
@@ -51,7 +51,7 @@ static void wait_init_complete(void)
  * modules are still plugged in. So it is recommended to remove the DIMM
  * modules while using the NAND booting code with the fixed SDRAM setup!
  */
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        /*
         * Soft-reset SDRAM controller.
index 9010fca15a0108c387bb8645d1589846f87b7548..29d7d3f819f7d86cc35ddef5a2829ddfbbc87811 100644 (file)
@@ -35,7 +35,7 @@ static void wait_init_complete(void)
        } while (!(val & 0x80000000));
 }
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        /*
         * Reset the DDR-SDRAM controller.