Message ID | 20240322151219.885832-3-prabhakar.mahadev-lad.rj@bp.renesas.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Geert Uytterhoeven |
Headers | show |
Series | Add OSTM support for Renesas RZ/V2H(P) SoC | expand |
On Fri, Mar 22, 2024 at 4:13 PM Prabhakar <prabhakar.csengg@gmail.com> wrote: > From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> > > The RZ/V2H(P) (R9A09G057) SoC is equipped with the Generic Timer Module, > also known as OSTM. Similar to the RZ/G2L SoC, the OSTM on the RZ/V2H(P) > SoC requires the reset line to be deasserted before accessing any > registers. > > Early call to ostm_init() happens through TIMER_OF_DECLARE() which always > fails with -EPROBE_DEFER, as resets are not available that early in the > boot process. To address this issue on the RZ/V2H(P) SoC, enable the OSTM > driver to be reprobed through the platform driver probe mechanism. > > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> > --- > v1->v2 > - Updated commit description > - Dropped usage of IS_ENABLED() and used defined() instead Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Gr{oetje,eeting}s, Geert
diff --git a/drivers/clocksource/renesas-ostm.c b/drivers/clocksource/renesas-ostm.c index 8da972dc1713..39487d05a009 100644 --- a/drivers/clocksource/renesas-ostm.c +++ b/drivers/clocksource/renesas-ostm.c @@ -224,7 +224,7 @@ static int __init ostm_init(struct device_node *np) TIMER_OF_DECLARE(ostm, "renesas,ostm", ostm_init); -#ifdef CONFIG_ARCH_RZG2L +#if defined(CONFIG_ARCH_RZG2L) || defined(CONFIG_ARCH_R9A09G057) static int __init ostm_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev;