|
@@ -553,13 +553,6 @@ static struct at91_twi_pdata at91sam9g10_config = {
|
|
|
.has_dma_support = false,
|
|
|
};
|
|
|
|
|
|
-static struct at91_twi_pdata at91sam9x5_config = {
|
|
|
- .clk_max_div = 7,
|
|
|
- .clk_offset = 4,
|
|
|
- .has_unre_flag = false,
|
|
|
- .has_dma_support = true,
|
|
|
-};
|
|
|
-
|
|
|
static const struct platform_device_id at91_twi_devtypes[] = {
|
|
|
{
|
|
|
.name = "i2c-at91rm9200",
|
|
@@ -582,6 +575,13 @@ static const struct platform_device_id at91_twi_devtypes[] = {
|
|
|
};
|
|
|
|
|
|
#if defined(CONFIG_OF)
|
|
|
+static struct at91_twi_pdata at91sam9x5_config = {
|
|
|
+ .clk_max_div = 7,
|
|
|
+ .clk_offset = 4,
|
|
|
+ .has_unre_flag = false,
|
|
|
+ .has_dma_support = true,
|
|
|
+};
|
|
|
+
|
|
|
static const struct of_device_id atmel_twi_dt_ids[] = {
|
|
|
{
|
|
|
.compatible = "atmel,at91rm9200-i2c",
|