command: Remove the cmd_tbl_t typedef
[oweals/u-boot.git] / board / st / stm32f429-discovery / stm32f429-discovery.c
index e800d70f763b537c05c7e6f9fd20507f3751883a..d0948b7962f4b64fc41254ac5227ded7b8b2fc93 100644 (file)
@@ -12,6 +12,8 @@
 
 #include <common.h>
 #include <dm.h>
+#include <env.h>
+#include <init.h>
 
 #include <asm/io.h>
 #include <asm/arch/stm32.h>
@@ -54,7 +56,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;
 }