summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorJakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>2017-05-02 15:52:20 +0200
committerJakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>2017-05-02 15:52:20 +0200
commitd862531ead9efafa2d9acb2e7de7422061f3be59 (patch)
tree823599f0ea3a51201b3d73aced11dc04d7c500b9 /board
parentb70795a40a2a34f9f92919f31d252958f774a020 (diff)
lynx: board_init: move leftover pangolin GPIOs under ifdef
These should not be active on other boards.
Diffstat (limited to 'board')
-rw-r--r--board/sunxi/board.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index aeca22f4bf..3094652b01 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -157,10 +157,9 @@ int board_init(void)
}
#endif /* !CONFIG_ARM64 */
+#if defined(CONFIG_SUNXI_PANGOLIN)
sunxi_gpio_set_cfgpin(SUNXI_GPG(10), SUN6I_GPG_USB3);
sunxi_gpio_set_cfgpin(SUNXI_GPG(11), SUN6I_GPG_USB3);
-
-#if defined(CONFIG_SUNXI_PANGOLIN)
gpio_request(SUNXI_GPC(3), "STM32 Boot0");
sunxi_gpio_set_cfgpin(SUNXI_GPC(3), SUNXI_GPIO_OUTPUT);
gpio_request(SUNXI_GPC(26), "STM32 Reset");
@@ -170,7 +169,6 @@ int board_init(void)
sunxi_gpio_set_cfgpin(SUNXI_GPA(7), SUNXI_GPIO_OUTPUT);
gpio_direction_output(SUNXI_GPA(7), 0);
#endif
-
gpio_direction_output(SUNXI_GPC(3), 0);
gpio_direction_output(SUNXI_GPC(26), 0);
mdelay(10);
@@ -178,7 +176,7 @@ int board_init(void)
#if !defined(CONFIG_DM_GPIO)
gpio_direction_output(SUNXI_GPA(7), 1);
#endif
-#endif
+#endif /* CONFIG_SUNXI_PANGOLIN */
setup_led();