[as5916_54xm]Move LM75 from 0x48 to 0x4C for R0B board or later

This commit is contained in:
roy_lee
2018-08-27 07:26:56 +00:00
parent f29aa9086b
commit dfe91c5bae
2 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ static char* devfiles__[] = /* must map with onlp_thermal_id */
{
NULL,
NULL, /* CPU_CORE files */
"/sys/bus/i2c/devices/10-0048*temp1_input",
"/sys/bus/i2c/devices/10-004c*temp1_input",
"/sys/bus/i2c/devices/10-0049*temp1_input",
"/sys/bus/i2c/devices/10-004a*temp1_input",
"/sys/bus/i2c/devices/10-004b*temp1_input",
@@ -62,7 +62,7 @@ static onlp_thermal_info_t linfo[] = {
ONLP_THERMAL_STATUS_PRESENT,
ONLP_THERMAL_CAPS_ALL, 0, ONLP_THERMAL_THRESHOLD_INIT_DEFAULTS
},
{ { ONLP_THERMAL_ID_CREATE(THERMAL_1_ON_MAIN_BROAD), "LM75-1-48", 0},
{ { ONLP_THERMAL_ID_CREATE(THERMAL_1_ON_MAIN_BROAD), "LM75-1-4C", 0},
ONLP_THERMAL_STATUS_PRESENT,
ONLP_THERMAL_CAPS_ALL, 0, ONLP_THERMAL_THRESHOLD_INIT_DEFAULTS
},

View File

@@ -27,7 +27,7 @@ class OnlPlatform_x86_64_accton_as5916_54xm_r0(OnlPlatformAccton,
('as5916_54xm_fan', 0x66, 9),
# inititate LM75
('lm75', 0x48, 10),
('lm75', 0x4c, 10),
('lm75', 0x49, 10),
('lm75', 0x4a, 10),
('lm75', 0x4b, 10),