2022-06-08 11:02:18

by Tomer Maimon

[permalink] [raw]
Subject: [PATCH v2 01/20] clocksource: timer-npcm7xx: Add NPCM845 timer

Add Nuvoton BMC NPCM845 timer support.
The NPCM845 uses the same timer controller as the NPCM750.

Signed-off-by: Tomer Maimon <[email protected]>
---
drivers/clocksource/timer-npcm7xx.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/clocksource/timer-npcm7xx.c b/drivers/clocksource/timer-npcm7xx.c
index a00520cbb660..1630daad4df5 100644
--- a/drivers/clocksource/timer-npcm7xx.c
+++ b/drivers/clocksource/timer-npcm7xx.c
@@ -210,4 +210,5 @@ static int __init npcm7xx_timer_init(struct device_node *np)

TIMER_OF_DECLARE(wpcm450, "nuvoton,wpcm450-timer", npcm7xx_timer_init);
TIMER_OF_DECLARE(npcm7xx, "nuvoton,npcm750-timer", npcm7xx_timer_init);
+TIMER_OF_DECLARE(npcm8xx, "nuvoton,npcm845-timer", npcm7xx_timer_init);

--
2.33.0


2022-06-08 12:28:07

by Arnd Bergmann

[permalink] [raw]
Subject: Re: [PATCH v2 01/20] clocksource: timer-npcm7xx: Add NPCM845 timer

On Wed, Jun 8, 2022 at 11:56 AM Tomer Maimon <[email protected]> wrote:
>
> Add Nuvoton BMC NPCM845 timer support.
> The NPCM845 uses the same timer controller as the NPCM750.
>
> Signed-off-by: Tomer Maimon <[email protected]>
> ---
> drivers/clocksource/timer-npcm7xx.c | 1 +

This one should no longer be needed if the timers are compatible with the
old ones and correctly described in the DT.

Arnd