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

Go to the source code of this file.

Data Structures

struct  config_data
 

Macros

#define ASPEED_MEM_BASE1   0x1E6E0000
 
#define ASPEED_MMC_BASE   (ASPEED_MEM_BASE1)
 
#define ASPEED_USB_BASE   (ASPEED_MEM_BASE1 + 0x1000)
 
#define ASPEED_SCU_BASE   (ASPEED_MEM_BASE1 + 0x2000)
 
#define ASPEED_HACE_BASE   (ASPEED_MEM_BASE1 + 0x3000)
 
#define ASPEED_JTAG_BASE   (ASPEED_MEM_BASE1 + 0x4000)
 
#define ASPEED_GFX_BASE   (ASPEED_MEM_BASE1 + 0x6000)
 
#define ASPEED_X_DMA_BASE   (ASPEED_MEM_BASE1 + 0x7000)
 
#define ASPEED_MCTP_BASE   (ASPEED_MEM_BASE1 + 0x8000)
 
#define ASPEED_ADC_BASE   (ASPEED_MEM_BASE1 + 0x9000)
 
#define ASPEED_LPC_PLUS_BASE   (ASPEED_MEM_BASE1 + 0xC000)
 
#define ASPEED_PCIE_BASE   (ASPEED_MEM_BASE1 + 0xD000)
 
#define ASPEED_ESPI_BASE   (ASPEED_MEM_BASE1 + 0xE000)
 
#define ASPEED_BAT_BASE   (ASPEED_MEM_BASE1 + 0xF000)
 
#define ASPEED_MEM_BASE2   0x1E780000
 
#define ASPEED_GPIO_BASE   (ASPEED_MEM_BASE2)
 
#define ASPEED_RTC_BASE   (ASPEED_MEM_BASE2 + 0x1000)
 
#define ASPEED_TIMER_BASE   (ASPEED_MEM_BASE2 + 0x2000)
 
#define ASPEED_UART1_BASE   (ASPEED_MEM_BASE2 + 0x3000)
 
#define ASPEED_UART5_BASE   (ASPEED_MEM_BASE2 + 0x4000)
 
#define ASPEED_WDT_BASE   (ASPEED_MEM_BASE2 + 0x5000)
 
#define ASPEED_PWM_FAN_BASE   (ASPEED_MEM_BASE2 + 0x6000)
 
#define ASPEED_VUART_BASE   (ASPEED_MEM_BASE2 + 0x7000)
 
#define ASPEED_PUART_BASE   (ASPEED_MEM_BASE2 + 0x8000)
 
#define ASPEED_LPC_BASE   (ASPEED_MEM_BASE2 + 0x9000)
 
#define ASPEED_I2C_BASE   (ASPEED_MEM_BASE2 + 0xA000)
 
#define ASPEED_PECI_BASE   (ASPEED_MEM_BASE2 + 0xB000)
 
#define ASPEED_APB2PCI_BASE   (ASPEED_MEM_BASE2 + 0xC000)
 
#define ASPEED_UART2_BASE   (ASPEED_MEM_BASE2 + 0xD000)
 
#define ASPEED_UART3_BASE   (ASPEED_MEM_BASE2 + 0xE000)
 
#define ASPEED_UART4_BASE   (ASPEED_MEM_BASE2 + 0xF000)
 
#define PRO_KEY_REG   0x00
 
#define PRO_KEY_PASSWORD   0x1688A8A8
 
#define SYS_RESET_CTL_REG   0x04
 
#define CLK_SEL_REG   0x08
 
#define CLK_STOP_CTL_REG   0x0C
 
#define FRQ_CNT_CTL_REG   0x10
 
#define FRQ_CNT_CMP_REG   0x14
 
#define INT_CTL_STS_REG   0x18
 
#define D2_PLL_PARM_REG   0x1C
 
#define M_PLL_PARM_REG   0x20
 
#define H_PLL_PARM_REG   0x24
 
#define D_PLL_PARM_REG   0x28
 
#define MISC_CTL_REG   0x2C
 
#define PCI_CFG_SET_REG1   0x30
 
#define PCI_CFG_SET_REG2   0x34
 
#define PCI_CFG_SET_REG3   0x38
 
#define SYS_RESET_CTL_STS_REG   0x3C
 
#define VGA_FUNC_HANDSHAKE_REG1   0x40
 
#define VGA_FUNC_HANDSHAKE_REG2   0x44
 
#define MAC_CLK_DELAY_SET_REG   0x48
 
#define MISC_2_CTL_REG   0x4C
 
#define VGA_SCRATCH_REG1   0x50
 
#define VGA_SCRATCH_REG2   0x54
 
#define VGA_SCRATCH_REG3   0x58
 
#define VGA_SCRATCH_REG4   0x5C
 
#define VGA_SCRATCH_REG5   0x60
 
#define VGA_SCRATCH_REG6   0x64
 
#define VGA_SCRATCH_REG7   0x68
 
#define VGA_SCRATCH_REG8   0x6C
 
#define HW_STRAP_REG   0x70
 
#define RAN_NUM_GEN_CTL_REG   0x74
 
#define RAN_NUM_GEN_DATA_OUT_REG   0x78
 
#define SILICON_REV_ID_REG   0x7C
 
#define MUL_FUNC_PIN_CTL1_REG   0x80
 
#define UART3_TXD3_EN_BIT   22
 
#define UART3_RXD3_EN_BIT   23
 
#define UART4_TXD4_EN_BIT   30
 
#define UART4_RXD4_EN_BIT   31
 
#define MUL_FUNC_PIN_CTL2_REG   0x84
 
#define UART1_TXD1_EN_BIT   22
 
#define UART1_RXD1_EN_BIT   23
 
#define UART2_TXD2_EN_BIT   30
 
#define UART2_RXD2_EN_BIT   31
 
#define MUL_FUNC_PIN_CTL3_REG   0x88
 
#define MUL_FUNC_PIN_CTL4_REG   0x8C
 
#define MUL_FUNC_PIN_CTL5_REG   0x90
 
#define MUL_FUNC_PIN_CTL6_REG   0x94
 
#define DIGI_VIDEO_OUT_PINS_DIS   0
 
#define DIGI_VIDEO_OUT_PINS_EN   1
 
#define EXTRST_RESET_SEL_REG   0x9C
 
#define MUL_FUNC_PIN_CTL7_REG   0xA0
 
#define MUL_FUNC_PIN_CTL8_REG   0xA4
 
#define MUL_FUNC_PIN_CTL9_REG   0xA8
 
#define MUL_FUNC_PIN_CTL10_REG   0xAC
 
#define MAC_CLK_DELAY_100M_REG   0xB8
 
#define MAC_CLK_DELAY_10M_REG   0xBC
 
#define PWR_SAVE_WAKEUP_EN_REG   0xC0
 
#define PWR_SAVE_WAKEUP_CTL_REG   0xC4
 
#define SYS_RESET_CTL_SET2_REG   0xD4
 
#define CLK_SEL_SET2_REG   0xD8
 
#define CLK_STOP_CTL_SET2_REG   0xDC
 
#define SCU_FREE_RUN_CNT_READ_BACK_REG   0xE0
 
#define SCU_FREE_RUN_CNT_EXT_READ_BACK_REG   0xE4
 
#define CLK_DUTY_MEASURE_CTL_REG   0xE8
 
#define CLK_DUTY_MEASURE_RESULT_REG   0xEC
 
#define CPU2_CTL_REG   0x100
 
#define CPU2_BASE_ADDR_SEG_REG1   0x104
 
#define CPU2_BASE_ADDR_SEG_REG2   0x108
 
#define CPU2_BASE_ADDR_SEG_REG3   0x10C
 
#define CPU2_BASE_ADDR_SEG_REG4   0x110
 
#define CPU2_BASE_ADDR_SEG_REG5   0x114
 
#define CPU2_BASE_ADDR_SEG_REG6   0x118
 
#define CPU2_BASE_ADDR_SEG_REG7   0x11C
 
#define CPU2_BASE_ADDR_SEG_REG8   0x120
 
#define CPU2_BASE_ADDR_SEG_REG9   0x124
 
#define CPU2_CACHE_FUNC_CTL_REG   0x128
 
#define D_PLL_EXT_PARM_REG1   0x130
 
#define D_PLL_EXT_PARM_REG2   0x134
 
#define D_PLL_EXT_PARM_REG3   0x138
 
#define D2_PLL_EXT_PARM_REG1   0x13C
 
#define D2_PLL_EXT_PARM_REG2   0x140
 
#define D2_PLL_EXT_PARM_REG3   0x144
 
#define EXT_PARM_M_H_PLL_REG   0x148
 
#define CHIP_UNIQ_ID_L_REG   0x150
 
#define CHIP_UNIQ_ID_H_REG   0x154
 
#define GEN_UART_24M_H_PLL_REG   0x160
 
#define PCIE_CFG_SET_CTL_REG   0x180
 
#define BMC_MMIO_DECODE_SET_REG   0x184
 
#define FIRST_RELO_CTL_DECODE_AREA_LOCA_REG   0x188
 
#define SECOND_RELO_CTL_DECODE_AREA_LOCA_REG   0x18C
 
#define MAILBOX_DECODE_AREA_LOCA_REG   0x190
 
#define SHARED_SRAM_AREA_DECODE_LOCA_REG1   0x194
 
#define SHARED_SRAM_AREA_DECODE_LOCA_REG2   0x198
 
#define BMC_DEV_CLASS_CODE_REV_ID_REG   0x19C
 
#define BMC_DEV_ID_REG   0x1A4
 
#define CLK_DUTY_SEL_REG   0x1DC
 
#define HICR0_REG   0x00
 
#define HICR1_REG   0x04
 
#define HICR2_REG   0x08
 
#define HICR3_REG   0x0C
 
#define HICR4_REG   0x10
 
#define LADR3H_REG   0x14
 
#define LADR3L_REG   0x18
 
#define LADR12H_REG   0x1C
 
#define LADR12L_REG   0x20
 
#define IDR1_REG   0x24
 
#define IDR2_REG   0x28
 
#define IDR3_REG   0x2C
 
#define ODR1_REG   0x30
 
#define ODR2_REG   0x34
 
#define ODR3_REG   0x38
 
#define STR1_REG   0x3C
 
#define STR2_REG   0x40
 
#define STR3_REG   0x44
 
#define BTR0_REG   0x48
 
#define BRT1_REG   0x4C
 
#define BTCSR0_REG   0x50
 
#define BTCSR1_REG   0x54
 
#define BTCR_REG   0x58
 
#define BTDTR_REG   0x5C
 
#define BTIMSR_REG   0x60
 
#define BTFVSR0_REG   0x64
 
#define BTFVSR1_REG   0x68
 
#define SIRQCR0_REG   0x70
 
#define SIRQCR1_REG   0x74
 
#define SIRQCR2_REG   0x78
 
#define SIRQCR3_REG   0x7C
 
#define HICR5_REG   0x80
 
#define SNOOP_ADDR_EN   0
 
#define HICR6_REG   0x84
 
#define HICR7_REG   0x88
 
#define HICR8_REG   0x8C
 
#define SNPWADR_REG   0x90
 
#define SNOOP_ADDR_PORT80   0x80
 
#define SNPWDR_REG   0x94
 
#define HICR9_REG   0x98
 
#define HICRA_REG   0x9C
 
#define LHCR0_REG   0xA0
 
#define LHCR1_REG   0xA4
 
#define LHCR2_REG   0xA8
 
#define LHCR3_REG   0xAC
 
#define LHCR4_REG   0xB0
 
#define LHCR5_REG   0xB4
 
#define LHCR6_REG   0xB8
 
#define LHCR7_REG   0xBC
 
#define LHCR8_REG   0xC0
 
#define PCCR6_REG   0xC4
 
#define LHCRA_REG   0xC8
 
#define LHCRB_REG   0xCC
 
#define PCCR4_REG   0xD0
 
#define PCCR5_REG   0xD4
 
#define HICRB_REG   0x100
 
#define HICRC_REG   0x104
 
#define HISR0_REG   0x108
 
#define HISR1_REG   0x10C
 
#define LADR4_REG   0x110
 
#define IDR4_REG   0x114
 
#define ODR4_REG   0x118
 
#define STR4_REG   0x11C
 
#define LSADR12_REG   0x120
 
#define IDR5_REG   0x124
 
#define ODR5_REG   0x12C
 
#define PCCR0_REG   0x130
 
#define PCCR1_REG   0x134
 
#define PCCR2_REG   0x138
 
#define PCCR3_REG   0x13C
 
#define IBTCR0_REG   0x140
 
#define IBTCR1_REG   0x144
 
#define IBTCR2_REG   0x148
 
#define IBTCR3_REG   0x14C
 
#define IBTCR4_REG   0x150
 
#define IBTCR5_REG   0x154
 
#define IBTCR6_REG   0x158
 
#define SRUART1_REG   0x160
 
#define SRUART2_REG   0x164
 
#define SRUART3_REG   0x168
 
#define SRUART4_REG   0x16C
 
#define SCR0SIO_REG   0x170
 
#define SCR1SIO_REG   0x174
 
#define SCR2SIO_REG   0x178
 
#define SCR3SIO_REG   0x17C
 
#define SWCR_03_00_REG   0x180
 
#define SWCR_07_04_REG   0x184
 
#define SWCR_0B_08_REG   0x188
 
#define SWCR_0F_0C_REG   0x18C
 
#define SWCR_13_10_REG   0x190
 
#define SWCR_17_14_REG   0x194
 
#define SWCR_1B_18_REG   0x198
 
#define SWCR_1F_1C_REG   0x19C
 
#define ACPI_E3_E0_REG   0x1A0
 
#define ACPI_C1_C0_REG   0x1A4
 
#define ACPI_B3_B0_REG   0x1A8
 
#define ACPI_B7_B4_REG   0x1AC
 
#define MBXDAT_0_REG   0x200
 
#define MBXDAT_1_REG   0x204
 
#define MBXDAT_2_REG   0x208
 
#define MBXDAT_3_REG   0x20C
 
#define MBXDAT_4_REG   0x210
 
#define MBXDAT_5_REG   0x214
 
#define MBXDAT_6_REG   0x218
 
#define MBXDAT_7_REG   0x21C
 
#define MBXDAT_8_REG   0x220
 
#define MBXDAT_9_REG   0x224
 
#define MBXDAT_A_REG   0x228
 
#define MBXDAT_B_REG   0x22C
 
#define MBXDAT_C_REG   0x230
 
#define MBXDAT_D_REG   0x234
 
#define MBXDAT_E_REG   0x238
 
#define MBXDAT_F_REG   0x23C
 
#define MBXSTS_0_REG   0x240
 
#define MBXSTS_1_REG   0x244
 
#define MBXBCR_REG   0x248
 
#define MBXHCR_REG   0x24C
 
#define MBXBIE_0_REG   0x250
 
#define MBXBIE_1_REG   0x254
 
#define MBXHIE_0_REG   0x258
 
#define MBXHIE_1_REG   0x25C
 
#define A_B_C_D_DATA_VALUE_REG   0x00
 
#define A_B_C_D_DIRECTION_REG   0x04
 
#define A_B_C_D_INT_EN_REG   0x08
 
#define A_B_C_D_INT_SEN_T0_REG   0x0C
 
#define A_B_C_D_INT_SEN_T1_REG   0x10
 
#define A_B_C_D_INT_SEN_T2_REG   0x14
 
#define A_B_C_D_INT_STS_REG   0x18
 
#define A_B_C_D_RESET_TOLE_REG   0x1C
 
#define E_F_G_H_DATA_VALUE_REG   0x20
 
#define E_F_G_H_DIRECTION_REG   0x24
 
#define E_F_G_H_INT_EN_REG   0x28
 
#define E_F_G_H_INT_SEN_T0_REG   0x2C
 
#define E_F_G_H_INT_SEN_T1_REG   0x30
 
#define E_F_G_H_INT_SEN_T2_REG   0x34
 
#define E_F_G_H_INT_STS_REG   0x38
 
#define E_F_G_H_RESET_TOLE_REG   0x3C
 
#define A_B_C_D_DEBOUNCE_SET_REG1   0x40
 
#define A_B_C_D_DEBOUNCE_SET_REG2   0x44
 
#define E_F_G_H_DEBOUNCE_SET_REG1   0x48
 
#define E_F_G_H_DEBOUNCE_SET_REG2   0x4C
 
#define DEBOUNCE_TIMER_SET_REG1   0x50
 
#define DEBOUNCE_TIMER_SET_REG2   0x54
 
#define DEBOUNCE_TIMER_SET_REG3   0x58
 
#define A_B_C_D_CMD_SOURCE0_REG   0x60
 
#define A_B_C_D_CMD_SOURCE1_REG   0x64
 
#define E_F_G_H_CMD_SOURCE0_REG   0x68
 
#define E_F_G_H_CMD_SOURCE1_REG   0x6C
 
#define I_J_K_L_DATA_VALUE_REG   0x70
 
#define I_J_K_L_DIRECTION_REG   0x74
 
#define M_N_O_P_DATA_VALUE_REG   0x78
 
#define M_N_O_P_DIRECTION_REG   0x7C
 
#define Q_R_S_T_DATA_VALUE_REG   0x80
 
#define Q_R_S_T_DIRECTION_REG   0x84
 
#define U_V_W_X_DATA_VALUE_REG   0x88
 
#define U_V_W_X_DIRECTION_REG   0x8C
 
#define I_J_K_L_CMD_SOURCE0_REG   0x90
 
#define I_J_K_L_CMD_SOURCE1_REG   0x94
 
#define I_J_K_L_INT_EN_REG   0x98
 
#define I_J_K_L_INT_SEN_T0_REG   0x9C
 
#define I_J_K_L_INT_SEN_T1_REG   0xA0
 
#define I_J_K_L_INT_SEN_T2_REG   0xA4
 
#define I_J_K_L_INT_STS_REG   0xA8
 
#define I_J_K_L_RESET_TOLE_REG   0xAC
 
#define I_J_K_L_DEBOUNCE_SET_REG1   0xB0
 
#define I_J_K_L_DEBOUNCE_SET_REG2   0xB4
 
#define I_J_K_L_INPUT_MASK   0xB8
 
#define A_B_C_D_DATA_READ_REG   0xC0
 
#define E_F_G_H_DATA_READ_REG   0xC4
 
#define I_J_K_L_DATA_READ_REG   0xC8
 
#define M_N_O_P_DATA_READ_REG   0xCC
 
#define Q_R_S_T_DATA_READ_REG   0xD0
 
#define U_V_W_X_DATA_READ_REG   0xD4
 
#define Y_Z_AA_AB_DATA_READ_REG   0xD8
 
#define AC_DATA_READ_REG   0xDC
 
#define M_N_O_P_CMD_SOURCE0_REG   0xE0
 
#define M_N_O_P_CMD_SOURCE1_REG   0xE4
 
#define M_N_O_P_INT_EN_REG   0xE8
 
#define M_N_O_P_INT_SEN_T0_REG   0xEC
 
#define M_N_O_P_INT_SEN_T1_REG   0xF0
 
#define M_N_O_P_INT_SEN_T2_REG   0xF4
 
#define M_N_O_P_INT_STS_REG   0xF8
 
#define M_N_O_P_RESET_TOLE_REG   0xFC
 
#define M_N_O_P_DEBOUNCE_SET_REG1   0x100
 
#define M_N_O_P_DEBOUNCE_SET_REG2   0x104
 
#define M_N_O_P_INPUT_MASK   0x108
 
#define Q_R_S_T_CMD_SOURCE0_REG   0x110
 
#define Q_R_S_T_CMD_SOURCE1_REG   0x114
 
#define Q_R_S_T_INT_EN_REG   0x118
 
#define Q_R_S_T_INT_SEN_T0_REG   0x11C
 
#define Q_R_S_T_INT_SEN_T1_REG   0x120
 
#define Q_R_S_T_INT_SEN_T2_REG   0x124
 
#define Q_R_S_T_INT_STS_REG   0x128
 
#define Q_R_S_T_RESET_TOLE_REG   0x12C
 
#define Q_R_S_T_DEBOUNCE_SET_REG1   0x130
 
#define Q_R_S_T_DEBOUNCE_SET_REG2   0x134
 
#define Q_R_S_T_INPUT_MASK   0x138
 
#define U_V_W_X_CMD_SOURCE0_REG   0x140
 
#define U_V_W_X_CMD_SOURCE1_REG   0x144
 
#define U_V_W_X_INT_EN_REG   0x148
 
#define U_V_W_X_INT_SEN_T0_REG   0x14C
 
#define U_V_W_X_INT_SEN_T1_REG   0x150
 
#define U_V_W_X_INT_SEN_T2_REG   0x154
 
#define U_V_W_X_INT_STS_REG   0x158
 
#define U_V_W_X_RESET_TOLE_REG   0x15C
 
#define U_V_W_X_DEBOUNCE_SET_REG1   0x160
 
#define U_V_W_X_DEBOUNCE_SET_REG2   0x164
 
#define U_V_W_X_INPUT_MASK   0x168
 
#define Y_Z_AA_AB_CMD_SOURCE0_REG   0x170
 
#define Y_Z_AA_AB_CMD_SOURCE1_REG   0x174
 
#define Y_Z_AA_AB_INT_EN_REG   0x178
 
#define Y_Z_AA_AB_INT_SEN_T0_REG   0x17C
 
#define Y_Z_AA_AB_INT_SEN_T1_REG   0x180
 
#define Y_Z_AA_AB_INT_SEN_T2_REG   0x184
 
#define Y_Z_AA_AB_INT_STS_REG   0x188
 
#define Y_Z_AA_AB_RESET_TOLE_REG   0x18C
 
#define Y_Z_AA_AB_DEBOUNCE_SET_REG1   0x190
 
#define Y_Z_AA_AB_DEBOUNCE_SET_REG2   0x194
 
#define Y_Z_AA_AB_INPUT_MASK   0x198
 
#define AC_CMD_SOURCE0_REG   0x1A0
 
#define AC_CMD_SOURCE1_REG   0x1A4
 
#define AC_INT_EN_REG   0x1A8
 
#define AC_INT_SEN_T0_REG   0x1AC
 
#define AC_INT_SEN_T1_REG   0x1B0
 
#define AC_INT_SEN_T2_REG   0x1B4
 
#define AC_INT_STS_REG   0x1B8
 
#define AC_RESET_TOLE_REG   0x1BC
 
#define AC_DEBOUNCE_SET_REG1   0x1C0
 
#define AC_DEBOUNCE_SET_REG2   0x1C4
 
#define AC_INPUT_MASK   0x1C8
 
#define A_B_C_D_INPUT_MASK   0x1D0
 
#define E_F_G_H_INPUT_MASK   0x1D4
 
#define Y_Z_AA_AB_DATA_VALUE_REG   0x1E0
 
#define Y_Z_AA_AB_DIRECTION_REG   0x1E4
 
#define AC_DATA_VALUE_REG   0x1E8
 
#define AC_DIRECTION_REG   0x1EC
 
#define LDN_ILPC2AHB   0xD
 
#define LDN_SUART1   0x02
 
#define LDN_SUART2   0x03
 
#define LDN_SUART3   0x0B
 
#define LDN_SUART4   0x0C
 
#define LDN_SEL_REG   0x07
 
#define ACT_REG   0x30
 
#define ACTIVATE_VALUE   0x01
 
#define DEACTIVATE_VALUE   0x00
 
#define PORT80_GPIO_EN   0x80
 
#define PORT80_GPIO_SEL_REG   0x38
 
#define INV_GPIO_EN   0x80
 
#define LPC2AHB_ADD0_REG   0xF0
 
#define LPC2AHB_ADD1_REG   0xF1
 
#define LPC2AHB_ADD2_REG   0xF2
 
#define LPC2AHB_ADD3_REG   0xF3
 
#define LPC2AHB_DAT0_REG   0xF4
 
#define LPC2AHB_DAT1_REG   0xF5
 
#define LPC2AHB_DAT2_REG   0xF6
 
#define LPC2AHB_DAT3_REG   0xF7
 
#define LPC2AHB_LEN_REG   0xF8
 
#define LPC2AHB_1_BYTE   0x00
 
#define LPC2AHB_2_BYTE   0x01
 
#define LPC2AHB_4_BYTE   0x02
 
#define LPC2AHB_RW_REG   0xFE
 
#define ASPEED_ENTRY_KEY   0xA5
 
#define ASPEED_EXIT_KEY   0xAA
 
#define TO_BE_UPDATE   0
 
#define AndMask32(HighBit, LowBit)   ~((((uint32_t) 1 << (HighBit - LowBit + 1)) - 1) << LowBit)
 

Typedefs

typedef struct config_data config_data
 

Enumerations

enum  gpio_group_sel {
  GPIOA = 0 , 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 , GPIOAA , GPIOAB
}
 
enum  {
  Step1 = 0 , Step2 , Step3 , Step4 ,
  Step5 , Step6 , Step7 , Step8 ,
  Step9 , Step10 , Step11 , Step12 ,
  Step13 , Step14 , Step15 , Step16 ,
  Step17 , Step18 , Step19 , Step20
}
 
enum  { ARM = 0 , LPC , CoprocessorCPU , Reserved }
 
enum  config_type {
  PCIE_CONFIG_UNKNOWN = 0x0 , PCIE_CONFIG_A = 0x1 , PCIE_CONFIG_B = 0x2 , PCIE_CONFIG_C = 0x3 ,
  PCIE_CONFIG_D = 0x4 , SIO = 0 , MEM , NOP
}
 

Functions

void aspeed_enable_serial (pnp_devfn_t dev, uint16_t iobase)
 
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)
 
void pnp_enter_conf_state (pnp_devfn_t dev)
 
void pnp_exit_conf_state (pnp_devfn_t dev)
 
void lpc_read (uint8_t port, uint32_t addr, uint32_t *value)
 
void lpc_write (uint8_t port, uint32_t addr, uint32_t data)
 

Macro Definition Documentation

◆ A_B_C_D_CMD_SOURCE0_REG

#define A_B_C_D_CMD_SOURCE0_REG   0x60

Definition at line 287 of file aspeed.h.

◆ A_B_C_D_CMD_SOURCE1_REG

#define A_B_C_D_CMD_SOURCE1_REG   0x64

Definition at line 288 of file aspeed.h.

◆ A_B_C_D_DATA_READ_REG

#define A_B_C_D_DATA_READ_REG   0xC0

Definition at line 310 of file aspeed.h.

◆ A_B_C_D_DATA_VALUE_REG

#define A_B_C_D_DATA_VALUE_REG   0x00

Definition at line 264 of file aspeed.h.

◆ A_B_C_D_DEBOUNCE_SET_REG1

#define A_B_C_D_DEBOUNCE_SET_REG1   0x40

Definition at line 280 of file aspeed.h.

◆ A_B_C_D_DEBOUNCE_SET_REG2

#define A_B_C_D_DEBOUNCE_SET_REG2   0x44

Definition at line 281 of file aspeed.h.

◆ A_B_C_D_DIRECTION_REG

#define A_B_C_D_DIRECTION_REG   0x04

Definition at line 265 of file aspeed.h.

◆ A_B_C_D_INPUT_MASK

#define A_B_C_D_INPUT_MASK   0x1D0

Definition at line 373 of file aspeed.h.

◆ A_B_C_D_INT_EN_REG

#define A_B_C_D_INT_EN_REG   0x08

Definition at line 266 of file aspeed.h.

◆ A_B_C_D_INT_SEN_T0_REG

#define A_B_C_D_INT_SEN_T0_REG   0x0C

Definition at line 267 of file aspeed.h.

◆ A_B_C_D_INT_SEN_T1_REG

#define A_B_C_D_INT_SEN_T1_REG   0x10

Definition at line 268 of file aspeed.h.

◆ A_B_C_D_INT_SEN_T2_REG

#define A_B_C_D_INT_SEN_T2_REG   0x14

Definition at line 269 of file aspeed.h.

◆ A_B_C_D_INT_STS_REG

#define A_B_C_D_INT_STS_REG   0x18

Definition at line 270 of file aspeed.h.

◆ A_B_C_D_RESET_TOLE_REG

#define A_B_C_D_RESET_TOLE_REG   0x1C

Definition at line 271 of file aspeed.h.

◆ AC_CMD_SOURCE0_REG

#define AC_CMD_SOURCE0_REG   0x1A0

Definition at line 362 of file aspeed.h.

◆ AC_CMD_SOURCE1_REG

#define AC_CMD_SOURCE1_REG   0x1A4

Definition at line 363 of file aspeed.h.

◆ AC_DATA_READ_REG

#define AC_DATA_READ_REG   0xDC

Definition at line 317 of file aspeed.h.

◆ AC_DATA_VALUE_REG

#define AC_DATA_VALUE_REG   0x1E8

Definition at line 377 of file aspeed.h.

◆ AC_DEBOUNCE_SET_REG1

#define AC_DEBOUNCE_SET_REG1   0x1C0

Definition at line 370 of file aspeed.h.

◆ AC_DEBOUNCE_SET_REG2

#define AC_DEBOUNCE_SET_REG2   0x1C4

Definition at line 371 of file aspeed.h.

◆ AC_DIRECTION_REG

#define AC_DIRECTION_REG   0x1EC

Definition at line 378 of file aspeed.h.

◆ AC_INPUT_MASK

#define AC_INPUT_MASK   0x1C8

Definition at line 372 of file aspeed.h.

◆ AC_INT_EN_REG

#define AC_INT_EN_REG   0x1A8

Definition at line 364 of file aspeed.h.

◆ AC_INT_SEN_T0_REG

#define AC_INT_SEN_T0_REG   0x1AC

Definition at line 365 of file aspeed.h.

◆ AC_INT_SEN_T1_REG

#define AC_INT_SEN_T1_REG   0x1B0

Definition at line 366 of file aspeed.h.

◆ AC_INT_SEN_T2_REG

#define AC_INT_SEN_T2_REG   0x1B4

Definition at line 367 of file aspeed.h.

◆ AC_INT_STS_REG

#define AC_INT_STS_REG   0x1B8

Definition at line 368 of file aspeed.h.

◆ AC_RESET_TOLE_REG

#define AC_RESET_TOLE_REG   0x1BC

Definition at line 369 of file aspeed.h.

◆ ACPI_B3_B0_REG

#define ACPI_B3_B0_REG   0x1A8

Definition at line 236 of file aspeed.h.

◆ ACPI_B7_B4_REG

#define ACPI_B7_B4_REG   0x1AC

Definition at line 237 of file aspeed.h.

◆ ACPI_C1_C0_REG

#define ACPI_C1_C0_REG   0x1A4

Definition at line 235 of file aspeed.h.

◆ ACPI_E3_E0_REG

#define ACPI_E3_E0_REG   0x1A0

Definition at line 234 of file aspeed.h.

◆ ACT_REG

#define ACT_REG   0x30

Definition at line 387 of file aspeed.h.

◆ ACTIVATE_VALUE

#define ACTIVATE_VALUE   0x01

Definition at line 388 of file aspeed.h.

◆ AndMask32

#define AndMask32 (   HighBit,
  LowBit 
)    ~((((uint32_t) 1 << (HighBit - LowBit + 1)) - 1) << LowBit)

Definition at line 411 of file aspeed.h.

◆ ASPEED_ADC_BASE

#define ASPEED_ADC_BASE   (ASPEED_MEM_BASE1 + 0x9000)

Definition at line 19 of file aspeed.h.

◆ ASPEED_APB2PCI_BASE

#define ASPEED_APB2PCI_BASE   (ASPEED_MEM_BASE2 + 0xC000)

Definition at line 37 of file aspeed.h.

◆ ASPEED_BAT_BASE

#define ASPEED_BAT_BASE   (ASPEED_MEM_BASE1 + 0xF000)

Definition at line 23 of file aspeed.h.

◆ ASPEED_ENTRY_KEY

#define ASPEED_ENTRY_KEY   0xA5

Definition at line 407 of file aspeed.h.

◆ ASPEED_ESPI_BASE

#define ASPEED_ESPI_BASE   (ASPEED_MEM_BASE1 + 0xE000)

Definition at line 22 of file aspeed.h.

◆ ASPEED_EXIT_KEY

#define ASPEED_EXIT_KEY   0xAA

Definition at line 408 of file aspeed.h.

◆ ASPEED_GFX_BASE

#define ASPEED_GFX_BASE   (ASPEED_MEM_BASE1 + 0x6000)

Definition at line 16 of file aspeed.h.

◆ ASPEED_GPIO_BASE

#define ASPEED_GPIO_BASE   (ASPEED_MEM_BASE2)

Definition at line 25 of file aspeed.h.

◆ ASPEED_HACE_BASE

#define ASPEED_HACE_BASE   (ASPEED_MEM_BASE1 + 0x3000)

Definition at line 14 of file aspeed.h.

◆ ASPEED_I2C_BASE

#define ASPEED_I2C_BASE   (ASPEED_MEM_BASE2 + 0xA000)

Definition at line 35 of file aspeed.h.

◆ ASPEED_JTAG_BASE

#define ASPEED_JTAG_BASE   (ASPEED_MEM_BASE1 + 0x4000)

Definition at line 15 of file aspeed.h.

◆ ASPEED_LPC_BASE

#define ASPEED_LPC_BASE   (ASPEED_MEM_BASE2 + 0x9000)

Definition at line 34 of file aspeed.h.

◆ ASPEED_LPC_PLUS_BASE

#define ASPEED_LPC_PLUS_BASE   (ASPEED_MEM_BASE1 + 0xC000)

Definition at line 20 of file aspeed.h.

◆ ASPEED_MCTP_BASE

#define ASPEED_MCTP_BASE   (ASPEED_MEM_BASE1 + 0x8000)

Definition at line 18 of file aspeed.h.

◆ ASPEED_MEM_BASE1

#define ASPEED_MEM_BASE1   0x1E6E0000

Definition at line 10 of file aspeed.h.

◆ ASPEED_MEM_BASE2

#define ASPEED_MEM_BASE2   0x1E780000

Definition at line 24 of file aspeed.h.

◆ ASPEED_MMC_BASE

#define ASPEED_MMC_BASE   (ASPEED_MEM_BASE1)

Definition at line 11 of file aspeed.h.

◆ ASPEED_PCIE_BASE

#define ASPEED_PCIE_BASE   (ASPEED_MEM_BASE1 + 0xD000)

Definition at line 21 of file aspeed.h.

◆ ASPEED_PECI_BASE

#define ASPEED_PECI_BASE   (ASPEED_MEM_BASE2 + 0xB000)

Definition at line 36 of file aspeed.h.

◆ ASPEED_PUART_BASE

#define ASPEED_PUART_BASE   (ASPEED_MEM_BASE2 + 0x8000)

Definition at line 33 of file aspeed.h.

◆ ASPEED_PWM_FAN_BASE

#define ASPEED_PWM_FAN_BASE   (ASPEED_MEM_BASE2 + 0x6000)

Definition at line 31 of file aspeed.h.

◆ ASPEED_RTC_BASE

#define ASPEED_RTC_BASE   (ASPEED_MEM_BASE2 + 0x1000)

Definition at line 26 of file aspeed.h.

◆ ASPEED_SCU_BASE

#define ASPEED_SCU_BASE   (ASPEED_MEM_BASE1 + 0x2000)

Definition at line 13 of file aspeed.h.

◆ ASPEED_TIMER_BASE

#define ASPEED_TIMER_BASE   (ASPEED_MEM_BASE2 + 0x2000)

Definition at line 27 of file aspeed.h.

◆ ASPEED_UART1_BASE

#define ASPEED_UART1_BASE   (ASPEED_MEM_BASE2 + 0x3000)

Definition at line 28 of file aspeed.h.

◆ ASPEED_UART2_BASE

#define ASPEED_UART2_BASE   (ASPEED_MEM_BASE2 + 0xD000)

Definition at line 38 of file aspeed.h.

◆ ASPEED_UART3_BASE

#define ASPEED_UART3_BASE   (ASPEED_MEM_BASE2 + 0xE000)

Definition at line 39 of file aspeed.h.

◆ ASPEED_UART4_BASE

#define ASPEED_UART4_BASE   (ASPEED_MEM_BASE2 + 0xF000)

Definition at line 40 of file aspeed.h.

◆ ASPEED_UART5_BASE

#define ASPEED_UART5_BASE   (ASPEED_MEM_BASE2 + 0x4000)

Definition at line 29 of file aspeed.h.

◆ ASPEED_USB_BASE

#define ASPEED_USB_BASE   (ASPEED_MEM_BASE1 + 0x1000)

Definition at line 12 of file aspeed.h.

◆ ASPEED_VUART_BASE

#define ASPEED_VUART_BASE   (ASPEED_MEM_BASE2 + 0x7000)

Definition at line 32 of file aspeed.h.

◆ ASPEED_WDT_BASE

#define ASPEED_WDT_BASE   (ASPEED_MEM_BASE2 + 0x5000)

Definition at line 30 of file aspeed.h.

◆ ASPEED_X_DMA_BASE

#define ASPEED_X_DMA_BASE   (ASPEED_MEM_BASE1 + 0x7000)

Definition at line 17 of file aspeed.h.

◆ BMC_DEV_CLASS_CODE_REV_ID_REG

#define BMC_DEV_CLASS_CODE_REV_ID_REG   0x19C

Definition at line 136 of file aspeed.h.

◆ BMC_DEV_ID_REG

#define BMC_DEV_ID_REG   0x1A4

Definition at line 137 of file aspeed.h.

◆ BMC_MMIO_DECODE_SET_REG

#define BMC_MMIO_DECODE_SET_REG   0x184

Definition at line 130 of file aspeed.h.

◆ BRT1_REG

#define BRT1_REG   0x4C

Definition at line 160 of file aspeed.h.

◆ BTCR_REG

#define BTCR_REG   0x58

Definition at line 163 of file aspeed.h.

◆ BTCSR0_REG

#define BTCSR0_REG   0x50

Definition at line 161 of file aspeed.h.

◆ BTCSR1_REG

#define BTCSR1_REG   0x54

Definition at line 162 of file aspeed.h.

◆ BTDTR_REG

#define BTDTR_REG   0x5C

Definition at line 164 of file aspeed.h.

◆ BTFVSR0_REG

#define BTFVSR0_REG   0x64

Definition at line 166 of file aspeed.h.

◆ BTFVSR1_REG

#define BTFVSR1_REG   0x68

Definition at line 167 of file aspeed.h.

◆ BTIMSR_REG

#define BTIMSR_REG   0x60

Definition at line 165 of file aspeed.h.

◆ BTR0_REG

#define BTR0_REG   0x48

Definition at line 159 of file aspeed.h.

◆ CHIP_UNIQ_ID_H_REG

#define CHIP_UNIQ_ID_H_REG   0x154

Definition at line 127 of file aspeed.h.

◆ CHIP_UNIQ_ID_L_REG

#define CHIP_UNIQ_ID_L_REG   0x150

Definition at line 126 of file aspeed.h.

◆ CLK_DUTY_MEASURE_CTL_REG

#define CLK_DUTY_MEASURE_CTL_REG   0xE8

Definition at line 106 of file aspeed.h.

◆ CLK_DUTY_MEASURE_RESULT_REG

#define CLK_DUTY_MEASURE_RESULT_REG   0xEC

Definition at line 107 of file aspeed.h.

◆ CLK_DUTY_SEL_REG

#define CLK_DUTY_SEL_REG   0x1DC

Definition at line 138 of file aspeed.h.

◆ CLK_SEL_REG

#define CLK_SEL_REG   0x08

Definition at line 46 of file aspeed.h.

◆ CLK_SEL_SET2_REG

#define CLK_SEL_SET2_REG   0xD8

Definition at line 102 of file aspeed.h.

◆ CLK_STOP_CTL_REG

#define CLK_STOP_CTL_REG   0x0C

Definition at line 47 of file aspeed.h.

◆ CLK_STOP_CTL_SET2_REG

#define CLK_STOP_CTL_SET2_REG   0xDC

Definition at line 103 of file aspeed.h.

◆ CPU2_BASE_ADDR_SEG_REG1

#define CPU2_BASE_ADDR_SEG_REG1   0x104

Definition at line 109 of file aspeed.h.

◆ CPU2_BASE_ADDR_SEG_REG2

#define CPU2_BASE_ADDR_SEG_REG2   0x108

Definition at line 110 of file aspeed.h.

◆ CPU2_BASE_ADDR_SEG_REG3

#define CPU2_BASE_ADDR_SEG_REG3   0x10C

Definition at line 111 of file aspeed.h.

◆ CPU2_BASE_ADDR_SEG_REG4

#define CPU2_BASE_ADDR_SEG_REG4   0x110

Definition at line 112 of file aspeed.h.

◆ CPU2_BASE_ADDR_SEG_REG5

#define CPU2_BASE_ADDR_SEG_REG5   0x114

Definition at line 113 of file aspeed.h.

◆ CPU2_BASE_ADDR_SEG_REG6

#define CPU2_BASE_ADDR_SEG_REG6   0x118

Definition at line 114 of file aspeed.h.

◆ CPU2_BASE_ADDR_SEG_REG7

#define CPU2_BASE_ADDR_SEG_REG7   0x11C

Definition at line 115 of file aspeed.h.

◆ CPU2_BASE_ADDR_SEG_REG8

#define CPU2_BASE_ADDR_SEG_REG8   0x120

Definition at line 116 of file aspeed.h.

◆ CPU2_BASE_ADDR_SEG_REG9

#define CPU2_BASE_ADDR_SEG_REG9   0x124

Definition at line 117 of file aspeed.h.

◆ CPU2_CACHE_FUNC_CTL_REG

#define CPU2_CACHE_FUNC_CTL_REG   0x128

Definition at line 118 of file aspeed.h.

◆ CPU2_CTL_REG

#define CPU2_CTL_REG   0x100

Definition at line 108 of file aspeed.h.

◆ D2_PLL_EXT_PARM_REG1

#define D2_PLL_EXT_PARM_REG1   0x13C

Definition at line 122 of file aspeed.h.

◆ D2_PLL_EXT_PARM_REG2

#define D2_PLL_EXT_PARM_REG2   0x140

Definition at line 123 of file aspeed.h.

◆ D2_PLL_EXT_PARM_REG3

#define D2_PLL_EXT_PARM_REG3   0x144

Definition at line 124 of file aspeed.h.

◆ D2_PLL_PARM_REG

#define D2_PLL_PARM_REG   0x1C

Definition at line 51 of file aspeed.h.

◆ D_PLL_EXT_PARM_REG1

#define D_PLL_EXT_PARM_REG1   0x130

Definition at line 119 of file aspeed.h.

◆ D_PLL_EXT_PARM_REG2

#define D_PLL_EXT_PARM_REG2   0x134

Definition at line 120 of file aspeed.h.

◆ D_PLL_EXT_PARM_REG3

#define D_PLL_EXT_PARM_REG3   0x138

Definition at line 121 of file aspeed.h.

◆ D_PLL_PARM_REG

#define D_PLL_PARM_REG   0x28

Definition at line 54 of file aspeed.h.

◆ DEACTIVATE_VALUE

#define DEACTIVATE_VALUE   0x00

Definition at line 389 of file aspeed.h.

◆ DEBOUNCE_TIMER_SET_REG1

#define DEBOUNCE_TIMER_SET_REG1   0x50

Definition at line 284 of file aspeed.h.

◆ DEBOUNCE_TIMER_SET_REG2

#define DEBOUNCE_TIMER_SET_REG2   0x54

Definition at line 285 of file aspeed.h.

◆ DEBOUNCE_TIMER_SET_REG3

#define DEBOUNCE_TIMER_SET_REG3   0x58

Definition at line 286 of file aspeed.h.

◆ DIGI_VIDEO_OUT_PINS_DIS

#define DIGI_VIDEO_OUT_PINS_DIS   0

Definition at line 90 of file aspeed.h.

◆ DIGI_VIDEO_OUT_PINS_EN

#define DIGI_VIDEO_OUT_PINS_EN   1

Definition at line 91 of file aspeed.h.

◆ E_F_G_H_CMD_SOURCE0_REG

#define E_F_G_H_CMD_SOURCE0_REG   0x68

Definition at line 289 of file aspeed.h.

◆ E_F_G_H_CMD_SOURCE1_REG

#define E_F_G_H_CMD_SOURCE1_REG   0x6C

Definition at line 290 of file aspeed.h.

◆ E_F_G_H_DATA_READ_REG

#define E_F_G_H_DATA_READ_REG   0xC4

Definition at line 311 of file aspeed.h.

◆ E_F_G_H_DATA_VALUE_REG

#define E_F_G_H_DATA_VALUE_REG   0x20

Definition at line 272 of file aspeed.h.

◆ E_F_G_H_DEBOUNCE_SET_REG1

#define E_F_G_H_DEBOUNCE_SET_REG1   0x48

Definition at line 282 of file aspeed.h.

◆ E_F_G_H_DEBOUNCE_SET_REG2

#define E_F_G_H_DEBOUNCE_SET_REG2   0x4C

Definition at line 283 of file aspeed.h.

◆ E_F_G_H_DIRECTION_REG

#define E_F_G_H_DIRECTION_REG   0x24

Definition at line 273 of file aspeed.h.

◆ E_F_G_H_INPUT_MASK

#define E_F_G_H_INPUT_MASK   0x1D4

Definition at line 374 of file aspeed.h.

◆ E_F_G_H_INT_EN_REG

#define E_F_G_H_INT_EN_REG   0x28

Definition at line 274 of file aspeed.h.

◆ E_F_G_H_INT_SEN_T0_REG

#define E_F_G_H_INT_SEN_T0_REG   0x2C

Definition at line 275 of file aspeed.h.

◆ E_F_G_H_INT_SEN_T1_REG

#define E_F_G_H_INT_SEN_T1_REG   0x30

Definition at line 276 of file aspeed.h.

◆ E_F_G_H_INT_SEN_T2_REG

#define E_F_G_H_INT_SEN_T2_REG   0x34

Definition at line 277 of file aspeed.h.

◆ E_F_G_H_INT_STS_REG

#define E_F_G_H_INT_STS_REG   0x38

Definition at line 278 of file aspeed.h.

◆ E_F_G_H_RESET_TOLE_REG

#define E_F_G_H_RESET_TOLE_REG   0x3C

Definition at line 279 of file aspeed.h.

◆ EXT_PARM_M_H_PLL_REG

#define EXT_PARM_M_H_PLL_REG   0x148

Definition at line 125 of file aspeed.h.

◆ EXTRST_RESET_SEL_REG

#define EXTRST_RESET_SEL_REG   0x9C

Definition at line 92 of file aspeed.h.

◆ FIRST_RELO_CTL_DECODE_AREA_LOCA_REG

#define FIRST_RELO_CTL_DECODE_AREA_LOCA_REG   0x188

Definition at line 131 of file aspeed.h.

◆ FRQ_CNT_CMP_REG

#define FRQ_CNT_CMP_REG   0x14

Definition at line 49 of file aspeed.h.

◆ FRQ_CNT_CTL_REG

#define FRQ_CNT_CTL_REG   0x10

Definition at line 48 of file aspeed.h.

◆ GEN_UART_24M_H_PLL_REG

#define GEN_UART_24M_H_PLL_REG   0x160

Definition at line 128 of file aspeed.h.

◆ H_PLL_PARM_REG

#define H_PLL_PARM_REG   0x24

Definition at line 53 of file aspeed.h.

◆ HICR0_REG

#define HICR0_REG   0x00

Definition at line 141 of file aspeed.h.

◆ HICR1_REG

#define HICR1_REG   0x04

Definition at line 142 of file aspeed.h.

◆ HICR2_REG

#define HICR2_REG   0x08

Definition at line 143 of file aspeed.h.

◆ HICR3_REG

#define HICR3_REG   0x0C

Definition at line 144 of file aspeed.h.

◆ HICR4_REG

#define HICR4_REG   0x10

Definition at line 145 of file aspeed.h.

◆ HICR5_REG

#define HICR5_REG   0x80

Definition at line 172 of file aspeed.h.

◆ HICR6_REG

#define HICR6_REG   0x84

Definition at line 174 of file aspeed.h.

◆ HICR7_REG

#define HICR7_REG   0x88

Definition at line 175 of file aspeed.h.

◆ HICR8_REG

#define HICR8_REG   0x8C

Definition at line 176 of file aspeed.h.

◆ HICR9_REG

#define HICR9_REG   0x98

Definition at line 180 of file aspeed.h.

◆ HICRA_REG

#define HICRA_REG   0x9C

Definition at line 181 of file aspeed.h.

◆ HICRB_REG

#define HICRB_REG   0x100

Definition at line 196 of file aspeed.h.

◆ HICRC_REG

#define HICRC_REG   0x104

Definition at line 197 of file aspeed.h.

◆ HISR0_REG

#define HISR0_REG   0x108

Definition at line 198 of file aspeed.h.

◆ HISR1_REG

#define HISR1_REG   0x10C

Definition at line 199 of file aspeed.h.

◆ HW_STRAP_REG

#define HW_STRAP_REG   0x70

Definition at line 72 of file aspeed.h.

◆ I_J_K_L_CMD_SOURCE0_REG

#define I_J_K_L_CMD_SOURCE0_REG   0x90

Definition at line 299 of file aspeed.h.

◆ I_J_K_L_CMD_SOURCE1_REG

#define I_J_K_L_CMD_SOURCE1_REG   0x94

Definition at line 300 of file aspeed.h.

◆ I_J_K_L_DATA_READ_REG

#define I_J_K_L_DATA_READ_REG   0xC8

Definition at line 312 of file aspeed.h.

◆ I_J_K_L_DATA_VALUE_REG

#define I_J_K_L_DATA_VALUE_REG   0x70

Definition at line 291 of file aspeed.h.

◆ I_J_K_L_DEBOUNCE_SET_REG1

#define I_J_K_L_DEBOUNCE_SET_REG1   0xB0

Definition at line 307 of file aspeed.h.

◆ I_J_K_L_DEBOUNCE_SET_REG2

#define I_J_K_L_DEBOUNCE_SET_REG2   0xB4

Definition at line 308 of file aspeed.h.

◆ I_J_K_L_DIRECTION_REG

#define I_J_K_L_DIRECTION_REG   0x74

Definition at line 292 of file aspeed.h.

◆ I_J_K_L_INPUT_MASK

#define I_J_K_L_INPUT_MASK   0xB8

Definition at line 309 of file aspeed.h.

◆ I_J_K_L_INT_EN_REG

#define I_J_K_L_INT_EN_REG   0x98

Definition at line 301 of file aspeed.h.

◆ I_J_K_L_INT_SEN_T0_REG

#define I_J_K_L_INT_SEN_T0_REG   0x9C

Definition at line 302 of file aspeed.h.

◆ I_J_K_L_INT_SEN_T1_REG

#define I_J_K_L_INT_SEN_T1_REG   0xA0

Definition at line 303 of file aspeed.h.

◆ I_J_K_L_INT_SEN_T2_REG

#define I_J_K_L_INT_SEN_T2_REG   0xA4

Definition at line 304 of file aspeed.h.

◆ I_J_K_L_INT_STS_REG

#define I_J_K_L_INT_STS_REG   0xA8

Definition at line 305 of file aspeed.h.

◆ I_J_K_L_RESET_TOLE_REG

#define I_J_K_L_RESET_TOLE_REG   0xAC

Definition at line 306 of file aspeed.h.

◆ IBTCR0_REG

#define IBTCR0_REG   0x140

Definition at line 211 of file aspeed.h.

◆ IBTCR1_REG

#define IBTCR1_REG   0x144

Definition at line 212 of file aspeed.h.

◆ IBTCR2_REG

#define IBTCR2_REG   0x148

Definition at line 213 of file aspeed.h.

◆ IBTCR3_REG

#define IBTCR3_REG   0x14C

Definition at line 214 of file aspeed.h.

◆ IBTCR4_REG

#define IBTCR4_REG   0x150

Definition at line 215 of file aspeed.h.

◆ IBTCR5_REG

#define IBTCR5_REG   0x154

Definition at line 216 of file aspeed.h.

◆ IBTCR6_REG

#define IBTCR6_REG   0x158

Definition at line 217 of file aspeed.h.

◆ IDR1_REG

#define IDR1_REG   0x24

Definition at line 150 of file aspeed.h.

◆ IDR2_REG

#define IDR2_REG   0x28

Definition at line 151 of file aspeed.h.

◆ IDR3_REG

#define IDR3_REG   0x2C

Definition at line 152 of file aspeed.h.

◆ IDR4_REG

#define IDR4_REG   0x114

Definition at line 201 of file aspeed.h.

◆ IDR5_REG

#define IDR5_REG   0x124

Definition at line 205 of file aspeed.h.

◆ INT_CTL_STS_REG

#define INT_CTL_STS_REG   0x18

Definition at line 50 of file aspeed.h.

◆ INV_GPIO_EN

#define INV_GPIO_EN   0x80

Definition at line 392 of file aspeed.h.

◆ LADR12H_REG

#define LADR12H_REG   0x1C

Definition at line 148 of file aspeed.h.

◆ LADR12L_REG

#define LADR12L_REG   0x20

Definition at line 149 of file aspeed.h.

◆ LADR3H_REG

#define LADR3H_REG   0x14

Definition at line 146 of file aspeed.h.

◆ LADR3L_REG

#define LADR3L_REG   0x18

Definition at line 147 of file aspeed.h.

◆ LADR4_REG

#define LADR4_REG   0x110

Definition at line 200 of file aspeed.h.

◆ LDN_ILPC2AHB

#define LDN_ILPC2AHB   0xD

Definition at line 381 of file aspeed.h.

◆ LDN_SEL_REG

#define LDN_SEL_REG   0x07

Definition at line 386 of file aspeed.h.

◆ LDN_SUART1

#define LDN_SUART1   0x02

Definition at line 382 of file aspeed.h.

◆ LDN_SUART2

#define LDN_SUART2   0x03

Definition at line 383 of file aspeed.h.

◆ LDN_SUART3

#define LDN_SUART3   0x0B

Definition at line 384 of file aspeed.h.

◆ LDN_SUART4

#define LDN_SUART4   0x0C

Definition at line 385 of file aspeed.h.

◆ LHCR0_REG

#define LHCR0_REG   0xA0

Definition at line 182 of file aspeed.h.

◆ LHCR1_REG

#define LHCR1_REG   0xA4

Definition at line 183 of file aspeed.h.

◆ LHCR2_REG

#define LHCR2_REG   0xA8

Definition at line 184 of file aspeed.h.

◆ LHCR3_REG

#define LHCR3_REG   0xAC

Definition at line 185 of file aspeed.h.

◆ LHCR4_REG

#define LHCR4_REG   0xB0

Definition at line 186 of file aspeed.h.

◆ LHCR5_REG

#define LHCR5_REG   0xB4

Definition at line 187 of file aspeed.h.

◆ LHCR6_REG

#define LHCR6_REG   0xB8

Definition at line 188 of file aspeed.h.

◆ LHCR7_REG

#define LHCR7_REG   0xBC

Definition at line 189 of file aspeed.h.

◆ LHCR8_REG

#define LHCR8_REG   0xC0

Definition at line 190 of file aspeed.h.

◆ LHCRA_REG

#define LHCRA_REG   0xC8

Definition at line 192 of file aspeed.h.

◆ LHCRB_REG

#define LHCRB_REG   0xCC

Definition at line 193 of file aspeed.h.

◆ LPC2AHB_1_BYTE

#define LPC2AHB_1_BYTE   0x00

Definition at line 402 of file aspeed.h.

◆ LPC2AHB_2_BYTE

#define LPC2AHB_2_BYTE   0x01

Definition at line 403 of file aspeed.h.

◆ LPC2AHB_4_BYTE

#define LPC2AHB_4_BYTE   0x02

Definition at line 404 of file aspeed.h.

◆ LPC2AHB_ADD0_REG

#define LPC2AHB_ADD0_REG   0xF0

Definition at line 393 of file aspeed.h.

◆ LPC2AHB_ADD1_REG

#define LPC2AHB_ADD1_REG   0xF1

Definition at line 394 of file aspeed.h.

◆ LPC2AHB_ADD2_REG

#define LPC2AHB_ADD2_REG   0xF2

Definition at line 395 of file aspeed.h.

◆ LPC2AHB_ADD3_REG

#define LPC2AHB_ADD3_REG   0xF3

Definition at line 396 of file aspeed.h.

◆ LPC2AHB_DAT0_REG

#define LPC2AHB_DAT0_REG   0xF4

Definition at line 397 of file aspeed.h.

◆ LPC2AHB_DAT1_REG

#define LPC2AHB_DAT1_REG   0xF5

Definition at line 398 of file aspeed.h.

◆ LPC2AHB_DAT2_REG

#define LPC2AHB_DAT2_REG   0xF6

Definition at line 399 of file aspeed.h.

◆ LPC2AHB_DAT3_REG

#define LPC2AHB_DAT3_REG   0xF7

Definition at line 400 of file aspeed.h.

◆ LPC2AHB_LEN_REG

#define LPC2AHB_LEN_REG   0xF8

Definition at line 401 of file aspeed.h.

◆ LPC2AHB_RW_REG

#define LPC2AHB_RW_REG   0xFE

Definition at line 405 of file aspeed.h.

◆ LSADR12_REG

#define LSADR12_REG   0x120

Definition at line 204 of file aspeed.h.

◆ M_N_O_P_CMD_SOURCE0_REG

#define M_N_O_P_CMD_SOURCE0_REG   0xE0

Definition at line 318 of file aspeed.h.

◆ M_N_O_P_CMD_SOURCE1_REG

#define M_N_O_P_CMD_SOURCE1_REG   0xE4

Definition at line 319 of file aspeed.h.

◆ M_N_O_P_DATA_READ_REG

#define M_N_O_P_DATA_READ_REG   0xCC

Definition at line 313 of file aspeed.h.

◆ M_N_O_P_DATA_VALUE_REG

#define M_N_O_P_DATA_VALUE_REG   0x78

Definition at line 293 of file aspeed.h.

◆ M_N_O_P_DEBOUNCE_SET_REG1

#define M_N_O_P_DEBOUNCE_SET_REG1   0x100

Definition at line 326 of file aspeed.h.

◆ M_N_O_P_DEBOUNCE_SET_REG2

#define M_N_O_P_DEBOUNCE_SET_REG2   0x104

Definition at line 327 of file aspeed.h.

◆ M_N_O_P_DIRECTION_REG

#define M_N_O_P_DIRECTION_REG   0x7C

Definition at line 294 of file aspeed.h.

◆ M_N_O_P_INPUT_MASK

#define M_N_O_P_INPUT_MASK   0x108

Definition at line 328 of file aspeed.h.

◆ M_N_O_P_INT_EN_REG

#define M_N_O_P_INT_EN_REG   0xE8

Definition at line 320 of file aspeed.h.

◆ M_N_O_P_INT_SEN_T0_REG

#define M_N_O_P_INT_SEN_T0_REG   0xEC

Definition at line 321 of file aspeed.h.

◆ M_N_O_P_INT_SEN_T1_REG

#define M_N_O_P_INT_SEN_T1_REG   0xF0

Definition at line 322 of file aspeed.h.

◆ M_N_O_P_INT_SEN_T2_REG

#define M_N_O_P_INT_SEN_T2_REG   0xF4

Definition at line 323 of file aspeed.h.

◆ M_N_O_P_INT_STS_REG

#define M_N_O_P_INT_STS_REG   0xF8

Definition at line 324 of file aspeed.h.

◆ M_N_O_P_RESET_TOLE_REG

#define M_N_O_P_RESET_TOLE_REG   0xFC

Definition at line 325 of file aspeed.h.

◆ M_PLL_PARM_REG

#define M_PLL_PARM_REG   0x20

Definition at line 52 of file aspeed.h.

◆ MAC_CLK_DELAY_100M_REG

#define MAC_CLK_DELAY_100M_REG   0xB8

Definition at line 97 of file aspeed.h.

◆ MAC_CLK_DELAY_10M_REG

#define MAC_CLK_DELAY_10M_REG   0xBC

Definition at line 98 of file aspeed.h.

◆ MAC_CLK_DELAY_SET_REG

#define MAC_CLK_DELAY_SET_REG   0x48

Definition at line 62 of file aspeed.h.

◆ MAILBOX_DECODE_AREA_LOCA_REG

#define MAILBOX_DECODE_AREA_LOCA_REG   0x190

Definition at line 133 of file aspeed.h.

◆ MBXBCR_REG

#define MBXBCR_REG   0x248

Definition at line 256 of file aspeed.h.

◆ MBXBIE_0_REG

#define MBXBIE_0_REG   0x250

Definition at line 258 of file aspeed.h.

◆ MBXBIE_1_REG

#define MBXBIE_1_REG   0x254

Definition at line 259 of file aspeed.h.

◆ MBXDAT_0_REG

#define MBXDAT_0_REG   0x200

Definition at line 238 of file aspeed.h.

◆ MBXDAT_1_REG

#define MBXDAT_1_REG   0x204

Definition at line 239 of file aspeed.h.

◆ MBXDAT_2_REG

#define MBXDAT_2_REG   0x208

Definition at line 240 of file aspeed.h.

◆ MBXDAT_3_REG

#define MBXDAT_3_REG   0x20C

Definition at line 241 of file aspeed.h.

◆ MBXDAT_4_REG

#define MBXDAT_4_REG   0x210

Definition at line 242 of file aspeed.h.

◆ MBXDAT_5_REG

#define MBXDAT_5_REG   0x214

Definition at line 243 of file aspeed.h.

◆ MBXDAT_6_REG

#define MBXDAT_6_REG   0x218

Definition at line 244 of file aspeed.h.

◆ MBXDAT_7_REG

#define MBXDAT_7_REG   0x21C

Definition at line 245 of file aspeed.h.

◆ MBXDAT_8_REG

#define MBXDAT_8_REG   0x220

Definition at line 246 of file aspeed.h.

◆ MBXDAT_9_REG

#define MBXDAT_9_REG   0x224

Definition at line 247 of file aspeed.h.

◆ MBXDAT_A_REG

#define MBXDAT_A_REG   0x228

Definition at line 248 of file aspeed.h.

◆ MBXDAT_B_REG

#define MBXDAT_B_REG   0x22C

Definition at line 249 of file aspeed.h.

◆ MBXDAT_C_REG

#define MBXDAT_C_REG   0x230

Definition at line 250 of file aspeed.h.

◆ MBXDAT_D_REG

#define MBXDAT_D_REG   0x234

Definition at line 251 of file aspeed.h.

◆ MBXDAT_E_REG

#define MBXDAT_E_REG   0x238

Definition at line 252 of file aspeed.h.

◆ MBXDAT_F_REG

#define MBXDAT_F_REG   0x23C

Definition at line 253 of file aspeed.h.

◆ MBXHCR_REG

#define MBXHCR_REG   0x24C

Definition at line 257 of file aspeed.h.

◆ MBXHIE_0_REG

#define MBXHIE_0_REG   0x258

Definition at line 260 of file aspeed.h.

◆ MBXHIE_1_REG

#define MBXHIE_1_REG   0x25C

Definition at line 261 of file aspeed.h.

◆ MBXSTS_0_REG

#define MBXSTS_0_REG   0x240

Definition at line 254 of file aspeed.h.

◆ MBXSTS_1_REG

#define MBXSTS_1_REG   0x244

Definition at line 255 of file aspeed.h.

◆ MISC_2_CTL_REG

#define MISC_2_CTL_REG   0x4C

Definition at line 63 of file aspeed.h.

◆ MISC_CTL_REG

#define MISC_CTL_REG   0x2C

Definition at line 55 of file aspeed.h.

◆ MUL_FUNC_PIN_CTL10_REG

#define MUL_FUNC_PIN_CTL10_REG   0xAC

Definition at line 96 of file aspeed.h.

◆ MUL_FUNC_PIN_CTL1_REG

#define MUL_FUNC_PIN_CTL1_REG   0x80

Definition at line 76 of file aspeed.h.

◆ MUL_FUNC_PIN_CTL2_REG

#define MUL_FUNC_PIN_CTL2_REG   0x84

Definition at line 81 of file aspeed.h.

◆ MUL_FUNC_PIN_CTL3_REG

#define MUL_FUNC_PIN_CTL3_REG   0x88

Definition at line 86 of file aspeed.h.

◆ MUL_FUNC_PIN_CTL4_REG

#define MUL_FUNC_PIN_CTL4_REG   0x8C

Definition at line 87 of file aspeed.h.

◆ MUL_FUNC_PIN_CTL5_REG

#define MUL_FUNC_PIN_CTL5_REG   0x90

Definition at line 88 of file aspeed.h.

◆ MUL_FUNC_PIN_CTL6_REG

#define MUL_FUNC_PIN_CTL6_REG   0x94

Definition at line 89 of file aspeed.h.

◆ MUL_FUNC_PIN_CTL7_REG

#define MUL_FUNC_PIN_CTL7_REG   0xA0

Definition at line 93 of file aspeed.h.

◆ MUL_FUNC_PIN_CTL8_REG

#define MUL_FUNC_PIN_CTL8_REG   0xA4

Definition at line 94 of file aspeed.h.

◆ MUL_FUNC_PIN_CTL9_REG

#define MUL_FUNC_PIN_CTL9_REG   0xA8

Definition at line 95 of file aspeed.h.

◆ ODR1_REG

#define ODR1_REG   0x30

Definition at line 153 of file aspeed.h.

◆ ODR2_REG

#define ODR2_REG   0x34

Definition at line 154 of file aspeed.h.

◆ ODR3_REG

#define ODR3_REG   0x38

Definition at line 155 of file aspeed.h.

◆ ODR4_REG

#define ODR4_REG   0x118

Definition at line 202 of file aspeed.h.

◆ ODR5_REG

#define ODR5_REG   0x12C

Definition at line 206 of file aspeed.h.

◆ PCCR0_REG

#define PCCR0_REG   0x130

Definition at line 207 of file aspeed.h.

◆ PCCR1_REG

#define PCCR1_REG   0x134

Definition at line 208 of file aspeed.h.

◆ PCCR2_REG

#define PCCR2_REG   0x138

Definition at line 209 of file aspeed.h.

◆ PCCR3_REG

#define PCCR3_REG   0x13C

Definition at line 210 of file aspeed.h.

◆ PCCR4_REG

#define PCCR4_REG   0xD0

Definition at line 194 of file aspeed.h.

◆ PCCR5_REG

#define PCCR5_REG   0xD4

Definition at line 195 of file aspeed.h.

◆ PCCR6_REG

#define PCCR6_REG   0xC4

Definition at line 191 of file aspeed.h.

◆ PCI_CFG_SET_REG1

#define PCI_CFG_SET_REG1   0x30

Definition at line 56 of file aspeed.h.

◆ PCI_CFG_SET_REG2

#define PCI_CFG_SET_REG2   0x34

Definition at line 57 of file aspeed.h.

◆ PCI_CFG_SET_REG3

#define PCI_CFG_SET_REG3   0x38

Definition at line 58 of file aspeed.h.

◆ PCIE_CFG_SET_CTL_REG

#define PCIE_CFG_SET_CTL_REG   0x180

Definition at line 129 of file aspeed.h.

◆ PORT80_GPIO_EN

#define PORT80_GPIO_EN   0x80

Definition at line 390 of file aspeed.h.

◆ PORT80_GPIO_SEL_REG

#define PORT80_GPIO_SEL_REG   0x38

Definition at line 391 of file aspeed.h.

◆ PRO_KEY_PASSWORD

#define PRO_KEY_PASSWORD   0x1688A8A8

Definition at line 44 of file aspeed.h.

◆ PRO_KEY_REG

#define PRO_KEY_REG   0x00

Definition at line 43 of file aspeed.h.

◆ PWR_SAVE_WAKEUP_CTL_REG

#define PWR_SAVE_WAKEUP_CTL_REG   0xC4

Definition at line 100 of file aspeed.h.

◆ PWR_SAVE_WAKEUP_EN_REG

#define PWR_SAVE_WAKEUP_EN_REG   0xC0

Definition at line 99 of file aspeed.h.

◆ Q_R_S_T_CMD_SOURCE0_REG

#define Q_R_S_T_CMD_SOURCE0_REG   0x110

Definition at line 329 of file aspeed.h.

◆ Q_R_S_T_CMD_SOURCE1_REG

#define Q_R_S_T_CMD_SOURCE1_REG   0x114

Definition at line 330 of file aspeed.h.

◆ Q_R_S_T_DATA_READ_REG

#define Q_R_S_T_DATA_READ_REG   0xD0

Definition at line 314 of file aspeed.h.

◆ Q_R_S_T_DATA_VALUE_REG

#define Q_R_S_T_DATA_VALUE_REG   0x80

Definition at line 295 of file aspeed.h.

◆ Q_R_S_T_DEBOUNCE_SET_REG1

#define Q_R_S_T_DEBOUNCE_SET_REG1   0x130

Definition at line 337 of file aspeed.h.

◆ Q_R_S_T_DEBOUNCE_SET_REG2

#define Q_R_S_T_DEBOUNCE_SET_REG2   0x134

Definition at line 338 of file aspeed.h.

◆ Q_R_S_T_DIRECTION_REG

#define Q_R_S_T_DIRECTION_REG   0x84

Definition at line 296 of file aspeed.h.

◆ Q_R_S_T_INPUT_MASK

#define Q_R_S_T_INPUT_MASK   0x138

Definition at line 339 of file aspeed.h.

◆ Q_R_S_T_INT_EN_REG

#define Q_R_S_T_INT_EN_REG   0x118

Definition at line 331 of file aspeed.h.

◆ Q_R_S_T_INT_SEN_T0_REG

#define Q_R_S_T_INT_SEN_T0_REG   0x11C

Definition at line 332 of file aspeed.h.

◆ Q_R_S_T_INT_SEN_T1_REG

#define Q_R_S_T_INT_SEN_T1_REG   0x120

Definition at line 333 of file aspeed.h.

◆ Q_R_S_T_INT_SEN_T2_REG

#define Q_R_S_T_INT_SEN_T2_REG   0x124

Definition at line 334 of file aspeed.h.

◆ Q_R_S_T_INT_STS_REG

#define Q_R_S_T_INT_STS_REG   0x128

Definition at line 335 of file aspeed.h.

◆ Q_R_S_T_RESET_TOLE_REG

#define Q_R_S_T_RESET_TOLE_REG   0x12C

Definition at line 336 of file aspeed.h.

◆ RAN_NUM_GEN_CTL_REG

#define RAN_NUM_GEN_CTL_REG   0x74

Definition at line 73 of file aspeed.h.

◆ RAN_NUM_GEN_DATA_OUT_REG

#define RAN_NUM_GEN_DATA_OUT_REG   0x78

Definition at line 74 of file aspeed.h.

◆ SCR0SIO_REG

#define SCR0SIO_REG   0x170

Definition at line 222 of file aspeed.h.

◆ SCR1SIO_REG

#define SCR1SIO_REG   0x174

Definition at line 223 of file aspeed.h.

◆ SCR2SIO_REG

#define SCR2SIO_REG   0x178

Definition at line 224 of file aspeed.h.

◆ SCR3SIO_REG

#define SCR3SIO_REG   0x17C

Definition at line 225 of file aspeed.h.

◆ SCU_FREE_RUN_CNT_EXT_READ_BACK_REG

#define SCU_FREE_RUN_CNT_EXT_READ_BACK_REG   0xE4

Definition at line 105 of file aspeed.h.

◆ SCU_FREE_RUN_CNT_READ_BACK_REG

#define SCU_FREE_RUN_CNT_READ_BACK_REG   0xE0

Definition at line 104 of file aspeed.h.

◆ SECOND_RELO_CTL_DECODE_AREA_LOCA_REG

#define SECOND_RELO_CTL_DECODE_AREA_LOCA_REG   0x18C

Definition at line 132 of file aspeed.h.

◆ SHARED_SRAM_AREA_DECODE_LOCA_REG1

#define SHARED_SRAM_AREA_DECODE_LOCA_REG1   0x194

Definition at line 134 of file aspeed.h.

◆ SHARED_SRAM_AREA_DECODE_LOCA_REG2

#define SHARED_SRAM_AREA_DECODE_LOCA_REG2   0x198

Definition at line 135 of file aspeed.h.

◆ SILICON_REV_ID_REG

#define SILICON_REV_ID_REG   0x7C

Definition at line 75 of file aspeed.h.

◆ SIRQCR0_REG

#define SIRQCR0_REG   0x70

Definition at line 168 of file aspeed.h.

◆ SIRQCR1_REG

#define SIRQCR1_REG   0x74

Definition at line 169 of file aspeed.h.

◆ SIRQCR2_REG

#define SIRQCR2_REG   0x78

Definition at line 170 of file aspeed.h.

◆ SIRQCR3_REG

#define SIRQCR3_REG   0x7C

Definition at line 171 of file aspeed.h.

◆ SNOOP_ADDR_EN

#define SNOOP_ADDR_EN   0

Definition at line 173 of file aspeed.h.

◆ SNOOP_ADDR_PORT80

#define SNOOP_ADDR_PORT80   0x80

Definition at line 178 of file aspeed.h.

◆ SNPWADR_REG

#define SNPWADR_REG   0x90

Definition at line 177 of file aspeed.h.

◆ SNPWDR_REG

#define SNPWDR_REG   0x94

Definition at line 179 of file aspeed.h.

◆ SRUART1_REG

#define SRUART1_REG   0x160

Definition at line 218 of file aspeed.h.

◆ SRUART2_REG

#define SRUART2_REG   0x164

Definition at line 219 of file aspeed.h.

◆ SRUART3_REG

#define SRUART3_REG   0x168

Definition at line 220 of file aspeed.h.

◆ SRUART4_REG

#define SRUART4_REG   0x16C

Definition at line 221 of file aspeed.h.

◆ STR1_REG

#define STR1_REG   0x3C

Definition at line 156 of file aspeed.h.

◆ STR2_REG

#define STR2_REG   0x40

Definition at line 157 of file aspeed.h.

◆ STR3_REG

#define STR3_REG   0x44

Definition at line 158 of file aspeed.h.

◆ STR4_REG

#define STR4_REG   0x11C

Definition at line 203 of file aspeed.h.

◆ SWCR_03_00_REG

#define SWCR_03_00_REG   0x180

Definition at line 226 of file aspeed.h.

◆ SWCR_07_04_REG

#define SWCR_07_04_REG   0x184

Definition at line 227 of file aspeed.h.

◆ SWCR_0B_08_REG

#define SWCR_0B_08_REG   0x188

Definition at line 228 of file aspeed.h.

◆ SWCR_0F_0C_REG

#define SWCR_0F_0C_REG   0x18C

Definition at line 229 of file aspeed.h.

◆ SWCR_13_10_REG

#define SWCR_13_10_REG   0x190

Definition at line 230 of file aspeed.h.

◆ SWCR_17_14_REG

#define SWCR_17_14_REG   0x194

Definition at line 231 of file aspeed.h.

◆ SWCR_1B_18_REG

#define SWCR_1B_18_REG   0x198

Definition at line 232 of file aspeed.h.

◆ SWCR_1F_1C_REG

#define SWCR_1F_1C_REG   0x19C

Definition at line 233 of file aspeed.h.

◆ SYS_RESET_CTL_REG

#define SYS_RESET_CTL_REG   0x04

Definition at line 45 of file aspeed.h.

◆ SYS_RESET_CTL_SET2_REG

#define SYS_RESET_CTL_SET2_REG   0xD4

Definition at line 101 of file aspeed.h.

◆ SYS_RESET_CTL_STS_REG

#define SYS_RESET_CTL_STS_REG   0x3C

Definition at line 59 of file aspeed.h.

◆ TO_BE_UPDATE

#define TO_BE_UPDATE   0

Definition at line 410 of file aspeed.h.

◆ U_V_W_X_CMD_SOURCE0_REG

#define U_V_W_X_CMD_SOURCE0_REG   0x140

Definition at line 340 of file aspeed.h.

◆ U_V_W_X_CMD_SOURCE1_REG

#define U_V_W_X_CMD_SOURCE1_REG   0x144

Definition at line 341 of file aspeed.h.

◆ U_V_W_X_DATA_READ_REG

#define U_V_W_X_DATA_READ_REG   0xD4

Definition at line 315 of file aspeed.h.

◆ U_V_W_X_DATA_VALUE_REG

#define U_V_W_X_DATA_VALUE_REG   0x88

Definition at line 297 of file aspeed.h.

◆ U_V_W_X_DEBOUNCE_SET_REG1

#define U_V_W_X_DEBOUNCE_SET_REG1   0x160

Definition at line 348 of file aspeed.h.

◆ U_V_W_X_DEBOUNCE_SET_REG2

#define U_V_W_X_DEBOUNCE_SET_REG2   0x164

Definition at line 349 of file aspeed.h.

◆ U_V_W_X_DIRECTION_REG

#define U_V_W_X_DIRECTION_REG   0x8C

Definition at line 298 of file aspeed.h.

◆ U_V_W_X_INPUT_MASK

#define U_V_W_X_INPUT_MASK   0x168

Definition at line 350 of file aspeed.h.

◆ U_V_W_X_INT_EN_REG

#define U_V_W_X_INT_EN_REG   0x148

Definition at line 342 of file aspeed.h.

◆ U_V_W_X_INT_SEN_T0_REG

#define U_V_W_X_INT_SEN_T0_REG   0x14C

Definition at line 343 of file aspeed.h.

◆ U_V_W_X_INT_SEN_T1_REG

#define U_V_W_X_INT_SEN_T1_REG   0x150

Definition at line 344 of file aspeed.h.

◆ U_V_W_X_INT_SEN_T2_REG

#define U_V_W_X_INT_SEN_T2_REG   0x154

Definition at line 345 of file aspeed.h.

◆ U_V_W_X_INT_STS_REG

#define U_V_W_X_INT_STS_REG   0x158

Definition at line 346 of file aspeed.h.

◆ U_V_W_X_RESET_TOLE_REG

#define U_V_W_X_RESET_TOLE_REG   0x15C

Definition at line 347 of file aspeed.h.

◆ UART1_RXD1_EN_BIT

#define UART1_RXD1_EN_BIT   23

Definition at line 83 of file aspeed.h.

◆ UART1_TXD1_EN_BIT

#define UART1_TXD1_EN_BIT   22

Definition at line 82 of file aspeed.h.

◆ UART2_RXD2_EN_BIT

#define UART2_RXD2_EN_BIT   31

Definition at line 85 of file aspeed.h.

◆ UART2_TXD2_EN_BIT

#define UART2_TXD2_EN_BIT   30

Definition at line 84 of file aspeed.h.

◆ UART3_RXD3_EN_BIT

#define UART3_RXD3_EN_BIT   23

Definition at line 78 of file aspeed.h.

◆ UART3_TXD3_EN_BIT

#define UART3_TXD3_EN_BIT   22

Definition at line 77 of file aspeed.h.

◆ UART4_RXD4_EN_BIT

#define UART4_RXD4_EN_BIT   31

Definition at line 80 of file aspeed.h.

◆ UART4_TXD4_EN_BIT

#define UART4_TXD4_EN_BIT   30

Definition at line 79 of file aspeed.h.

◆ VGA_FUNC_HANDSHAKE_REG1

#define VGA_FUNC_HANDSHAKE_REG1   0x40

Definition at line 60 of file aspeed.h.

◆ VGA_FUNC_HANDSHAKE_REG2

#define VGA_FUNC_HANDSHAKE_REG2   0x44

Definition at line 61 of file aspeed.h.

◆ VGA_SCRATCH_REG1

#define VGA_SCRATCH_REG1   0x50

Definition at line 64 of file aspeed.h.

◆ VGA_SCRATCH_REG2

#define VGA_SCRATCH_REG2   0x54

Definition at line 65 of file aspeed.h.

◆ VGA_SCRATCH_REG3

#define VGA_SCRATCH_REG3   0x58

Definition at line 66 of file aspeed.h.

◆ VGA_SCRATCH_REG4

#define VGA_SCRATCH_REG4   0x5C

Definition at line 67 of file aspeed.h.

◆ VGA_SCRATCH_REG5

#define VGA_SCRATCH_REG5   0x60

Definition at line 68 of file aspeed.h.

◆ VGA_SCRATCH_REG6

#define VGA_SCRATCH_REG6   0x64

Definition at line 69 of file aspeed.h.

◆ VGA_SCRATCH_REG7

#define VGA_SCRATCH_REG7   0x68

Definition at line 70 of file aspeed.h.

◆ VGA_SCRATCH_REG8

#define VGA_SCRATCH_REG8   0x6C

Definition at line 71 of file aspeed.h.

◆ Y_Z_AA_AB_CMD_SOURCE0_REG

#define Y_Z_AA_AB_CMD_SOURCE0_REG   0x170

Definition at line 351 of file aspeed.h.

◆ Y_Z_AA_AB_CMD_SOURCE1_REG

#define Y_Z_AA_AB_CMD_SOURCE1_REG   0x174

Definition at line 352 of file aspeed.h.

◆ Y_Z_AA_AB_DATA_READ_REG

#define Y_Z_AA_AB_DATA_READ_REG   0xD8

Definition at line 316 of file aspeed.h.

◆ Y_Z_AA_AB_DATA_VALUE_REG

#define Y_Z_AA_AB_DATA_VALUE_REG   0x1E0

Definition at line 375 of file aspeed.h.

◆ Y_Z_AA_AB_DEBOUNCE_SET_REG1

#define Y_Z_AA_AB_DEBOUNCE_SET_REG1   0x190

Definition at line 359 of file aspeed.h.

◆ Y_Z_AA_AB_DEBOUNCE_SET_REG2

#define Y_Z_AA_AB_DEBOUNCE_SET_REG2   0x194

Definition at line 360 of file aspeed.h.

◆ Y_Z_AA_AB_DIRECTION_REG

#define Y_Z_AA_AB_DIRECTION_REG   0x1E4

Definition at line 376 of file aspeed.h.

◆ Y_Z_AA_AB_INPUT_MASK

#define Y_Z_AA_AB_INPUT_MASK   0x198

Definition at line 361 of file aspeed.h.

◆ Y_Z_AA_AB_INT_EN_REG

#define Y_Z_AA_AB_INT_EN_REG   0x178

Definition at line 353 of file aspeed.h.

◆ Y_Z_AA_AB_INT_SEN_T0_REG

#define Y_Z_AA_AB_INT_SEN_T0_REG   0x17C

Definition at line 354 of file aspeed.h.

◆ Y_Z_AA_AB_INT_SEN_T1_REG

#define Y_Z_AA_AB_INT_SEN_T1_REG   0x180

Definition at line 355 of file aspeed.h.

◆ Y_Z_AA_AB_INT_SEN_T2_REG

#define Y_Z_AA_AB_INT_SEN_T2_REG   0x184

Definition at line 356 of file aspeed.h.

◆ Y_Z_AA_AB_INT_STS_REG

#define Y_Z_AA_AB_INT_STS_REG   0x188

Definition at line 357 of file aspeed.h.

◆ Y_Z_AA_AB_RESET_TOLE_REG

#define Y_Z_AA_AB_RESET_TOLE_REG   0x18C

Definition at line 358 of file aspeed.h.

Typedef Documentation

◆ config_data

typedef struct config_data config_data

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
Step1 
Step2 
Step3 
Step4 
Step5 
Step6 
Step7 
Step8 
Step9 
Step10 
Step11 
Step12 
Step13 
Step14 
Step15 
Step16 
Step17 
Step18 
Step19 
Step20 

Definition at line 444 of file aspeed.h.

◆ anonymous enum

anonymous enum
Enumerator
ARM 
LPC 
CoprocessorCPU 
Reserved 

Definition at line 467 of file aspeed.h.

◆ config_type

Enumerator
PCIE_CONFIG_UNKNOWN 
PCIE_CONFIG_A 
PCIE_CONFIG_B 
PCIE_CONFIG_C 
PCIE_CONFIG_D 
SIO 
MEM 
NOP 

Definition at line 474 of file aspeed.h.

◆ gpio_group_sel

Enumerator
GPIOA 
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 
GPIOAA 
GPIOAB 

Definition at line 413 of file aspeed.h.

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

void aspeed_enable_serial ( pnp_devfn_t  dev,
uint16_t  iobase 
)

Definition at line 45 of file early_serial.c.

References CONFIG, mdelay(), pnp_enter_conf_state(), pnp_exit_conf_state(), PNP_IDX_IO0, pnp_set_enable(), pnp_set_iobase(), and pnp_set_logical_device().

Referenced by bootblock_mainboard_early_init(), and early_config_superio().

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

◆ aspeed_enable_uart_pin()

◆ lpc_read()

◆ lpc_write()

◆ pnp_enter_conf_state()

void pnp_enter_conf_state ( pnp_devfn_t  dev)

Definition at line 30 of file early_serial.c.

References ASPEED_ENTRY_KEY, and outb().

Here is the call graph for this function:

◆ pnp_exit_conf_state()

void pnp_exit_conf_state ( pnp_devfn_t  dev)

Definition at line 38 of file early_serial.c.

References ASPEED_EXIT_KEY, and outb().

Here is the call graph for this function: