diff options
author | Tom Rini <trini@konsulko.com> | 2017-01-12 21:20:51 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-01-12 21:20:51 -0500 |
commit | 70c1e0474a9df2c4493b4e2330cc41d3132b4e90 (patch) | |
tree | 094753a072930130a4588d32d560af1d3feebf05 /board/chipspark/popmetal_rk3288/popmetal-rk3288.c | |
parent | c2538421b28424b9705865e838c5fba19c9dc651 (diff) | |
parent | 35a05761a1aebc857e73bec7d9e72a7f84cd96ba (diff) |
Merge git://git.denx.de/u-boot-rockchip
Diffstat (limited to 'board/chipspark/popmetal_rk3288/popmetal-rk3288.c')
-rw-r--r-- | board/chipspark/popmetal_rk3288/popmetal-rk3288.c | 17 |
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 aad74ef109..ed82b2bd78 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; +} |