|
@@ -93,6 +93,7 @@ static void dw_i2c_acpi_params(struct platform_device *pdev, char method[],
|
|
|
static int dw_i2c_acpi_configure(struct platform_device *pdev)
|
|
|
{
|
|
|
struct dw_i2c_dev *dev = platform_get_drvdata(pdev);
|
|
|
+ const struct acpi_device_id *id;
|
|
|
|
|
|
dev->adapter.nr = -1;
|
|
|
dev->tx_fifo_depth = 32;
|
|
@@ -106,6 +107,10 @@ static int dw_i2c_acpi_configure(struct platform_device *pdev)
|
|
|
dw_i2c_acpi_params(pdev, "FMCN", &dev->fs_hcnt, &dev->fs_lcnt,
|
|
|
&dev->sda_hold_time);
|
|
|
|
|
|
+ id = acpi_match_device(pdev->dev.driver->acpi_match_table, &pdev->dev);
|
|
|
+ if (id && id->driver_data)
|
|
|
+ dev->accessor_flags |= (u32)id->driver_data;
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -116,7 +121,7 @@ static const struct acpi_device_id dw_i2c_acpi_match[] = {
|
|
|
{ "INT3433", 0 },
|
|
|
{ "80860F41", 0 },
|
|
|
{ "808622C1", 0 },
|
|
|
- { "AMD0010", 0 },
|
|
|
+ { "AMD0010", ACCESS_INTR_MASK },
|
|
|
{ }
|
|
|
};
|
|
|
MODULE_DEVICE_TABLE(acpi, dw_i2c_acpi_match);
|