#include <stdbool.h>
#include <stdint.h>
#include "plat_i2c.h"
#include "plat_gpio.h"
#include "i2c-mux-pca954x.h"
Go to the source code of this file.
|
enum | BOARD_REVISION_ID {
POC_STAGE = 0b000
, EVT1_STAGE = 0b001
, EVT2_STAGE = 0b010
, DVT_STAGE = 0b011
,
PVT_STAGE = 0b100
, MP_STAGE = 0b101
, UNKNOWN_STAGE = 0xFF
, EVT_STAGE = 0b000
,
DVT_STAGE = 0b001
, PVT_STAGE = 0b010
, MP_STAGE = 0b011
, UNKNOWN_STAGE = 0xFF
} |
|
enum | HSC_MODULE {
HSC_MODULE_ADM1272
, HSC_MODULE_XDP710
, HSC_MODULE_UNKNOWN
, HSC_MODULE_ADM1272
,
HSC_MODULE_LTC4286
, HSC_MODULE_UNKNOWN = 0xFF
, HSC_MODULE_ADM1278
, HSC_MODULE_LTC4282
,
HSC_MODULE_MP5990
, HSC_MODULE_ADM1276
, HSC_MODULE_UNKNOWN = 0xFF
, HSC_MODULE_ADM1278
,
HSC_MODULE_LTC4282
, HSC_MODULE_MP5990
, HSC_MODULE_LTC4286 = 0x04
, HSC_MODULE_UNKNOWN = 0xFF
,
HSC_MODULE_ADM1278 = 0b00
, HSC_MODULE_MP5990 = 0b01
, HSC_MODULE_UNKNOWN
, HSC_MODULE_ADM1278 = 0b00
,
HSC_MODULE_LTC4282 = 0b01
, HSC_MODULE_MP5990 = 0b10
, HSC_MODULE_UNKNOWN
, HSC_MODULE_ADM1278 = 0b00
,
HSC_MODULE_LTC4282 = 0b01
, HSC_MODULE_MP5990 = 0b10
, HSC_MODULE_UNKNOWN
, HSC_MODULE_MP5990
,
HSC_MODULE_RS31380R
, HSC_MODULE_UNKNOWN = 0xFF
} |
|
enum | VR_MODULE { VR_XDPE15284D
, VR_MP2985H
, VR_UNKNOWN = 0xFF
} |
|
enum | POWER_BRICK_MODULE { POWER_BRICK_Q50SN120A1
, POWER_BRICK_BMR3512202
, POWER_BRICK_UNKNOWN = 0xFF
} |
|
enum | POWER_MONITOR_MODULE { POWER_MONITOR_INA233_SQ52205
, POWER_MONITOR_SQ52205_INA230
, POWER_MONITOR_UNKNOWN = 0xFF
} |
|
enum | ASIC_CARD_STATUS { ASIC_CARD_NOT_PRESENT
, ASIC_CARD_PRESENT
, ASIC_CARD_UNKNOWN_STATUS = 0xFF
} |
|
enum | ASIC_CARD_DEVICE_STATUS { ASIC_CARD_DEVICE_NOT_PRESENT
, ASIC_CARD_DEVICE_PRESENT
, ASIC_CARD_DEVICE_UNKNOWN_STATUS = 0xFF
} |
|
enum | ASIC_CARD_TYPE { ASIC_CARD_WITH_ARTEMIS_MODULE
, ASIC_CARD_UNKNOWN_TYPE = 0xFF
} |
|
enum | FIO_STATUS { FIO_NOT_PRESENT
, FIO_PRESENT
} |
|
enum | PCIE_DEVICE_ID {
PCIE_DEVICE_ID1
, PCIE_DEVICE_ID2
, PCIE_DEVICE_ID3
, PCIE_DEVICE_ID1
,
PCIE_DEVICE_ID2
, PCIE_DEVICE_ID3
} |
|
enum | PCIE_CARD_INDEX {
PCIE_CARD_1
, PCIE_CARD_2
, PCIE_CARD_3
, PCIE_CARD_4
,
PCIE_CARD_5
, PCIE_CARD_6
, PCIE_CARD_7
, PCIE_CARD_8
,
PCIE_CARD_9
, PCIE_CARD_10
, PCIE_CARD_11
, PCIE_CARD_12
} |
|
enum | CPLD_ACCL_POWER_FAULT_REG {
ACCL1_POWER_FAULT_REG = 0x5C
, ACCL2_POWER_FAULT_REG = 0x5B
, ACCL3_POWER_FAULT_REG = 0x5A
, ACCL4_POWER_FAULT_REG = 0x59
,
ACCL5_POWER_FAULT_REG = 0x58
, ACCL6_POWER_FAULT_REG = 0x57
, ACCL7_POWER_FAULT_REG = 0x56
, ACCL8_POWER_FAULT_REG = 0x55
,
ACCL9_POWER_FAULT_REG = 0x54
, ACCL10_POWER_FAULT_REG = 0x53
, ACCL11_POWER_FAULT_REG = 0x52
, ACCL12_POWER_FAULT_REG = 0x51
} |
|
enum | ACCL_PRESENCE_OPTION { ACCL_CARD_PRESENCE
, ACCL_CABLE_PRESENCE
} |
|
◆ ACCL_CARD_DEV_COUNT
#define ACCL_CARD_DEV_COUNT 2 |
◆ ASIC_CARD_COUNT
#define ASIC_CARD_COUNT 12 |
◆ CPLD_12V_ACCLA_PWRGD_OFFSET
#define CPLD_12V_ACCLA_PWRGD_OFFSET 0x22 |
◆ CPLD_12V_ACCLB_PWRGD_OFFSET
#define CPLD_12V_ACCLB_PWRGD_OFFSET 0x23 |
◆ CPLD_ACCL_12V_POWER_FAULT_BIT
#define CPLD_ACCL_12V_POWER_FAULT_BIT BIT(4) |
◆ CPLD_ACCL_12V_POWER_TOUT_BIT
#define CPLD_ACCL_12V_POWER_TOUT_BIT BIT(1) |
◆ CPLD_ACCL_1_6_POWER_CABLE_PG_FAULT_OFFSET
#define CPLD_ACCL_1_6_POWER_CABLE_PG_FAULT_OFFSET 0x33 |
◆ CPLD_ACCL_1_6_POWER_CABLE_PG_OFFSET
#define CPLD_ACCL_1_6_POWER_CABLE_PG_OFFSET 0x29 |
◆ CPLD_ACCL_1_6_POWER_CABLE_PG_TIMEOUT_OFFSET
#define CPLD_ACCL_1_6_POWER_CABLE_PG_TIMEOUT_OFFSET 0x35 |
◆ CPLD_ACCL_1_6_POWER_CABLE_PRESENT_OFFSET
#define CPLD_ACCL_1_6_POWER_CABLE_PRESENT_OFFSET 0x27 |
◆ CPLD_ACCL_1_6_PRESENT_OFFSET
#define CPLD_ACCL_1_6_PRESENT_OFFSET 0x3F |
◆ CPLD_ACCL_3V3_AUX_FAULT_BIT
#define CPLD_ACCL_3V3_AUX_FAULT_BIT BIT(5) |
◆ CPLD_ACCL_3V3_AUX_POWER_TOUT_BIT
#define CPLD_ACCL_3V3_AUX_POWER_TOUT_BIT BIT(2) |
◆ CPLD_ACCL_3V3_POWER_FAULT_BIT
#define CPLD_ACCL_3V3_POWER_FAULT_BIT BIT(3) |
◆ CPLD_ACCL_3V3_POWER_TOUT_BIT
#define CPLD_ACCL_3V3_POWER_TOUT_BIT BIT(0) |
◆ CPLD_ACCL_7_12_POWER_CABLE_PG_FAULT_OFFSET
#define CPLD_ACCL_7_12_POWER_CABLE_PG_FAULT_OFFSET 0x32 |
◆ CPLD_ACCL_7_12_POWER_CABLE_PG_OFFSET
#define CPLD_ACCL_7_12_POWER_CABLE_PG_OFFSET 0x28 |
◆ CPLD_ACCL_7_12_POWER_CABLE_PG_TIMEOUT_OFFSET
#define CPLD_ACCL_7_12_POWER_CABLE_PG_TIMEOUT_OFFSET 0x34 |
◆ CPLD_ACCL_7_12_POWER_CABLE_PRESENT_OFFSET
#define CPLD_ACCL_7_12_POWER_CABLE_PRESENT_OFFSET 0x26 |
◆ CPLD_ACCL_7_12_PRESENT_OFFSET
#define CPLD_ACCL_7_12_PRESENT_OFFSET 0x3E |
◆ CPLD_ACCLA_PWRGD_OFFSET
#define CPLD_ACCLA_PWRGD_OFFSET 0x24 |
◆ CPLD_ACCLB_PWRGD_OFFSET
#define CPLD_ACCLB_PWRGD_OFFSET 0x25 |
◆ CPLD_ADDR
#define CPLD_ADDR (0xA0 >> 1) |
◆ CPLD_NORMAL_ENABLE_OFFSET
#define CPLD_NORMAL_ENABLE_OFFSET 0x03 |
◆ CPLD_P0V8_1_EN_BIT
#define CPLD_P0V8_1_EN_BIT BIT(0) |
◆ CPLD_PWRGD_1_OFFSET
#define CPLD_PWRGD_1_OFFSET 0x05 |
◆ CPLD_PWRGD_2_OFFSET
#define CPLD_PWRGD_2_OFFSET 0x06 |
◆ CPLD_PWRGD_BIT
#define CPLD_PWRGD_BIT BIT(0) |
◆ CPLD_SW_0_ERR_BIT
#define CPLD_SW_0_ERR_BIT BIT(1) |
◆ CPLD_SW_1_ERR_BIT
#define CPLD_SW_1_ERR_BIT BIT(0) |
◆ CPLD_SW_ERR_OFFSET
#define CPLD_SW_ERR_OFFSET 0x0F |
◆ HSC_MODULE_PIN_NUM
#define HSC_MODULE_PIN_NUM BOARD_ID2 |
◆ IOEXP_CARD_PRESENCE_COUNT
#define IOEXP_CARD_PRESENCE_COUNT 4 |
◆ IOEXP_CARD_PRESENCE_MAP_VAL
#define IOEXP_CARD_PRESENCE_MAP_VAL 0x0F |
◆ IOEXP_CARD_PRESENCE_PIN_COUNT
#define IOEXP_CARD_PRESENCE_PIN_COUNT 4 |
◆ IOEXP_CARD_PRESENT_VAL
#define IOEXP_CARD_PRESENT_VAL BIT(3) |
◆ IOEXP_DEV_1_PRESENT_VAL
#define IOEXP_DEV_1_PRESENT_VAL BIT(1) |
◆ IOEXP_DEV_2_PRESENT_VAL
#define IOEXP_DEV_2_PRESENT_VAL BIT(2) |
◆ IOEXP_U228_ADDR
#define IOEXP_U228_ADDR (0x40 >> 1) |
◆ IOEXP_U229_ADDR
#define IOEXP_U229_ADDR (0x42 >> 1) |
◆ IOEXP_U230_ADDR
#define IOEXP_U230_ADDR (0x44 >> 1) |
◆ IOEXP_U233_ADDR
#define IOEXP_U233_ADDR (0x46 >> 1) |
◆ POWER_BRICK_MODULE_PIN_NUM
#define POWER_BRICK_MODULE_PIN_NUM BOARD_ID1 |
◆ POWER_MONITOR_PIN_NUM
#define POWER_MONITOR_PIN_NUM BOARD_ID3 |
◆ VR_MODULE_PIN_NUM
#define VR_MODULE_PIN_NUM BOARD_ID0 |
◆ ACCL_PRESENCE_OPTION
Enumerator |
---|
ACCL_CARD_PRESENCE | |
ACCL_CABLE_PRESENCE | |
◆ ASIC_CARD_DEVICE_STATUS
Enumerator |
---|
ASIC_CARD_DEVICE_NOT_PRESENT | |
ASIC_CARD_DEVICE_PRESENT | |
ASIC_CARD_DEVICE_UNKNOWN_STATUS | |
◆ ASIC_CARD_STATUS
Enumerator |
---|
ASIC_CARD_NOT_PRESENT | |
ASIC_CARD_PRESENT | |
ASIC_CARD_UNKNOWN_STATUS | |
◆ ASIC_CARD_TYPE
Enumerator |
---|
ASIC_CARD_WITH_ARTEMIS_MODULE | |
ASIC_CARD_UNKNOWN_TYPE | |
◆ BOARD_REVISION_ID
Enumerator |
---|
POC_STAGE | |
EVT1_STAGE | |
EVT2_STAGE | |
DVT_STAGE | |
PVT_STAGE | |
MP_STAGE | |
UNKNOWN_STAGE | |
EVT_STAGE | |
DVT_STAGE | |
PVT_STAGE | |
MP_STAGE | |
UNKNOWN_STAGE | |
◆ CPLD_ACCL_POWER_FAULT_REG
Enumerator |
---|
ACCL1_POWER_FAULT_REG | |
ACCL2_POWER_FAULT_REG | |
ACCL3_POWER_FAULT_REG | |
ACCL4_POWER_FAULT_REG | |
ACCL5_POWER_FAULT_REG | |
ACCL6_POWER_FAULT_REG | |
ACCL7_POWER_FAULT_REG | |
ACCL8_POWER_FAULT_REG | |
ACCL9_POWER_FAULT_REG | |
ACCL10_POWER_FAULT_REG | |
ACCL11_POWER_FAULT_REG | |
ACCL12_POWER_FAULT_REG | |
◆ FIO_STATUS
Enumerator |
---|
FIO_NOT_PRESENT | |
FIO_PRESENT | |
◆ HSC_MODULE
Enumerator |
---|
HSC_MODULE_ADM1272 | |
HSC_MODULE_XDP710 | |
HSC_MODULE_UNKNOWN | |
HSC_MODULE_ADM1272 | |
HSC_MODULE_LTC4286 | |
HSC_MODULE_UNKNOWN | |
HSC_MODULE_ADM1278 | |
HSC_MODULE_LTC4282 | |
HSC_MODULE_MP5990 | |
HSC_MODULE_ADM1276 | |
HSC_MODULE_UNKNOWN | |
HSC_MODULE_ADM1278 | |
HSC_MODULE_LTC4282 | |
HSC_MODULE_MP5990 | |
HSC_MODULE_LTC4286 | |
HSC_MODULE_UNKNOWN | |
HSC_MODULE_ADM1278 | |
HSC_MODULE_MP5990 | |
HSC_MODULE_UNKNOWN | |
HSC_MODULE_ADM1278 | |
HSC_MODULE_LTC4282 | |
HSC_MODULE_MP5990 | |
HSC_MODULE_UNKNOWN | |
HSC_MODULE_ADM1278 | |
HSC_MODULE_LTC4282 | |
HSC_MODULE_MP5990 | |
HSC_MODULE_UNKNOWN | |
HSC_MODULE_MP5990 | |
HSC_MODULE_RS31380R | |
HSC_MODULE_UNKNOWN | |
◆ PCIE_CARD_INDEX
Enumerator |
---|
PCIE_CARD_1 | |
PCIE_CARD_2 | |
PCIE_CARD_3 | |
PCIE_CARD_4 | |
PCIE_CARD_5 | |
PCIE_CARD_6 | |
PCIE_CARD_7 | |
PCIE_CARD_8 | |
PCIE_CARD_9 | |
PCIE_CARD_10 | |
PCIE_CARD_11 | |
PCIE_CARD_12 | |
◆ PCIE_DEVICE_ID
Enumerator |
---|
PCIE_DEVICE_ID1 | |
PCIE_DEVICE_ID2 | |
PCIE_DEVICE_ID3 | |
PCIE_DEVICE_ID1 | |
PCIE_DEVICE_ID2 | |
PCIE_DEVICE_ID3 | |
◆ POWER_BRICK_MODULE
Enumerator |
---|
POWER_BRICK_Q50SN120A1 | |
POWER_BRICK_BMR3512202 | |
POWER_BRICK_UNKNOWN | |
◆ POWER_MONITOR_MODULE
Enumerator |
---|
POWER_MONITOR_INA233_SQ52205 | |
POWER_MONITOR_SQ52205_INA230 | |
POWER_MONITOR_UNKNOWN | |
◆ VR_MODULE
Enumerator |
---|
VR_XDPE15284D | |
VR_MP2985H | |
VR_UNKNOWN | |
◆ check_accl_device_presence_status_via_ioexp()
void check_accl_device_presence_status_via_ioexp |
( |
| ) |
|
◆ get_acb_power_good_flag()
bool get_acb_power_good_flag |
( |
| ) |
|
◆ get_acb_power_status()
bool get_acb_power_status |
( |
| ) |
|
◆ get_board_revision()
uint8_t get_board_revision |
( |
| ) |
|
◆ get_cpld_register()
int get_cpld_register |
( |
uint8_t |
offset, |
|
|
uint8_t * |
value |
|
) |
| |
◆ get_hsc_module()
uint8_t get_hsc_module |
( |
| ) |
|
◆ get_pwr_brick_module()
uint8_t get_pwr_brick_module |
( |
| ) |
|
◆ get_pwr_monitor_module()
uint8_t get_pwr_monitor_module |
( |
| ) |
|
◆ get_vr_module()
uint8_t get_vr_module |
( |
| ) |
|
◆ init_accl_presence_check_work()
void init_accl_presence_check_work |
( |
| ) |
|
◆ init_asic_jtag_select_ioexp()
void init_asic_jtag_select_ioexp |
( |
| ) |
|
Write U233 ioexp output 0 register
Write U233 ioexp output 1 register
Write U233 ioexp config 0 register
Write U233 ioexp config 1 register
◆ init_platform_config()
int init_platform_config |
( |
| ) |
|
◆ asic_card_info