coreboot/src/soc
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
..
broadcom/cygnus UPSTREAM: soc/broadcom/cygnus/ddr_init.c: Correct typo in POWER ON and POWER OK. 2016-09-04 23:28:27 -07:00
dmp/vortex86ex UPSTREAM: src/soc: Capitalize CPU, ACPI, RAM and ROM 2016-08-04 23:37:59 -07:00
imgtec/pistachio drivers/uart: Use uart_platform_refclk for all UART models 2016-05-09 18:45:44 +02:00
intel UPSTREAM: intel/skylake: Add support to enable wake-on-usb attach/detach 2016-10-27 12:42:02 -07:00
lowrisc/lowrisc UPSTREAM: riscv: add the lowrisc System On Chip support 2016-10-27 12:41:53 -07:00
marvell UPSTREAM: marvell/mvmap2315: Compose BOOTBLOCK region 2016-10-24 23:30:55 -07:00
mediatek/mt8173 UPSTREAM: src/soc: Add required space before opening parenthesis '(' 2016-09-04 19:36:49 -07:00
nvidia UPSTREAM: Makefiles: update cbfs types from bare numbers to values 2016-09-22 08:55:23 -07:00
qualcomm soc/qualcomm/ipq40xx: Fix GPIO pull up config. 2016-09-24 02:47:18 -07:00
rdc/r8610 rdc/r8610: Move to src/soc 2016-05-05 20:08:58 +02:00
rockchip rockchip: edp: split edp_enable() function 2016-10-24 18:40:07 -07:00
samsung UPSTREAM: src/soc: Capitalize CPU, ACPI, RAM and ROM 2016-08-04 23:37:59 -07:00
ucb/riscv UPSTREAM: soc/ucb/riscv: select BOOTBLOCK_CONSOLE 2016-08-15 18:36:13 -07:00