Skip to content

Commit

Permalink
Merge pull request #193
Browse files Browse the repository at this point in the history
Add support for GL75 Leopard
  • Loading branch information
teackot committed Jan 21, 2025
2 parents 0cc9416 + daf307d commit fdf4d9c
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions msi-ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -3101,6 +3101,84 @@ static struct msi_ec_conf CONF37 __initdata = {
},
};

static const char *ALLOWED_FW_38[] __initconst = {
"17E8IMS1.106", // GL75 Leopard 10SCXR/MS-17E8
"17E8EMS1.101",
NULL
};

static struct msi_ec_conf CONF38 __initdata = {
.allowed_fw = ALLOWED_FW_38, // WMI1 based
.charge_control = {
.address = 0xef,
.offset_start = 0x8a,
.offset_end = 0x80,
.range_min = 0x8a,
.range_max = 0xe4,
},
.webcam = {
.address = 0x2e,
.block_address = 0x2f,
.bit = 1,
},
.fn_win_swap = {
.address = 0xbf,
.bit = 4,
.invert = false,
},
.cooler_boost = {
.address = 0x98,
.bit = 7,
},
.shift_mode = {
.address = 0xf2,
.modes = {
{ SM_ECO_NAME, 0xc2 },
{ SM_COMFORT_NAME, 0xc1 },
{ SM_SPORT_NAME, 0xc0 },
{ SM_TURBO_NAME, 0xc4 },
MSI_EC_MODE_NULL
},
},
.super_battery = {
.address = MSI_EC_ADDR_UNKNOWN,
},
.fan_mode = {
.address = 0xf4,
.modes = {
{ FM_AUTO_NAME, 0x00 },
{ FM_ADVANCED_NAME, 0x80 },
MSI_EC_MODE_NULL
},
},
.cpu = {
.rt_temp_address = 0x68,
.rt_fan_speed_address = 0x71,
.rt_fan_speed_base_min = 0x19,
.rt_fan_speed_base_max = 0x37,
.bs_fan_speed_address = 0x89,
.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 = MSI_EC_ADDR_UNKNOWN,
.mute_led_address = MSI_EC_ADDR_UNKNOWN,
.bit = 1,
},
.kbd_bl = {
.bl_mode_address = 0x2c,
.bl_modes = { 0x00, 0x08 },
.max_mode = 1,
.bl_state_address = 0xf3,
.state_base_value = 0x80,
.max_state = 3,
},
};

static struct msi_ec_conf *CONFIGURATIONS[] __initdata = {
&CONF0,
&CONF1,
Expand Down Expand Up @@ -3140,6 +3218,7 @@ static struct msi_ec_conf *CONFIGURATIONS[] __initdata = {
&CONF35,
&CONF36,
&CONF37,
&CONF38,
NULL
};

Expand Down

0 comments on commit fdf4d9c

Please sign in to comment.