diff options
author | Andy Yan <andy.yan@rock-chips.com> | 2017-05-15 17:53:50 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-06-07 07:29:20 -0600 |
commit | e2901ab8f68acaa776f9f3ea8deef316e90543a0 (patch) | |
tree | 5259572e4af4a36fdaec054523578efd76e8dcc3 /board/rockchip/sheep_rk3368/sheep_rk3368.c | |
parent | fe9d4e77ea988201d567eb9f67792ed8c54db057 (diff) |
rockchip: rk3368: add Sheep board
Sheep board is designed by Rockchip as a EVB for rk3368.
Currently it is able to boot a linux kernel and system
to console with the miniloader run as fist level loader.
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Diffstat (limited to 'board/rockchip/sheep_rk3368/sheep_rk3368.c')
-rw-r--r-- | board/rockchip/sheep_rk3368/sheep_rk3368.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/board/rockchip/sheep_rk3368/sheep_rk3368.c b/board/rockchip/sheep_rk3368/sheep_rk3368.c new file mode 100644 index 0000000000..df1fd9d2c3 --- /dev/null +++ b/board/rockchip/sheep_rk3368/sheep_rk3368.c @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2017 Andy Yan + * + * SPDX-License-Identifier: GPL-2.0+ + */ +#include <common.h> +#include <asm/io.h> +#include <asm/arch/clock.h> +#include <asm/arch/grf_rk3368.h> +#include <syscon.h> + +DECLARE_GLOBAL_DATA_PTR; + +int mach_cpu_init(void) +{ + return 0; +} + +int board_init(void) +{ + return 0; +} + +int dram_init(void) +{ + gd->ram_size = 0x80000000; + + return 0; +} + +int dram_init_banksize(void) +{ + gd->bd->bi_dram[0].start = 0x200000; + gd->bd->bi_dram[0].size = 0x7fe00000; + + return 0; +} |