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/rk3399 | |
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/rk3399')
-rw-r--r-- | arch/arm/mach-rockchip/rk3399/rk3399.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.c index 89c4d59267..863024d071 100644 --- a/arch/arm/mach-rockchip/rk3399/rk3399.c +++ b/arch/arm/mach-rockchip/rk3399/rk3399.c @@ -78,17 +78,6 @@ void rockchip_stimer_init(void) } #endif -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; -} - int arch_cpu_init(void) { |