aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-at91.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses/i2c-at91.c')
-rw-r--r--drivers/i2c/busses/i2c-at91.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c
index ebc224154695..75195e3f5ddb 100644
--- a/drivers/i2c/busses/i2c-at91.c
+++ b/drivers/i2c/busses/i2c-at91.c
@@ -553,13 +553,6 @@ static struct at91_twi_pdata at91sam9g10_config = {
553 .has_dma_support = false, 553 .has_dma_support = false,
554}; 554};
555 555
556static struct at91_twi_pdata at91sam9x5_config = {
557 .clk_max_div = 7,
558 .clk_offset = 4,
559 .has_unre_flag = false,
560 .has_dma_support = true,
561};
562
563static const struct platform_device_id at91_twi_devtypes[] = { 556static const struct platform_device_id at91_twi_devtypes[] = {
564 { 557 {
565 .name = "i2c-at91rm9200", 558 .name = "i2c-at91rm9200",
@@ -582,8 +575,18 @@ static const struct platform_device_id at91_twi_devtypes[] = {
582}; 575};
583 576
584#if defined(CONFIG_OF) 577#if defined(CONFIG_OF)
578static struct at91_twi_pdata at91sam9x5_config = {
579 .clk_max_div = 7,
580 .clk_offset = 4,
581 .has_unre_flag = false,
582 .has_dma_support = true,
583};
584
585static const struct of_device_id atmel_twi_dt_ids[] = { 585static const struct of_device_id atmel_twi_dt_ids[] = {
586 { 586 {
587 .compatible = "atmel,at91rm9200-i2c",
588 .data = &at91rm9200_config,
589 } , {
587 .compatible = "atmel,at91sam9260-i2c", 590 .compatible = "atmel,at91sam9260-i2c",
588 .data = &at91sam9260_config, 591 .data = &at91sam9260_config,
589 } , { 592 } , {