coreboot-kgpe-d16/src/soc/intel/apollolake
Shaunak Saha c8ae5995bb soc/apollolake: Set up GPIO_TIER1_SCI_EN properly
Currently we are setting the gpio_tier1_sci in smihandler before
going to S3. But this won't work for S0iX as it happens from Linux
kernel and SMI handler is not involved in that flow. We need to
set this bit i.e. bit 15 in ACPI gpe0a register at 0x430h. The Linux
kernel before going to sleep checks what values are passed through
ASL as wake events (through _PRW), keeps those enabled only and
clears other bits in gpe0 enable registers. So we need to inform
the kernel to keep gpio_tier_sci also set as these are needed for
any wake event. This patch adds ASL code for sleep button device with
HID id PNP0C0E. We are adding _PRW method for sleep button device
with this patch.

BUG=chrome-os-partner:56483
TEST=System resumes from S3 on lidopen, powerbutton and USB wake.
     Also from S0iX system is resuming for WIFI wake.

Change-Id: Ie8517cad9cd37c25788c22250894d4f9db344ff9
Signed-off-by: Shaunak Saha <shaunak.saha@intel.com>
Reviewed-on: https://review.coreboot.org/16564
Tested-by: build bot (Jenkins)
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
2016-09-15 03:16:46 +02:00
..
acpi soc/apollolake: Set up GPIO_TIER1_SCI_EN properly 2016-09-15 03:16:46 +02:00
bootblock soc/intel/apollolake: Add CQOS CAR implementation 2016-08-28 18:38:48 +02:00
include soc/apollolake: Set up GPIO_TIER1_SCI_EN properly 2016-09-15 03:16:46 +02:00
acpi.c soc/intel/apollolake: Add PM methods to power gate PCIe 2016-09-14 22:17:47 +02:00
car.c soc/intel/apollolake: Flush L1D to L2 only if loaded segment is in CAR 2016-04-22 17:27:34 +02:00
chip.c soc/intel/apollolake: Update PL1 value in RAPL MMIO register 2016-09-14 22:18:42 +02:00
chip.h soc/intel/apollolake: Add PM methods to power gate PCIe 2016-09-14 22:17:47 +02:00
cpu.c soc/intel/apollolake: Gather microcode revision 2016-08-31 17:02:51 +02:00
dsp.c soc/intel/apollolake: Add Audio DSP device 2016-07-02 03:23:12 +02:00
elog.c soc/intel/apollolake: Enable ELOG 2016-08-25 23:51:27 +02:00
exit_car.S soc/intel/apollolake: Add CQOS CAR implementation 2016-08-28 18:38:48 +02:00
gpio.c soc/intel/apollolake: Add functions to calculate GPIO address 2016-09-09 23:51:01 +02:00
graphics.c driver/intel/fsp20: move lb_framebuffer function 2016-09-15 01:16:41 +02:00
heci.c soc/intel/apollolake: Add basic HECI support 2016-07-19 20:19:51 +02:00
i2c.c soc/intel/apollolake: Add support for LPSS I2C driver 2016-07-02 01:18:22 +02:00
i2c_early.c soc/intel/apollolake: Add support for LPSS I2C driver 2016-07-02 01:18:22 +02:00
itss.c soc/intel/apollolake: work around FSP for gpio interrupt polarity 2016-07-13 21:58:50 +02:00
Kconfig soc/intel/apollolake: Add CQOS CAR implementation 2016-08-28 18:38:48 +02:00
lpc.c vboot: Separate vboot from chromeos 2016-07-28 00:36:00 +02:00
lpc_lib.c google/reef: Enable 20K pull ups for LPC CLKRUN and LAD0:3 lines 2016-09-06 20:22:27 +02:00
Makefile.inc apollolake: relocate fsp header files to vendorcode 2016-09-02 18:12:57 +02:00
meminit.c drivers/intel/fsp2_0: Make FSP Headers Consumable out of Box 2016-09-02 18:12:24 +02:00
memmap.c soc/apollolake/memmap: Switch to SIMPLE_DEVICE API 2016-05-26 23:46:25 +02:00
mmap_boot.c region: Add writeat and eraseat support 2016-06-24 20:48:12 +02:00
nhlt.c soc/intel/apollolake: add initial NHLT support 2016-07-01 03:21:09 +02:00
northbridge.c soc/intel/apollolake: fix incorrect bdsm -> tolud memory resources 2016-05-06 16:50:27 +02:00
p2sb.c soc/intel/apollolake: handle p2sb quirks 2016-07-02 03:22:32 +02:00
pmc.c soc/intel/apollolake: add option for SLP_S3_L assertion width 2016-08-30 03:15:32 +02:00
pmutil.c intel/apollolake: Add power management utility function 2016-08-25 23:43:50 +02:00
reset.c drivers/intel/fsp2_0: Make FSP Headers Consumable out of Box 2016-09-02 18:12:24 +02:00
romstage.c drivers/intel/fsp2_0: Make FSP Headers Consumable out of Box 2016-09-02 18:12:24 +02:00
smi.c soc/apollolake: add GPIO SMI support 2016-08-10 21:10:59 +02:00
smihandler.c soc/apollolake: add GPIO SMI support 2016-08-10 21:10:59 +02:00
spi.c soc/intel/apollolake: make SPI support early stages 2016-08-19 03:09:01 +02:00
tsc_freq.c soc/intel: Update license headers 2016-04-14 16:54:33 +02:00
uart.c soc/apollolake/uart.c: Do not NOOP .set_resources() and friends 2016-05-12 04:01:58 +02:00
uart_early.c drivers/uart: Use uart_platform_refclk for all UART models 2016-05-09 18:45:44 +02:00
xhci.c soc/intel/apollolake: ensure usb port 0 is in host mode 2016-07-24 00:08:22 +02:00