intel/amenia: Add wake-up from lid open
This patch adds support to wake up from S3 on lidopen. mainboard.asl has the _PRW defined for the wakeup support in S3. BUG = chrome-os-partner:53992 TEST = Platform wakes up from S3 on lidopen. Change-Id: I48b456baf5f7e1c2f28454fa66bb90ad761bb103 Signed-off-by: Shaunak Saha <shaunak.saha@intel.com> Reviewed-on: https://review.coreboot.org/15618 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
89e7b49a11
commit
9b4be0fce0
|
@ -15,6 +15,7 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
#include <on_board.h>
|
#include <on_board.h>
|
||||||
|
#include "../ec.h"
|
||||||
|
|
||||||
Scope (\_SB)
|
Scope (\_SB)
|
||||||
{
|
{
|
||||||
|
@ -25,6 +26,7 @@ Scope (\_SB)
|
||||||
{
|
{
|
||||||
Return (\_SB.PCI0.LPCB.EC0.LIDS)
|
Return (\_SB.PCI0.LPCB.EC0.LIDS)
|
||||||
}
|
}
|
||||||
|
Name (_PRW, Package () { GPE_EC_WAKE, 0x3 })
|
||||||
}
|
}
|
||||||
|
|
||||||
Device (PWRB)
|
Device (PWRB)
|
||||||
|
|
|
@ -26,6 +26,9 @@
|
||||||
*/
|
*/
|
||||||
#define EC_SCI_GPI GPE0_DW1_11
|
#define EC_SCI_GPI GPE0_DW1_11
|
||||||
|
|
||||||
|
/* GPIO_22 is the EC_SOC_WAKE and is used to wake up from S3 on LID open */
|
||||||
|
#define GPE_EC_WAKE GPE0_DW1_22
|
||||||
|
|
||||||
#define MAINBOARD_EC_SCI_EVENTS \
|
#define MAINBOARD_EC_SCI_EVENTS \
|
||||||
(EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_CLOSED) |\
|
(EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_CLOSED) |\
|
||||||
EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) |\
|
EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) |\
|
||||||
|
|
Loading…
Reference in New Issue