diff options
author | Nicole Faerber <nicole.faerber@puri.sm> | 2021-04-15 05:59:37 -0500 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-04-21 09:15:26 +0000 |
commit | e00ea2fb38d2140d7a2551483e11978a7ec4a4da (patch) | |
tree | a3221d2c3e0eec8dcc741c0c4490424c617e849e /src/ec/purism/librem-ec/acpi/battery.asl | |
parent | 7d57d561b14cfe2390fe068d34089b826c968328 (diff) |
ec/purism/librem-ec: Apply initial Purism customizations
- remove unused Kconfig options
- change ACPI device name and HID
- remove ACPI for unused color keyboard backlight
- add support for RGB notification LED
- rename Wifi LED ACPI variable
- set some battery info defaults not populated by the EC
Change-Id: I72eca9deb83e5a6d919d6fcbd3b354fbf6e7a925
Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52391
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/ec/purism/librem-ec/acpi/battery.asl')
-rw-r--r-- | src/ec/purism/librem-ec/acpi/battery.asl | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/ec/purism/librem-ec/acpi/battery.asl b/src/ec/purism/librem-ec/acpi/battery.asl index 50aaf9ef9e..9dc401c795 100644 --- a/src/ec/purism/librem-ec/acpi/battery.asl +++ b/src/ec/purism/librem-ec/acpi/battery.asl @@ -1,5 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#define BATTERY_DESIGN_VOLTAGE_MV 14800 + Device (BAT0) { Name (_HID, EisaId ("PNP0C0A") /* Control Method Battery */) // _HID: Hardware ID @@ -34,15 +36,15 @@ Device (BAT0) 0xFFFFFFFF, // 1 - Design Capacity 0xFFFFFFFF, // 2 - Last Full Charge Capacity One, // 3 - Battery Technology - 0xFFFFFFFF, // 4 - Design Voltage + BATTERY_DESIGN_VOLTAGE_MV, // 4 - Design Voltage Zero, // 5 - Design Capacity of Warning Zero, // 6 - Design Capacity of Low 0x40, // 7 - Battery Capacity Granularity 1 0x40, // 8 - Battery Capacity Granularity 2 - " ", // 9 - Model Number - " ", // 10 - Serial Number - " ", // 11 - Battery Type - " " // 12 - OEM Information + "BAT", // 9 - Model Number + "0001", // 10 - Serial Number + "LION", // 11 - Battery Type + "Notebook" // 12 - OEM Information }) Method (IVBI, 0, NotSerialized) { @@ -101,14 +103,14 @@ Device (BAT0) Zero, // 0 - Battery state 0xFFFFFFFF, // 1 - Battery present rate 0xFFFFFFFF, // 2 - Battery remaining capacity - 0xFFFFFFFF // 3 - Battery present voltage + BATTERY_DESIGN_VOLTAGE_MV // 3 - Battery present voltage }) Method (IVBS, 0, NotSerialized) { PBST [0] = Zero PBST [1] = 0xFFFFFFFF PBST [2] = 0xFFFFFFFF - PBST [3] = 0xFFFFFFFF + PBST [3] = 0x2710 } Method (UPBS, 0, NotSerialized) |