OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <zephyr.h>
#include <sys/util.h>
#include <sys/byteorder.h>
#include <logging/log.h>
#include "libutil.h"
#include "sensor.h"
#include "hal_i2c.h"
#include "pex89000.h"
Classes | |
struct | __packed |
Macros | |
#define | BRCM_I2C5_CMD_READ 0b100 |
#define | BRCM_I2C5_CMD_WRITE 0b011 |
#define | BRCM_CHIME_AXI_CSR_ADDR 0x001F0100 |
#define | BRCM_CHIME_AXI_CSR_DATA 0x001F0104 |
#define | BRCM_CHIME_AXI_CSR_CTL 0x001F0108 |
#define | BRCM_REG_SMB_WR_CMD 0xFFE00004 |
#define | BRCM_REG_SMB_WR_DATA 0xFFE00008 |
#define | BRCM_REG_SMB_RD_CMD 0xFFE0000C |
#define | BRCM_REG_SMB_RD_DATA 0xFFE00010 |
#define | BRCM_REG_TEMP_SNR0_CTL 0xFFE78504 |
#define | BRCM_REG_TEMP_SNR0_STAT 0xFFE78538 |
#define | BRCM_REG_CHIP_ID 0xFFF00000 |
#define | BRCM_REG_CHIP_REVID 0xFFF00004 |
#define | BRCM_REG_SBR_ID 0xFFF00008 |
#define | BRCM_REG_FLASH_VER 0x100005f8 |
#define | BRCM_REG_CCR_SYSTEM_ERR 0xFFF000A8 |
#define | BRCM_VAL_TEMP_SNR0_CTL_RESET 0x000653E8 |
Functions | |
LOG_MODULE_REGISTER (dev_pex89000) | |
pex89000_unit * | find_pex89000_from_idx (uint8_t idx) |
uint8_t | pex_access_engine (uint8_t bus, uint8_t addr, uint8_t idx, pex_access_t key, uint32_t *resp) |
uint8_t | pex89000_read (sensor_cfg *cfg, int *reading) |
uint8_t | pex89000_init (sensor_cfg *cfg) |
#define BRCM_CHIME_AXI_CSR_ADDR 0x001F0100 |
#define BRCM_CHIME_AXI_CSR_CTL 0x001F0108 |
#define BRCM_CHIME_AXI_CSR_DATA 0x001F0104 |
#define BRCM_I2C5_CMD_READ 0b100 |
#define BRCM_I2C5_CMD_WRITE 0b011 |
#define BRCM_REG_CCR_SYSTEM_ERR 0xFFF000A8 |
#define BRCM_REG_CHIP_ID 0xFFF00000 |
#define BRCM_REG_CHIP_REVID 0xFFF00004 |
#define BRCM_REG_FLASH_VER 0x100005f8 |
#define BRCM_REG_SBR_ID 0xFFF00008 |
#define BRCM_REG_SMB_RD_CMD 0xFFE0000C |
#define BRCM_REG_SMB_RD_DATA 0xFFE00010 |
#define BRCM_REG_SMB_WR_CMD 0xFFE00004 |
#define BRCM_REG_SMB_WR_DATA 0xFFE00008 |
#define BRCM_REG_TEMP_SNR0_CTL 0xFFE78504 |
#define BRCM_REG_TEMP_SNR0_STAT 0xFFE78538 |
#define BRCM_VAL_TEMP_SNR0_CTL_RESET 0x000653E8 |
pex89000_unit * find_pex89000_from_idx | ( | uint8_t | idx | ) |
LOG_MODULE_REGISTER | ( | dev_pex89000 | ) |
uint8_t pex89000_init | ( | sensor_cfg * | cfg | ) |
uint8_t pex89000_read | ( | sensor_cfg * | cfg, |
int * | reading | ||
) |
uint8_t pex_access_engine | ( | uint8_t | bus, |
uint8_t | addr, | ||
uint8_t | idx, | ||
pex_access_t | key, | ||
uint32_t * | resp | ||
) |