summaryrefslogtreecommitdiff
path: root/include/configs/rk3368_common.h
diff options
context:
space:
mode:
authorKever Yang <kever.yang@rock-chips.com>2017-06-23 08:11:05 (GMT)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-07-11 10:13:44 (GMT)
commit6d1970fa8a8d315af2b5c2c6f0ad5e5c24a382b5 (patch)
tree8fed22118f9c2cf46b305db9159ca9b984166c9a /include/configs/rk3368_common.h
parentbe8da534e2578ccc57ff96974955b234ef2194f9 (diff)
downloadu-boot-fsl-qoriq-6d1970fa8a8d315af2b5c2c6f0ad5e5c24a382b5.tar.xz
rockchip: add sdram_common for common functions
There are some functions like sdram_size_mb can be re-used for different rockchip SoCs, just put them into common file. Add board_get_usable_ram_top() for ram_top init base on SDRAM_MAX_SIZE. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Added SDRAM_MAX_SIZE definition for RK3036: Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> fixup: 3036 fix for sdram_common
Diffstat (limited to 'include/configs/rk3368_common.h')
-rw-r--r--include/configs/rk3368_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/configs/rk3368_common.h b/include/configs/rk3368_common.h
index 8ebf232..b0c858c 100644
--- a/include/configs/rk3368_common.h
+++ b/include/configs/rk3368_common.h
@@ -12,6 +12,8 @@
#include <asm/arch/hardware.h>
#include <linux/sizes.h>
+#define CONFIG_SYS_SDRAM_BASE 0
+#define SDRAM_MAX_SIZE 0xff000000
#define CONFIG_NR_DRAM_BANKS 1
#define CONFIG_SYS_MAXARGS 16
#define CONFIG_BAUDRATE 115200