aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip/rk3328
diff options
context:
space:
mode:
authorKever Yang <kever.yang@rock-chips.com>2019-07-22 20:02:02 +0800
committerKever Yang <kever.yang@rock-chips.com>2019-07-29 10:26:28 +0800
commit5eb9a78fcdb3af09527f16698f251756eb07359f (patch)
tree015a69a4ac0bcac6a85824aeb0bef110646c2f28 /arch/arm/mach-rockchip/rk3328
parent54f17fa05d453618afabff1246c1a16cea304b1b (diff)
downloadu-boot-5eb9a78fcdb3af09527f16698f251756eb07359f.zip
u-boot-5eb9a78fcdb3af09527f16698f251756eb07359f.tar.gz
u-boot-5eb9a78fcdb3af09527f16698f251756eb07359f.tar.bz2
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/rk3328')
-rw-r--r--arch/arm/mach-rockchip/rk3328/rk3328.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/arm/mach-rockchip/rk3328/rk3328.c b/arch/arm/mach-rockchip/rk3328/rk3328.c
index afd9de4..592f287 100644
--- a/arch/arm/mach-rockchip/rk3328/rk3328.c
+++ b/arch/arm/mach-rockchip/rk3328/rk3328.c
@@ -44,17 +44,6 @@ static struct mm_region rk3328_mem_map[] = {
struct mm_region *mem_map = rk3328_mem_map;
-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)
{
/* We do some SoC one time setting here. */