rockchip: use common sdram function
[oweals/u-boot.git] / arch / arm / mach-rockchip / rk3036-board.c
index bf2b268f8b22b6370d02fe248980f99437d951ed..26ea23b01400686a76a7dbf0ae23340f99ae4742 100644 (file)
@@ -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)