|
@@ -298,6 +298,9 @@ static int dw_i2c_plat_probe(struct platform_device *pdev)
|
|
}
|
|
}
|
|
|
|
|
|
acpi_speed = i2c_acpi_find_bus_speed(&pdev->dev);
|
|
acpi_speed = i2c_acpi_find_bus_speed(&pdev->dev);
|
|
|
|
+ /* Some broken DSTDs use 1MiHz instead of 1MHz */
|
|
|
|
+ if (acpi_speed == 1048576)
|
|
|
|
+ acpi_speed = 1000000;
|
|
/*
|
|
/*
|
|
* Find bus speed from the "clock-frequency" device property, ACPI
|
|
* Find bus speed from the "clock-frequency" device property, ACPI
|
|
* or by using fast mode if neither is set.
|
|
* or by using fast mode if neither is set.
|