mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-11 05:02:26 -04:00
ppc4xx: Fix problem with SDRAM init in bamboo NAND booting port
This patch fixes a problem spotted by Eugene O'Brian (thanks Eugene) introduced by the commit: ppc4xx/NAND_SPL: Consolidate 405 and 440 NAND booting code in start.S With this patch SDRAM will get initialized again and booting from NAND is working again. Signed-off-by: Stefan Roese <sr@denx.de> Acked-by: Eugene O'Brien <eugene.obrien@advantechamt.com>
This commit is contained in:
parent
de5bfcf7b0
commit
63a0afa0c3
@ -36,7 +36,7 @@ static void wait_init_complete(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* early_sdram_init()
|
* long int initdram(int board_type)
|
||||||
*
|
*
|
||||||
* As the name already indicates, this function is called very early
|
* As the name already indicates, this function is called very early
|
||||||
* from start.S and configures the SDRAM with fixed values. This is needed,
|
* 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 are still plugged in. So it is recommended to remove the DIMM
|
||||||
* modules while using the NAND booting code with the fixed SDRAM setup!
|
* modules while using the NAND booting code with the fixed SDRAM setup!
|
||||||
*/
|
*/
|
||||||
void early_sdram_init(void)
|
long int initdram(int board_type)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Soft-reset SDRAM controller.
|
* Soft-reset SDRAM controller.
|
||||||
@ -87,12 +87,6 @@ void early_sdram_init(void)
|
|||||||
*/
|
*/
|
||||||
mtsdram(mem_cfg0, 0x80000000); /* DCEN=1, PMUD=0*/
|
mtsdram(mem_cfg0, 0x80000000); /* DCEN=1, PMUD=0*/
|
||||||
wait_init_complete();
|
wait_init_complete();
|
||||||
}
|
|
||||||
|
|
||||||
long int initdram(int board_type)
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Nothing to do here, just return size of fixed SDRAM setup
|
|
||||||
*/
|
|
||||||
return CFG_MBYTES_SDRAM << 20;
|
return CFG_MBYTES_SDRAM << 20;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user