diff options
Diffstat (limited to 'src/mainboard/lenovo/t520')
-rw-r--r-- | src/mainboard/lenovo/t520/cmos.default | 1 | ||||
-rw-r--r-- | src/mainboard/lenovo/t520/cmos.layout | 8 | ||||
-rw-r--r-- | src/mainboard/lenovo/t520/smihandler.c | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/mainboard/lenovo/t520/cmos.default b/src/mainboard/lenovo/t520/cmos.default index 92dc2e1555..5c21f9c7fa 100644 --- a/src/mainboard/lenovo/t520/cmos.default +++ b/src/mainboard/lenovo/t520/cmos.default @@ -15,3 +15,4 @@ sticky_fn=Disable trackpoint=Enable backlight=Both hybrid_graphics_mode=Integrated Only +usb_always_on=Disable diff --git a/src/mainboard/lenovo/t520/cmos.layout b/src/mainboard/lenovo/t520/cmos.layout index 3c450c7e16..80759040a7 100644 --- a/src/mainboard/lenovo/t520/cmos.layout +++ b/src/mainboard/lenovo/t520/cmos.layout @@ -67,9 +67,9 @@ 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 +422 2 e 10 backlight # coreboot config options: cpu #424 8 r 0 unused @@ -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 diff --git a/src/mainboard/lenovo/t520/smihandler.c b/src/mainboard/lenovo/t520/smihandler.c index c48cf3d765..3fa8e3032d 100644 --- a/src/mainboard/lenovo/t520/smihandler.c +++ b/src/mainboard/lenovo/t520/smihandler.c @@ -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. */ |