aboutsummaryrefslogtreecommitdiff
path: root/board/chipspark/popmetal_rk3288
diff options
context:
space:
mode:
authorKever Yang2016-11-24 15:29:50 +0800
committerSimon Glass2017-01-11 20:21:20 -0700
commitda20981269d890cb85ef9336a3f488d61fbd73b7 (patch)
tree714b481ac8620e003b28c4c2e04045a53af0a348 /board/chipspark/popmetal_rk3288
parent4386feb73da7946fc79b55c4fa41c6dd66dcb2e2 (diff)
rockchip: board: popmetal: de-assert the host rst pin in board init
The PopMetal board have a on board FE1.1 usb 2.0 hub which connect to the usb host port, we need to de-assert its reset pin to enable it. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org> Added rockchip: tag: Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/chipspark/popmetal_rk3288')
-rw-r--r--board/chipspark/popmetal_rk3288/popmetal-rk3288.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/board/chipspark/popmetal_rk3288/popmetal-rk3288.c b/board/chipspark/popmetal_rk3288/popmetal-rk3288.c
index aad74ef1095..ed82b2bd781 100644
--- a/board/chipspark/popmetal_rk3288/popmetal-rk3288.c
+++ b/board/chipspark/popmetal_rk3288/popmetal-rk3288.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <spl.h>
+#include <asm/gpio.h>
void board_boot_order(u32 *spl_boot_list)
{
@@ -13,3 +14,19 @@ void board_boot_order(u32 *spl_boot_list)
spl_boot_list[0] = BOOT_DEVICE_MMC2;
spl_boot_list[1] = BOOT_DEVICE_MMC1;
}
+
+#define GPIO7A3_HUB_RST 227
+
+int rk_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;
+}