mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Merge branch 'add_ibp_gen8_leds_support' into 'master'
Add ibp gen8 leds support Closes #77 See merge request tuxedocomputers/development/packages/tuxedo-keyboard!50
This commit is contained in:
commit
bef6df9bba
|
@ -64,6 +64,7 @@ typedef void (uniwill_event_callb_t)(u32);
|
|||
#define UW_EC_REG_BAREBONE_ID_VALUE_PH6TRX1 0x15
|
||||
#define UW_EC_REG_BAREBONE_ID_VALUE_PH6TQxx 0x16
|
||||
#define UW_EC_REG_BAREBONE_ID_VALUE_PH4Axxx 0x17
|
||||
#define UW_EC_REG_BAREBONE_ID_VALUE_PH4Pxxx 0x18
|
||||
|
||||
#define UW_EC_REG_FEATURES_0 0x0765
|
||||
#define UW_EC_REG_FEATURES_1 0x0766
|
||||
|
|
|
@ -179,6 +179,7 @@ int uniwill_leds_init_early(struct platform_device *dev)
|
|||
pr_err("Reading barebone ID failed.\n");
|
||||
return ret;
|
||||
}
|
||||
pr_debug("EC Barebone ID: %#04x\n", data);
|
||||
|
||||
if (data == UW_EC_REG_BAREBONE_ID_VALUE_PFxxxxx ||
|
||||
data == UW_EC_REG_BAREBONE_ID_VALUE_PFxMxxx ||
|
||||
|
@ -187,7 +188,8 @@ int uniwill_leds_init_early(struct platform_device *dev)
|
|||
data == UW_EC_REG_BAREBONE_ID_VALUE_PH4TQx1 ||
|
||||
data == UW_EC_REG_BAREBONE_ID_VALUE_PH6TRX1 ||
|
||||
data == UW_EC_REG_BAREBONE_ID_VALUE_PH6TQxx ||
|
||||
data == UW_EC_REG_BAREBONE_ID_VALUE_PH4Axxx) {
|
||||
data == UW_EC_REG_BAREBONE_ID_VALUE_PH4Axxx ||
|
||||
data == UW_EC_REG_BAREBONE_ID_VALUE_PH4Pxxx) {
|
||||
ret = uniwill_read_ec_ram(UW_EC_REG_KBD_BL_STATUS, &data);
|
||||
if (ret) {
|
||||
pr_err("Reading keyboard backlight status failed.\n");
|
||||
|
|
Loading…
Reference in a new issue