]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-rockchip/rk3036-board.c
Merge git://git.denx.de/u-boot-sh
[u-boot] / arch / arm / mach-rockchip / rk3036-board.c
index bf2b268f8b22b6370d02fe248980f99437d951ed..a3457f391449a9f943675a8c296ac6f3d9b0d0a3 100644 (file)
@@ -34,11 +34,11 @@ static void setup_boot_mode(void)
        switch (boot_mode) {
        case BOOT_FASTBOOT:
                printf("enter fastboot!\n");
-               setenv("preboot", "setenv preboot; fastboot usb0");
+               env_set("preboot", "setenv preboot; fastboot usb0");
                break;
        case BOOT_UMS:
                printf("enter UMS!\n");
-               setenv("preboot", "setenv preboot; ums mmc 0");
+               env_set("preboot", "setenv preboot; ums mmc 0");
                break;
        }
 }
@@ -60,12 +60,18 @@ int board_init(void)
        return 0;
 }
 
+#if !CONFIG_IS_ENABLED(RAM)
+/*
+ * When CONFIG_RAM is enabled, the dram_init() function is implemented
+ * in sdram_common.c.
+ */
 int dram_init(void)
 {
        gd->ram_size = sdram_size();
 
        return 0;
 }
+#endif
 
 #ifndef CONFIG_SYS_DCACHE_OFF
 void enable_caches(void)