]> git.sur5r.net Git - u-boot/blob - board/rockchip/sheep_rk3368/sheep_rk3368.c
rockchip: use common sdram function
[u-boot] / board / rockchip / sheep_rk3368 / sheep_rk3368.c
1 /*
2  * Copyright (c) 2017 Andy Yan
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6 #include <common.h>
7 #include <asm/io.h>
8 #include <asm/arch/clock.h>
9 #include <asm/arch/grf_rk3368.h>
10 #include <syscon.h>
11
12 DECLARE_GLOBAL_DATA_PTR;
13
14 int mach_cpu_init(void)
15 {
16         return 0;
17 }
18
19 int board_init(void)
20 {
21         return 0;
22 }
23
24 int dram_init_banksize(void)
25 {
26         gd->bd->bi_dram[0].start = 0x200000;
27         gd->bd->bi_dram[0].size = 0x7fe00000;
28
29         return 0;
30 }