diff options
author | Kever Yang <kever.yang@rock-chips.com> | 2019-07-22 15:02:02 +0300 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2019-07-29 05:26:28 +0300 |
commit | 5eb9a78fcdb3af09527f16698f251756eb07359f (patch) | |
tree | 015a69a4ac0bcac6a85824aeb0bef110646c2f28 /arch/arm/mach-rockchip/rk3368/rk3368.c | |
parent | 54f17fa05d453618afabff1246c1a16cea304b1b (diff) | |
download | u-boot-5eb9a78fcdb3af09527f16698f251756eb07359f.tar.xz |
rockchip: sdram_common: add common dram_init_banksize
dram_init_banksize() can be common used by all SoCs, move it into
sdram_common.c
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'arch/arm/mach-rockchip/rk3368/rk3368.c')
-rw-r--r-- | arch/arm/mach-rockchip/rk3368/rk3368.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/arm/mach-rockchip/rk3368/rk3368.c b/arch/arm/mach-rockchip/rk3368/rk3368.c index c75a5cd0c4..7ccd417a18 100644 --- a/arch/arm/mach-rockchip/rk3368/rk3368.c +++ b/arch/arm/mach-rockchip/rk3368/rk3368.c @@ -58,17 +58,6 @@ const char * const boot_devices[BROM_LAST_BOOTSOURCE + 1] = { [BROM_BOOTSOURCE_SD] = "dwmmc@ff0c0000", }; -int dram_init_banksize(void) -{ - size_t max_size = min((unsigned long)gd->ram_size, gd->ram_top); - - /* Reserve 0x200000 for ATF bl31 */ - gd->bd->bi_dram[0].start = 0x200000; - gd->bd->bi_dram[0].size = max_size - gd->bd->bi_dram[0].start; - - return 0; -} - #ifdef CONFIG_ARCH_EARLY_INIT_R static int mcu_init(void) { |