Skip to contentSkip to conversation

i2c: at91: add compatible with microchip,sam9x60-i2c

PATCH In review Eugen Hristev 2 participants 3 messages Jan 5, 2022 – Jan 13, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: at91: add compatible with microchip,sam9x60-i2c

Add compatible and data platform struct for sam9x60 SoC.

---
 drivers/i2c/at91_i2c.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/i2c/at91_i2c.c +6 -0
index 6b4c0e4804..e743d2a849 100644
@@ -305,6 +305,11 @@ static const struct at91_i2c_pdata sama5d2_config = {
 	.clk_offset = 3,
 };
 
+static const struct at91_i2c_pdata sam9x60_config = {
+	.clk_max_div = 7,
+	.clk_offset = 3,
+};
+
 static const struct udevice_id at91_i2c_ids[] = {
 { .compatible = "atmel,at91rm9200-i2c", .data = (long)&at91rm9200_config },
 { .compatible = "atmel,at91sam9260-i2c", .data = (long)&at91sam9260_config },
@@ -314,6 +319,7 @@ static const struct udevice_id at91_i2c_ids[] = {
 { .compatible = "atmel,at91sam9x5-i2c", .data = (long)&at91sam9x5_config },
 { .compatible = "atmel,sama5d4-i2c", .data = (long)&sama5d4_config },
 { .compatible = "atmel,sama5d2-i2c", .data = (long)&sama5d2_config },
+{ .compatible = "microchip,sam9x60-i2c", .data = (long)&sam9x60_config },
 { }
 };
 
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

Hello Eugen,

Quoted 6 lines · Eugen Hristev

Add compatible and data platform struct for sam9x60 SoC.

---
 drivers/i2c/at91_i2c.c | 6 ++++++
 1 file changed, 6 insertions(+)

Thanks!

bye,
Heiko

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: [email protected]
#2 lore raw
Quoted 5 lines · Heiko Schocher

Hello Eugen,

Quoted 2 lines · Eugen Hristev

Add compatible and data platform struct for sam9x60 SoC.

Quoted 8 lines
Quoted 4 lines
---
  drivers/i2c/at91_i2c.c | 6 ++++++
  1 file changed, 6 insertions(+)

Thanks!

Applied to u-boot-at91/master

Quoted 8 lines

bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: [email protected]