![]() |
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.
Functions | |
int | mt6391_configure_ca53_voltage (int uv) |
void | mt6391_configure_ldo (enum ldo_power ldo, enum ldo_voltage vsel) |
void | mt6391_enable_reset_when_ap_resets (void) |
void | mt6391_init (void) |
int | mt6391_gpio_get (u32 gpio) |
void | mt6391_gpio_set (u32 gpio, int value) |
void | mt6391_gpio_input_pulldown (u32 gpio) |
void | mt6391_gpio_input_pullup (u32 gpio) |
void | mt6391_gpio_input (u32 gpio) |
void | mt6391_gpio_output (u32 gpio, int value) |
void | mt6391_gpio_set_pull (u32 gpio, enum mt6391_pull_enable enable, enum mt6391_pull_select select) |
void | mt6391_gpio_set_mode (u32 gpio, int mode) |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
enum ldo_power |
enum ldo_voltage |
enum mt6391_pull_enable |
enum mt6391_pull_select |
int mt6391_configure_ca53_voltage | ( | int | uv | ) |
Definition at line 16 of file mt6391.c.
References assert, PMIC_RG_VCA15_CON10, PMIC_RG_VCA15_CON12, PMIC_RG_VCA15_CON9, pwrap_read_field(), and pwrap_write_field().
Referenced by platform_romstage_main().
void mt6391_configure_ldo | ( | enum ldo_power | ldo, |
enum ldo_voltage | vsel | ||
) |
Definition at line 46 of file mt6391.c.
References addr, assert, LDO_1P0, LDO_1P22, LDO_1P3, LDO_2P0, LDO_3P0, LDO_NUM_VOLTAGES, LDO_VCAMA, LDO_VCAMD, LDO_VGP2, LDO_VGP5, LDO_VGP6, mt6391_configure_vcama(), PMIC_RG_DIGLDO_CON19, PMIC_RG_DIGLDO_CON33, PMIC_RG_DIGLDO_CON5, and pwrap_write_field().
Referenced by configure_audio(), and configure_display().
Definition at line 84 of file mt6391.c.
References PMIC_RG_TOP_RST_MISC, and pwrap_write_field().
Referenced by bootblock_mainboard_init().
int mt6391_gpio_get | ( | u32 | gpio | ) |
Definition at line 503 of file mt6391.c.
References assert, MAX_MT6391_GPIO, MT6391_GPIO_DIN_BASE, pos_bit_calc(), and pwrap_read().
Definition at line 566 of file mt6391.c.
References MT6391_GPIO_DIRECTION_IN, MT6391_GPIO_MODE, MT6391_GPIO_PULL_DISABLE, MT6391_GPIO_PULL_DOWN, mt6391_gpio_set_dir(), mt6391_gpio_set_mode(), and mt6391_gpio_set_pull().
Definition at line 550 of file mt6391.c.
References MT6391_GPIO_DIRECTION_IN, MT6391_GPIO_MODE, MT6391_GPIO_PULL_DOWN, MT6391_GPIO_PULL_ENABLE, mt6391_gpio_set_dir(), mt6391_gpio_set_mode(), and mt6391_gpio_set_pull().
Definition at line 558 of file mt6391.c.
References MT6391_GPIO_DIRECTION_IN, MT6391_GPIO_MODE, MT6391_GPIO_PULL_ENABLE, MT6391_GPIO_PULL_UP, mt6391_gpio_set_dir(), mt6391_gpio_set_mode(), and mt6391_gpio_set_pull().
Definition at line 574 of file mt6391.c.
References MT6391_GPIO_DIRECTION_OUT, MT6391_GPIO_MODE, MT6391_GPIO_PULL_DISABLE, MT6391_GPIO_PULL_DOWN, mt6391_gpio_set(), mt6391_gpio_set_dir(), mt6391_gpio_set_mode(), mt6391_gpio_set_pull(), and value.
Referenced by configure_audio(), configure_ext_buck(), and mainboard_init().
Definition at line 520 of file mt6391.c.
References assert, GPIO_RST_OFFSET, GPIO_SET_OFFSET, MAX_MT6391_GPIO, MT6391_GPIO_DOUT_BASE, pos_bit_calc(), and pwrap_write().
Referenced by mt6391_gpio_output().
Definition at line 538 of file mt6391.c.
References assert, GPIO_MODE_BITS, mask, MAX_MT6391_GPIO, MT6391_GPIO_MODE_BASE, pos_bit_calc_mode(), and pwrap_write_field().
Referenced by mt6391_gpio_input(), mt6391_gpio_input_pulldown(), mt6391_gpio_input_pullup(), and mt6391_gpio_output().
void mt6391_gpio_set_pull | ( | u32 | gpio, |
enum mt6391_pull_enable | enable, | ||
enum mt6391_pull_select | select | ||
) |
Definition at line 480 of file mt6391.c.
References assert, GPIO_RST_OFFSET, GPIO_SET_OFFSET, MAX_MT6391_GPIO, MT6391_GPIO_PULL_DISABLE, MT6391_GPIO_PULL_DOWN, MT6391_GPIO_PULLEN_BASE, MT6391_GPIO_PULLSEL_BASE, pos_bit_calc(), and pwrap_write().
Referenced by mt6391_gpio_input(), mt6391_gpio_input_pulldown(), mt6391_gpio_input_pullup(), mt6391_gpio_output(), and rtc_gpio_init().
Definition at line 416 of file mt6391.c.
References die(), mt6391_default_buck_voltage(), mt6391_init_setting(), and pwrap_init().
Referenced by bootblock_soc_init().