]> git.sur5r.net Git - u-boot/blobdiff - board/keymile/km83xx/km83xx.c
board/sbc8560/sbc8560.c: Fix GCC 4.6 build warning
[u-boot] / board / keymile / km83xx / km83xx.c
index 98aceef5634b607df1343164927837e2600b6ac2..17560c8dbae52ba8c028d7b76aa378d7736280e9 100644 (file)
@@ -134,7 +134,8 @@ const uint upma_table[] = {
 
 int board_early_init_r(void)
 {
-       struct km_bec_fpga *base = (struct km_bec_fpga *)CONFIG_SYS_PIGGY_BASE;
+       struct km_bec_fpga *base =
+               (struct km_bec_fpga *)CONFIG_SYS_KMBEC_FPGA_BASE;
 #if defined(CONFIG_SUVD3)
        immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        fsl_lbc_t *lbc = &immap->im_lbc;
@@ -189,6 +190,12 @@ int misc_init_r(void)
        return 0;
 }
 
+int last_stage_init(void)
+{
+       set_km_env();
+       return 0;
+}
+
 int fixed_sdram(void)
 {
        immap_t *im = (immap_t *)CONFIG_SYS_IMMR;