diff options
Diffstat (limited to 'src/ec/google/chromeec')
-rw-r--r-- | src/ec/google/chromeec/Kconfig | 15 | ||||
-rw-r--r-- | src/ec/google/chromeec/acpi/battery.asl | 5 |
2 files changed, 19 insertions, 1 deletions
diff --git a/src/ec/google/chromeec/Kconfig b/src/ec/google/chromeec/Kconfig index 7a8777fbdb..f0418ff16e 100644 --- a/src/ec/google/chromeec/Kconfig +++ b/src/ec/google/chromeec/Kconfig @@ -152,6 +152,21 @@ config EC_GOOGLE_CHROMEEC_AUTO_FAN_CTRL help Put the fan in auto mode at boot. +config EC_GOOGLE_CHROMEEC_READ_BATTERY_LONG_STRING + depends on TPM_GOOGLE + bool + default y + help + The Chrome EC currently supports two ways to read battery strings on + ACPI platforms: + + * Read up to 8 bytes from EC shared memory BMFG, BMOD, ... + * Send a EC_CMD_BATTERY_GET_STATIC host command and read longer strings as a response. + + Select this config to support readout of longer battery strings. + + If unsure, say N. + endif # EC_GOOGLE_CHROMEEC source "src/ec/google/chromeec/*/Kconfig" diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl index f5047cbfd7..30fe0fce62 100644 --- a/src/ec/google/chromeec/acpi/battery.asl +++ b/src/ec/google/chromeec/acpi/battery.asl @@ -54,9 +54,12 @@ Method (BSTA, 1, Serialized) Return (Local0) } +#if CONFIG(EC_GOOGLE_CHROMEEC_READ_BATTERY_LONG_STRING) // Cached flag for BSRF FIFO readout support from EC. Name(BRSS, 0xff) - +#else +Name(BRSS, 0x0) +#endif // Read extended battery strings from the selected battery. // Arg0 = string index // |