coreboot/src
Furquan Shaikh 8accd6f043 UPSTREAM: intel/skylake: Add support to enable wake-on-usb attach/detach
Three things are required to enable wake-on-usb:
1. 5V to USB ports should be enabled in S3.
2. ASL file needs to have appropriate wake bit set.
3. XHCI controller should have the wake on attach/detach bit set for the
corresponding port in PORTSCN register.

Only part missing was #3.

This CL adds support to allow mainboard to define a bitmap in
devicetree corresponding to the ports that it wants to enable
wake-on-usb feature. Based on the bitmap, wake on attach/detach bits in
PORTSCN would be set by xhci.asl for the appropriate ports.

BUG=chrome-os-partner:58734
BRANCH=None
TEST=Verified that with port 5 enabled, chell wakes up from S3 on usb
attach/detach.

Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/17056
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>

Change-Id: I40a22a450e52f74a0ab93ebb8170555d834ebdaf
Reviewed-on: https://chromium-review.googlesource.com/403845
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-10-27 12:42:02 -07:00
..
acpi UPSTREAM: src/acpi: Capitalize ACPI and SATA 2016-08-04 23:37:57 -07:00
arch UPSTREAM: arch/x86/acpigen_dsm: Add support for DSM types 2016-10-24 23:31:44 -07:00
commonlib UPSTREAM: commonlib: move DIV_ROUND macros from nvidia/tegra 2016-09-08 17:57:23 -07:00
console UPSTREAM: Revert "[WIP] console/Kconfig: Calculate COM port base addresses only on x86" 2016-10-18 22:15:27 -07:00
cpu UPSTREAM: src/cpu: Fix location for cpu_microcode_blob.bin in COREBOOT CBFS only 2016-10-13 04:31:33 -07:00
device UPSTREAM: Kconfig: Update default hex values to start with 0x 2016-10-04 00:32:40 -07:00
drivers UPSTREAM: drivers/i2c/generic: Re-factor SSDT generation code 2016-10-24 23:31:39 -07:00
ec UPSTREAM: ec/lenovo/h8: fix whitespaces/tabs 2016-10-18 22:15:20 -07:00
include UPSTREAM: RISCV: Clean up the common architectural code 2016-10-24 23:31:14 -07:00
lib UPSTREAM: soc/intel/apollolake: Implement stage cache to improve resume time 2016-10-11 14:31:54 -07:00
mainboard UPSTREAM: mb/ga-g41m-es2l: remove unneeded IGD IRQ setting in ACPI 2016-10-27 12:41:51 -07:00
northbridge UPSTREAM: nb/i945/gma.c: Set the MSAC register correctly 2016-10-27 12:41:49 -07:00
soc UPSTREAM: intel/skylake: Add support to enable wake-on-usb attach/detach 2016-10-27 12:42:02 -07:00
southbridge UPSTREAM: southbridge/nvidia: Remove commented code 2016-10-13 04:31:23 -07:00
superio UPSTREAM: winbond/w83627ehg: Remove unnecessary value 2016-10-19 14:06:51 -07:00
vboot vboot: Stop creating backup space in TPM 2016-10-10 13:49:31 -07:00
vendorcode UPSTREAM: vendorcode/intel/fsp: Update UPD headers for FSP 157_10 2016-10-11 14:32:03 -07:00
Kconfig UPSTREAM: Kconfig: Update default hex values to start with 0x 2016-10-04 00:32:40 -07:00