Skip to content

Commit

Permalink
Raider GE78 HX Smart Touchpad offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
Myp3a committed Jul 14, 2024
1 parent 853ffe3 commit 6aa8629
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions msi-ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -2138,6 +2138,85 @@ static struct msi_ec_conf CONF25 __initdata = {
},
};

static const char *ALLOWED_FW_26[] __initconst = {
"17S2IMS1.113", // Raider GE78 HX Smart Touchpad 13V
NULL
};

static struct msi_ec_conf CONF26 __initdata = {
.allowed_fw = ALLOWED_FW_26, // WMI2 based
.charge_control = {
.address = 0xd7,
.offset_start = 0x8a,
.offset_end = 0x80,
.range_min = 0x8a,
.range_max = 0xe4,
},
.webcam = {
.address = 0x2e,
.block_address = 0x2f,
.bit = 1,
},
.fn_win_swap = {
.address = 0xe8,
.bit = 4,
.invert = true,
},
.cooler_boost = {
.address = 0x98,
.bit = 7,
},
.shift_mode = {
.address = 0xd2,
.modes = {
{ SM_ECO_NAME, 0xc2 },
{ SM_COMFORT_NAME, 0xc1 },
{ SM_SPORT_NAME, 0xc0 },
{ SM_TURBO_NAME, 0xc4 },
MSI_EC_MODE_NULL
},
},
.super_battery = {
.address = 0xeb,
.mask = 0x0f,
},
.fan_mode = {
.address = 0xd4,
.modes = {
{ FM_AUTO_NAME, 0x0d },
{ FM_SILENT_NAME, 0x1d },
{ FM_ADVANCED_NAME, 0x8d },
MSI_EC_MODE_NULL
},
},
.cpu = {
.rt_temp_address = 0x68,
.rt_fan_speed_address = 0x71,
.rt_fan_speed_base_min = 0x00,
.rt_fan_speed_base_max = 0x96,
.bs_fan_speed_address = MSI_EC_ADDR_UNKNOWN,
.bs_fan_speed_base_min = 0x00,
.bs_fan_speed_base_max = 0x0f,
},
.gpu = {
.rt_temp_address = 0x80,
.rt_fan_speed_address = 0x89,
},
.leds = {
.micmute_led_address = 0x2c,
.mute_led_address = 0x2d,
.bit = 1,
},
.kbd_bl = {
.bl_mode_address = MSI_EC_ADDR_UNSUPP,
.bl_modes = { 0x00, 0x08 },
.max_mode = 1,
.bl_state_address = MSI_EC_ADDR_UNSUPP,
.state_base_value = 0x80,
.max_state = 3,
},
};

static struct msi_ec_conf *CONFIGURATIONS[] __initdata = {
&CONF0,
&CONF1,
Expand Down Expand Up @@ -2165,6 +2244,7 @@ static struct msi_ec_conf *CONFIGURATIONS[] __initdata = {
&CONF23,
&CONF24,
&CONF25,
&CONF26,
NULL
};

Expand Down

0 comments on commit 6aa8629

Please sign in to comment.