Set wireless power at init and power off
Add a new wireless object for controlling WLAN power state. Change the power sequence to enable WLAN at board init and disable it at power off. Newer galp5 units sold to customers have an issue where they do not fully power off. This is apparently somehow caused by `WLAN_PWR_EN`. The unit received for development do not have this issue. Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
committed by
Tim Crawford
parent
839abf7878
commit
be4659a0cb
@@ -4,6 +4,7 @@
|
||||
#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;
|
||||
@@ -15,16 +16,14 @@ void board_init(void) {
|
||||
gpio_set(&BKL_EN, true);
|
||||
// Enable camera
|
||||
gpio_set(&CCD_EN, true);
|
||||
// Enable wireless
|
||||
gpio_set(&BT_EN, true);
|
||||
gpio_set(&WLAN_EN, true);
|
||||
gpio_set(&WLAN_PWR_EN, true);
|
||||
// Enable right USB port
|
||||
gpio_set(&USB_PWR_EN_N, false);
|
||||
// Assert SMI#, SCI#, and SWI#
|
||||
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