Skip to content

Commit e7b255b

Browse files
author
Joy Cho
committed
board: odroid-go2: set WIFI_EN GPIO as default high
Change-Id: I57bf070b04bb32f8714881e75e284f363172591f
1 parent f1da2b8 commit e7b255b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

board/rockchip/odroidgo2/odroidgo2.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ extern void board_odroid_recovery(void);
2626
extern int board_check_power(void);
2727

2828
#define ALIVE_LED_GPIO 17 /* GPIO0_C1 */
29+
#define WIFI_EN_GPIO 110 /* GPIO3_B6 */
2930

3031
void board_alive_led(void)
3132
{
@@ -34,6 +35,13 @@ void board_alive_led(void)
3435
gpio_free(ALIVE_LED_GPIO);
3536
}
3637

38+
void board_wifi_en(void)
39+
{
40+
gpio_request(WIFI_EN_GPIO, "wifi_enable");
41+
gpio_direction_output(WIFI_EN_GPIO, 1);
42+
gpio_free(WIFI_EN_GPIO);
43+
}
44+
3745
int board_check_autotest(void)
3846
{
3947
u32 stater, statel;
@@ -141,6 +149,9 @@ int rk_board_late_init(void)
141149
/* turn on blue led */
142150
board_alive_led();
143151

152+
/* set wifi_en as default high */
153+
board_wifi_en();
154+
144155
/* set uart2-m1 port as a default debug console */
145156
board_debug_uart2m1();
146157

0 commit comments

Comments
 (0)