File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ extern void board_odroid_recovery(void);
2626extern int board_check_power (void );
2727
2828#define ALIVE_LED_GPIO 17 /* GPIO0_C1 */
29+ #define WIFI_EN_GPIO 110 /* GPIO3_B6 */
2930
3031void 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+
3745int 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
You can’t perform that action at this time.
0 commit comments