Enable WLAN at power_on() instead of board_init()
If the board is on AC power when powered off the EC will not reset, and
WLAN power will not be enabled on next boot. Move enabling WLAN from
`board_init()` to `power_on()`.
Fixes: be4659a0cb
("Set wireless power at init and power off")
Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
committed by
Tim Crawford
parent
be4659a0cb
commit
2a8befc195
@@ -4,7 +4,6 @@
|
||||
#include <board/gpio.h>
|
||||
#include <board/kbc.h>
|
||||
#include <board/power.h>
|
||||
#include <board/wireless.h>
|
||||
#include <common/debug.h>
|
||||
|
||||
extern uint8_t main_cycle;
|
||||
@@ -22,8 +21,6 @@ void board_init(void) {
|
||||
gpio_set(&SCI_N, true);
|
||||
gpio_set(&SMI_N, true);
|
||||
gpio_set(&SWI_N, true);
|
||||
|
||||
wireless_power(true);
|
||||
}
|
||||
|
||||
void board_event(void) {
|
||||
|
Reference in New Issue
Block a user