Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions drivers/platform/x86/oxpec.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ enum oxp_board {
aok_zoe_a1 = 1,
orange_pi_neo,
oxp_2,
oxp_3,
oxp_fly,
oxp_mini_amd,
oxp_mini_amd_a07,
Expand Down Expand Up @@ -154,6 +155,13 @@ static const struct dmi_system_id dmi_table[] = {
},
.driver_data = (void *)oxp_2,
},
{
.matches = {
DMI_MATCH(DMI_BOARD_VENDOR, "ONE-NETBOOK"),
DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONEXPLAYER 3"),
},
.driver_data = (void *)oxp_3,
},
{
.matches = {
DMI_MATCH(DMI_BOARD_VENDOR, "ONE-NETBOOK"),
Expand Down Expand Up @@ -790,6 +798,8 @@ static umode_t oxp_ec_hwmon_is_visible(const void *drvdata,
case hwmon_fan:
return 0444;
case hwmon_pwm:
if (board == oxp_3)
return 0;
return 0644;
default:
return 0;
Expand All @@ -803,6 +813,7 @@ static int oxp_pwm_fan_speed(long *val)
case orange_pi_neo:
return read_from_ec(ORANGEPI_SENSOR_FAN_REG, 2, val);
case oxp_2:
case oxp_3:
case oxp_x1:
case oxp_g1_i:
return read_from_ec(OXP_2_SENSOR_FAN_REG, 2, val);
Expand Down