summaryrefslogtreecommitdiff
path: root/board/sunxi/board.c
diff options
context:
space:
mode:
authorKlaus Goger <klaus.goger@theobroma-systems.com>2015-07-27 07:28:40 +0200
committerKlaus Goger <klaus.goger@theobroma-systems.com>2015-07-30 18:44:08 +0200
commited86cdfef0d5d0e0b30f34729555695ac196b524 (patch)
tree4bdd1e693f388d643f40e4fb489555ef163a4b39 /board/sunxi/board.c
parent626f511f31d20d4e9e0555aad86574868c27312b (diff)
ARM: sun6i: pangolin: set pinmux for USBH3
USBH3 is used as full speed USB connection to the onboard STM32. Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
Diffstat (limited to 'board/sunxi/board.c')
-rw-r--r--board/sunxi/board.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index 70d9a2c1cd..3b3cb35415 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -94,6 +94,9 @@ int board_init(void)
asm volatile("mcr p15, 0, %0, c14, c0, 0" : : "r"(24000000));
}
+ sunxi_gpio_set_cfgpin(SUNXI_GPG(10), SUN6I_GPG_USB3);
+ sunxi_gpio_set_cfgpin(SUNXI_GPG(11), SUN6I_GPG_USB3);
+
gpio_request(SUNXI_GPC(3), "STM32 Boot0");
sunxi_gpio_set_cfgpin(SUNXI_GPC(3), SUNXI_GPIO_OUTPUT);
gpio_request(SUNXI_GPC(26), "STM32 Reset");