![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <types.h>
Go to the source code of this file.
Data Structures | |
struct | pmic_setting |
Enumerations | |
enum | { PMIC_SWCID = 0x000a , PMIC_VM_MODE = 0x004e , PMIC_TOP_CKPDN_CON0_SET = 0x010e , PMIC_TOP_CKPDN_CON0_CLR = 0x0110 , PMIC_TOP_CKHWEN_CON0_SET = 0x012c , PMIC_TOP_CKHWEN_CON0_CLR = 0x012e , PMIC_TOP_RST_MISC = 0x014c , PMIC_TOP_RST_MISC_SET = 0x014e , PMIC_TOP_RST_MISC_CLR = 0x0150 , PMIC_OTP_CON0 = 0x038a , PMIC_OTP_CON8 = 0x039a , PMIC_OTP_CON11 = 0x03a0 , PMIC_OTP_CON12 = 0x03a2 , PMIC_OTP_CON13 = 0x03a4 , PMIC_TOP_TMA_KEY = 0x03a8 , PMIC_PWRHOLD = 0x0a08 , PMIC_CPSDSA4 = 0x0a2e , PMIC_VCORE_OP_EN = 0x1490 , PMIC_VCORE_DBG0 = 0x149e , PMIC_VCORE_VOSEL = 0x14aa , PMIC_VDRAM1_VOSEL_SLEEP = 0x160a , PMIC_VDRAM1_OP_EN = 0x1610 , PMIC_VDRAM1_DBG0 = 0x161e , PMIC_VDRAM1_VOSEL = 0x1626 , PMIC_SMPS_ANA_CON0 = 0x1808 , PMIC_VDDQ_OP_EN = 0x1b16 , PMIC_VSIM2_ANA_CON0 = 0x1e30 , PMIC_VDDQ_ELR_0 = 0x1ec4 } |
Functions | |
void | mt6358_init (void) |
void | pmic_set_power_hold (bool enable) |
void | pmic_set_vsim2_cali (unsigned int vsim2_mv) |
void | pmic_init_scp_voltage (void) |
unsigned int | pmic_get_vcore_vol (void) |
void | pmic_set_vcore_vol (unsigned int vcore_uv) |
unsigned int | pmic_get_vdram1_vol (void) |
void | pmic_set_vdram1_vol (unsigned int vdram_uv) |
unsigned int | pmic_get_vddq_vol (void) |
void | pmic_set_vddq_vol (unsigned int vddq_uv) |
anonymous enum |
Definition at line 975 of file mt6358.c.
References die(), mt6358_init_setting(), mt6358_lp_setting(), pmic_set_power_hold(), pmic_wdt_set(), pwrap_init(), stopwatch_expired(), stopwatch_init_usecs_expire(), wk_power_down_seq(), and wk_sleep_voltage_by_ddr().
Referenced by platform_romstage_main().
Definition at line 845 of file mt6358.c.
References PMIC_VCORE_DBG0, and pwrap_read_field().
Definition at line 889 of file mt6358.c.
References ARRAY_SIZE, assert, pmic_get_efuse_votrim(), PMIC_VDDQ_ELR_0, PMIC_VDDQ_OP_EN, pwrap_read_field(), and vddq_votrim.
Definition at line 867 of file mt6358.c.
References PMIC_VDRAM1_DBG0, and pwrap_read_field().
Definition at line 797 of file mt6358.c.
References addr, ARRAY_SIZE, mask, pwrap_write_field(), scp_setting, pmic_setting::shift, and val.
Referenced by platform_romstage_main().
Definition at line 792 of file mt6358.c.
References PMIC_PWRHOLD, and pwrap_write_field().
Referenced by mt6358_init().
Definition at line 853 of file mt6358.c.
References assert, PMIC_VCORE_OP_EN, PMIC_VCORE_VOSEL, pwrap_write_field(), and udelay().
Referenced by mt_mem_init(), and set_vcore_voltage().
Definition at line 903 of file mt6358.c.
References ARRAY_SIZE, assert, pmic_get_efuse_votrim(), PMIC_TOP_TMA_KEY, PMIC_VDDQ_ELR_0, pwrap_write_field(), udelay(), and vddq_votrim.
Referenced by set_vdram1_vddq_voltage().
Definition at line 875 of file mt6358.c.
References assert, PMIC_VDRAM1_OP_EN, PMIC_VDRAM1_VOSEL, pwrap_write_field(), and udelay().
Referenced by set_vdram1_vddq_voltage().
Definition at line 805 of file mt6358.c.
References assert, BUG, PMIC_VSIM2_ANA_CON0, and pwrap_write_field().
Referenced by platform_romstage_main().