diff options
author | Eugen Hristev <eugen.hristev@microchip.com> | 2019-09-11 08:24:25 +0000 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2019-10-24 20:24:53 +0200 |
commit | b00277923743e56c3652ea95b88943d21cad9d73 (patch) | |
tree | 513b0c423581cc40280d5b604a51705add87b9e9 /drivers/i2c | |
parent | b84dfe1af54053e0aedb14cd26307859aa1df35f (diff) | |
download | linux-b00277923743e56c3652ea95b88943d21cad9d73.tar.bz2 |
i2c: at91: add new platform support for sam9x60
Add new platform data support for the sam9x60 SoC
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Reviewed-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-at91-core.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-at91-core.c b/drivers/i2c/busses/i2c-at91-core.c index 435c7d7377a3..caf1846c200c 100644 --- a/drivers/i2c/busses/i2c-at91-core.c +++ b/drivers/i2c/busses/i2c-at91-core.c @@ -148,6 +148,14 @@ static struct at91_twi_pdata sama5d2_config = { .has_hold_field = true, }; +static struct at91_twi_pdata sam9x60_config = { + .clk_max_div = 7, + .clk_offset = 4, + .has_unre_flag = true, + .has_alt_cmd = true, + .has_hold_field = true, +}; + static const struct of_device_id atmel_twi_dt_ids[] = { { .compatible = "atmel,at91rm9200-i2c", @@ -174,6 +182,9 @@ static const struct of_device_id atmel_twi_dt_ids[] = { .compatible = "atmel,sama5d2-i2c", .data = &sama5d2_config, }, { + .compatible = "microchip,sam9x60-i2c", + .data = &sam9x60_config, + }, { /* sentinel */ } }; |