17#ifndef PLAT_I2C_SLAVE_H
18#define PLAT_I2C_SLAVE_H
20#include <drivers/i2c.h>
23#define TARGET_ENABLE 1
24#define TARGET_DISABLE 0
29#define SENSOR_INIT_DATA_0_REG 0x00
30#define SENSOR_INIT_DATA_1_REG 0x01
31#define SENSOR_READING_0_REG 0x02
32#define SENSOR_READING_1_REG 0x03
33#define SENSOR_READING_2_REG 0x04
34#define SENSOR_READING_3_REG 0x05
35#define INVENTORY_IDS_REG 0x06
36#define STRAP_CAPABILTITY_REG 0x08
37#define WRITE_STRAP_PIN_VALUE_REG 0x09
38#define I2C_BRIDGE_COMMAND_REG 0x40
39#define I2C_BRIDGE_COMMAND_STATUS_REG 0x41
40#define I2C_BRIDGE_COMMAND_RESPONSE_REG 0x42
42#define FRU_BOARD_PART_NUMBER_REG 0x60
43#define FRU_BOARD_SERIAL_NUMBER_REG 0x61
44#define FRU_BOARD_PRODUCT_NAME_REG 0x62
45#define FRU_BOARD_CUSTOM_DATA_1_REG 0x63
46#define FRU_BOARD_CUSTOM_DATA_2_REG 0x64
47#define FRU_BOARD_CUSTOM_DATA_3_REG 0x65
48#define FRU_BOARD_CUSTOM_DATA_4_REG 0x66
49#define FRU_BOARD_CUSTOM_DATA_5_REG 0x67
50#define FRU_BOARD_CUSTOM_DATA_6_REG 0x68
51#define FRU_BOARD_CUSTOM_DATA_7_REG 0x69
52#define FRU_BOARD_CUSTOM_DATA_8_REG 0x6A
53#define FRU_BOARD_CUSTOM_DATA_9_REG 0x6B
54#define FRU_BOARD_CUSTOM_DATA_10_REG 0x6C
56#define FRU_PRODUCT_NAME_REG 0x70
57#define FRU_PRODUCT_PART_NUMBER_REG 0x71
58#define FRU_PRODUCT_PART_VERSION_REG 0x72
59#define FRU_PRODUCT_SERIAL_NUMBER_REG 0x73
60#define FRU_PRODUCT_ASSET_TAG_REG 0x74
61#define FRU_PRODUCT_CUSTOM_DATA_1_REG 0x75
62#define FRU_PRODUCT_CUSTOM_DATA_2_REG 0x76
64#define CONTROL_VOL_VR_ASIC_P0V75_VDDPHY_HBM0246_REG 0x80
65#define CONTROL_VOL_VR_ASIC_P0V75_VDDPHY_HBM1357_REG 0x81
66#define CONTROL_VOL_VR_ASIC_P1V05_VDDC_HBM0246_REG 0x82
67#define CONTROL_VOL_VR_ASIC_P1V05_VDDC_HBM1357_REG 0x83
68#define CONTROL_VOL_VR_ASIC_P0V4_VDDQL_HBM0246_REG 0x84
69#define CONTROL_VOL_VR_ASIC_P0V4_VDDQL_HBM1357_REG 0x85
70#define CONTROL_VOL_VR_ASIC_P1V8_VPP_HBM0246_REG 0x86
71#define CONTROL_VOL_VR_ASIC_P1V8_VPP_HBM1357_REG 0x87
72#define CONTROL_VOL_VR_ASIC_P0V75_NUWA0_VDD_REG 0x88
73#define CONTROL_VOL_VR_ASIC_P0V75_NUWA1_VDD_REG 0x89
74#define LEVEL_1_PWR_ALERT_THRESHOLD_TIME_REG 0x90
75#define LEVEL_2_PWR_ALERT_THRESHOLD_TIME_REG 0x91
76#define LEVEL_3_PWR_ALERT_THRESHOLD_TIME_REG 0x92
77#define VR_POWER_READING_REG 0x93
78#define NUWA_SENSOR_VALUE_REG 0x94
79#define POWER_CAPPING_METHOD_REG 0x95
80#define NUWA_POWER_SOURCE_REG 0x96
81#define POLLING_RATE_TELEMETRY_REG 0x97
82#define TRAY_INFO_REG 0x98
83#define SET_THERMAL_THRESHOLD 0x62
85#define SET_SENSOR_POLLING_COMMAND_REG 0xF0
97 uint8_t register_layout_version;
102 uint16_t max_pdr_idx;
104 uint8_t sensor_r_len[];
108 uint8_t sensor_index_offset;
109 uint32_t sensor_value;
114 uint8_t register_layout_version;
115 uint16_t sensor_base_index;
123 uint16_t carrier_board_id;
124 uint32_t bic_fw_version;
125 uint32_t cpld_fw_version;
129 uint8_t strap_set_index;
130 uint8_t strap_set_value;
131 uint8_t strap_set_type;
136 uint8_t strap_data_length;
160 uint8_t response_data[];
uint8_t data[]
Definition: isl69259.c:2
uint8_t addr
Definition: isl69259.c:0
uint8_t set_value
Definition: pldm_oem.h:1
uint32_t data_length
Definition: pldm_oem.h:1
Definition: pldm_smbios.h:61
Definition: plat_i2c_target.h:100
uint16_t data_size
Definition: plat_i2c_target.h:102
uint8_t telemetry_offset
Definition: plat_i2c_target.h:101
bool(* telemetry_table_init)(telemetry_info *, uint8_t *)
Definition: plat_i2c_target.h:103
Definition: plat_i2c_target.h:182
uint8_t i2c_bus
Definition: plat_i2c_target.h:184
uint8_t index
Definition: plat_i2c_target.h:183
Definition: plat_i2c_target.c:144
uint8_t vr_rail_e
Definition: plat_i2c_target.c:146
uint8_t control_vol_reg
Definition: plat_i2c_target.c:145