coreboot-kgpe-d16/src/mainboard/lenovo/x201
Nathaniel Roach 4f4322dd68 lenovo/h8,thinkpads: Re-do USB Always On
Re-write the UAO handling code as it had stopped working (#171)
  (the flag was not getting read from the RTC properly in SMM)

Remove the SMM code as it's not needed (but EC flag won't be set
  upon entering S3 now)
Set the EC flags on boot the same way other flags are set
Document bitwise operators for clarity
Propagate changes to other Thinkpads
  (updated X201 to have 2 bits for the flag as it only had 1)

Per Nicola Corna's previous commits, 0x0d is set for "AC only"
  "AC only" does exhibit different behaviour - the USB port is
  turned on a few seconds after entering S3, rather than < 1 sec,
  regardless of AC status

Tested on X220

Change-Id: If812cd1ef8fb1a24d7fadbe834f574b40cbcd56a
Signed-off-by: Nathaniel Roach <nroach44@gmail.com>
Reviewed-on: https://review.coreboot.org/c/29565
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
2018-12-06 11:59:22 +00:00
..
acpi ec/lenovo/h8/acpi: Apply state on wake 2018-07-19 16:49:18 +00:00
acpi_tables.c
board_info.txt
cmos.default mb/*/*/cmos.default: Decrease debug_level to 'Debug' 2018-08-15 18:39:17 +00:00
cmos.layout lenovo/h8,thinkpads: Re-do USB Always On 2018-12-06 11:59:22 +00:00
data.vbt
devicetree.cb
dock.c mb/lenovo/*/*: Fix non-local header treated as local 2018-11-07 16:49:23 +00:00
dock.h
dsdt.asl mb/lenovo/x201/dsdt: Remove duplicated include 2018-12-05 14:04:23 +00:00
gma-mainboard.ads mb/lenovo/x201: Allow use of libgfxinit 2018-07-19 16:40:24 +00:00
gpio.c mb/lenovo/x201/gpio: Use reset structure 2018-11-07 16:48:38 +00:00
hda_verb.c
Kconfig mb/*/*/Kconfig: Remove useless comment 2018-11-28 13:53:51 +00:00
Kconfig.name
mainboard.c src: Remove unneeded include <pc80/keyboard.h> 2018-11-16 09:48:52 +00:00
Makefile.inc mb/lenovo/x201: Allow use of libgfxinit 2018-07-19 16:40:24 +00:00
romstage.c mb/{lenovo/x201,packardbell/ms2290}/romstage: Fix comments 2018-11-07 16:49:34 +00:00
smi.h
smihandler.c lenovo/h8,thinkpads: Re-do USB Always On 2018-12-06 11:59:22 +00:00