提交 9742e72c 编写于 作者: D Daniel Hellstrom 提交者: David S. Miller

LEON: added raw AMBA vendor/device number to find TIMER, IRQCTRL

Signed-off-by: NDaniel Hellstrom <daniel@gaisler.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e2305e37
......@@ -120,8 +120,11 @@ void __init leon_init_timers(irq_handler_t counter_fn)
if (!rootnp)
goto bad;
np = of_find_node_by_name(rootnp, "GAISLER_IRQMP");
if (!np)
goto bad;
if (!np) {
np = of_find_node_by_name(rootnp, "01_00d");
if (!np)
goto bad;
}
pp = of_find_property(np, "reg", &len);
if (!pp)
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. */
np = of_find_node_by_name(rootnp, "GAISLER_GPTIMER");
if (!np)
goto bad;
if (!np) {
np = of_find_node_by_name(np, "01_011");
if (!np)
goto bad;
}
pp = of_find_property(np, "reg", &len);
if (!pp)
goto bad;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册