aboutsummaryrefslogtreecommitdiff
path: root/board/geekbuying/geekbox/geekbox.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2017-05-15 17:54:26 +0800
committerSimon Glass <sjg@chromium.org>2017-06-07 07:29:20 -0600
commit54c57ae051152095063650d8590008ec1ef7cff9 (patch)
treeb938b9dbbcc76d66d35a35113fc3fc131e5d2cf1 /board/geekbuying/geekbox/geekbox.c
parente2901ab8f68acaa776f9f3ea8deef316e90543a0 (diff)
downloadu-boot-54c57ae051152095063650d8590008ec1ef7cff9.zip
u-boot-54c57ae051152095063650d8590008ec1ef7cff9.tar.gz
u-boot-54c57ae051152095063650d8590008ec1ef7cff9.tar.bz2
rockchip: rk3368: Add initial support for RK3368 based GeekBox
The GeekBox is a TV box from GeekBuying, based on an MXM3 module. The module can be used with base boards such as the GeekBox Landingship. This adds basic support to chain-load U-Boot from Rockchip's miniloader. Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Andy Yan <andy.yan@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/geekbuying/geekbox/geekbox.c')
-rw-r--r--board/geekbuying/geekbox/geekbox.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/board/geekbuying/geekbox/geekbox.c b/board/geekbuying/geekbox/geekbox.c
new file mode 100644
index 0000000..75d121d
--- /dev/null
+++ b/board/geekbuying/geekbox/geekbox.c
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) 2016 Andreas Färber
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#include <common.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+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 = 0;
+ gd->bd->bi_dram[0].size = 0x80000000;
+
+ return 0;
+}