aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/board/chipspark
diff options
context:
space:
mode:
Diffstat (limited to 'roms/u-boot/board/chipspark')
-rw-r--r--roms/u-boot/board/chipspark/popmetal_rk3288/Kconfig15
-rw-r--r--roms/u-boot/board/chipspark/popmetal_rk3288/MAINTAINERS6
-rw-r--r--roms/u-boot/board/chipspark/popmetal_rk3288/Makefile7
-rw-r--r--roms/u-boot/board/chipspark/popmetal_rk3288/popmetal-rk3288.c24
4 files changed, 52 insertions, 0 deletions
diff --git a/roms/u-boot/board/chipspark/popmetal_rk3288/Kconfig b/roms/u-boot/board/chipspark/popmetal_rk3288/Kconfig
new file mode 100644
index 000000000..a5f404306
--- /dev/null
+++ b/roms/u-boot/board/chipspark/popmetal_rk3288/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_POPMETAL_RK3288
+
+config SYS_BOARD
+ default "popmetal_rk3288"
+
+config SYS_VENDOR
+ default "chipspark"
+
+config SYS_CONFIG_NAME
+ default "popmetal_rk3288"
+
+config BOARD_SPECIFIC_OPTIONS # dummy
+ def_bool y
+
+endif
diff --git a/roms/u-boot/board/chipspark/popmetal_rk3288/MAINTAINERS b/roms/u-boot/board/chipspark/popmetal_rk3288/MAINTAINERS
new file mode 100644
index 000000000..1a6a1bb2c
--- /dev/null
+++ b/roms/u-boot/board/chipspark/popmetal_rk3288/MAINTAINERS
@@ -0,0 +1,6 @@
+POPMETAL-RK3288
+M: Lin Huang <hl@rock-chips.com>
+S: Maintained
+F: board/chipspark/popmetal_rk3288
+F: include/configs/popmetal_rk3288.h
+F: configs/popmetal-rk3288_defconfig
diff --git a/roms/u-boot/board/chipspark/popmetal_rk3288/Makefile b/roms/u-boot/board/chipspark/popmetal_rk3288/Makefile
new file mode 100644
index 000000000..86d66b0bf
--- /dev/null
+++ b/roms/u-boot/board/chipspark/popmetal_rk3288/Makefile
@@ -0,0 +1,7 @@
+#
+# (C) Copyright 2016 Rockchip Electronics Co., Ltd
+#
+# SPDX-License-Identifier: GPL-2.0+
+#
+
+obj-y += popmetal-rk3288.o
diff --git a/roms/u-boot/board/chipspark/popmetal_rk3288/popmetal-rk3288.c b/roms/u-boot/board/chipspark/popmetal_rk3288/popmetal-rk3288.c
new file mode 100644
index 000000000..e6909b3b1
--- /dev/null
+++ b/roms/u-boot/board/chipspark/popmetal_rk3288/popmetal-rk3288.c
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * (C) Copyright 2016 Rockchip Electronics Co., Ltd
+ */
+
+#include <common.h>
+#include <init.h>
+#include <asm/gpio.h>
+
+#define GPIO7A3_HUB_RST 227
+
+int rk3288_board_late_init(void)
+{
+ int ret;
+
+ ret = gpio_request(GPIO7A3_HUB_RST, "hub_rst");
+ if (ret)
+ return ret;
+ ret = gpio_direction_output(GPIO7A3_HUB_RST, 1);
+ if (ret)
+ return ret;
+
+ return 0;
+}