board: stm32: use bi_dram[0].start instead of hardcoded value
[oweals/u-boot.git] / board / st / stm32f469-discovery / stm32f469-discovery.c
index a457f9095276e97d81fa70955f4e9ecde76a9edc..70d23d90f4ca7d181ecb2ea7971a8091a1f80aa6 100644 (file)
@@ -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;
 }