![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Data Structures | |
struct | max77686_para |
struct max77686_para - max77686 register parameters More... | |
Macros | |
#define | MAX77686_I2C_ADDR (0x12 >> 1) |
Enumerations | |
enum | max77686_regnum { PMIC_BUCK1 = 0 , PMIC_BUCK2 , PMIC_BUCK3 , PMIC_BUCK4 , PMIC_BUCK5 , PMIC_BUCK6 , PMIC_BUCK7 , PMIC_BUCK8 , PMIC_BUCK9 , PMIC_LDO1 , PMIC_LDO2 , PMIC_LDO3 , PMIC_LDO4 , PMIC_LDO5 , PMIC_LDO6 , PMIC_LDO7 , PMIC_LDO8 , PMIC_LDO9 , PMIC_LDO10 , PMIC_LDO11 , PMIC_LDO12 , PMIC_LDO13 , PMIC_LDO14 , PMIC_LDO15 , PMIC_LDO16 , PMIC_LDO17 , PMIC_LDO18 , PMIC_LDO19 , PMIC_LDO20 , PMIC_LDO21 , PMIC_LDO22 , PMIC_LDO23 , PMIC_LDO24 , PMIC_LDO25 , PMIC_LDO26 , PMIC_EN32KHZ_CP } |
enum | { REG_DISABLE = 0 , REG_ENABLE } |
enum | { MAX77686_MV = 0 , MAX77686_UV } |
Functions | |
int | max77686_enable_32khz_cp (unsigned int bus) |
This function enables the 32KHz coprocessor clock. More... | |
int | max77686_volsetting (unsigned int bus, enum max77686_regnum reg, unsigned int volt, int enable, int volt_units) |
Set the required voltage level of pmic. More... | |
int | max77686_disable_backup_batt (unsigned int bus) |
Disable charging of the RTC backup battery. More... | |
#define MAX77686_I2C_ADDR (0x12 >> 1) |
Definition at line 72 of file max77686.h.
anonymous enum |
Enumerator | |
---|---|
REG_DISABLE | |
REG_ENABLE |
Definition at line 74 of file max77686.h.
anonymous enum |
Enumerator | |
---|---|
MAX77686_MV | |
MAX77686_UV |
Definition at line 79 of file max77686.h.
enum max77686_regnum |
Definition at line 6 of file max77686.h.
int max77686_disable_backup_batt | ( | unsigned int | bus | ) |
Disable charging of the RTC backup battery.
bus | i2c bus |
Definition at line 190 of file max77686.c.
References BBAT_BBCHOSTEN_MASK, BBAT_BBCVS_MASK, BIOS_DEBUG, MAX77686_I2C_ADDR, max77686_i2c_read(), max77686_i2c_write(), printk, REG_BBAT, and val.
Referenced by setup_power().
int max77686_enable_32khz_cp | ( | unsigned int | bus | ) |
This function enables the 32KHz coprocessor clock.
bus | i2c bus |
Return 0 if ok, else -1
Definition at line 185 of file max77686.c.
References max77686_enablereg(), PMIC_EN32KHZ_CP, and REG_ENABLE.
Referenced by setup_power().
int max77686_volsetting | ( | unsigned int | bus, |
enum max77686_regnum | reg, | ||
unsigned int | volt, | ||
int | enable, | ||
int | volt_units | ||
) |
Set the required voltage level of pmic.
bus | i2c bus |
reg | register number of buck/ldo to be set |
volt | voltage level to be set |
enable | enable or disable bit |
volt_units | MAX77686_MV or MAX77686_UV, unit of the voltage parameters |
Definition at line 136 of file max77686.c.
References BIOS_DEBUG, clrsetbits8, max77686_enablereg(), MAX77686_I2C_ADDR, max77686_i2c_read(), max77686_i2c_write(), max77686_param, MAX77686_UV, printk, max77686_para::vol_addr, max77686_para::vol_bitmask, max77686_para::vol_bitpos, max77686_para::vol_div, and max77686_para::vol_min.
Referenced by setup_power().