platform/x86: asus-wmi: Add support for charge threshold

Most newer ASUS laptops supports limiting the battery charge level, which
help prolonging the battery life.

Tested on a Zenbook UX430UNR.

Signed-off-by: Kristian Klausen <kristian@klausen.dk>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
Kristian Klausen
2019-08-05 21:23:05 +02:00
committed by Andy Shevchenko
parent 02a5e9bc86
commit d507a54f58
2 changed files with 49 additions and 0 deletions

View File

@@ -61,6 +61,7 @@
/* Misc */
#define ASUS_WMI_DEVID_CAMERA 0x00060013
#define ASUS_WMI_CHARGE_THRESHOLD 0x00120057
/* Storage */
#define ASUS_WMI_DEVID_CARDREADER 0x00080013