mb/lenovo/*/cmos: Port USB Always On
Port commit f1395d82: "ec/lenovo/h8: Add USB Always On" to other Thinkpad boards, as it seems to work fine on all generations. Change-Id: I6dcbfaae2a444d9a679ecb64a87dc2a59b8fd281 Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/20106 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
This commit is contained in:
parent
b21f5d708a
commit
7ffb329f27
|
@ -15,3 +15,4 @@ sticky_fn=Disable
|
|||
trackpoint=Enable
|
||||
backlight=Both
|
||||
hybrid_graphics_mode=Integrated Only
|
||||
usb_always_on=Disable
|
|
@ -67,7 +67,7 @@ entries
|
|||
416 1 e 1 trackpoint
|
||||
417 1 e 1 fn_ctrl_swap
|
||||
418 1 e 1 sticky_fn
|
||||
#419 2 r 0 unused
|
||||
419 2 e 13 usb_always_on
|
||||
421 1 e 9 sata_mode
|
||||
422 2 e 10 backlight
|
||||
|
||||
|
@ -136,6 +136,10 @@ enumerations
|
|||
11 6 224M
|
||||
12 0 Integrated Only
|
||||
12 1 Discrete Only
|
||||
13 0 Disable
|
||||
13 1 AC and battery
|
||||
13 2 AC only
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
checksums
|
||||
|
||||
|
|
|
@ -72,6 +72,8 @@ int mainboard_smi_apmc(u8 data)
|
|||
|
||||
void mainboard_smi_sleep(u8 slp_typ)
|
||||
{
|
||||
h8_usb_always_on();
|
||||
|
||||
if (slp_typ == 3) {
|
||||
u8 ec_wake = ec_read(0x32);
|
||||
/* If EC wake events are enabled, enable wake on EC WAKE GPE. */
|
||||
|
|
|
@ -14,3 +14,4 @@ fn_ctrl_swap=Disable
|
|||
sticky_fn=Disable
|
||||
trackpoint=Enable
|
||||
hybrid_graphics_mode=Integrated Only
|
||||
usb_always_on=Disable
|
|
@ -69,7 +69,7 @@ entries
|
|||
418 1 e 1 sticky_fn
|
||||
419 1 e 1 power_management_beeps
|
||||
421 1 e 9 sata_mode
|
||||
#422 2 r 1 unused
|
||||
422 2 e 13 usb_always_on
|
||||
|
||||
# coreboot config options: cpu
|
||||
#424 8 r 0 unused
|
||||
|
@ -137,6 +137,9 @@ enumerations
|
|||
11 6 224M
|
||||
12 0 Integrated Only
|
||||
12 1 Discrete Only
|
||||
13 0 Disable
|
||||
13 1 AC and battery
|
||||
13 2 AC only
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
checksums
|
||||
|
|
|
@ -71,6 +71,8 @@ int mainboard_smi_apmc(u8 data)
|
|||
|
||||
void mainboard_smi_sleep(u8 slp_typ)
|
||||
{
|
||||
h8_usb_always_on();
|
||||
|
||||
if (slp_typ == 3) {
|
||||
u8 ec_wake = ec_read(0x32);
|
||||
/* If EC wake events are enabled, enable wake on EC WAKE GPE. */
|
||||
|
|
|
@ -14,3 +14,4 @@ fn_ctrl_swap=Disable
|
|||
sticky_fn=Disable
|
||||
trackpoint=Enable
|
||||
hybrid_graphics_mode=Integrated Only
|
||||
usb_always_on=Disable
|
|
@ -69,7 +69,7 @@ entries
|
|||
418 1 e 1 sticky_fn
|
||||
419 1 e 1 power_management_beeps
|
||||
421 1 e 9 sata_mode
|
||||
#422 2 r 1 unused
|
||||
422 2 e 13 usb_always_on
|
||||
|
||||
# coreboot config options: cpu
|
||||
#424 8 r 0 unused
|
||||
|
@ -137,6 +137,9 @@ enumerations
|
|||
11 6 224M
|
||||
12 0 Integrated Only
|
||||
12 1 Discrete Only
|
||||
13 0 Disable
|
||||
13 1 AC and battery
|
||||
13 2 AC only
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
checksums
|
||||
|
|
|
@ -107,6 +107,8 @@ int mainboard_smi_apmc(u8 data)
|
|||
|
||||
void mainboard_smi_sleep(u8 slp_typ)
|
||||
{
|
||||
h8_usb_always_on();
|
||||
|
||||
if (slp_typ == 3) {
|
||||
u8 ec_wake = ec_read(0x32);
|
||||
/* If EC wake events are enabled, enable wake on EC WAKE GPE. */
|
||||
|
|
|
@ -67,8 +67,7 @@ entries
|
|||
416 1 e 1 trackpoint
|
||||
417 1 e 1 fn_ctrl_swap
|
||||
418 1 e 1 sticky_fn
|
||||
419 1 e 1 usb_always_on
|
||||
#420 1 r 0 unused
|
||||
419 2 e 13 usb_always_on
|
||||
421 1 e 9 sata_mode
|
||||
422 2 e 10 backlight
|
||||
|
||||
|
@ -137,6 +136,9 @@ enumerations
|
|||
11 6 224M
|
||||
12 0 Integrated Only
|
||||
12 1 Discrete Only
|
||||
13 0 Disable
|
||||
13 1 AC and battery
|
||||
13 2 AC only
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
checksums
|
||||
|
|
|
@ -14,3 +14,4 @@ fn_ctrl_swap=Disable
|
|||
sticky_fn=Disable
|
||||
trackpoint=Enable
|
||||
backlight=Both
|
||||
usb_always_on=Disable
|
|
@ -67,7 +67,7 @@ entries
|
|||
416 1 e 1 trackpoint
|
||||
417 1 e 1 fn_ctrl_swap
|
||||
418 1 e 1 sticky_fn
|
||||
#419 2 r 0 unused
|
||||
419 2 e 12 usb_always_on
|
||||
421 1 e 9 sata_mode
|
||||
422 2 e 10 backlight
|
||||
|
||||
|
@ -133,6 +133,9 @@ enumerations
|
|||
11 4 160M
|
||||
11 5 192M
|
||||
11 6 224M
|
||||
12 0 Disable
|
||||
12 1 AC and battery
|
||||
12 2 AC only
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
checksums
|
||||
|
|
|
@ -105,6 +105,8 @@ int mainboard_smi_apmc(u8 data)
|
|||
|
||||
void mainboard_smi_sleep(u8 slp_typ)
|
||||
{
|
||||
h8_usb_always_on();
|
||||
|
||||
if (slp_typ == 3) {
|
||||
u8 ec_wake = ec_read(0x32);
|
||||
/* If EC wake events are enabled, enable wake on EC WAKE GPE. */
|
||||
|
|
|
@ -15,3 +15,4 @@ sticky_fn=Disable
|
|||
trackpoint=Enable
|
||||
backlight=Both
|
||||
hybrid_graphics_mode=Integrated Only
|
||||
usb_always_on=Disable
|
||||
|
|
|
@ -67,7 +67,7 @@ entries
|
|||
416 1 e 1 trackpoint
|
||||
417 1 e 1 fn_ctrl_swap
|
||||
418 1 e 1 sticky_fn
|
||||
#419 2 r 0 unused
|
||||
419 2 e 13 usb_always_on
|
||||
421 1 e 9 sata_mode
|
||||
422 2 e 10 backlight
|
||||
|
||||
|
@ -136,6 +136,10 @@ enumerations
|
|||
11 6 224M
|
||||
12 0 Integrated Only
|
||||
12 1 Discrete Only
|
||||
13 0 Disable
|
||||
13 1 AC and battery
|
||||
13 2 AC only
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
checksums
|
||||
|
||||
|
|
|
@ -107,6 +107,8 @@ int mainboard_smi_apmc(u8 data)
|
|||
|
||||
void mainboard_smi_sleep(u8 slp_typ)
|
||||
{
|
||||
h8_usb_always_on();
|
||||
|
||||
if (slp_typ == 3) {
|
||||
u8 ec_wake = ec_read(0x32);
|
||||
/* If EC wake events are enabled, enable wake on EC WAKE GPE. */
|
||||
|
|
|
@ -15,3 +15,4 @@ sticky_fn=Disable
|
|||
trackpoint=Enable
|
||||
backlight=Both
|
||||
hybrid_graphics_mode=Integrated Only
|
||||
usb_always_on=Disable
|
|
@ -67,7 +67,7 @@ entries
|
|||
416 1 e 1 trackpoint
|
||||
417 1 e 1 fn_ctrl_swap
|
||||
418 1 e 1 sticky_fn
|
||||
#419 2 r 0 unused
|
||||
419 2 e 13 usb_always_on
|
||||
421 1 e 9 sata_mode
|
||||
422 2 e 10 backlight
|
||||
|
||||
|
@ -137,6 +137,9 @@ enumerations
|
|||
11 6 224M
|
||||
12 0 Integrated Only
|
||||
12 1 Discrete Only
|
||||
13 0 Disable
|
||||
13 1 AC and battery
|
||||
13 2 AC only
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
checksums
|
||||
|
|
|
@ -107,6 +107,8 @@ int mainboard_smi_apmc(u8 data)
|
|||
|
||||
void mainboard_smi_sleep(u8 slp_typ)
|
||||
{
|
||||
h8_usb_always_on();
|
||||
|
||||
if (slp_typ == 3) {
|
||||
u8 ec_wake = ec_read(0x32);
|
||||
/* If EC wake events are enabled, enable wake on EC WAKE GPE. */
|
||||
|
|
|
@ -14,3 +14,4 @@ fn_ctrl_swap=Disable
|
|||
sticky_fn=Disable
|
||||
trackpoint=Enable
|
||||
backlight=Both
|
||||
usb_always_on=Disable
|
|
@ -67,7 +67,7 @@ entries
|
|||
416 1 e 1 trackpoint
|
||||
417 1 e 1 fn_ctrl_swap
|
||||
418 1 e 1 sticky_fn
|
||||
#419 2 r 0 unused
|
||||
419 2 e 12 usb_always_on
|
||||
421 1 e 9 sata_mode
|
||||
422 2 e 10 backlight
|
||||
|
||||
|
@ -134,6 +134,9 @@ enumerations
|
|||
11 4 160M
|
||||
11 5 192M
|
||||
11 6 224M
|
||||
12 0 Disable
|
||||
12 1 AC and battery
|
||||
12 2 AC only
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
checksums
|
||||
|
|
|
@ -71,6 +71,8 @@ int mainboard_smi_apmc(u8 data)
|
|||
|
||||
void mainboard_smi_sleep(u8 slp_typ)
|
||||
{
|
||||
h8_usb_always_on();
|
||||
|
||||
if (slp_typ == 3) {
|
||||
u8 ec_wake = ec_read(0x32);
|
||||
/* If EC wake events are enabled, enable wake on EC WAKE GPE. */
|
||||
|
|
Loading…
Reference in New Issue