coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
early_config.c File Reference
#include <arch/io.h>
#include <device/pnp_ops.h>
#include <stdint.h>
#include <commonlib/helpers.h>
#include "aspeed.h"
Include dependency graph for early_config.c:

Go to the source code of this file.

Functions

void lpc_read (uint8_t port, uint32_t addr, uint32_t *value)
 
void lpc_write (uint8_t port, uint32_t addr, uint32_t data)
 
void aspeed_early_config (pnp_devfn_t dev, config_data *table, uint8_t count)
 
void aspeed_enable_port80_direct_gpio (pnp_devfn_t dev, gpio_group_sel g)
 
void aspeed_enable_uart_pin (pnp_devfn_t dev)
 

Function Documentation

◆ aspeed_early_config()

void aspeed_early_config ( pnp_devfn_t  dev,
config_data table,
uint8_t  count 
)

Definition at line 76 of file early_config.c.

References ACT_REG, ACTIVATE_VALUE, addr, config_data::and, base, count, lpc_read(), lpc_write(), MEM, config_data::or, pnp_enter_conf_state(), pnp_exit_conf_state(), pnp_read_config(), pnp_set_logical_device(), pnp_write_config(), SIO, and type.

Referenced by aspeed_enable_port80_direct_gpio(), and aspeed_enable_uart_pin().

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

◆ aspeed_enable_port80_direct_gpio()

void aspeed_enable_port80_direct_gpio ( pnp_devfn_t  dev,
gpio_group_sel  g 
)

Definition at line 105 of file early_config.c.

References A_B_C_D_CMD_SOURCE0_REG, A_B_C_D_CMD_SOURCE1_REG, A_B_C_D_DIRECTION_REG, ACT_REG, config_data::and, AndMask32, ARRAY_SIZE, aspeed_early_config(), ASPEED_GPIO_BASE, ASPEED_LPC_BASE, ASPEED_SCU_BASE, config_data::base, E_F_G_H_CMD_SOURCE0_REG, E_F_G_H_CMD_SOURCE1_REG, E_F_G_H_DIRECTION_REG, FRQ_CNT_CTL_REG, GPIOA, GPIOAA, GPIOAB, GPIOB, GPIOC, GPIOD, GPIOE, GPIOF, GPIOG, GPIOH, GPIOI, GPIOJ, GPIOK, GPIOL, GPIOM, GPION, GPIOO, GPIOP, GPIOQ, GPIOR, GPIOS, GPIOT, GPIOU, GPIOV, GPIOW, GPIOX, GPIOY, GPIOZ, HICR5_REG, HW_STRAP_REG, I_J_K_L_CMD_SOURCE0_REG, I_J_K_L_CMD_SOURCE1_REG, I_J_K_L_DIRECTION_REG, LHCR0_REG, LPC, M_N_O_P_CMD_SOURCE0_REG, M_N_O_P_CMD_SOURCE1_REG, M_N_O_P_DIRECTION_REG, MEM, MISC_CTL_REG, MUL_FUNC_PIN_CTL1_REG, MUL_FUNC_PIN_CTL2_REG, MUL_FUNC_PIN_CTL3_REG, MUL_FUNC_PIN_CTL4_REG, MUL_FUNC_PIN_CTL5_REG, MUL_FUNC_PIN_CTL6_REG, MUL_FUNC_PIN_CTL7_REG, MUL_FUNC_PIN_CTL8_REG, MUL_FUNC_PIN_CTL9_REG, NOP, config_data::or, PORT80_GPIO_EN, PORT80_GPIO_SEL_REG, PRO_KEY_PASSWORD, PRO_KEY_REG, Q_R_S_T_CMD_SOURCE0_REG, Q_R_S_T_CMD_SOURCE1_REG, Q_R_S_T_DIRECTION_REG, config_data::reg, SIO, SNOOP_ADDR_EN, SNOOP_ADDR_PORT80, SNPWADR_REG, Step1, Step10, Step11, Step12, Step13, Step2, Step3, Step4, Step5, Step6, Step7, Step8, Step9, TO_BE_UPDATE, config_data::type, U_V_W_X_CMD_SOURCE0_REG, U_V_W_X_CMD_SOURCE1_REG, U_V_W_X_DIRECTION_REG, Y_Z_AA_AB_CMD_SOURCE0_REG, Y_Z_AA_AB_CMD_SOURCE1_REG, and Y_Z_AA_AB_DIRECTION_REG.

Referenced by bootblock_mainboard_early_init().

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

◆ aspeed_enable_uart_pin()

◆ lpc_read()

◆ lpc_write()