Merge branch 'master' of git://git.denx.de/u-boot-samsung
[platform/kernel/u-boot.git] / 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(void)
25 {
26         gd->ram_size = 0x80000000;
27
28         return 0;
29 }
30
31 int dram_init_banksize(void)
32 {
33         gd->bd->bi_dram[0].start = 0x200000;
34         gd->bd->bi_dram[0].size = 0x7fe00000;
35
36         return 0;
37 }