![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Macros | |
#define | MT6691_MIN_VOLTAGE 300000 |
#define | MT6691_MAX_VOLTAGE 1300000 |
#define | MT6691_STEP_UV 5000 |
Enumerations | |
enum | { MT6691_SLAVE_ADDR = 0x51 } |
Functions | |
int | mt6691_set_voltage (uint8_t i2c_num, unsigned int volt_uv) |
int | mt6691_get_voltage (uint8_t i2c_num) |
static uint8_t | get_mt6691_chip_id (uint8_t i2c_num) |
void | mt6691_probe (uint8_t i2c_num) |
Definition at line 51 of file mt6691.c.
References BIOS_ERR, i2c_read_field(), MT6691_MONITOR, MT6691_PGOOD_SHIFT, MT6691_SLAVE_ADDR, and printk.
Referenced by mt6691_probe().
int mt6691_get_voltage | ( | uint8_t | i2c_num | ) |
Definition at line 30 of file mt6691.c.
References BIOS_ERR, i2c_read_field(), MT6691_MAX_VOLTAGE, MT6691_MIN_VOLTAGE, MT6691_SLAVE_ADDR, MT6691_STEP_UV, MT6691_VSEL0, and printk.
Referenced by mainboard_get_regulator_vol().
Definition at line 64 of file mt6691.c.
References BIOS_ERR, get_mt6691_chip_id(), i2c_write_field(), MT6691_CTRL2, MT6691_DN_SR_MASK, MT6691_DN_SR_SHIFT, MT6691_SLAVE_ADDR, and printk.
Definition at line 15 of file mt6691.c.
References BIOS_ERR, DIV_ROUND_UP, i2c_write_field(), MT6691_MAX_VOLTAGE, MT6691_MIN_VOLTAGE, MT6691_SLAVE_ADDR, MT6691_STEP_UV, MT6691_VSEL0, and printk.
Referenced by mainboard_set_regulator_vol().