diff options
Diffstat (limited to 'power')
-rw-r--r-- | power/skylake.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/power/skylake.c b/power/skylake.c index 7ae1a3cc43..946d8e169b 100644 --- a/power/skylake.c +++ b/power/skylake.c @@ -191,8 +191,10 @@ enum power_state power_handle_state(enum power_state state) return POWER_S5G3; } - /* Enable TP so that it can wake the system */ + /* Enable TP + USB so that they can wake the system */ gpio_set_level(GPIO_ENABLE_TOUCHPAD, 1); + gpio_set_level(GPIO_USB1_ENABLE, 1); + gpio_set_level(GPIO_USB2_ENABLE, 1); /* Call hooks now that rails are up */ hook_notify(HOOK_CHIPSET_STARTUP); @@ -205,6 +207,8 @@ enum power_state power_handle_state(enum power_state state) return POWER_S3S5; } + gpio_set_level(GPIO_ENABLE_BACKLIGHT, 1); + /* Enable wireless */ wireless_set_state(WIRELESS_ON); @@ -229,6 +233,8 @@ enum power_state power_handle_state(enum power_state state) /* Call hooks before we remove power rails */ hook_notify(HOOK_CHIPSET_SUSPEND); + gpio_set_level(GPIO_ENABLE_BACKLIGHT, 0); + /* Suspend wireless */ wireless_set_state(WIRELESS_SUSPEND); @@ -248,6 +254,8 @@ enum power_state power_handle_state(enum power_state state) wireless_set_state(WIRELESS_OFF); gpio_set_level(GPIO_ENABLE_TOUCHPAD, 0); + gpio_set_level(GPIO_USB1_ENABLE, 0); + gpio_set_level(GPIO_USB2_ENABLE, 0); return POWER_S5G3; |