summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoy Cho <joy.cho@hardkernel.com>2020-05-08 11:11:09 +0300
committerJoy Cho <joy.cho@hardkernel.com>2020-05-11 04:47:05 +0300
commite7b255b54c42c8a805dee7a9409a8838cfa13586 (patch)
tree33a08575c47b35aba32fe1c3d5e2231b476acff2
parentf1da2b826c5efd921dc6b67d104d169f69a3d8a5 (diff)
downloadu-boot-e7b255b54c42c8a805dee7a9409a8838cfa13586.tar.xz
board: odroid-go2: set WIFI_EN GPIO as default high
Change-Id: I57bf070b04bb32f8714881e75e284f363172591f
-rw-r--r--board/rockchip/odroidgo2/odroidgo2.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/rockchip/odroidgo2/odroidgo2.c b/board/rockchip/odroidgo2/odroidgo2.c
index 62f997e459..102644fd2b 100644
--- a/board/rockchip/odroidgo2/odroidgo2.c
+++ b/board/rockchip/odroidgo2/odroidgo2.c
@@ -26,6 +26,7 @@ extern void board_odroid_recovery(void);
extern int board_check_power(void);
#define ALIVE_LED_GPIO 17 /* GPIO0_C1 */
+#define WIFI_EN_GPIO 110 /* GPIO3_B6 */
void board_alive_led(void)
{
@@ -34,6 +35,13 @@ void board_alive_led(void)
gpio_free(ALIVE_LED_GPIO);
}
+void board_wifi_en(void)
+{
+ gpio_request(WIFI_EN_GPIO, "wifi_enable");
+ gpio_direction_output(WIFI_EN_GPIO, 1);
+ gpio_free(WIFI_EN_GPIO);
+}
+
int board_check_autotest(void)
{
u32 stater, statel;
@@ -141,6 +149,9 @@ int rk_board_late_init(void)
/* turn on blue led */
board_alive_led();
+ /* set wifi_en as default high */
+ board_wifi_en();
+
/* set uart2-m1 port as a default debug console */
board_debug_uart2m1();