sdram_init() is used to initialize sdram on the lbc. Rename it
accordingly.
Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
#endif
/* Some boards also have sdram on the lbc */
#endif
/* Some boards also have sdram on the lbc */
puts("DDR: ");
return dram_size;
puts("DDR: ");
return dram_size;
#ifdef CONFIG_MPC85xx
/* Boards should provide their own version of this if they use lbc sdram */
#ifdef CONFIG_MPC85xx
/* Boards should provide their own version of this if they use lbc sdram */
+void __lbc_sdram_init(void)
-void sdram_init(void) __attribute__((weak, alias("__sdram_init")));
+void lbc_sdram_init(void) __attribute__((weak, alias("__lbc_sdram_init")));
#include <common.h>
#ifdef CONFIG_MPC85xx
#include <common.h>
#ifdef CONFIG_MPC85xx
+void lbc_sdram_init(void);
#endif
/* BR - Base Registers
#endif
/* BR - Base Registers
/*
* Initialize SDRAM memory on the Local Bus.
*/
/*
* Initialize SDRAM memory on the Local Bus.
*/
-
-void
-sdram_init(void)
+void lbc_sdram_init(void)
{
volatile fsl_lbc_t *lbc = LBC_BASE_ADDR;
uint *sdram_addr = (uint *)CONFIG_SYS_LBC_SDRAM_BASE;
{
volatile fsl_lbc_t *lbc = LBC_BASE_ADDR;
uint *sdram_addr = (uint *)CONFIG_SYS_LBC_SDRAM_BASE;
/*
* Initialize SDRAM memory on the Local Bus.
*/
/*
* Initialize SDRAM memory on the Local Bus.
*/
+void lbc_sdram_init(void)
{
#if defined(CONFIG_SYS_OR2_PRELIM) && defined(CONFIG_SYS_BR2_PRELIM)
{
#if defined(CONFIG_SYS_OR2_PRELIM) && defined(CONFIG_SYS_BR2_PRELIM)
/*
* Initialize SDRAM memory on the Local Bus.
*/
/*
* Initialize SDRAM memory on the Local Bus.
*/
+void lbc_sdram_init(void)
{
#if defined(CONFIG_SYS_OR2_PRELIM) && defined(CONFIG_SYS_BR2_PRELIM)
{
#if defined(CONFIG_SYS_OR2_PRELIM) && defined(CONFIG_SYS_BR2_PRELIM)
/*
* Initialize SDRAM memory on the Local Bus.
*/
/*
* Initialize SDRAM memory on the Local Bus.
*/
+void lbc_sdram_init(void)
{
#if defined(CONFIG_SYS_OR2_PRELIM) && defined(CONFIG_SYS_BR2_PRELIM)
{
#if defined(CONFIG_SYS_OR2_PRELIM) && defined(CONFIG_SYS_BR2_PRELIM)
/*
* Initialize SDRAM memory on the Local Bus.
*/
/*
* Initialize SDRAM memory on the Local Bus.
*/
-
-void
-sdram_init(void)
+void lbc_sdram_init(void)
{
volatile fsl_lbc_t *lbc = LBC_BASE_ADDR;
uint *sdram_addr = (uint *)CONFIG_SYS_LBC_SDRAM_BASE;
{
volatile fsl_lbc_t *lbc = LBC_BASE_ADDR;
uint *sdram_addr = (uint *)CONFIG_SYS_LBC_SDRAM_BASE;
/*
* Initialize SDRAM memory on the Local Bus.
*/
/*
* Initialize SDRAM memory on the Local Bus.
*/
+void lbc_sdram_init(void)
{
#if defined(CONFIG_SYS_OR2_PRELIM) && defined(CONFIG_SYS_BR2_PRELIM)
{
#if defined(CONFIG_SYS_OR2_PRELIM) && defined(CONFIG_SYS_BR2_PRELIM)
/*
* Initialize SDRAM memory on the Local Bus.
*/
/*
* Initialize SDRAM memory on the Local Bus.
*/
+void lbc_sdram_init(void)
{
#if defined(CONFIG_SYS_LBC_SDRAM_SIZE)
{
#if defined(CONFIG_SYS_LBC_SDRAM_SIZE)