coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <device/pci_ops.h>
#include <console/console.h>
#include <device/device.h>
#include <device/i2c_simple.h>
#include <device/pci.h>
#include <device/pci_def.h>
#include <device/pci_ids.h>
#include <drivers/i2c/designware/dw_i2c.h>
#include <intelblocks/cfg.h>
#include <intelblocks/lpss.h>
#include <soc/iomap.h>
#include <soc/pci_devs.h>
Go to the source code of this file.
Functions | |
int | dw_i2c_soc_dev_to_bus (const struct device *dev) |
const struct dw_i2c_bus_config * | dw_i2c_get_soc_cfg (unsigned int bus) |
uintptr_t | dw_i2c_get_soc_early_base (unsigned int bus) |
static int | lpss_i2c_early_init_bus (unsigned int bus) |
uintptr_t | dw_i2c_base_address (unsigned int bus) |
Definition at line 83 of file i2c.c.
References ALIGN_DOWN, soc_i2c_ctrlr_info::bar, base, BIOS_ERR, dw_i2c_soc_bus_to_devfn(), lpss_i2c_early_init_bus(), NULL, PCI_BASE_ADDRESS_0, PCI_DEV, PCI_FUNC, pci_read_config32(), PCI_SLOT, printk, and soc_get_i2c_ctrlr_info().
Referenced by dw_i2c_acpi_fill_ssdt().
const struct dw_i2c_bus_config* dw_i2c_get_soc_cfg | ( | unsigned int | bus | ) |
Definition at line 23 of file i2c.c.
References BIOS_ERR, chip_get_common_soc_structure(), soc_intel_common_config::i2c, NULL, printk, and soc_get_i2c_bus_config().
Referenced by dw_i2c_acpi_fill_ssdt(), and dw_i2c_dev_init().
Definition at line 32 of file i2c.c.
References EARLY_I2C_BASE.
Referenced by lpss_i2c_early_init_bus().
int dw_i2c_soc_dev_to_bus | ( | const struct device * | dev | ) |
Definition at line 16 of file i2c.c.
References mmio_path::addr, soc_i2c_ctrlr_info::bar, BIOS_ERR, pci_path::devfn, die(), dw_i2c_soc_devfn_to_bus(), device_path::mmio, device::path, device_path::pci, printk, and soc_get_i2c_ctrlr_info().
Referenced by dw_i2c_acpi_fill_ssdt(), and dw_i2c_dev_init().
|
static |
Definition at line 38 of file i2c.c.
References base, BIOS_DEBUG, BIOS_ERR, CB_SUCCESS, config, dw_i2c_get_soc_cfg(), dw_i2c_get_soc_early_base(), dw_i2c_init(), dw_i2c_soc_bus_to_devfn(), lpss_reset_release(), lpss_set_power_state(), PCI_BASE_ADDRESS_0, PCI_COMMAND, PCI_COMMAND_MASTER, PCI_COMMAND_MEMORY, PCI_DEV, PCI_FUNC, PCI_SLOT, pci_write_config16(), pci_write_config32(), printk, and STATE_D0.
Referenced by dw_i2c_base_address().