26 if (
CONFIG(SERIALIO_UART_CONSOLE)) {
29 return CONFIG_UART_FOR_CONSOLE == 0;
31 return CONFIG_UART_FOR_CONSOLE == 1;
176 if (!
config->sio_acpi_mode)
236 if (
config->sio_acpi_mode)
247 res->
base = CONFIG_CONSOLE_UART_BASE_ADDRESS;
273 static const struct pci_driver pch_pcie
__pci_driver = {
void * acpi_get_gnvs(void)
static void write32(void *addr, uint32_t val)
static uint32_t read32(const void *addr)
#define SIO_IOBP_PORTCTRLX(x)
#define SIO_IOBP_PORTCTRL_ACPI_IRQ_EN
#define SIO_REG_SDIO_PPR_CMD12
#define SIO_REG_SDIO_PPR_SW_LTR
#define SIO_REG_PPR_RST_ASSERT
#define SIO_IOBP_PORTCTRL1_SNOOP_SELECT(x)
#define SIO_IOBP_PORTCTRL_SNOOP_SELECT(x)
#define SIO_IOBP_PORTCTRL_INT_PIN(x)
#define SIO_REG_PPR_CLOCK_EN
#define SIO_REG_PPR_GEN_LTR_MODE_MASK
#define SIO_REG_PPR_GEN_VOLTAGE(x)
#define SIO_IOBP_PORTCTRL_PM_CAP_PRSNT
#define SIO_REG_SDIO_PPR_GEN
#define SIO_IOBP_PORTCTRL0_ACPI_IRQ_EN
#define SIO_IOBP_PORTCTRL1
#define SIO_IOBP_PORTCTRL0_PCI_CONF_DIS
#define SIO_REG_SDIO_PPR_CMD12_B30
#define SIO_REG_PPR_CLOCK
#define SIO_REG_PPR_GEN_VOLTAGE_MASK
#define SIO_IOBP_PORTCTRL0
#define SIO_IOBP_PORTCTRL_PCI_CONF_DIS
#define printk(level,...)
struct resource * probe_resource(const struct device *dev, unsigned int index)
See if a resource structure already exists for a given index.
struct resource * find_resource(const struct device *dev, unsigned int index)
Return an existing resource structure for a given index.
static DEVTREE_CONST void * config_of(const struct device *dev)
static __always_inline void pci_or_config16(const struct device *dev, u16 reg, u16 ormask)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define PCI_COMMAND_MASTER
#define PCI_COMMAND_MEMORY
#define PCI_BASE_ADDRESS_0
#define PCI_BASE_ADDRESS_1
void pci_dev_enable_resources(struct device *dev)
void pci_dev_read_resources(struct device *dev)
struct pci_operations pci_dev_ops_pci
Default device operation for PCI devices.
void pci_dev_set_resources(struct device *dev)
#define PCI_DID_INTEL_LPT_LP_SD
#define PCI_DID_INTEL_LPT_LP_I2C1
#define PCI_DID_INTEL_LPT_LP_I2C0
#define PCI_DID_INTEL_LPT_LP_GSPI0
#define PCI_DID_INTEL_LPT_LP_GSPI1
#define PCI_DID_INTEL_LPT_LP_UART1
#define PCI_DID_INTEL_LPT_LP_SDMA
#define PCI_DID_INTEL_LPT_LP_UART0
#define IORESOURCE_ASSIGNED
static void * res2mmio(const struct resource *res, unsigned long offset, unsigned long mask)
void pch_iobp_update(u32 address, u32 andvalue, u32 orvalue)
static struct device_operations device_ops
static void serialio_d21_mode(int sio_index, int int_pin, int acpi_mode)
static void serialio_d21_ltr(struct resource *bar0)
static void serialio_init(struct device *dev)
static void serialio_init_once(int acpi_mode)
static void serialio_i2c_voltage_sel(struct resource *bar0, u8 voltage)
static void serialio_read_resources(struct device *dev)
static const unsigned short pci_device_ids[]
static void serialio_d23_ltr(struct resource *bar0)
static void serialio_d23_mode(int acpi_mode)
static bool serialio_uart_is_debug(struct device *dev)
static const struct pci_driver pch_pcie __pci_driver
static void update_bars(int sio_index, u32 bar0, u32 bar1)
static void serialio_enable_clock(struct resource *bar0)
void(* read_resources)(struct device *dev)