in meta-facebook/meta-cloudripper/recipes-cloudripper/platform-lib/files/pal/pal-sensors.c [2503:2774]
static void sensor_thresh_array_init(uint8_t fru) {
static bool init_done[MAX_NUM_FRUS] = {false};
int fru_offset;
float fvalue;
if (init_done[fru])
return;
switch (fru) {
case FRU_SCM:
scm_sensor_threshold[SCM_SENSOR_OUTLET_TEMP][UCR_THRESH] = 96;
scm_sensor_threshold[SCM_SENSOR_INLET_TEMP][UCR_THRESH] = 66;
scm_sensor_threshold[SCM_SENSOR_HSC_OUT_VOLT][UCR_THRESH] = 12.6;
scm_sensor_threshold[SCM_SENSOR_HSC_OUT_VOLT][LCR_THRESH] = 11.4;
scm_sensor_threshold[SCM_SENSOR_HSC_OUT_CURR][UCR_THRESH] = 5;
for (int sensor_index = scm_sensor_cnt; sensor_index < scm_all_sensor_cnt; sensor_index++) {
for (int threshold_type = 1; threshold_type <= MAX_SENSOR_THRESHOLD; threshold_type++) {
if (!bic_get_sdr_thresh_val(fru, scm_all_sensor_list[sensor_index], threshold_type, &fvalue)) {
scm_sensor_threshold[scm_all_sensor_list[sensor_index]][threshold_type] = fvalue;
}
}
}
break;
case FRU_SMB:
smb_sensor_threshold[SMB_SENSOR_1220_VMON1][UCR_THRESH] = 13.2;
smb_sensor_threshold[SMB_SENSOR_1220_VMON1][LCR_THRESH] = 10.8;
smb_sensor_threshold[SMB_SENSOR_1220_VMON2][UCR_THRESH] = 5.5;
smb_sensor_threshold[SMB_SENSOR_1220_VMON2][LCR_THRESH] = 4.5;
smb_sensor_threshold[SMB_SENSOR_1220_VMON3][UCR_THRESH] = 3.63;
smb_sensor_threshold[SMB_SENSOR_1220_VMON3][LCR_THRESH] = 2.97;
smb_sensor_threshold[SMB_SENSOR_1220_VMON4][UCR_THRESH] = 3.63;
smb_sensor_threshold[SMB_SENSOR_1220_VMON4][LCR_THRESH] = 2.97;
smb_sensor_threshold[SMB_SENSOR_1220_VMON5][UCR_THRESH] = 1.32;
smb_sensor_threshold[SMB_SENSOR_1220_VMON5][LCR_THRESH] = 1.08;
smb_sensor_threshold[SMB_SENSOR_1220_VMON6][UCR_THRESH] = 1.98;
smb_sensor_threshold[SMB_SENSOR_1220_VMON6][LCR_THRESH] = 1.62;
smb_sensor_threshold[SMB_SENSOR_1220_VMON7][UCR_THRESH] = 1.98;
smb_sensor_threshold[SMB_SENSOR_1220_VMON7][LCR_THRESH] = 1.62;
smb_sensor_threshold[SMB_SENSOR_1220_VMON8][UCR_THRESH] = 2.75;
smb_sensor_threshold[SMB_SENSOR_1220_VMON8][LCR_THRESH] = 2.25;
smb_sensor_threshold[SMB_SENSOR_1220_VMON9][UCR_THRESH] = 1.06;
smb_sensor_threshold[SMB_SENSOR_1220_VMON9][LCR_THRESH] = 0.86;
smb_sensor_threshold[SMB_SENSOR_1220_VMON10][UCR_THRESH] = 0.91;
smb_sensor_threshold[SMB_SENSOR_1220_VMON10][LCR_THRESH] = 0.74;
smb_sensor_threshold[SMB_SENSOR_1220_VMON11][UCR_THRESH] = 0.83;
smb_sensor_threshold[SMB_SENSOR_1220_VMON11][LCR_THRESH] = 0.67;
smb_sensor_threshold[SMB_SENSOR_1220_VMON12][UCR_THRESH] = 1.27;
smb_sensor_threshold[SMB_SENSOR_1220_VMON12][LCR_THRESH] = 1.03;
smb_sensor_threshold[SMB_SENSOR_1220_VCCA][UCR_THRESH] = 3.63;
smb_sensor_threshold[SMB_SENSOR_1220_VCCA][LCR_THRESH] = 2.97;
smb_sensor_threshold[SMB_SENSOR_1220_VCCINP][UCR_THRESH] = 3.63;
smb_sensor_threshold[SMB_SENSOR_1220_VCCINP][LCR_THRESH] = 2.97;
/* BMC ADC Sensors */
smb_sensor_threshold[SMB_BMC_ADC0_VSEN][UCR_THRESH] = 1.1;
smb_sensor_threshold[SMB_BMC_ADC0_VSEN][LCR_THRESH] = 0.9;
smb_sensor_threshold[SMB_BMC_ADC1_VSEN][UCR_THRESH] = 1.32;
smb_sensor_threshold[SMB_BMC_ADC1_VSEN][LCR_THRESH] = 1.08;
smb_sensor_threshold[SMB_BMC_ADC2_VSEN][UCR_THRESH] = 3.63;
smb_sensor_threshold[SMB_BMC_ADC2_VSEN][LCR_THRESH] = 2.97;
smb_sensor_threshold[SMB_BMC_ADC3_VSEN][UCR_THRESH] = 3.63;
smb_sensor_threshold[SMB_BMC_ADC3_VSEN][LCR_THRESH] = 2.97;
smb_sensor_threshold[SMB_BMC_ADC4_VSEN][UCR_THRESH] = 0.99;
smb_sensor_threshold[SMB_BMC_ADC4_VSEN][LCR_THRESH] = 0.81;
smb_sensor_threshold[SMB_BMC_ADC5_VSEN][UCR_THRESH] = 2.04;
smb_sensor_threshold[SMB_BMC_ADC5_VSEN][LCR_THRESH] = 1.66;
smb_sensor_threshold[SMB_BMC_ADC6_VSEN][UCR_THRESH] = 0.99;
smb_sensor_threshold[SMB_BMC_ADC6_VSEN][LCR_THRESH] = 0.81;
smb_sensor_threshold[SMB_BMC_ADC7_VSEN][UCR_THRESH] = 2.04;
smb_sensor_threshold[SMB_BMC_ADC7_VSEN][LCR_THRESH] = 1.66;
smb_sensor_threshold[SMB_BMC_ADC8_VSEN][UCR_THRESH] = 1.98;
smb_sensor_threshold[SMB_BMC_ADC8_VSEN][LCR_THRESH] = 1.62;
smb_sensor_threshold[SMB_BMC_ADC9_VSEN][UCR_THRESH] = 0.83;
smb_sensor_threshold[SMB_BMC_ADC9_VSEN][LCR_THRESH] = 0.67;
smb_sensor_threshold[SMB_BMC_ADC10_VSEN][UCR_THRESH] = 1.32;
smb_sensor_threshold[SMB_BMC_ADC10_VSEN][LCR_THRESH] = 1.08;
smb_sensor_threshold[SMB_BMC_ADC11_VSEN][UCR_THRESH] = 2.75;
smb_sensor_threshold[SMB_BMC_ADC11_VSEN][LCR_THRESH] = 2.25;
smb_sensor_threshold[SMB_SENSOR_VDDA_IN_VOLT][UCR_THRESH] = 12.6;
smb_sensor_threshold[SMB_SENSOR_VDDA_IN_VOLT][LCR_THRESH] = 11.4;
smb_sensor_threshold[SMB_SENSOR_VDDA_OUT_VOLT][UCR_THRESH] = 0.99;
smb_sensor_threshold[SMB_SENSOR_VDDA_OUT_VOLT][LCR_THRESH] = 0.93;
smb_sensor_threshold[SMB_SENSOR_VDDA_OUT_CURR][UCR_THRESH] = 54;
smb_sensor_threshold[SMB_SENSOR_VDDA_OUT_POWER][UCR_THRESH] = 53.46;
smb_sensor_threshold[SMB_SENSOR_VDDA_TEMP1][UCR_THRESH] = 85;
smb_sensor_threshold[SMB_SENSOR_VDDA_TEMP1][LCR_THRESH] = -40;
smb_sensor_threshold[SMB_SENSOR_PCIE_IN_VOLT][UCR_THRESH] = 12.6;
smb_sensor_threshold[SMB_SENSOR_PCIE_IN_VOLT][LCR_THRESH] = 11.4;
smb_sensor_threshold[SMB_SENSOR_PCIE_OUT_VOLT][UCR_THRESH] = 0.78;
smb_sensor_threshold[SMB_SENSOR_PCIE_OUT_VOLT][LCR_THRESH] = 0.72;
smb_sensor_threshold[SMB_SENSOR_PCIE_OUT_CURR][UCR_THRESH] = 52.4;
smb_sensor_threshold[SMB_SENSOR_PCIE_OUT_POWER][UCR_THRESH] = 40.88;
smb_sensor_threshold[SMB_SENSOR_PCIE_TEMP1][UCR_THRESH] = 85;
smb_sensor_threshold[SMB_SENSOR_PCIE_TEMP1][LCR_THRESH] = -40;
smb_sensor_threshold[SMB_SENSOR_IR3R3V_LEFT_IN_VOLT][UCR_THRESH] = 12.6;
smb_sensor_threshold[SMB_SENSOR_IR3R3V_LEFT_IN_VOLT][LCR_THRESH] = 11.4;
smb_sensor_threshold[SMB_SENSOR_IR3R3V_LEFT_OUT_VOLT][UCR_THRESH] = 3.47;
smb_sensor_threshold[SMB_SENSOR_IR3R3V_LEFT_OUT_VOLT][LCR_THRESH] = 3.13;
smb_sensor_threshold[SMB_SENSOR_IR3R3V_LEFT_OUT_CURR][UCR_THRESH] = 97;
smb_sensor_threshold[SMB_SENSOR_IR3R3V_LEFT_OUT_POWER][UCR_THRESH] = 336.59;
smb_sensor_threshold[SMB_SENSOR_IR3R3V_LEFT_TEMP][UCR_THRESH] = 85;
smb_sensor_threshold[SMB_SENSOR_IR3R3V_LEFT_TEMP][LCR_THRESH] = -40;
smb_sensor_threshold[SMB_SENSOR_IR3R3V_RIGHT_IN_VOLT][UCR_THRESH] = 12.6;
smb_sensor_threshold[SMB_SENSOR_IR3R3V_RIGHT_IN_VOLT][LCR_THRESH] = 11.4;
smb_sensor_threshold[SMB_SENSOR_IR3R3V_RIGHT_OUT_VOLT][UCR_THRESH] = 3.47;
smb_sensor_threshold[SMB_SENSOR_IR3R3V_RIGHT_OUT_VOLT][LCR_THRESH] = 3.13;
smb_sensor_threshold[SMB_SENSOR_IR3R3V_RIGHT_OUT_CURR][UCR_THRESH] = 97;
smb_sensor_threshold[SMB_SENSOR_IR3R3V_RIGHT_OUT_POWER][UCR_THRESH] = 336.59;
smb_sensor_threshold[SMB_SENSOR_IR3R3V_RIGHT_TEMP][UCR_THRESH] = 85;
smb_sensor_threshold[SMB_SENSOR_IR3R3V_RIGHT_TEMP][LCR_THRESH] = -40;
smb_sensor_threshold[SMB_SENSOR_SW_CORE_IN_VOLT][UCR_THRESH] = 12.6;
smb_sensor_threshold[SMB_SENSOR_SW_CORE_IN_VOLT][LCR_THRESH] = 11.4;
smb_sensor_threshold[SMB_SENSOR_SW_CORE_TEMP1][UCR_THRESH] = 125;
smb_sensor_threshold[SMB_SENSOR_SW_CORE_TEMP1][LCR_THRESH] = -5;
smb_sensor_threshold[SMB_SENSOR_SW_CORE_OUT_VOLT][UCR_THRESH] = 0.85;
smb_sensor_threshold[SMB_SENSOR_SW_CORE_OUT_VOLT][LCR_THRESH] = 0.8;
smb_sensor_threshold[SMB_SENSOR_SW_CORE_OUT_CURR][UCR_THRESH] = 370;
smb_sensor_threshold[SMB_SENSOR_SW_CORE_OUT_POWER][UCR_THRESH] = 314.5;
smb_sensor_threshold[SMB_SENSOR_XPDE_HBM_IN_VOLT][UCR_THRESH] = 12.6;
smb_sensor_threshold[SMB_SENSOR_XPDE_HBM_IN_VOLT][LCR_THRESH] = 11.4;
smb_sensor_threshold[SMB_SENSOR_XPDE_HBM_OUT_VOLT][UCR_THRESH] = 1.24;
smb_sensor_threshold[SMB_SENSOR_XPDE_HBM_OUT_VOLT][LCR_THRESH] = 1.16;
smb_sensor_threshold[SMB_SENSOR_XPDE_HBM_TEMP1][UCR_THRESH] = 125;
smb_sensor_threshold[SMB_SENSOR_XPDE_HBM_TEMP1][LCR_THRESH] = -5;
smb_sensor_threshold[SMB_SENSOR_XPDE_HBM_OUT_CURR][UCR_THRESH] = 36;
smb_sensor_threshold[SMB_SENSOR_XPDE_HBM_OUT_POWER][UCR_THRESH] = 44.64;
smb_sensor_threshold[SMB_SENSOR_VDDCK_0_IN_VOLT][UCR_THRESH] = 12.6;
smb_sensor_threshold[SMB_SENSOR_VDDCK_0_IN_VOLT][LCR_THRESH] = 11.4;
smb_sensor_threshold[SMB_SENSOR_VDDCK_0_OUT_VOLT][UCR_THRESH] = 1.19;
smb_sensor_threshold[SMB_SENSOR_VDDCK_0_OUT_VOLT][LCR_THRESH] = 1.11;
smb_sensor_threshold[SMB_SENSOR_VDDCK_0_OUT_CURR][UCR_THRESH] = 8.5;
smb_sensor_threshold[SMB_SENSOR_VDDCK_0_OUT_POWER][UCR_THRESH] = 9.86;
smb_sensor_threshold[SMB_SENSOR_VDDCK_0_TEMP][UCR_THRESH] = 85;
smb_sensor_threshold[SMB_SENSOR_VDDCK_0_TEMP][LCR_THRESH] = -5;
smb_sensor_threshold[SMB_SENSOR_VDDCK_1_IN_VOLT][UCR_THRESH] = 12.6;
smb_sensor_threshold[SMB_SENSOR_VDDCK_1_IN_VOLT][LCR_THRESH] = 11.4;
smb_sensor_threshold[SMB_SENSOR_VDDCK_1_OUT_VOLT][UCR_THRESH] = 1.19;
smb_sensor_threshold[SMB_SENSOR_VDDCK_1_OUT_VOLT][LCR_THRESH] = 1.11;
smb_sensor_threshold[SMB_SENSOR_VDDCK_1_OUT_CURR][UCR_THRESH] = 8.5;
smb_sensor_threshold[SMB_SENSOR_VDDCK_1_OUT_POWER][UCR_THRESH] = 9.86;
smb_sensor_threshold[SMB_SENSOR_VDDCK_1_TEMP][UCR_THRESH] = 85;
smb_sensor_threshold[SMB_SENSOR_VDDCK_1_TEMP][LCR_THRESH] = -5;
smb_sensor_threshold[SMB_SENSOR_VDDCK_2_IN_VOLT][UCR_THRESH] = 12.6;
smb_sensor_threshold[SMB_SENSOR_VDDCK_2_IN_VOLT][LCR_THRESH] = 11.4;
smb_sensor_threshold[SMB_SENSOR_VDDCK_2_OUT_VOLT][UCR_THRESH] = 1.19;
smb_sensor_threshold[SMB_SENSOR_VDDCK_2_OUT_VOLT][LCR_THRESH] = 1.11;
smb_sensor_threshold[SMB_SENSOR_VDDCK_2_OUT_CURR][UCR_THRESH] = 8.5;
smb_sensor_threshold[SMB_SENSOR_VDDCK_2_OUT_POWER][UCR_THRESH] = 9.86;
smb_sensor_threshold[SMB_SENSOR_VDDCK_2_TEMP][UCR_THRESH] = 85;
smb_sensor_threshold[SMB_SENSOR_VDDCK_2_TEMP][LCR_THRESH] = -5;
smb_sensor_threshold[SMB_SENSOR_XDPE_LEFT_1_IN_VOLT][UCR_THRESH] = 12.6;
smb_sensor_threshold[SMB_SENSOR_XDPE_LEFT_1_IN_VOLT][LCR_THRESH] = 11.4;
smb_sensor_threshold[SMB_SENSOR_XDPE_LEFT_1_OUT_VOLT][UCR_THRESH] = 0.93;
smb_sensor_threshold[SMB_SENSOR_XDPE_LEFT_1_OUT_VOLT][LCR_THRESH] = 0.87;
smb_sensor_threshold[SMB_SENSOR_XDPE_LEFT_1_OUT_CURR][UCR_THRESH] = 243;
smb_sensor_threshold[SMB_SENSOR_XDPE_LEFT_1_OUT_POWER][UCR_THRESH] = 225.99;
smb_sensor_threshold[SMB_SENSOR_XDPE_LEFT_1_TEMP][UCR_THRESH] = 85;
smb_sensor_threshold[SMB_SENSOR_XDPE_LEFT_1_TEMP][LCR_THRESH] = -40;
smb_sensor_threshold[SMB_SENSOR_XDPE_LEFT_2_IN_VOLT][UCR_THRESH] = 12.6;
smb_sensor_threshold[SMB_SENSOR_XDPE_LEFT_2_IN_VOLT][LCR_THRESH] = 11.4;
smb_sensor_threshold[SMB_SENSOR_XDPE_LEFT_2_OUT_VOLT][UCR_THRESH] = 1.91;
smb_sensor_threshold[SMB_SENSOR_XDPE_LEFT_2_OUT_VOLT][LCR_THRESH] = 1.79;
smb_sensor_threshold[SMB_SENSOR_XDPE_LEFT_2_OUT_CURR][UCR_THRESH] = 53.6;
smb_sensor_threshold[SMB_SENSOR_XDPE_LEFT_2_OUT_POWER][UCR_THRESH] = 102.38;
smb_sensor_threshold[SMB_SENSOR_XDPE_LEFT_2_TEMP][UCR_THRESH] = 85;
smb_sensor_threshold[SMB_SENSOR_XDPE_LEFT_2_TEMP][LCR_THRESH] = -40;
smb_sensor_threshold[SMB_SENSOR_XDPE_RIGHT_1_IN_VOLT][UCR_THRESH] = 12.6;
smb_sensor_threshold[SMB_SENSOR_XDPE_RIGHT_1_IN_VOLT][LCR_THRESH] = 11.4;
smb_sensor_threshold[SMB_SENSOR_XDPE_RIGHT_1_OUT_VOLT][UCR_THRESH] = 0.93;
smb_sensor_threshold[SMB_SENSOR_XDPE_RIGHT_1_OUT_VOLT][LCR_THRESH] = 0.87;
smb_sensor_threshold[SMB_SENSOR_XDPE_RIGHT_1_OUT_CURR][UCR_THRESH] = 243;
smb_sensor_threshold[SMB_SENSOR_XDPE_RIGHT_1_OUT_POWER][UCR_THRESH] = 225.99;
smb_sensor_threshold[SMB_SENSOR_XDPE_RIGHT_1_TEMP][UCR_THRESH] = 85;
smb_sensor_threshold[SMB_SENSOR_XDPE_RIGHT_1_TEMP][LCR_THRESH] = -40;
smb_sensor_threshold[SMB_SENSOR_XDPE_RIGHT_2_IN_VOLT][UCR_THRESH] = 12.6;
smb_sensor_threshold[SMB_SENSOR_XDPE_RIGHT_2_IN_VOLT][LCR_THRESH] = 11.4;
smb_sensor_threshold[SMB_SENSOR_XDPE_RIGHT_2_OUT_VOLT][UCR_THRESH] = 1.91;
smb_sensor_threshold[SMB_SENSOR_XDPE_RIGHT_2_OUT_VOLT][LCR_THRESH] = 1.79;
smb_sensor_threshold[SMB_SENSOR_XDPE_RIGHT_2_OUT_CURR][UCR_THRESH] = 53.6;
smb_sensor_threshold[SMB_SENSOR_XDPE_RIGHT_2_OUT_POWER][UCR_THRESH] = 102.38;
smb_sensor_threshold[SMB_SENSOR_XDPE_RIGHT_2_TEMP][UCR_THRESH] = 85;
smb_sensor_threshold[SMB_SENSOR_XDPE_RIGHT_2_TEMP][LCR_THRESH] = -40;
smb_sensor_threshold[SMB_SENSOR_LM75B_U28_TEMP][UCR_THRESH] = 86;
smb_sensor_threshold[SMB_SENSOR_LM75B_U25_TEMP][UCR_THRESH] = 86;
smb_sensor_threshold[SMB_SENSOR_LM75B_U56_TEMP][UCR_THRESH] = 86;
smb_sensor_threshold[SMB_SENSOR_LM75B_U55_TEMP][UCR_THRESH] = 86;
smb_sensor_threshold[SMB_SENSOR_LM75B_U2_TEMP][UCR_THRESH] = 86;
smb_sensor_threshold[SMB_SENSOR_LM75B_U13_TEMP][UCR_THRESH] = 86;
smb_sensor_threshold[SMB_SENSOR_TMP421_U62_TEMP][UCR_THRESH] = 86;
smb_sensor_threshold[SMB_SENSOR_TMP421_U63_TEMP][UCR_THRESH] = 86;
smb_sensor_threshold[SMB_SENSOR_BMC_LM75B_TEMP][UCR_THRESH] = 86;
smb_sensor_threshold[SMB_DOM1_MAX_TEMP][UCR_THRESH] = 71;
smb_sensor_threshold[SMB_DOM2_MAX_TEMP][UCR_THRESH] = 71;
smb_sensor_threshold[SMB_SENSOR_GB_HIGH_TEMP][UCR_THRESH] = 105;
smb_sensor_threshold[SMB_SENSOR_GB_TEMP1][UCR_THRESH] = 105;
smb_sensor_threshold[SMB_SENSOR_GB_TEMP2][UCR_THRESH] = 105;
smb_sensor_threshold[SMB_SENSOR_GB_TEMP3][UCR_THRESH] = 105;
smb_sensor_threshold[SMB_SENSOR_GB_TEMP4][UCR_THRESH] = 105;
smb_sensor_threshold[SMB_SENSOR_GB_TEMP5][UCR_THRESH] = 105;
smb_sensor_threshold[SMB_SENSOR_GB_TEMP6][UCR_THRESH] = 105;
smb_sensor_threshold[SMB_SENSOR_GB_TEMP7][UCR_THRESH] = 105;
smb_sensor_threshold[SMB_SENSOR_GB_TEMP8][UCR_THRESH] = 105;
smb_sensor_threshold[SMB_SENSOR_GB_TEMP9][UCR_THRESH] = 105;
smb_sensor_threshold[SMB_SENSOR_GB_TEMP10][UCR_THRESH] = 105;
smb_sensor_threshold[SMB_SENSOR_GB_HBM_TEMP1][UCR_THRESH] = 105;
smb_sensor_threshold[SMB_SENSOR_GB_HBM_TEMP2][UCR_THRESH] = 105;
/* FCM BOARD */
smb_sensor_threshold[SMB_SENSOR_FCM_LM75B_U1_TEMP][UCR_THRESH] = 86;
smb_sensor_threshold[SMB_SENSOR_FCM_LM75B_U2_TEMP][UCR_THRESH] = 86;
smb_sensor_threshold[SMB_SENSOR_FCM_HSC_IN_VOLT][UCR_THRESH] = 12.6;
smb_sensor_threshold[SMB_SENSOR_FCM_HSC_IN_VOLT][LCR_THRESH] = 11.4;
smb_sensor_threshold[SMB_SENSOR_FCM_HSC_IN_POWER][UCR_THRESH] = 302.4;
smb_sensor_threshold[SMB_SENSOR_FCM_HSC_OUT_VOLT][UCR_THRESH] = 12.6;
smb_sensor_threshold[SMB_SENSOR_FCM_HSC_OUT_VOLT][LCR_THRESH] = 11.4;
smb_sensor_threshold[SMB_SENSOR_FCM_HSC_OUT_CURR][UCR_THRESH] = 24;
smb_sensor_threshold[SMB_SENSOR_FAN1_FRONT_TACH][UCR_THRESH] = 14000;
smb_sensor_threshold[SMB_SENSOR_FAN1_FRONT_TACH][LCR_THRESH] = 1000;
smb_sensor_threshold[SMB_SENSOR_FAN1_REAR_TACH][UCR_THRESH] = 14000;
smb_sensor_threshold[SMB_SENSOR_FAN1_REAR_TACH][LCR_THRESH] = 1000;
smb_sensor_threshold[SMB_SENSOR_FAN2_FRONT_TACH][UCR_THRESH] = 14000;
smb_sensor_threshold[SMB_SENSOR_FAN2_FRONT_TACH][LCR_THRESH] = 1000;
smb_sensor_threshold[SMB_SENSOR_FAN2_REAR_TACH][UCR_THRESH] = 14000;
smb_sensor_threshold[SMB_SENSOR_FAN2_REAR_TACH][LCR_THRESH] = 1000;
smb_sensor_threshold[SMB_SENSOR_FAN3_FRONT_TACH][UCR_THRESH] = 14000;
smb_sensor_threshold[SMB_SENSOR_FAN3_FRONT_TACH][LCR_THRESH] = 1000;
smb_sensor_threshold[SMB_SENSOR_FAN3_REAR_TACH][UCR_THRESH] = 14000;
smb_sensor_threshold[SMB_SENSOR_FAN3_REAR_TACH][LCR_THRESH] = 1000;
smb_sensor_threshold[SMB_SENSOR_FAN4_FRONT_TACH][UCR_THRESH] = 14000;
smb_sensor_threshold[SMB_SENSOR_FAN4_FRONT_TACH][LCR_THRESH] = 1000;
smb_sensor_threshold[SMB_SENSOR_FAN4_REAR_TACH][UCR_THRESH] = 14000;
smb_sensor_threshold[SMB_SENSOR_FAN4_REAR_TACH][LCR_THRESH] = 1000;
break;
case FRU_PSU1:
case FRU_PSU2:
fru_offset = fru - FRU_PSU1;
psu_sensor_threshold[PSU1_SENSOR_IN_VOLT + (fru_offset * PSU1_SENSOR_CNT)][UCR_THRESH] = 264;
psu_sensor_threshold[PSU1_SENSOR_IN_VOLT + (fru_offset * PSU1_SENSOR_CNT)][LCR_THRESH] = 180;
psu_sensor_threshold[PSU1_SENSOR_12V_VOLT + (fru_offset * PSU1_SENSOR_CNT)][UCR_THRESH] = 12.6;
psu_sensor_threshold[PSU1_SENSOR_12V_VOLT + (fru_offset * PSU1_SENSOR_CNT)][LCR_THRESH] = 11.4;
psu_sensor_threshold[PSU1_SENSOR_STBY_VOLT + (fru_offset * PSU1_SENSOR_CNT)][UCR_THRESH] = 3.43;
psu_sensor_threshold[PSU1_SENSOR_STBY_VOLT + (fru_offset * PSU1_SENSOR_CNT)][LCR_THRESH] = 3.15;
psu_sensor_threshold[PSU1_SENSOR_IN_CURR + (fru_offset * PSU1_SENSOR_CNT)][UCR_THRESH] = 10.04;
psu_sensor_threshold[PSU1_SENSOR_IN_CURR + (fru_offset * PSU1_SENSOR_CNT)][LCR_THRESH] = 0.07;
psu_sensor_threshold[PSU1_SENSOR_12V_CURR + (fru_offset * PSU1_SENSOR_CNT)][UCR_THRESH] = 166.7;
psu_sensor_threshold[PSU1_SENSOR_12V_CURR + (fru_offset * PSU1_SENSOR_CNT)][LCR_THRESH] = 1;
psu_sensor_threshold[PSU1_SENSOR_STBY_CURR + (fru_offset * PSU1_SENSOR_CNT)][UCR_THRESH] = 3;
psu_sensor_threshold[PSU1_SENSOR_IN_POWER + (fru_offset * PSU1_SENSOR_CNT)][UCR_THRESH] = 2208.9;
psu_sensor_threshold[PSU1_SENSOR_IN_POWER + (fru_offset * PSU1_SENSOR_CNT)][LCR_THRESH] = 15.4;
psu_sensor_threshold[PSU1_SENSOR_12V_POWER + (fru_offset * PSU1_SENSOR_CNT)][UCR_THRESH] = 2100.42;
psu_sensor_threshold[PSU1_SENSOR_12V_POWER + (fru_offset * PSU1_SENSOR_CNT)][LCR_THRESH] = 11.4;
psu_sensor_threshold[PSU1_SENSOR_STBY_POWER + (fru_offset * PSU1_SENSOR_CNT)][UCR_THRESH] = 10.38;
psu_sensor_threshold[PSU1_SENSOR_FAN_TACH + (fru_offset * PSU1_SENSOR_CNT)][UCR_THRESH] = 35750;
psu_sensor_threshold[PSU1_SENSOR_FAN_TACH + (fru_offset * PSU1_SENSOR_CNT)][LCR_THRESH] = 1000;
psu_sensor_threshold[PSU1_SENSOR_TEMP1 + (fru_offset * PSU1_SENSOR_CNT)][UCR_THRESH] = 71;
psu_sensor_threshold[PSU1_SENSOR_TEMP2 + (fru_offset * PSU1_SENSOR_CNT)][UCR_THRESH] = 106;
psu_sensor_threshold[PSU1_SENSOR_TEMP3 + (fru_offset * PSU1_SENSOR_CNT)][UCR_THRESH] = 131;
break;
}
init_done[fru] = true;
}