OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <logging/log.h>
#include "libutil.h"
#include "plat_i2c.h"
#include "plat_class.h"
#include "plat_pldm_sensor.h"
Macros | |
#define | AEGIS_CPLD_ADDR (0x4C >> 1) |
#define | I2C_BUS_CPLD I2C_BUS5 |
#define | I2C_BUS_TMP I2C_BUS1 |
#define | AEGIS_CPLD_VR_VENDOR_TYPE_REG 0x1C |
#define | AEGIS_CPLD_BOARD_REV_ID_REG 0x1B |
#define | AEGIS_CPLD_BOARD_TYPE_REG 0x1A |
#define | TMP_EMC1413_SMSC_ID_DEFAULT 0x5D |
Functions | |
LOG_MODULE_REGISTER (plat_class) | |
bool | plat_read_cpld (uint8_t offset, uint8_t *data) |
void | init_board_type (void) |
void | init_board_stage (void) |
void | init_vr_vendor_type (void) |
void | init_tmp_type () |
uint8_t | get_vr_type () |
uint8_t | get_ubc_type () |
uint8_t | get_board_stage () |
uint8_t | get_board_type () |
uint8_t | get_tmp_type () |
void | init_platform_config () |
#define AEGIS_CPLD_ADDR (0x4C >> 1) |
#define AEGIS_CPLD_BOARD_REV_ID_REG 0x1B |
#define AEGIS_CPLD_BOARD_TYPE_REG 0x1A |
#define AEGIS_CPLD_VR_VENDOR_TYPE_REG 0x1C |
#define I2C_BUS_CPLD I2C_BUS5 |
#define I2C_BUS_TMP I2C_BUS1 |
#define TMP_EMC1413_SMSC_ID_DEFAULT 0x5D |
uint8_t get_board_stage | ( | ) |
uint8_t get_board_type | ( | ) |
uint8_t get_tmp_type | ( | ) |
uint8_t get_ubc_type | ( | ) |
uint8_t get_vr_type | ( | ) |
void init_board_stage | ( | void | ) |
void init_board_type | ( | void | ) |
void init_platform_config | ( | ) |
void init_tmp_type | ( | ) |
void init_vr_vendor_type | ( | void | ) |
LOG_MODULE_REGISTER | ( | plat_class | ) |
bool plat_read_cpld | ( | uint8_t | offset, |
uint8_t * | data | ||
) |