coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
regulator.c File Reference
#include <console/console.h>
#include <ec/google/chromeec/ec.h>
#include <soc/mt6359p.h>
#include <soc/mt6360.h>
#include <soc/regulator.h>
Include dependency graph for regulator.c:

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)
 

Function Documentation

◆ get_mt6359p_regulator_id()

static int get_mt6359p_regulator_id ( 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().

Here is the caller graph for this function:

◆ get_mt6360_regulator_id()

static int get_mt6360_regulator_id ( enum mtk_regulator  regulator)
static

◆ mainboard_enable_regulator()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mainboard_get_regulator_vol()

uint32_t mainboard_get_regulator_vol ( enum mtk_regulator  regulator)

◆ mainboard_regulator_is_enabled()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mainboard_set_regulator_vol()

void mainboard_set_regulator_vol ( enum mtk_regulator  regulator,
uint32_t  voltage_uv 
)