ACPI: Add usb_charge_mode_from_gnvs()
Early Chromebook generations stored the information about USB port power control for S3/S5 sleepstates in GNVS, although the configuration is static. Reduce code duplication and react to ACPI S4 as if it was ACPI S5 request. Change-Id: I7e6f37a023b0e9317dcf0355dfa70e28d51cdad9 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74524 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
@@ -29,6 +29,13 @@ config ACPI_SOC_NVS
|
||||
Set to indicate <soc/nvs.h> exists for the platform with a definition
|
||||
for global_nvs.
|
||||
|
||||
config ACPI_GNVS_USB_CHARGECTL
|
||||
bool
|
||||
depends on ACPI_SOC_NVS
|
||||
help
|
||||
Set to indicate <soc/nvs.h> implements fields s3u0, s3u1, s5u0, s5u1
|
||||
to control USB port power rail for S3/S4/S5 sleep states.
|
||||
|
||||
config ACPI_CUSTOM_MADT
|
||||
bool
|
||||
default n if ACPI_NO_CUSTOM_MADT
|
||||
|
Reference in New Issue
Block a user