summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/common/block')
-rw-r--r--src/soc/intel/common/block/i2c/i2c.c8
-rw-r--r--src/soc/intel/common/block/i2c/i2c_early.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/soc/intel/common/block/i2c/i2c.c b/src/soc/intel/common/block/i2c/i2c.c
index f2154da3f6..4b2b4eb5a8 100644
--- a/src/soc/intel/common/block/i2c/i2c.c
+++ b/src/soc/intel/common/block/i2c/i2c.c
@@ -27,7 +27,7 @@ uintptr_t dw_i2c_base_address(unsigned int bus)
struct resource *res;
/* bus -> devfn */
- devfn = i2c_soc_bus_to_devfn(bus);
+ devfn = dw_i2c_soc_bus_to_devfn(bus);
if (devfn < 0)
return (uintptr_t)NULL;
@@ -48,7 +48,7 @@ uintptr_t dw_i2c_base_address(unsigned int bus)
static int lpss_i2c_dev_to_bus(struct device *dev)
{
pci_devfn_t devfn = dev->path.pci.devfn;
- return i2c_soc_devfn_to_bus(devfn);
+ return dw_i2c_soc_devfn_to_bus(devfn);
}
/*
@@ -98,7 +98,7 @@ static void lpss_i2c_dev_init(struct device *dev)
if (bus < 0)
return;
- config = i2c_get_soc_cfg(bus, dev);
+ config = dw_i2c_get_soc_cfg(bus, dev);
if (!config)
return;
@@ -132,7 +132,7 @@ static void lpss_i2c_acpi_fill_ssdt(struct device *dev)
if (bus < 0)
return;
- bcfg = i2c_get_soc_cfg(bus, dev);
+ bcfg = dw_i2c_get_soc_cfg(bus, dev);
if (!bcfg)
return;
diff --git a/src/soc/intel/common/block/i2c/i2c_early.c b/src/soc/intel/common/block/i2c/i2c_early.c
index f10147ed95..728e7880b5 100644
--- a/src/soc/intel/common/block/i2c/i2c_early.c
+++ b/src/soc/intel/common/block/i2c/i2c_early.c
@@ -32,7 +32,7 @@ static int lpss_i2c_early_init_bus(unsigned int bus)
uintptr_t base;
/* Find the PCI device for this bus controller */
- devfn = i2c_soc_bus_to_devfn(bus);
+ devfn = dw_i2c_soc_bus_to_devfn(bus);
if (devfn < 0) {
printk(BIOS_ERR, "I2C%u device not found\n", bus);
return -1;
@@ -47,14 +47,14 @@ static int lpss_i2c_early_init_bus(unsigned int bus)
}
/* Skip if not enabled for early init */
- config = i2c_get_soc_cfg(bus, tree_dev);
+ config = dw_i2c_get_soc_cfg(bus, tree_dev);
if (!config || !config->early_init) {
printk(BIOS_DEBUG, "I2C%u not enabled for early init\n", bus);
return -1;
}
/* Prepare early base address for access before memory */
- base = i2c_get_soc_early_base(bus);
+ base = dw_i2c_get_soc_early_base(bus);
pci_write_config32(dev, PCI_BASE_ADDRESS_0, base);
pci_write_config32(dev, PCI_COMMAND,
PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER);
@@ -78,7 +78,7 @@ uintptr_t dw_i2c_base_address(unsigned int bus)
uintptr_t base;
/* Find device+function for this controller */
- devfn = i2c_soc_bus_to_devfn(bus);
+ devfn = dw_i2c_soc_bus_to_devfn(bus);
if (devfn < 0)
return (uintptr_t)NULL;