diff mbox series

[v2,1/3] irqchip/atmel-aic5: add support for sam9x60 rtt fixup

Message ID 1591779936-18577-2-git-send-email-claudiu.beznea@microchip.com (mailing list archive)
State Mainlined
Commit 293953d60e214aa44b3261f5350b83f285a95eb4
Headers show
Series add RTT support for SAM9X60 | expand

Commit Message

Claudiu Beznea June 10, 2020, 9:05 a.m. UTC
Add support for SAM9X60 RTT fixup.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 drivers/irqchip/irq-atmel-aic5.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Comments

Alexandre Belloni June 26, 2020, 8:38 p.m. UTC | #1
On 10/06/2020 12:05:34+0300, Claudiu Beznea wrote:
> Add support for SAM9X60 RTT fixup.
> 
> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>

Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

> ---
>  drivers/irqchip/irq-atmel-aic5.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/irqchip/irq-atmel-aic5.c b/drivers/irqchip/irq-atmel-aic5.c
> index fc1b3a9cdafc..fb4ad2aaa727 100644
> --- a/drivers/irqchip/irq-atmel-aic5.c
> +++ b/drivers/irqchip/irq-atmel-aic5.c
> @@ -310,10 +310,16 @@ static void __init sama5d3_aic_irq_fixup(void)
>  	aic_common_rtc_irq_fixup();
>  }
>  
> +static void __init sam9x60_aic_irq_fixup(void)
> +{
> +	aic_common_rtc_irq_fixup();
> +	aic_common_rtt_irq_fixup();
> +}
> +
>  static const struct of_device_id aic5_irq_fixups[] __initconst = {
>  	{ .compatible = "atmel,sama5d3", .data = sama5d3_aic_irq_fixup },
>  	{ .compatible = "atmel,sama5d4", .data = sama5d3_aic_irq_fixup },
> -	{ .compatible = "microchip,sam9x60", .data = sama5d3_aic_irq_fixup },
> +	{ .compatible = "microchip,sam9x60", .data = sam9x60_aic_irq_fixup },
>  	{ /* sentinel */ },
>  };
>  
> -- 
> 2.7.4
>
diff mbox series

Patch

diff --git a/drivers/irqchip/irq-atmel-aic5.c b/drivers/irqchip/irq-atmel-aic5.c
index fc1b3a9cdafc..fb4ad2aaa727 100644
--- a/drivers/irqchip/irq-atmel-aic5.c
+++ b/drivers/irqchip/irq-atmel-aic5.c
@@ -310,10 +310,16 @@  static void __init sama5d3_aic_irq_fixup(void)
 	aic_common_rtc_irq_fixup();
 }
 
+static void __init sam9x60_aic_irq_fixup(void)
+{
+	aic_common_rtc_irq_fixup();
+	aic_common_rtt_irq_fixup();
+}
+
 static const struct of_device_id aic5_irq_fixups[] __initconst = {
 	{ .compatible = "atmel,sama5d3", .data = sama5d3_aic_irq_fixup },
 	{ .compatible = "atmel,sama5d4", .data = sama5d3_aic_irq_fixup },
-	{ .compatible = "microchip,sam9x60", .data = sama5d3_aic_irq_fixup },
+	{ .compatible = "microchip,sam9x60", .data = sam9x60_aic_irq_fixup },
 	{ /* sentinel */ },
 };