coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
serialio.h File Reference

Go to the source code of this file.

Macros

#define SIO_IOBP_PORTCTRL0   0xcb000000 /* SDIO D23:F0 */
 
#define SIO_IOBP_PORTCTRL0_ACPI_IRQ_EN   (1 << 5)
 
#define SIO_IOBP_PORTCTRL0_PCI_CONF_DIS   (1 << 4)
 
#define SIO_IOBP_PORTCTRL1   0xcb000014 /* SDIO D23:F0 */
 
#define SIO_IOBP_PORTCTRL1_SNOOP_SELECT(x)   (((x) & 3) << 13)
 
#define SIO_IOBP_GPIODF   0xcb000154
 
#define SIO_IOBP_GPIODF_SDIO_IDLE_DET_EN   (1 << 4)
 
#define SIO_IOBP_GPIODF_DMA_IDLE_DET_EN   (1 << 3)
 
#define SIO_IOBP_GPIODF_UART_IDLE_DET_EN   (1 << 2)
 
#define SIO_IOBP_GPIODF_I2C_IDLE_DET_EN   (1 << 1)
 
#define SIO_IOBP_GPIODF_SPI_IDLE_DET_EN   (1 << 0)
 
#define SIO_IOBP_GPIODF_UART0_BYTE_ACCESS   (1 << 10)
 
#define SIO_IOBP_GPIODF_UART1_BYTE_ACCESS   (1 << 11)
 
#define SIO_IOBP_PORTCTRL2   0xcb000240 /* DMA D21:F0 */
 
#define SIO_IOBP_PORTCTRL3   0xcb000248 /* I2C0 D21:F1 */
 
#define SIO_IOBP_PORTCTRL4   0xcb000250 /* I2C1 D21:F2 */
 
#define SIO_IOBP_PORTCTRL5   0xcb000258 /* SPI0 D21:F3 */
 
#define SIO_IOBP_PORTCTRL6   0xcb000260 /* SPI1 D21:F4 */
 
#define SIO_IOBP_PORTCTRL7   0xcb000268 /* UART0 D21:F5 */
 
#define SIO_IOBP_PORTCTRL8   0xcb000270 /* UART1 D21:F6 */
 
#define SIO_IOBP_PORTCTRLX(x)   (0xcb000240 + ((x) * 8))
 
#define SIO_IOBP_PORTCTRL_ACPI_IRQ_EN   (1 << 21)
 
#define SIO_IOBP_PORTCTRL_PCI_CONF_DIS   (1 << 20)
 
#define SIO_IOBP_PORTCTRL_SNOOP_SELECT(x)   (((x) & 3) << 18)
 
#define SIO_IOBP_PORTCTRL_INT_PIN(x)   (((x) & 0xf) << 2)
 
#define SIO_IOBP_PORTCTRL_PM_CAP_PRSNT   (1 << 1)
 
#define SIO_IOBP_FUNCDIS0   0xce00aa07 /* DMA D21:F0 */
 
#define SIO_IOBP_FUNCDIS1   0xce00aa47 /* I2C0 D21:F1 */
 
#define SIO_IOBP_FUNCDIS2   0xce00aa87 /* I2C1 D21:F2 */
 
#define SIO_IOBP_FUNCDIS3   0xce00aac7 /* SPI0 D21:F3 */
 
#define SIO_IOBP_FUNCDIS4   0xce00ab07 /* SPI1 D21:F4 */
 
#define SIO_IOBP_FUNCDIS5   0xce00ab47 /* UART0 D21:F5 */
 
#define SIO_IOBP_FUNCDIS6   0xce00ab87 /* UART1 D21:F6 */
 
#define SIO_IOBP_FUNCDIS7   0xce00ae07 /* SDIO D23:F0 */
 
#define SIO_IOBP_FUNCDIS_DIS   (1 << 8)
 
#define SIO_ID_SDMA   0 /* D21:F0 */
 
#define SIO_ID_I2C0   1 /* D21:F1 */
 
#define SIO_ID_I2C1   2 /* D21:F2 */
 
#define SIO_ID_SPI0   3 /* D21:F3 */
 
#define SIO_ID_SPI1   4 /* D21:F4 */
 
#define SIO_ID_UART0   5 /* D21:F5 */
 
#define SIO_ID_UART1   6 /* D21:F6 */
 
#define SIO_ID_SDIO   7 /* D23:F0 */
 
#define SIO_REG_PPR_CLOCK   0x800
 
#define SIO_REG_PPR_CLOCK_EN   (1 << 0)
 
#define SIO_REG_PPR_CLOCK_UPDATE   (1 << 31)
 
#define SIO_REG_PPR_CLOCK_M_DIV   0x25a
 
#define SIO_REG_PPR_CLOCK_N_DIV   0x7fff
 
#define SIO_REG_PPR_RST   0x804
 
#define SIO_REG_PPR_RST_ASSERT   0x3
 
#define SIO_REG_PPR_GEN   0x808
 
#define SIO_REG_PPR_GEN_LTR_MODE_MASK   (1 << 2)
 
#define SIO_REG_PPR_GEN_VOLTAGE_MASK   (1 << 3)
 
#define SIO_REG_PPR_GEN_VOLTAGE(x)   ((x & 1) << 3)
 
#define SIO_REG_AUTO_LTR   0x814
 
#define SIO_REG_SDIO_PPR_GEN   0x1008
 
#define SIO_REG_SDIO_PPR_SW_LTR   0x1010
 
#define SIO_REG_SDIO_PPR_CMD12   0x3c
 
#define SIO_REG_SDIO_PPR_CMD12_B30   (1 << 30)
 
#define SIO_PIN_INTA   1 /* IRQ5 in ACPI mode */
 
#define SIO_PIN_INTB   2 /* IRQ6 in ACPI mode */
 
#define SIO_PIN_INTC   3 /* IRQ7 in ACPI mode */
 
#define SIO_PIN_INTD   4 /* IRQ13 in ACPI mode */
 

Macro Definition Documentation

◆ SIO_ID_I2C0

#define SIO_ID_I2C0   1 /* D21:F1 */

Definition at line 46 of file serialio.h.

◆ SIO_ID_I2C1

#define SIO_ID_I2C1   2 /* D21:F2 */

Definition at line 47 of file serialio.h.

◆ SIO_ID_SDIO

#define SIO_ID_SDIO   7 /* D23:F0 */

Definition at line 52 of file serialio.h.

◆ SIO_ID_SDMA

#define SIO_ID_SDMA   0 /* D21:F0 */

Definition at line 45 of file serialio.h.

◆ SIO_ID_SPI0

#define SIO_ID_SPI0   3 /* D21:F3 */

Definition at line 48 of file serialio.h.

◆ SIO_ID_SPI1

#define SIO_ID_SPI1   4 /* D21:F4 */

Definition at line 49 of file serialio.h.

◆ SIO_ID_UART0

#define SIO_ID_UART0   5 /* D21:F5 */

Definition at line 50 of file serialio.h.

◆ SIO_ID_UART1

#define SIO_ID_UART1   6 /* D21:F6 */

Definition at line 51 of file serialio.h.

◆ SIO_IOBP_FUNCDIS0

#define SIO_IOBP_FUNCDIS0   0xce00aa07 /* DMA D21:F0 */

Definition at line 34 of file serialio.h.

◆ SIO_IOBP_FUNCDIS1

#define SIO_IOBP_FUNCDIS1   0xce00aa47 /* I2C0 D21:F1 */

Definition at line 35 of file serialio.h.

◆ SIO_IOBP_FUNCDIS2

#define SIO_IOBP_FUNCDIS2   0xce00aa87 /* I2C1 D21:F2 */

Definition at line 36 of file serialio.h.

◆ SIO_IOBP_FUNCDIS3

#define SIO_IOBP_FUNCDIS3   0xce00aac7 /* SPI0 D21:F3 */

Definition at line 37 of file serialio.h.

◆ SIO_IOBP_FUNCDIS4

#define SIO_IOBP_FUNCDIS4   0xce00ab07 /* SPI1 D21:F4 */

Definition at line 38 of file serialio.h.

◆ SIO_IOBP_FUNCDIS5

#define SIO_IOBP_FUNCDIS5   0xce00ab47 /* UART0 D21:F5 */

Definition at line 39 of file serialio.h.

◆ SIO_IOBP_FUNCDIS6

#define SIO_IOBP_FUNCDIS6   0xce00ab87 /* UART1 D21:F6 */

Definition at line 40 of file serialio.h.

◆ SIO_IOBP_FUNCDIS7

#define SIO_IOBP_FUNCDIS7   0xce00ae07 /* SDIO D23:F0 */

Definition at line 41 of file serialio.h.

◆ SIO_IOBP_FUNCDIS_DIS

#define SIO_IOBP_FUNCDIS_DIS   (1 << 8)

Definition at line 42 of file serialio.h.

◆ SIO_IOBP_GPIODF

#define SIO_IOBP_GPIODF   0xcb000154

Definition at line 12 of file serialio.h.

◆ SIO_IOBP_GPIODF_DMA_IDLE_DET_EN

#define SIO_IOBP_GPIODF_DMA_IDLE_DET_EN   (1 << 3)

Definition at line 14 of file serialio.h.

◆ SIO_IOBP_GPIODF_I2C_IDLE_DET_EN

#define SIO_IOBP_GPIODF_I2C_IDLE_DET_EN   (1 << 1)

Definition at line 16 of file serialio.h.

◆ SIO_IOBP_GPIODF_SDIO_IDLE_DET_EN

#define SIO_IOBP_GPIODF_SDIO_IDLE_DET_EN   (1 << 4)

Definition at line 13 of file serialio.h.

◆ SIO_IOBP_GPIODF_SPI_IDLE_DET_EN

#define SIO_IOBP_GPIODF_SPI_IDLE_DET_EN   (1 << 0)

Definition at line 17 of file serialio.h.

◆ SIO_IOBP_GPIODF_UART0_BYTE_ACCESS

#define SIO_IOBP_GPIODF_UART0_BYTE_ACCESS   (1 << 10)

Definition at line 18 of file serialio.h.

◆ SIO_IOBP_GPIODF_UART1_BYTE_ACCESS

#define SIO_IOBP_GPIODF_UART1_BYTE_ACCESS   (1 << 11)

Definition at line 19 of file serialio.h.

◆ SIO_IOBP_GPIODF_UART_IDLE_DET_EN

#define SIO_IOBP_GPIODF_UART_IDLE_DET_EN   (1 << 2)

Definition at line 15 of file serialio.h.

◆ SIO_IOBP_PORTCTRL0

#define SIO_IOBP_PORTCTRL0   0xcb000000 /* SDIO D23:F0 */

Definition at line 7 of file serialio.h.

◆ SIO_IOBP_PORTCTRL0_ACPI_IRQ_EN

#define SIO_IOBP_PORTCTRL0_ACPI_IRQ_EN   (1 << 5)

Definition at line 8 of file serialio.h.

◆ SIO_IOBP_PORTCTRL0_PCI_CONF_DIS

#define SIO_IOBP_PORTCTRL0_PCI_CONF_DIS   (1 << 4)

Definition at line 9 of file serialio.h.

◆ SIO_IOBP_PORTCTRL1

#define SIO_IOBP_PORTCTRL1   0xcb000014 /* SDIO D23:F0 */

Definition at line 10 of file serialio.h.

◆ SIO_IOBP_PORTCTRL1_SNOOP_SELECT

#define SIO_IOBP_PORTCTRL1_SNOOP_SELECT (   x)    (((x) & 3) << 13)

Definition at line 11 of file serialio.h.

◆ SIO_IOBP_PORTCTRL2

#define SIO_IOBP_PORTCTRL2   0xcb000240 /* DMA D21:F0 */

Definition at line 20 of file serialio.h.

◆ SIO_IOBP_PORTCTRL3

#define SIO_IOBP_PORTCTRL3   0xcb000248 /* I2C0 D21:F1 */

Definition at line 21 of file serialio.h.

◆ SIO_IOBP_PORTCTRL4

#define SIO_IOBP_PORTCTRL4   0xcb000250 /* I2C1 D21:F2 */

Definition at line 22 of file serialio.h.

◆ SIO_IOBP_PORTCTRL5

#define SIO_IOBP_PORTCTRL5   0xcb000258 /* SPI0 D21:F3 */

Definition at line 23 of file serialio.h.

◆ SIO_IOBP_PORTCTRL6

#define SIO_IOBP_PORTCTRL6   0xcb000260 /* SPI1 D21:F4 */

Definition at line 24 of file serialio.h.

◆ SIO_IOBP_PORTCTRL7

#define SIO_IOBP_PORTCTRL7   0xcb000268 /* UART0 D21:F5 */

Definition at line 25 of file serialio.h.

◆ SIO_IOBP_PORTCTRL8

#define SIO_IOBP_PORTCTRL8   0xcb000270 /* UART1 D21:F6 */

Definition at line 26 of file serialio.h.

◆ SIO_IOBP_PORTCTRL_ACPI_IRQ_EN

#define SIO_IOBP_PORTCTRL_ACPI_IRQ_EN   (1 << 21)

Definition at line 29 of file serialio.h.

◆ SIO_IOBP_PORTCTRL_INT_PIN

#define SIO_IOBP_PORTCTRL_INT_PIN (   x)    (((x) & 0xf) << 2)

Definition at line 32 of file serialio.h.

◆ SIO_IOBP_PORTCTRL_PCI_CONF_DIS

#define SIO_IOBP_PORTCTRL_PCI_CONF_DIS   (1 << 20)

Definition at line 30 of file serialio.h.

◆ SIO_IOBP_PORTCTRL_PM_CAP_PRSNT

#define SIO_IOBP_PORTCTRL_PM_CAP_PRSNT   (1 << 1)

Definition at line 33 of file serialio.h.

◆ SIO_IOBP_PORTCTRL_SNOOP_SELECT

#define SIO_IOBP_PORTCTRL_SNOOP_SELECT (   x)    (((x) & 3) << 18)

Definition at line 31 of file serialio.h.

◆ SIO_IOBP_PORTCTRLX

#define SIO_IOBP_PORTCTRLX (   x)    (0xcb000240 + ((x) * 8))

Definition at line 27 of file serialio.h.

◆ SIO_PIN_INTA

#define SIO_PIN_INTA   1 /* IRQ5 in ACPI mode */

Definition at line 72 of file serialio.h.

◆ SIO_PIN_INTB

#define SIO_PIN_INTB   2 /* IRQ6 in ACPI mode */

Definition at line 73 of file serialio.h.

◆ SIO_PIN_INTC

#define SIO_PIN_INTC   3 /* IRQ7 in ACPI mode */

Definition at line 74 of file serialio.h.

◆ SIO_PIN_INTD

#define SIO_PIN_INTD   4 /* IRQ13 in ACPI mode */

Definition at line 75 of file serialio.h.

◆ SIO_REG_AUTO_LTR

#define SIO_REG_AUTO_LTR   0x814

Definition at line 65 of file serialio.h.

◆ SIO_REG_PPR_CLOCK

#define SIO_REG_PPR_CLOCK   0x800

Definition at line 54 of file serialio.h.

◆ SIO_REG_PPR_CLOCK_EN

#define SIO_REG_PPR_CLOCK_EN   (1 << 0)

Definition at line 55 of file serialio.h.

◆ SIO_REG_PPR_CLOCK_M_DIV

#define SIO_REG_PPR_CLOCK_M_DIV   0x25a

Definition at line 57 of file serialio.h.

◆ SIO_REG_PPR_CLOCK_N_DIV

#define SIO_REG_PPR_CLOCK_N_DIV   0x7fff

Definition at line 58 of file serialio.h.

◆ SIO_REG_PPR_CLOCK_UPDATE

#define SIO_REG_PPR_CLOCK_UPDATE   (1 << 31)

Definition at line 56 of file serialio.h.

◆ SIO_REG_PPR_GEN

#define SIO_REG_PPR_GEN   0x808

Definition at line 61 of file serialio.h.

◆ SIO_REG_PPR_GEN_LTR_MODE_MASK

#define SIO_REG_PPR_GEN_LTR_MODE_MASK   (1 << 2)

Definition at line 62 of file serialio.h.

◆ SIO_REG_PPR_GEN_VOLTAGE

#define SIO_REG_PPR_GEN_VOLTAGE (   x)    ((x & 1) << 3)

Definition at line 64 of file serialio.h.

◆ SIO_REG_PPR_GEN_VOLTAGE_MASK

#define SIO_REG_PPR_GEN_VOLTAGE_MASK   (1 << 3)

Definition at line 63 of file serialio.h.

◆ SIO_REG_PPR_RST

#define SIO_REG_PPR_RST   0x804

Definition at line 59 of file serialio.h.

◆ SIO_REG_PPR_RST_ASSERT

#define SIO_REG_PPR_RST_ASSERT   0x3

Definition at line 60 of file serialio.h.

◆ SIO_REG_SDIO_PPR_CMD12

#define SIO_REG_SDIO_PPR_CMD12   0x3c

Definition at line 69 of file serialio.h.

◆ SIO_REG_SDIO_PPR_CMD12_B30

#define SIO_REG_SDIO_PPR_CMD12_B30   (1 << 30)

Definition at line 70 of file serialio.h.

◆ SIO_REG_SDIO_PPR_GEN

#define SIO_REG_SDIO_PPR_GEN   0x1008

Definition at line 67 of file serialio.h.

◆ SIO_REG_SDIO_PPR_SW_LTR

#define SIO_REG_SDIO_PPR_SW_LTR   0x1010

Definition at line 68 of file serialio.h.