17#ifndef PLAT_SENSOR_TABLE_H
18#define PLAT_SENSOR_TABLE_H
24#define TMP75_ADDR (0x9A >> 1)
25#define HSC_ADDR (0x26 >> 1)
26#define NVME_ADDR (0xD4 >> 1)
28#define I2C_ADDR_M2_INA231 (0x8A >> 1)
29#define I2C_ADDR_M2_ISL28022 (0x8A >> 1)
30#define I2C_ADDR_M2_FPGA (0x80 >> 1)
31#define I2C_ADDR_M2_DDR (0x88 >> 1)
32#define I2C_ADDR_M2_TMP75 (0x9C >> 1)
33#define I2C_ADDR_M2_EEPROM (0xA0 >> 1)
35#define INA231_POWER_REG 0x03
36#define INA231_BUS_VOLTAGE_REG 0x02
37#define NVME_TEMP_REG 0x00
40#define ISL28022_CONFIG_REG 0
41#define ISL28022_BUS_VOLTAGE_REG 2
42#define ISL28022_POWER_REG 3
43#define ISL28022_CURRENT_REG 4
44#define ISL28022_CALIBRATION_REG 5
47#define ASIC_OFFSET 0x00
48#define TMP75_TEMP_OFFSET 0x00
49#define INA233_CALIBRATION_OFFSET 0xD4
50#define VR_PAGE_OFFSET 0x00
51#define SMBUS_VOL_CMD 0x8B
52#define SMBUS_CUR_CMD 0x8C
53#define SMBUS_TEMP_CMD 0x8D
54#define SMBUS_PWR_CMD 0x96
61#define ADM1278_VIN_REG PMBUS_READ_VIN
62#define ADM1278_IOUT_REG PMBUS_READ_IOUT
63#define ADM1278_TEMP_REG PMBUS_READ_TEMPERATURE_1
64#define ADM1278_PIN_REG PMBUS_READ_PIN
65#define ADM1278_PMON_CONF_REG 0xD4
67#define ADM1278_PMON_CONF_REG_TEMP1_EN 0x08
68#define ADM1278_PMON_CONF_REG_PWR_AVG 0x38
74#define SENSOR_NUM_T_MB_OUTLET_TEMP_T 0x50
79#define SENSOR_NUM_V_12_AUX 0x51
80#define SENSOR_NUM_V_12_EDGE 0x52
81#define SENSOR_NUM_V_3_3_AUX 0x53
82#define SENSOR_NUM_V_1_2_STBY 0x58
87#define SENSOR_NUM_V_HSC_IN 0x54
88#define SENSOR_NUM_I_HSC_OUT 0x55
89#define SENSOR_NUM_P_HSC_IN 0x56
90#define SENSOR_NUM_T_HSC 0x57
95#define PREFIX_MASK 0xF8
97#define PREFIX_M2A 0x60
98#define PREFIX_M2B 0x68
99#define PREFIX_M2C 0x70
100#define PREFIX_M2D 0x78
101#define PREFIX_M2E 0xFF
102#define PREFIX_M2F 0xFF
105#define SUFFIX_INA231_PWR 0x00
106#define SUFFIX_INA231_VOL 0x01
107#define SUFFIX_NVME_TEMP 0x02
108#define SUFFIX_ADC_12V_VOL 0x03
109#define SUFFIX_ADC_3V3_VOL 0x04
111#define SENSOR_NUM_INA231_PWR_M2A (PREFIX_M2A | SUFFIX_INA231_PWR)
112#define SENSOR_NUM_INA231_VOL_M2A (PREFIX_M2A | SUFFIX_INA231_VOL)
113#define SENSOR_NUM_NVME_TEMP_M2A (PREFIX_M2A | SUFFIX_NVME_TEMP)
114#define SENSOR_NUM_ADC_3V3_VOL_M2A (PREFIX_M2A | SUFFIX_ADC_3V3_VOL)
115#define SENSOR_NUM_ADC_12V_VOL_M2A (PREFIX_M2A | SUFFIX_ADC_12V_VOL)
117#define SENSOR_NUM_INA231_PWR_M2B (PREFIX_M2B | SUFFIX_INA231_PWR)
118#define SENSOR_NUM_INA231_VOL_M2B (PREFIX_M2B | SUFFIX_INA231_VOL)
119#define SENSOR_NUM_NVME_TEMP_M2B (PREFIX_M2B | SUFFIX_NVME_TEMP)
120#define SENSOR_NUM_ADC_3V3_VOL_M2B (PREFIX_M2B | SUFFIX_ADC_3V3_VOL)
121#define SENSOR_NUM_ADC_12V_VOL_M2B (PREFIX_M2B | SUFFIX_ADC_12V_VOL)
123#define SENSOR_NUM_INA231_PWR_M2C (PREFIX_M2C | SUFFIX_INA231_PWR)
124#define SENSOR_NUM_INA231_VOL_M2C (PREFIX_M2C | SUFFIX_INA231_VOL)
125#define SENSOR_NUM_NVME_TEMP_M2C (PREFIX_M2C | SUFFIX_NVME_TEMP)
126#define SENSOR_NUM_ADC_3V3_VOL_M2C (PREFIX_M2C | SUFFIX_ADC_3V3_VOL)
127#define SENSOR_NUM_ADC_12V_VOL_M2C (PREFIX_M2C | SUFFIX_ADC_12V_VOL)
129#define SENSOR_NUM_INA231_PWR_M2D (PREFIX_M2D | SUFFIX_INA231_PWR)
130#define SENSOR_NUM_INA231_VOL_M2D (PREFIX_M2D | SUFFIX_INA231_VOL)
131#define SENSOR_NUM_NVME_TEMP_M2D (PREFIX_M2D | SUFFIX_NVME_TEMP)
132#define SENSOR_NUM_ADC_3V3_VOL_M2D (PREFIX_M2D | SUFFIX_ADC_3V3_VOL)
133#define SENSOR_NUM_ADC_12V_VOL_M2D (PREFIX_M2D | SUFFIX_ADC_12V_VOL)
135#define SENSOR_NUM_INA231_PWR_M2E (PREFIX_M2E | SUFFIX_INA231_PWR)
136#define SENSOR_NUM_INA231_VOL_M2E (PREFIX_M2E | SUFFIX_INA231_VOL)
137#define SENSOR_NUM_NVME_TEMP_M2E (PREFIX_M2E | SUFFIX_NVME_TEMP)
139#define SENSOR_NUM_INA231_PWR_M2F (PREFIX_M2F | SUFFIX_INA231_PWR)
140#define SENSOR_NUM_INA231_VOL_M2F (PREFIX_M2F | SUFFIX_INA231_VOL)
141#define SENSOR_NUM_NVME_TEMP_M2F (PREFIX_M2F | SUFFIX_NVME_TEMP)