![]() |
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 | REGULATOR_NOT_SUPPORT -1 |
Functions | |
_Static_assert (ARRAY_SIZE(regulator_id)==MTK_REGULATOR_NUM, "regulator_id size error") | |
void | mainboard_set_regulator_vol (enum mtk_regulator regulator, uint32_t voltage_uv) |
uint32_t | mainboard_get_regulator_vol (enum mtk_regulator regulator) |
Variables | |
static const int | regulator_id [] |
#define REGULATOR_NOT_SUPPORT -1 |
Definition at line 8 of file regulator.c.
_Static_assert | ( | ARRAY_SIZE(regulator_id) | = =MTK_REGULATOR_NUM , |
"regulator_id size error" | |||
) |
uint32_t mainboard_get_regulator_vol | ( | enum mtk_regulator | regulator | ) |
Definition at line 41 of file regulator.c.
References assert, BIOS_ERR, mt6366_get_voltage(), MTK_REGULATOR_NUM, printk, and regulator_id.
void mainboard_set_regulator_vol | ( | enum mtk_regulator | regulator, |
uint32_t | voltage_uv | ||
) |
Definition at line 29 of file regulator.c.
References assert, BIOS_ERR, mt6366_set_voltage(), MTK_REGULATOR_NUM, printk, and regulator_id.
|
static |
Definition at line 10 of file regulator.c.
Referenced by mainboard_get_regulator_vol(), and mainboard_set_regulator_vol().