![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <ec/google/chromeec/ec.h>
#include <soc/mt6359p.h>
#include <soc/mt6360.h>
#include <soc/mt6691.h>
#include <soc/regulator.h>
Go to the source code of this file.
Macros | |
#define | MT6691_I2C_NUM 7 |
Functions | |
static int | get_mt6360_regulator_id (enum mtk_regulator regulator) |
static int | get_mt6359p_regulator_id (enum mtk_regulator regulator) |
static int | get_mt6691_regulator_id (enum mtk_regulator regulator) |
static int | check_regulator_control (enum mtk_regulator regulator) |
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) |
#define MT6691_I2C_NUM 7 |
Definition at line 10 of file regulator.c.
|
static |
Definition at line 40 of file regulator.c.
References BIOS_WARNING, MTK_REGULATOR_VDD1, and printk.
Referenced by mainboard_enable_regulator(), mainboard_get_regulator_vol(), mainboard_regulator_is_enabled(), and mainboard_set_regulator_vol().
|
static |
Definition at line 30 of file regulator.c.
References MT6359P_GPU11, and MTK_REGULATOR_VCORE.
Referenced by mainboard_get_regulator_vol(), and mainboard_set_regulator_vol().
|
static |
Definition at line 12 of file regulator.c.
References MT6360_BUCK1, MT6360_BUCK2, MT6360_LDO3, MT6360_LDO5, MTK_REGULATOR_VCC, MTK_REGULATOR_VCCQ, MTK_REGULATOR_VDD2, and MTK_REGULATOR_VDDQ.
Referenced by mainboard_enable_regulator(), mainboard_get_regulator_vol(), mainboard_regulator_is_enabled(), and mainboard_set_regulator_vol().
|
static |
Definition at line 35 of file regulator.c.
References MT6691_I2C_NUM, and MTK_REGULATOR_VMDDR.
Referenced by mainboard_get_regulator_vol(), and mainboard_set_regulator_vol().
int mainboard_enable_regulator | ( | enum mtk_regulator | regulator, |
uint8_t | enable | ||
) |
Definition at line 127 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.
uint32_t mainboard_get_regulator_vol | ( | enum mtk_regulator | regulator | ) |
Definition at line 92 of file regulator.c.
References 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(), mt6360_get_voltage(), mt6691_get_voltage(), and printk.
uint8_t mainboard_regulator_is_enabled | ( | enum mtk_regulator | regulator | ) |
Definition at line 158 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.
void mainboard_set_regulator_vol | ( | enum mtk_regulator | regulator, |
uint32_t | voltage_uv | ||
) |
Definition at line 54 of file regulator.c.
References 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(), mt6360_set_voltage(), mt6691_set_voltage(), and printk.