board_f: Rename initdram() to dram_init()

This allows us to use the same DRAM init function on all archs. Add a
dummy function for arc, which does not use DRAM init here.

Signed-off-by: Simon Glass <sjg@chromium.org>
[trini: Dummy function on nios2]
Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Simon Glass 2017-04-06 12:47:05 -06:00 committed by Tom Rini
parent 3eace37e50
commit f1683aa73c
133 changed files with 176 additions and 177 deletions
arch
arc/lib
mips
mach-ath79
mach-pic32
cpu.c
include/mach
nios2/cpu
powerpc/cpu
xtensa/cpu
board
Arcturus/ucp1020
BuS/eb_cpu5282
a3m071
a4m072
amcc
acadia
bamboo
bubinga
sequoia
walnut
yosemite
astro/mcf5373l
canmb
cm5200
cobra5272
davedenx/aria
dbau1x00
esd
mecp5123
pmc440
vme8349
freescale
b4860qds
c29xpcie
corenet_ds
m5208evbe
m52277evb
m5235evb
m5249evb
m5253demo
m5253evbe
m5272c3
m5275evb
m5282evb
m53017evb
m5329evb
m5373evb
m54418twr
m54451evb
m54455evb
m547xevb
m548xevb
mpc5121ads
mpc8308rdb
mpc8313erdb
mpc8315erdb
mpc8323erdb
mpc832xemds
mpc8349emds
mpc8349itx
mpc837xemds
mpc837xerdb
mpc8610hpcd
mpc8641hpcn
p1010rdb
p1022ds
p1_p2_rdb_pc
p2041rdb
t102xqds
t102xrdb
t1040qds
t104xrdb
t208xqds
t208xrdb
t4qds
t4rdb
gaisler
gr_cpci_ax2000
gr_ep2s60
gr_xc3s_1500
grsim
grsim_leon2
gdsys/mpc8308
ids/ids8313
ifm
ac14xx
o2dnt2
imgtec
boston
malta
xilfpga
inka4x0
intercontrol/digsy_mtc
ipek01

View File

@ -28,3 +28,9 @@ int arch_early_init_r(void)
gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
return 0;
}
/* This is a dummy function on arc */
int dram_init(void)
{
return 0;
}

View File

@ -11,7 +11,7 @@
DECLARE_GLOBAL_DATA_PTR;
int initdram(void)
int dram_init(void)
{
ddr_tap_tuning();
gd->ram_size = get_ram_size((void *)KSEG1, SZ_256M);

View File

@ -110,7 +110,7 @@ static void ddr2_pmd_ungate(void)
}
/* initialize the DDR2 Controller and DDR2 PHY */
int initdram(void)
int dram_init(void)
{
ddr2_pmd_ungate();
ddr2_phy_init();

View File

@ -8,7 +8,7 @@
#ifndef __MICROCHIP_PIC32_DDR_H
#define __MICROCHIP_PIC32_DDR_H
/* called by initdram() function */
/* called by dram_init() function */
void ddr2_phy_init(void);
void ddr2_ctrl_init(void);
phys_size_t ddr2_calculate_size(void);

View File

@ -150,3 +150,9 @@ U_BOOT_DRIVER(altera_nios2) = {
.ops = &altera_nios2_ops,
.flags = DM_FLAG_PRE_RELOC,
};
/* This is a dummy function on nios2 */
int dram_init(void)
{
return 0;
}

View File

@ -32,7 +32,7 @@ void board_init_f(ulong bootflag)
/*
* On MPC5200, the initial RAM (and gd) is located in the internal
* SRAM. So we can actually call the preloader console init code
* before calling initdram(). This makes serial output (printf)
* before calling dram_init(). This makes serial output (printf)
* available very early, even before SDRAM init, which has been
* an U-Boot priciple from day 1.
*/
@ -62,7 +62,7 @@ void board_init_f(ulong bootflag)
* First we need to initialize the SDRAM, so that the real
* U-Boot or the OS (Linux) can be loaded
*/
initdram();
dram_init();
/* Clear bss */
memset(__bss_start, '\0', __bss_end - __bss_start);

View File

@ -401,7 +401,7 @@ void mpc85xx_reginfo(void)
#ifndef CONFIG_FSL_CORENET
#if (defined(CONFIG_SYS_RAMBOOT) || defined(CONFIG_SPL)) && \
!defined(CONFIG_SYS_INIT_L2_ADDR)
int initdram(void)
int dram_init(void)
{
#if defined(CONFIG_SPD_EEPROM) || defined(CONFIG_DDR_SPD) || \
defined(CONFIG_ARCH_QEMU_E500)
@ -413,7 +413,7 @@ int initdram(void)
return 0;
}
#else /* CONFIG_SYS_RAMBOOT */
int initdram(void)
int dram_init(void)
{
phys_size_t dram_size = 0;

View File

@ -403,20 +403,20 @@ static unsigned char spd_read(uchar chip, uint addr)
}
/*-----------------------------------------------------------------------------+
* initdram. Initializes the 440SP Memory Queue and DDR SDRAM controller.
* dram_init. Initializes the 440SP Memory Queue and DDR SDRAM controller.
* Note: This routine runs from flash with a stack set up in the chip's
* sram space. It is important that the routine does not require .sbss, .bss or
* .data sections. It also cannot call routines that require these sections.
*-----------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------
* Function: initdram
* Function: dram_init
* Description: Configures SDRAM memory banks for DDR operation.
* Auto Memory Configuration option reads the DDR SDRAM EEPROMs
* via the IIC bus and then configures the DDR SDRAM memory
* banks appropriately. If Auto Memory Configuration is
* not used, it is assumed that no DIMM is plugged
*-----------------------------------------------------------------------------*/
int initdram(void)
int dram_init(void)
{
unsigned char iic0_dimm_addr[] = SPD_EEPROM_ADDRESS;
unsigned long dimm_populated[MAXDIMMS] = {SDRAM_NONE, SDRAM_NONE};
@ -2855,13 +2855,13 @@ static void test(void)
#else /* CONFIG_SPD_EEPROM */
/*-----------------------------------------------------------------------------
* Function: initdram
* Function: dram_init
* Description: Configures the PPC4xx IBM DDR1/DDR2 SDRAM memory controller.
* The configuration is performed using static, compile-
* time parameters.
* Configures the PPC405EX(r) and PPC460EX/GT
*---------------------------------------------------------------------------*/
int initdram(void)
int dram_init(void)
{
unsigned long val;

View File

@ -987,20 +987,20 @@ static void program_ddr0_44(unsigned long dimm_ranks[],
}
/*-----------------------------------------------------------------------------+
* initdram. Initializes the 440EPx/GPx DDR SDRAM controller.
* dram_init. Initializes the 440EPx/GPx DDR SDRAM controller.
* Note: This routine runs from flash with a stack set up in the chip's
* sram space. It is important that the routine does not require .sbss, .bss or
* .data sections. It also cannot call routines that require these sections.
*-----------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------
* Function: initdram
* Function: dram_init
* Description: Configures SDRAM memory banks for DDR operation.
* Auto Memory Configuration option reads the DDR SDRAM EEPROMs
* via the IIC bus and then configures the DDR SDRAM memory
* banks appropriately. If Auto Memory Configuration is
* not used, it is assumed that no DIMM is plugged
*-----------------------------------------------------------------------------*/
int initdram(void)
int dram_init(void)
{
unsigned char const iic0_dimm_addr[] = SPD_EEPROM_ADDRESS;
unsigned long dimm_ranks[MAXDIMMS];
@ -1014,7 +1014,7 @@ int initdram(void)
unsigned long cas_latency = 0; /* to quiet initialization warning */
unsigned long dram_size;
debug("\nEntering initdram()\n");
debug("\nEntering dram_init()\n");
/*------------------------------------------------------------------
* Stop the DDR-SDRAM controller.

View File

@ -150,7 +150,7 @@ static ulong compute_rtr(ulong speed, ulong rows, ulong refresh)
/*
* Autodetect onboard SDRAM on 405 platforms
*/
int initdram(void)
int dram_init(void)
{
ulong speed;
ulong sdtr1;
@ -353,7 +353,7 @@ static void sdram_tr1_set(int ram_address, int* tr1_value)
* so this should be extended for other future boards
* using this routine!
*/
int initdram(void)
int dram_init(void)
{
int i;
int tr1_bank1;

View File

@ -26,7 +26,7 @@ void board_init_f(ulong bootflag)
* First we need to initialize the SDRAM, so that the real
* U-Boot or the OS (Linux) can be loaded
*/
initdram();
dram_init();
/* Clear bss */
memset(__bss_start, '\0', __bss_end - __bss_start);

View File

@ -47,3 +47,8 @@ int arch_cpu_init(void)
gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
return 0;
}
int dram_init(void)
{
return 0;
}

View File

@ -110,7 +110,7 @@ void board_init_r(gd_t *gd, ulong dest_addr)
i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
#endif
initdram();
dram_init();
#ifdef CONFIG_SPL_NAND_BOOT
puts("Tertiary program loader running in sram...");
#else

View File

@ -35,7 +35,7 @@ int checkboard (void)
return 0;
}
int initdram(void)
int dram_init(void)
{
int size, i;

View File

@ -72,11 +72,11 @@ static void sdram_start(int hi_addr)
#endif
/*
* ATTENTION: Although partially referenced initdram does NOT make real use
* ATTENTION: Although partially referenced dram_init does NOT make real use
* use of CONFIG_SYS_SDRAM_BASE. The code does not work if
* CONFIG_SYS_SDRAM_BASE is something else than 0x00000000.
*/
int initdram(void)
int dram_init(void)
{
ulong dramsize = 0;
ulong dramsize2 = 0;

View File

@ -68,12 +68,12 @@ static void sdram_start (int hi_addr)
#endif
/*
* ATTENTION: Although partially referenced initdram does NOT make real use
* ATTENTION: Although partially referenced dram_init does NOT make real use
* use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
* is something else than 0x00000000.
*/
int initdram(void)
int dram_init(void)
{
ulong dramsize = 0;
uint svr, pvr;

View File

@ -43,7 +43,7 @@ static void cram_bcr_write(u32 wr_val)
return;
}
int initdram(void)
int dram_init(void)
{
int i;
u32 val;

View File

@ -438,7 +438,7 @@ int checkboard(void)
}
int initdram(void)
int dram_init(void)
{
gd->ram_size = spd_sdram();

View File

@ -54,10 +54,10 @@ int checkboard(void)
}
/* -------------------------------------------------------------------------
initdram() reads EEPROM via I2c. EEPROM contains all of
dram_init() reads EEPROM via I2c. EEPROM contains all of
the necessary info for SDRAM controller configuration
------------------------------------------------------------------------- */
int initdram(void)
int dram_init(void)
{
gd->ram_size = spd_sdram();

View File

@ -30,10 +30,10 @@ extern void denali_core_search_data_eye(void);
/*************************************************************************
*
* initdram -- 440EPx's DDR controller is a DENALI Core
* dram_init -- 440EPx's DDR controller is a DENALI Core
*
************************************************************************/
int initdram(void)
int dram_init(void)
{
#if !defined(CONFIG_SYS_RAMBOOT)
ulong speed = get_bus_freq(0);

View File

@ -73,10 +73,10 @@ int checkboard(void)
}
/*
* initdram() reads EEPROM via I2c. EEPROM contains all of
* dram_init() reads EEPROM via I2c. EEPROM contains all of
* the necessary info for SDRAM controller configuration
*/
int initdram(void)
int dram_init(void)
{
gd->ram_size = spd_sdram();

View File

@ -205,7 +205,7 @@ int checkboard(void)
}
/*************************************************************************
* initdram -- doesn't use serial presence detect.
* dram_init -- doesn't use serial presence detect.
*
* Assumes: 256 MB, ECC, non-registered
* PLB @ 133 MHz
@ -286,7 +286,7 @@ void sdram_tr1_set(int ram_address, int* tr1_value)
*tr1_value = (first_good + last_bad) / 2;
}
int initdram(void)
int dram_init(void)
{
register uint reg;
int tr1_bank1, tr1_bank2;

View File

@ -27,7 +27,7 @@ int checkboard(void)
return 0;
}
int initdram(void)
int dram_init(void)
{
#if !defined(CONFIG_MONITOR_IS_IN_RAM)
sdram_t *sdp = (sdram_t *)(MMAP_SDRAM);

View File

@ -62,12 +62,12 @@ static void sdram_start (int hi_addr)
#endif
/*
* ATTENTION: Although partially referenced initdram does NOT make real use
* ATTENTION: Although partially referenced dram_init does NOT make real use
* use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
* is something else than 0x00000000.
*/
int initdram(void)
int dram_init(void)
{
ulong dramsize = 0;
ulong dramsize2 = 0;

View File

@ -97,7 +97,7 @@ static mem_conf_t* get_mem_config(int board_type)
/*
* Initalize SDRAM - configure SDRAM controller, detect memory size.
*/
int initdram(void)
int dram_init(void)
{
ulong dramsize = 0;
#ifndef CONFIG_SYS_RAMBOOT

View File

@ -17,7 +17,7 @@ int checkboard (void)
return 0;
};
int initdram(void)
int dram_init(void)
{
volatile sdramctrl_t *sdp = (sdramctrl_t *) (MMAP_SDRAM);

View File

@ -18,7 +18,7 @@
DECLARE_GLOBAL_DATA_PTR;
int initdram(void)
int dram_init(void)
{
gd->ram_size = fixed_sdram(NULL, NULL, 0);

View File

@ -13,7 +13,7 @@
DECLARE_GLOBAL_DATA_PTR;
int initdram(void)
int dram_init(void)
{
/* Sdram is setup by assembler code */
/* If memory could be changed, we should return the true value here */

View File

@ -62,7 +62,7 @@ int board_early_init_f(void)
return 0;
}
int initdram(void)
int dram_init(void)
{
gd->ram_size = get_ram_size(0, fixed_sdram(NULL, NULL, 0));

View File

@ -42,7 +42,7 @@ struct sdram_conf_s sdram_conf[] = {
};
/*
* initdram -- 440EPx's DDR controller is a DENALI Core
* dram_init -- 440EPx's DDR controller is a DENALI Core
*/
int initdram_by_rb(int rows, int banks)
{
@ -107,7 +107,7 @@ int initdram_by_rb(int rows, int banks)
return 0;
}
int initdram(void)
int dram_init(void)
{
phys_size_t size;
int n;

View File

@ -30,7 +30,7 @@ DECLARE_GLOBAL_DATA_PTR;
void ddr_enable_ecc(unsigned int dram_size);
int initdram(void)
int dram_init(void)
{
volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
u32 msize = 0;

View File

@ -176,7 +176,7 @@ found:
popts->cpo_sample = 0x3e;
}
int initdram(void)
int dram_init(void)
{
phys_size_t dram_size;

View File

@ -108,7 +108,7 @@ void board_init_r(gd_t *gd, ulong dest_addr)
puts("\n\n");
initdram();
dram_init();
#ifdef CONFIG_SPL_NAND_BOOT
nand_boot();

View File

@ -67,7 +67,7 @@ void board_init_r(gd_t *gd, ulong dest_addr)
i2c_init_all();
initdram();
dram_init();
#ifdef CONFIG_SPL_NAND_BOOT
puts("TPL\n");

View File

@ -260,7 +260,7 @@ found:
popts->ddr_cdr1 = DDR_CDR1_DHC_EN;
}
int initdram(void)
int dram_init(void)
{
phys_size_t dram_size;

View File

@ -22,7 +22,7 @@ int checkboard(void)
return 0;
};
int initdram(void)
int dram_init(void)
{
sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);
u32 dramsize, i;

View File

@ -21,7 +21,7 @@ int checkboard(void)
return 0;
};
int initdram(void)
int dram_init(void)
{
u32 dramsize;

View File

@ -22,7 +22,7 @@ int checkboard(void)
return 0;
};
int initdram(void)
int dram_init(void)
{
sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);
gpio_t *gpio = (gpio_t *)(MMAP_GPIO);

View File

@ -31,7 +31,7 @@ int checkboard (void) {
};
int initdram(void)
int dram_init(void)
{
unsigned long junk = 0xa5a59696;

View File

@ -22,7 +22,7 @@ int checkboard(void)
return 0;
};
int initdram(void)
int dram_init(void)
{
u32 dramsize = 0;

View File

@ -21,7 +21,7 @@ int checkboard(void)
return 0;
};
int initdram(void)
int dram_init(void)
{
/*
* Check to see if the SDRAM has already been initialized

View File

@ -19,7 +19,7 @@ int checkboard (void) {
return 0;
};
int initdram(void)
int dram_init(void)
{
sdramctrl_t * sdp = (sdramctrl_t *)(MMAP_SDRAM);

View File

@ -25,7 +25,7 @@ int checkboard(void)
return 0;
};
int initdram(void)
int dram_init(void)
{
sdramctrl_t *sdp = (sdramctrl_t *)(MMAP_SDRAM);
gpio_t *gpio_reg = (gpio_t *)(MMAP_GPIO);

View File

@ -16,7 +16,7 @@ int checkboard (void)
return 0;
}
int initdram(void)
int dram_init(void)
{
u32 dramsize, i, dramclk;

View File

@ -22,7 +22,7 @@ int checkboard(void)
return 0;
};
int initdram(void)
int dram_init(void)
{
sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);
u32 dramsize, i;

View File

@ -22,7 +22,7 @@ int checkboard(void)
return 0;
};
int initdram(void)
int dram_init(void)
{
sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);
u32 dramsize, i;

View File

@ -22,7 +22,7 @@ int checkboard(void)
return 0;
};
int initdram(void)
int dram_init(void)
{
sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);
u32 dramsize, i;

View File

@ -25,7 +25,7 @@ int checkboard(void)
return 0;
};
int initdram(void)
int dram_init(void)
{
u32 dramsize;

View File

@ -26,7 +26,7 @@ int checkboard(void)
return 0;
};
int initdram(void)
int dram_init(void)
{
u32 dramsize;
#ifdef CONFIG_CF_SBF

View File

@ -22,7 +22,7 @@ int checkboard(void)
return 0;
};
int initdram(void)
int dram_init(void)
{
u32 dramsize;
#ifdef CONFIG_CF_SBF

View File

@ -23,7 +23,7 @@ int checkboard(void)
return 0;
};
int initdram(void)
int dram_init(void)
{
siu_t *siu = (siu_t *) (MMAP_SIU);
sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);

View File

@ -23,7 +23,7 @@ int checkboard(void)
return 0;
};
int initdram(void)
int dram_init(void)
{
siu_t *siu = (siu_t *) (MMAP_SIU);
sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);

View File

@ -95,7 +95,7 @@ int is_micron(void){
return(ismicron);
}
int initdram(void)
int dram_init(void)
{
u32 msize = 0;
/*

View File

@ -65,7 +65,7 @@ static long fixed_sdram(void)
return get_ram_size(CONFIG_SYS_DDR_SDRAM_BASE, msize);
}
int initdram(void)
int dram_init(void)
{
immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
u32 msize;

View File

@ -134,7 +134,7 @@ void board_init_f(ulong bootflag)
CONFIG_SYS_NS16550_CLK / 16 / CONFIG_BAUDRATE);
puts("NAND boot... ");
timer_init();
initdram();
dram_init();
relocate_code(CONFIG_SYS_NAND_U_BOOT_RELOC_SP, (gd_t *)gd,
CONFIG_SYS_NAND_U_BOOT_RELOC);
}

View File

@ -97,7 +97,7 @@ static long fixed_sdram(void)
return msize;
}
int initdram(void)
int dram_init(void)
{
volatile immap_t *im = (volatile immap_t *)CONFIG_SYS_IMMR;
volatile fsl_lbc_t *lbc = &im->im_lbc;

View File

@ -222,7 +222,7 @@ void board_init_f(ulong bootflag)
CONFIG_SYS_NS16550_CLK / 16 / CONFIG_BAUDRATE);
puts("NAND boot... ");
timer_init();
initdram();
dram_init();
relocate_code(CONFIG_SYS_NAND_U_BOOT_RELOC + 0x10000, (gd_t *)gd,
CONFIG_SYS_NAND_U_BOOT_RELOC);
}

View File

@ -92,7 +92,7 @@ static long fixed_sdram(void)
}
#endif /* CONFIG_SYS_RAMBOOT */
int initdram(void)
int dram_init(void)
{
volatile immap_t *im = (volatile immap_t *)CONFIG_SYS_IMMR;
u32 msize;

View File

@ -70,7 +70,7 @@ const qe_iop_conf_t qe_iop_conf_tab[] = {
int fixed_sdram(void);
int initdram(void)
int dram_init(void)
{
volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
u32 msize = 0;

View File

@ -90,7 +90,7 @@ int board_early_init_r(void)
int fixed_sdram(void);
int initdram(void)
int dram_init(void)
{
volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
u32 msize = 0;

View File

@ -48,7 +48,7 @@ int board_early_init_f (void)
#define ns2clk(ns) (ns / (1000000000 / CONFIG_8349_CLKIN) + 1)
int initdram(void)
int dram_init(void)
{
volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
phys_size_t msize = 0;

View File

@ -118,7 +118,7 @@ volatile static struct pci_controller hose[] = {
};
#endif /* CONFIG_PCI */
int initdram(void)
int dram_init(void)
{
volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
u32 msize = 0;

View File

@ -218,7 +218,7 @@ extern void ddr_enable_ecc(unsigned int dram_size);
#endif
int fixed_sdram(void);
int initdram(void)
int dram_init(void)
{
volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
u32 msize = 0;

View File

@ -62,7 +62,7 @@ void ddr_enable_ecc(unsigned int dram_size);
#endif
int fixed_sdram(void);
int initdram(void)
int dram_init(void)
{
immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
u32 msize = 0;

View File

@ -118,7 +118,7 @@ int checkboard(void)
}
int initdram(void)
int dram_init(void)
{
phys_size_t dram_size = 0;

View File

@ -39,7 +39,7 @@ int checkboard(void)
return 0;
}
int initdram(void)
int dram_init(void)
{
phys_size_t dram_size = 0;

View File

@ -94,7 +94,7 @@ void board_init_r(gd_t *gd, ulong dest_addr)
i2c_init_all();
initdram();
dram_init();
#ifdef CONFIG_SPL_NAND_BOOT
puts("\nTertiary program loader running in sram...");
#else

View File

@ -111,7 +111,7 @@ void board_init_r(gd_t *gd, ulong dest_addr)
i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
#endif
initdram();
dram_init();
#ifdef CONFIG_SPL_NAND_BOOT
puts("Tertiary program loader running in sram...");
#else

View File

@ -108,7 +108,7 @@ void board_init_r(gd_t *gd, ulong dest_addr)
i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
#endif
initdram();
dram_init();
#ifdef CONFIG_SPL_NAND_BOOT
puts("Tertiary program loader running in sram...");
#else

View File

@ -118,7 +118,7 @@ found:
popts->ddr_cdr1 = DDR_CDR1_DHC_EN;
}
int initdram(void)
int dram_init(void)
{
phys_size_t dram_size = 0;

View File

@ -169,7 +169,7 @@ void board_mem_sleep_setup(void)
}
#endif
int initdram(void)
int dram_init(void)
{
phys_size_t dram_size;

View File

@ -142,7 +142,7 @@ void board_init_r(gd_t *gd, ulong dest_addr)
i2c_init_all();
initdram();
dram_init();
#ifdef CONFIG_SPL_MMC_BOOT
mmc_boot();

View File

@ -229,7 +229,7 @@ void board_mem_sleep_setup(void)
}
#endif
int initdram(void)
int dram_init(void)
{
phys_size_t dram_size;

View File

@ -129,7 +129,7 @@ void board_init_r(gd_t *gd, ulong dest_addr)
i2c_init_all();
initdram();
dram_init();
#ifdef CONFIG_SPL_MMC_BOOT
mmc_boot();

View File

@ -117,7 +117,7 @@ void board_mem_sleep_setup(void)
}
#endif
int initdram(void)
int dram_init(void)
{
phys_size_t dram_size;

View File

@ -120,7 +120,7 @@ void board_mem_sleep_setup(void)
}
#endif
int initdram(void)
int dram_init(void)
{
phys_size_t dram_size;

View File

@ -125,7 +125,7 @@ void board_init_r(gd_t *gd, ulong dest_addr)
puts("\n\n");
initdram();
dram_init();
#ifdef CONFIG_SPL_MMC_BOOT
mmc_boot();

View File

@ -104,7 +104,7 @@ found:
popts->cpo_sample = 0x64;
}
int initdram(void)
int dram_init(void)
{
phys_size_t dram_size;

View File

@ -128,7 +128,7 @@ void board_init_r(gd_t *gd, ulong dest_addr)
i2c_init_all();
initdram();
dram_init();
#ifdef CONFIG_SPL_MMC_BOOT
mmc_boot();

View File

@ -97,7 +97,7 @@ found:
popts->cpo_sample = 0x54;
}
int initdram(void)
int dram_init(void)
{
phys_size_t dram_size;

View File

@ -98,7 +98,7 @@ void board_init_r(gd_t *gd, ulong dest_addr)
i2c_init_all();
initdram();
dram_init();
#ifdef CONFIG_SPL_MMC_BOOT
mmc_boot();

View File

@ -112,7 +112,7 @@ found:
popts->cpo_sample = 0x63;
}
int initdram(void)
int dram_init(void)
{
phys_size_t dram_size;

View File

@ -133,7 +133,7 @@ void board_init_r(gd_t *gd, ulong dest_addr)
i2c_init_all();
initdram();
dram_init();
#ifdef CONFIG_SPL_MMC_BOOT
mmc_boot();

View File

@ -105,7 +105,7 @@ found:
popts->cpo_sample = 0x64;
}
int initdram(void)
int dram_init(void)
{
phys_size_t dram_size;

View File

@ -91,7 +91,7 @@ void board_init_r(gd_t *gd, ulong dest_addr)
i2c_init_all();
initdram();
dram_init();
mmc_boot();
}

View File

@ -10,7 +10,7 @@
#include <config.h>
#include <asm/leon.h>
int initdram(void)
int dram_init(void)
{
/* Does not set gd->ram_size here */

View File

@ -10,7 +10,7 @@
#include <config.h>
#include <asm/leon.h>
int initdram(void)
int dram_init(void)
{
/* Does not set gd->ram_size here */

View File

@ -9,7 +9,7 @@
#include <config.h>
#include <asm/leon.h>
int initdram(void)
int dram_init(void)
{
/* Does not set gd->ram_size here */

View File

@ -10,7 +10,7 @@
#include <common.h>
#include <asm/leon.h>
int initdram(void)
int dram_init(void)
{
/* Does not set gd->ram_size here */

View File

@ -10,7 +10,7 @@
#include <common.h>
#include <asm/leon.h>
int initdram(void)
int dram_init(void)
{
/* Does not set gd->ram_size here */

View File

@ -66,7 +66,7 @@ static long fixed_sdram(void)
return get_ram_size(CONFIG_SYS_DDR_SDRAM_BASE, msize);
}
int initdram(void)
int dram_init(void)
{
immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
u32 msize;

View File

@ -119,7 +119,7 @@ static int setup_sdram(void)
return msize;
}
int initdram(void)
int dram_init(void)
{
immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
fsl_lbc_t *lbc = &im->im_lbc;

View File

@ -310,7 +310,7 @@ u32 sdram_init_seq[] = {
/* EMPTY, optional, we don't do it */
};
int initdram(void)
int dram_init(void)
{
gd->ram_size = fixed_sdram(NULL, sdram_init_seq,
ARRAY_SIZE(sdram_init_seq));

View File

@ -62,11 +62,11 @@ static void sdram_start(int hi_addr)
#endif
/*
* ATTENTION: Although partially referenced initdram does NOT make real use
* ATTENTION: Although partially referenced dram_init does NOT make real use
* use of CONFIG_SYS_SDRAM_BASE. The code does not work if
* CONFIG_SYS_SDRAM_BASE is something else than 0x00000000.
*/
int initdram(void)
int dram_init(void)
{
struct mpc5xxx_mmap_ctl *mmap_ctl =
(struct mpc5xxx_mmap_ctl *)CONFIG_SYS_MBAR;

View File

@ -12,7 +12,7 @@
DECLARE_GLOBAL_DATA_PTR;
int initdram(void)
int dram_init(void)
{
u32 ddrconf0 = __raw_readl((uint32_t *)BOSTON_PLAT_DDRCONF0);

View File

@ -85,7 +85,7 @@ static enum sys_con malta_sys_con(void)
}
}
int initdram(void)
int dram_init(void)
{
gd->ram_size = CONFIG_SYS_MEM_SIZE;

View File

@ -14,7 +14,7 @@
DECLARE_GLOBAL_DATA_PTR;
/* initialize the DDR Controller and PHY */
int initdram(void)
int dram_init(void)
{
/* MIG IP block is smart and doesn't need SW
* to do any init */

View File

@ -74,12 +74,12 @@ static void sdram_start (int hi_addr)
#endif
/*
* ATTENTION: Although partially referenced initdram does NOT make real use
* ATTENTION: Although partially referenced dram_init does NOT make real use
* use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
* is something else than 0x00000000.
*/
int initdram(void)
int dram_init(void)
{
volatile struct mpc5xxx_mmap_ctl *mm =
(struct mpc5xxx_mmap_ctl *) CONFIG_SYS_MBAR;

View File

@ -74,12 +74,12 @@ static void sdram_start(int hi_addr)
#endif
/*
* ATTENTION: Although partially referenced initdram does NOT make real use
* ATTENTION: Although partially referenced dram_init does NOT make real use
* use of CONFIG_SYS_SDRAM_BASE. The code does not work if
* CONFIG_SYS_SDRAM_BASE is something other than 0x00000000.
*/
int initdram(void)
int dram_init(void)
{
ulong dramsize = 0;
ulong dramsize2 = 0;

View File

@ -75,12 +75,12 @@ static void sdram_start (int hi_addr)
}
/*
* ATTENTION: Although partially referenced initdram does NOT make real
* ATTENTION: Although partially referenced dram_init does NOT make real
* use of CONFIG_SYS_SDRAM_BASE. The code does not work if
* CONFIG_SYS_SDRAM_BASE is something else than 0x00000000.
*/
int initdram(void)
int dram_init(void)
{
struct mpc5xxx_mmap_ctl *mmap_ctl =
(struct mpc5xxx_mmap_ctl *)CONFIG_SYS_MBAR;

Some files were not shown because too many files have changed in this diff Show More