Skip to content

Commit db7d2d5

Browse files
committed
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>
1 parent a999ef4 commit db7d2d5

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

drivers/i2c/busses/i2c-at91.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,14 @@ static struct at91_twi_pdata sama5d2_config = {
911911
.has_hold_field = true,
912912
};
913913

914+
static struct at91_twi_pdata sam9x60_config = {
915+
.clk_max_div = 7,
916+
.clk_offset = 4,
917+
.has_unre_flag = true,
918+
.has_alt_cmd = true,
919+
.has_hold_field = true,
920+
};
921+
914922
static const struct of_device_id atmel_twi_dt_ids[] = {
915923
{
916924
.compatible = "atmel,at91rm9200-i2c",
@@ -936,6 +944,9 @@ static const struct of_device_id atmel_twi_dt_ids[] = {
936944
}, {
937945
.compatible = "atmel,sama5d2-i2c",
938946
.data = &sama5d2_config,
947+
}, {
948+
.compatible = "microchip,sam9x60-i2c",
949+
.data = &sam9x60_config,
939950
}, {
940951
/* sentinel */
941952
}

0 commit comments

Comments
 (0)