![]() |
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/regulator.h>
Go to the source code of this file.
Functions | |
static int | get_mt6360_regulator_id (enum mtk_regulator regulator) |
static int | get_mt6359p_regulator_id (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) |
|
static |
Definition at line 29 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 9 of file regulator.c.
References MT6360_BUCK1, MT6360_LDO3, MT6360_LDO5, MT6360_LDO6, MT6360_LDO7, MTK_REGULATOR_VCC, MTK_REGULATOR_VCCQ, MTK_REGULATOR_VDD2, MTK_REGULATOR_VDDQ, and MTK_REGULATOR_VMDDR.
Referenced by mainboard_enable_regulator(), mainboard_get_regulator_vol(), mainboard_regulator_is_enabled(), and mainboard_set_regulator_vol().
int mainboard_enable_regulator | ( | enum mtk_regulator | regulator, |
uint8_t | enable | ||
) |
Definition at line 98 of file regulator.c.
References BIOS_WARNING, get_mt6360_regulator_id(), google_chromeec_regulator_enable(), mainboard_regulator_is_enabled(), 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 BIOS_WARNING, get_mt6359p_regulator_id(), get_mt6360_regulator_id(), google_chromeec_regulator_get_voltage(), mt6359p_buck_get_voltage(), mt6359p_get_vm18_voltage(), MTK_REGULATOR_VDD1, and printk.
uint8_t mainboard_regulator_is_enabled | ( | enum mtk_regulator | regulator | ) |
Definition at line 115 of file regulator.c.
References BIOS_WARNING, get_mt6360_regulator_id(), google_chromeec_regulator_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 BIOS_WARNING, get_mt6359p_regulator_id(), get_mt6360_regulator_id(), google_chromeec_regulator_set_voltage(), mt6359p_buck_set_voltage(), mt6359p_set_vm18_voltage(), MTK_REGULATOR_VDD1, and printk.
Referenced by bridge_ps8640_power_on(), mtk_msdc_configure_sdcard(), and raise_little_cpu_freq().