Skip to contentSkip to conversation

ARM: at91: pwm: atmel-hlcdc: add at91sam9n12 entry for the errata

PATCH New Boris Brezillon 2 participants 2 messages Jul 31, 2015

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

PATCH 1/1 ARM: at91: pwm: atmel-hlcdc: add at91sam9n12 entry for the errata

From: Josh Wu <[email protected]>

The errata for pwm hlcdc of at91sam9n12 is same as at91sam9x5.

---
 drivers/pwm/pwm-atmel-hlcdc.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/pwm/pwm-atmel-hlcdc.c +5 -0
index fa5feab..3f76d77 100644
@@ -218,6 +218,11 @@ static const struct atmel_hlcdc_pwm_errata atmel_hlcdc_pwm_sama5d3_errata = {
 
 static const struct of_device_id atmel_hlcdc_dt_ids[] = {
 	{
+		.compatible = "atmel,at91sam9n12-hlcdc",
+		/* 9n12 has same errata as 9x5 pwm */
+		.data = &atmel_hlcdc_pwm_at91sam9x5_errata,
+	},
+	{
 		.compatible = "atmel,at91sam9x5-hlcdc",
 		.data = &atmel_hlcdc_pwm_at91sam9x5_errata,
 	},
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 ARM: at91: pwm: atmel-hlcdc: add at91sam9n12 entry for the errata

Hi,

The subject should probably be simply:
pwm: atmel-hlcdc: add at91sam9n12 entry for the errata

Quoted 5 lines · Boris Brezillon

From: Josh Wu <[email protected]>

The errata for pwm hlcdc of at91sam9n12 is same as at91sam9x5.

Quoted 23 lines
---
 drivers/pwm/pwm-atmel-hlcdc.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/pwm/pwm-atmel-hlcdc.c +5 -0
index fa5feab..3f76d77 100644
@@ -218,6 +218,11 @@ static const struct atmel_hlcdc_pwm_errata atmel_hlcdc_pwm_sama5d3_errata = {
 
 static const struct of_device_id atmel_hlcdc_dt_ids[] = {
 	{
+		.compatible = "atmel,at91sam9n12-hlcdc",
+		/* 9n12 has same errata as 9x5 pwm */
+		.data = &atmel_hlcdc_pwm_at91sam9x5_errata,
+	},
+	{
 		.compatible = "atmel,at91sam9x5-hlcdc",
 		.data = &atmel_hlcdc_pwm_at91sam9x5_errata,
 	},
Signature · 1 line
1.9.1
Signature · 3 lines
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com