![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <assert.h>
#include <boardid.h>
#include <console/console.h>
#include <delay.h>
#include <device/i2c_simple.h>
#include <drivers/camera/cros_camera.h>
#include <ec/google/chromeec/ec.h>
#include <soc/auxadc_common.h>
#include <soc/i2c.h>
#include <soc/pmic_wrap_common.h>
Go to the source code of this file.
Macros | |
#define | FLAPJACK_UNDEF_SKU_ID 0 |
#define | ADC_LEVELS 12 |
#define | PMIC_LDO_VCAMIO_CON0 0x1cb0 |
#define | CROS_CAMERA_INFO_OFFSET 0x1f80 |
#define | MT8183_FORMAT 0x8183 |
#define | KODAMA_PID 0x00c7 |
Enumerations | |
enum | { LCM_ID_CHANNEL = 2 , RAM_ID_CHANNEL = 3 , SKU_ID_CHANNEL = 4 } |
Functions | |
static uint32_t | get_adc_index (unsigned int channel) |
static uint8_t | eeprom_random_read (uint8_t bus, uint8_t slave, uint16_t offset, uint8_t *data, uint16_t len) |
static uint8_t | wfc_id (void) |
static uint8_t | lcm_id (void) |
uint32_t | sku_id (void) |
uint32_t | ram_code (void) |
Variables | |
static const int | ram_voltages [ADC_LEVELS] |
static const int | lcm_voltages [ADC_LEVELS] |
static const int * | adc_voltages [] |
anonymous enum |
|
static |
Definition at line 86 of file boardid.c.
References address, ARRAY_SIZE, i2c_msg::buf, i2c_msg::flags, I2C_M_RD, i2c_transfer(), i2c_msg::len, offset, slave, and i2c_msg::slave.
Referenced by wfc_id().
Definition at line 69 of file boardid.c.
References ADC_LEVELS, adc_voltages, ARRAY_SIZE, assert, auxadc_get_voltage_uv(), BIOS_DEBUG, printk, and value.
Referenced by lcm_id(), ram_code(), and sku_id().
Definition at line 178 of file boardid.c.
References CONFIG, get_adc_index(), and LCM_ID_CHANNEL.
Referenced by sku_id().
Definition at line 222 of file boardid.c.
References BOARD_ID_INIT, get_adc_index(), and RAM_ID_CHANNEL.
Definition at line 187 of file boardid.c.
References board_id(), BOARD_ID_INIT, CONFIG, FLAPJACK_UNDEF_SKU_ID, get_adc_index(), google_chromeec_cbi_get_sku_id(), lcm_id(), SKU_ID_CHANNEL, and wfc_id().
Definition at line 115 of file boardid.c.
References ARRAY_SIZE, BIOS_DEBUG, BIOS_ERR, BIOS_INFO, BIOS_WARNING, check_cros_camera_info(), CONFIG, CROS_CAMERA_INFO_OFFSET, cros_camera_info::data_format, eeprom_random_read(), KODAMA_PID, cros_camera_info::module_pid, MT8183_FORMAT, mtk_i2c_bus_init(), PMIC_LDO_VCAMIO_CON0, printk, pwrap_write(), cros_camera_info::sensor_pid, and udelay().
Referenced by sku_id().
|
static |
|
static |
|
static |