Commit b0027792 authored by Eugen Hristev's avatar Eugen Hristev Committed by Wolfram Sang

i2c: at91: add new platform support for sam9x60

Add new platform data support for the sam9x60 SoC
Signed-off-by: default avatarEugen Hristev <eugen.hristev@microchip.com>
Acked-by: default avatarLudovic Desroches <ludovic.desroches@microchip.com>
Reviewed-by: default avatarPeter Rosin <peda@axentia.se>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent b84dfe1a
...@@ -148,6 +148,14 @@ static struct at91_twi_pdata sama5d2_config = { ...@@ -148,6 +148,14 @@ static struct at91_twi_pdata sama5d2_config = {
.has_hold_field = true, .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[] = { static const struct of_device_id atmel_twi_dt_ids[] = {
{ {
.compatible = "atmel,at91rm9200-i2c", .compatible = "atmel,at91rm9200-i2c",
...@@ -173,6 +181,9 @@ static const struct of_device_id atmel_twi_dt_ids[] = { ...@@ -173,6 +181,9 @@ static const struct of_device_id atmel_twi_dt_ids[] = {
}, { }, {
.compatible = "atmel,sama5d2-i2c", .compatible = "atmel,sama5d2-i2c",
.data = &sama5d2_config, .data = &sama5d2_config,
}, {
.compatible = "microchip,sam9x60-i2c",
.data = &sam9x60_config,
}, { }, {
/* sentinel */ /* sentinel */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment