coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <stdint.h>
Go to the source code of this file.
Functions | |
void | mainboard_set_regulator_vol (enum mtk_regulator regulator, uint32_t voltage_uv) |
uint32_t | mainboard_get_regulator_vol (enum mtk_regulator regulator) |
int | mainboard_enable_regulator (enum mtk_regulator regulator, uint8_t enable) |
uint8_t | mainboard_regulator_is_enabled (enum mtk_regulator regulator) |
enum mtk_regulator |
Definition at line 8 of file regulator.h.
int mainboard_enable_regulator | ( | enum mtk_regulator | regulator, |
uint8_t | enable | ||
) |
Definition at line 98 of file regulator.c.
References BIOS_ERR, BIOS_WARNING, check_regulator_control(), CONFIG, get_mt6360_regulator_id(), google_chromeec_regulator_enable(), mainboard_regulator_is_enabled(), mt6360_enable(), and printk.
Referenced by mtk_msdc_configure_sdcard().
uint32_t mainboard_get_regulator_vol | ( | enum mtk_regulator | regulator | ) |
Definition at line 71 of file regulator.c.
References assert, BIOS_ERR, BIOS_WARNING, check_regulator_control(), CONFIG, get_mt6359p_regulator_id(), get_mt6360_regulator_id(), get_mt6691_regulator_id(), google_chromeec_regulator_get_voltage(), mt6359p_buck_get_voltage(), mt6359p_get_vm18_voltage(), mt6360_get_voltage(), mt6366_get_voltage(), mt6691_get_voltage(), MTK_REGULATOR_NUM, MTK_REGULATOR_VDD1, printk, and regulator_id.
uint8_t mainboard_regulator_is_enabled | ( | enum mtk_regulator | regulator | ) |
Definition at line 115 of file regulator.c.
References BIOS_ERR, BIOS_WARNING, check_regulator_control(), CONFIG, get_mt6360_regulator_id(), google_chromeec_regulator_is_enabled(), mt6360_is_enabled(), and printk.
Referenced by mainboard_enable_regulator().
void mainboard_set_regulator_vol | ( | enum mtk_regulator | regulator, |
uint32_t | voltage_uv | ||
) |
Definition at line 41 of file regulator.c.
References assert, BIOS_ERR, BIOS_WARNING, check_regulator_control(), CONFIG, get_mt6359p_regulator_id(), get_mt6360_regulator_id(), get_mt6691_regulator_id(), google_chromeec_regulator_set_voltage(), mt6359p_buck_set_voltage(), mt6359p_set_vm18_voltage(), mt6360_set_voltage(), mt6366_set_voltage(), mt6691_set_voltage(), MTK_REGULATOR_NUM, MTK_REGULATOR_VDD1, printk, and regulator_id.
Referenced by bridge_ps8640_power_on(), mtk_msdc_configure_sdcard(), and raise_little_cpu_freq().