LEON: added raw AMBA vendor/device number to find TIMER, IRQCTRL
authorDaniel Hellstrom <daniel@gaisler.com>
Tue, 4 Jan 2011 01:41:31 +0000 (01:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jan 2011 19:16:36 +0000 (11:16 -0800)
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/leon_kernel.c

index 91a978f4d83beadb507b6c4313a658fc5ca3deee..88ade07f976ce9042eb239d857b2f7cbe1e380f7 100644 (file)
@@ -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;