![]() |
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 <ec/google/chromeec/ec.h>
#include <soc/auxadc.h>
Go to the source code of this file.
Macros | |
#define | ADC_LEVELS 12 |
Enumerations | |
enum | { RAM_ID_LOW_CHANNEL = 2 , RAM_ID_HIGH_CHANNEL = 3 , SKU_ID_LOW_CHANNEL = 4 , SKU_ID_HIGH_CHANNEL = 5 } |
Functions | |
static uint32_t | get_adc_index (unsigned int channel) |
uint32_t | sku_id (void) |
uint32_t | ram_code (void) |
Variables | |
static const unsigned int | ram_voltages [ADC_LEVELS] |
static const unsigned int * | adc_voltages [] |
anonymous enum |
Definition at line 45 of file boardid.c.
References ADC_LEVELS, adc_voltages, ARRAY_SIZE, assert, auxadc_get_voltage_uv(), BIOS_DEBUG, printk, and value.
Referenced by ram_code(), and sku_id().
Definition at line 81 of file boardid.c.
References BIOS_DEBUG, BOARD_ID_INIT, get_adc_index(), printk, RAM_ID_HIGH_CHANNEL, and RAM_ID_LOW_CHANNEL.
Definition at line 63 of file boardid.c.
References BIOS_DEBUG, BIOS_WARNING, BOARD_ID_INIT, CROS_SKU_UNKNOWN, get_adc_index(), google_chromeec_get_board_sku(), printk, SKU_ID_HIGH_CHANNEL, and SKU_ID_LOW_CHANNEL.
|
static |
|
static |