board: stm32: use bi_dram[0].start instead of hardcoded value
Use gd->bd->bi_dram[0].start initialized from DT instead of using hardcoded CONFIG_SYS_SDRAM_BASE from config file. Remove unused CONFIG_SYS_RAM_BASE and CONFIG_SYS_SDRAM_BASE defines. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
This commit is contained in:
parent
e9cd3d7024
commit
725e09b823
@ -54,7 +54,7 @@ int board_early_init_f(void)
|
||||
|
||||
int board_init(void)
|
||||
{
|
||||
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
|
||||
gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ int board_early_init_f(void)
|
||||
|
||||
int board_init(void)
|
||||
{
|
||||
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
|
||||
gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ int board_early_init_f(void)
|
||||
|
||||
int board_init(void)
|
||||
{
|
||||
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
|
||||
gd->bd->bi_boot_params = gd->bd->bi_dram[0].start + 0x100;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -22,8 +22,6 @@
|
||||
#define CONFIG_NR_DRAM_BANKS 1
|
||||
#define CONFIG_SYS_RAM_CS 1
|
||||
#define CONFIG_SYS_RAM_FREQ_DIV 2
|
||||
#define CONFIG_SYS_RAM_BASE 0x90000000
|
||||
#define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_RAM_BASE
|
||||
#define CONFIG_SYS_LOAD_ADDR 0x90400000
|
||||
#define CONFIG_LOADADDR 0x90400000
|
||||
|
||||
|
@ -21,8 +21,6 @@
|
||||
*/
|
||||
#define CONFIG_NR_DRAM_BANKS 1
|
||||
#define CONFIG_SYS_RAM_FREQ_DIV 2
|
||||
#define CONFIG_SYS_RAM_BASE 0x00000000
|
||||
#define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_RAM_BASE
|
||||
#define CONFIG_SYS_LOAD_ADDR 0x00400000
|
||||
#define CONFIG_LOADADDR 0x00400000
|
||||
|
||||
|
@ -21,8 +21,6 @@
|
||||
*/
|
||||
#define CONFIG_NR_DRAM_BANKS 1
|
||||
#define CONFIG_SYS_RAM_FREQ_DIV 2
|
||||
#define CONFIG_SYS_RAM_BASE 0x00000000
|
||||
#define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_RAM_BASE
|
||||
#define CONFIG_SYS_LOAD_ADDR 0x00400000
|
||||
#define CONFIG_LOADADDR 0x00400000
|
||||
|
||||
|
@ -16,8 +16,6 @@
|
||||
* Configuration of the external SDRAM memory
|
||||
*/
|
||||
#define CONFIG_NR_DRAM_BANKS 1
|
||||
#define CONFIG_SYS_RAM_BASE 0xD0000000
|
||||
#define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_RAM_BASE
|
||||
#define CONFIG_SYS_LOAD_ADDR 0xD0400000
|
||||
#define CONFIG_LOADADDR 0xD0400000
|
||||
|
||||
|
@ -16,8 +16,6 @@
|
||||
* Configuration of the external SDRAM memory
|
||||
*/
|
||||
#define CONFIG_NR_DRAM_BANKS 1
|
||||
#define CONFIG_SYS_RAM_BASE 0xD0000000
|
||||
#define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_RAM_BASE
|
||||
#define CONFIG_SYS_LOAD_ADDR 0xD0400000
|
||||
#define CONFIG_LOADADDR 0xD0400000
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user