diff options
author | Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com> | 2017-05-02 16:12:09 +0200 |
---|---|---|
committer | Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com> | 2017-05-02 16:12:09 +0200 |
commit | ce0925747520e5fb2bff33b02b6dcb2cd501407f (patch) | |
tree | a71e74b081dd6b4b86912428a1a63528698260c4 | |
parent | 7c319ae9103ee3ce3344850197f252e192774c97 (diff) |
lynx: board_init: take USB hubs out of resetlynx
The reset lines have hardware pull-downs on them. Pull them
high to enable the two USB hubs on the board.
-rw-r--r-- | board/sunxi/board.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 3094652b01..4411d751cc 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -178,6 +178,18 @@ int board_init(void) #endif #endif /* CONFIG_SUNXI_PANGOLIN */ +#ifdef CONFIG_SUNXI_LYNX + if (gpio_request(SUNXI_GPG(9), "USB hub 0 reset") == 0) + gpio_direction_output(SUNXI_GPG(9), 1); + else + printf("error requesting hub 0 gpio\n"); + + if (gpio_request(SUNXI_GPE(4), "USB hub 1 reset") == 0) + gpio_direction_output(SUNXI_GPE(4), 1); + else + printf("error requesting hub 1 gpio\n"); +#endif /* CONFIG_SUNXI_LYNX */ + setup_led(); ret = axp_gpio_init(); |