coreboot-kgpe-d16/src/mainboard/lenovo/x201
Nicola Corna f1395d825b ec/lenovo/h8: Add USB Always On
USB AO is the internal name for the dedicated charging port on
ThinkPads when in S3 or lower.

AOEN (bit 0) is internal name for enabling this feature while AOCF
(bits 2 and 3) is the configuration field. According to Peter Stuge,
AOCF can be configured in this way:

    00 => AC S3 S4 S4 USB on, battery S3 USB on, battery S4 S5 off
    11 => AC S3 S4 S4 USB on, battery S3 S4 S5 USB off
    10, 01 => equivalent to 00

This commit also adds a new configuration field in the CMOS of the
X220 and the X201 to activate this feature. It probably can be also
added to all the ThinkPads that support this functionality.

With this functionality USB devices are able to negotiate full power
from the dedicated port (usually the yellow one) even in S3.

Tested on a X201 and X220 with an Android smartphone: with this
feature enabled it shows "Charging" when connected during S3, without
it it shows "Charging slowly" (or it doesn't charge at all on the
X201).

For some reasons the "AC only" mode doesn't work, so it has been
disabled.

Change-Id: Ie1269a4357e2fbd608ad8b7b8262275914730f6e
Signed-off-by: Nicola Corna <nicola@corna.info>
Reviewed-on: https://review.coreboot.org/17252
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h@gmx.de>
2016-11-18 18:14:42 +01:00
..
acpi kbuild: Allow drivers to fit src/drivers/[X]/[Y]/ scheme 2016-04-19 18:34:18 +02:00
acpi_tables.c
board_info.txt
cmos.default ec/lenovo/h8: Add USB Always On 2016-11-18 18:14:42 +01:00
cmos.layout ec/lenovo/h8: Add USB Always On 2016-11-18 18:14:42 +01:00
devicetree.cb nb/intel/raminit (native): Read PCI mmio size from devicetree 2016-06-12 12:48:44 +02:00
dock.c
dock.h
dsdt.asl mainboard/*/*/dsdt.asl: Use tabs for indents 2016-09-26 13:38:46 +02:00
gpio.h southbridge/intel/bd82x6x: Use common gpio.c 2016-02-18 01:35:57 +01:00
hda_verb.c
Kconfig lenovo: add ps2 spinup timeout to all H8S based boards 2016-09-15 02:34:10 +02:00
Kconfig.name
mainboard.c
Makefile.inc
romstage.c intel/nehalem: Use common ACPI S3 recovery 2016-06-26 14:04:02 +02:00
smi.h
smihandler.c ec/lenovo/h8: Add USB Always On 2016-11-18 18:14:42 +01:00