coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
regulator.h File Reference
#include <stdint.h>
Include dependency graph for regulator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  mtk_regulator {
  MTK_REGULATOR_VDD1 , MTK_REGULATOR_VDD2 , MTK_REGULATOR_VDDQ , MTK_REGULATOR_VMDDR ,
  MTK_REGULATOR_VCORE , MTK_REGULATOR_VCC , MTK_REGULATOR_VCCQ , MTK_REGULATOR_VDRAM1 ,
  MTK_REGULATOR_VMCH , MTK_REGULATOR_VMC , MTK_REGULATOR_VPROC12 , MTK_REGULATOR_VSRAM_PROC12 ,
  MTK_REGULATOR_VRF12 , MTK_REGULATOR_VCN33 , MTK_REGULATOR_NUM
}
 

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)
 

Enumeration Type Documentation

◆ mtk_regulator

Enumerator
MTK_REGULATOR_VDD1 
MTK_REGULATOR_VDD2 
MTK_REGULATOR_VDDQ 
MTK_REGULATOR_VMDDR 
MTK_REGULATOR_VCORE 
MTK_REGULATOR_VCC 
MTK_REGULATOR_VCCQ 
MTK_REGULATOR_VDRAM1 
MTK_REGULATOR_VMCH 
MTK_REGULATOR_VMC 
MTK_REGULATOR_VPROC12 
MTK_REGULATOR_VSRAM_PROC12 
MTK_REGULATOR_VRF12 
MTK_REGULATOR_VCN33 
MTK_REGULATOR_NUM 

Definition at line 8 of file regulator.h.

Function Documentation

◆ mainboard_enable_regulator()

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

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

◆ mainboard_get_regulator_vol()

◆ mainboard_regulator_is_enabled()

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

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

◆ mainboard_set_regulator_vol()