LEON: added raw AMBA vendor/device number to find TIMER, IRQCTRL
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
e2305e37d4
commit
9742e72cd1
@@ -120,8 +120,11 @@ void __init leon_init_timers(irq_handler_t counter_fn)
|
|||||||
if (!rootnp)
|
if (!rootnp)
|
||||||
goto bad;
|
goto bad;
|
||||||
np = of_find_node_by_name(rootnp, "GAISLER_IRQMP");
|
np = of_find_node_by_name(rootnp, "GAISLER_IRQMP");
|
||||||
if (!np)
|
if (!np) {
|
||||||
goto bad;
|
np = of_find_node_by_name(rootnp, "01_00d");
|
||||||
|
if (!np)
|
||||||
|
goto bad;
|
||||||
|
}
|
||||||
pp = of_find_property(np, "reg", &len);
|
pp = of_find_property(np, "reg", &len);
|
||||||
if (!pp)
|
if (!pp)
|
||||||
goto bad;
|
goto bad;
|
||||||
@@ -129,8 +132,11 @@ void __init leon_init_timers(irq_handler_t counter_fn)
|
|||||||
|
|
||||||
/* Find GPTIMER Timer Registers base address otherwise bail out. */
|
/* Find GPTIMER Timer Registers base address otherwise bail out. */
|
||||||
np = of_find_node_by_name(rootnp, "GAISLER_GPTIMER");
|
np = of_find_node_by_name(rootnp, "GAISLER_GPTIMER");
|
||||||
if (!np)
|
if (!np) {
|
||||||
goto bad;
|
np = of_find_node_by_name(np, "01_011");
|
||||||
|
if (!np)
|
||||||
|
goto bad;
|
||||||
|
}
|
||||||
pp = of_find_property(np, "reg", &len);
|
pp = of_find_property(np, "reg", &len);
|
||||||
if (!pp)
|
if (!pp)
|
||||||
goto bad;
|
goto bad;
|
||||||
|
Reference in New Issue
Block a user