014-timer_irqctrl_amba_vendor_device.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. From 12782c44d0c687b5b0400a8224a9b1bf9eb9a428 Mon Sep 17 00:00:00 2001
  2. From: Daniel Hellstrom <[email protected]>
  3. Date: Tue, 26 Oct 2010 09:59:05 +0200
  4. Subject: [PATCH] TIMER,IRQCTRL: added raw AMBA vendor/device number to match against.
  5. Signed-off-by: Daniel Hellstrom <[email protected]>
  6. ---
  7. arch/sparc/kernel/leon_kernel.c | 6 ++++--
  8. 1 files changed, 4 insertions(+), 2 deletions(-)
  9. --- a/arch/sparc/kernel/leon_kernel.c
  10. +++ b/arch/sparc/kernel/leon_kernel.c
  11. @@ -120,7 +120,8 @@ void __init leon_init_timers(irq_handler
  12. /* Find IRQMP IRQ Controller Registers base address otherwise bail out. */
  13. rootnp = of_find_node_by_path("/ambapp0");
  14. - if (rootnp && (np=of_find_node_by_name(rootnp, "GAISLER_IRQMP"))) {
  15. + if (rootnp && ((np=of_find_node_by_name(rootnp, "GAISLER_IRQMP")) ||
  16. + (np=of_find_node_by_name(rootnp, "01_00d")))) {
  17. pp = of_find_property(np, "reg", &len);
  18. if (pp)
  19. leon3_irqctrl_regs = *(struct leon3_irqctrl_regs_map **)pp->value;
  20. @@ -128,7 +129,8 @@ void __init leon_init_timers(irq_handler
  21. /* Find GPTIMER Timer Registers base address otherwise bail out. */
  22. np = rootnp;
  23. - while (np && (np=of_find_node_by_name(np, "GAISLER_GPTIMER"))) {
  24. + while (np && ((np=of_find_node_by_name(np, "GAISLER_GPTIMER")) ||
  25. + (np=of_find_node_by_name(np, "01_011")))) {
  26. ampopts = 0;
  27. pp = of_find_property(np, "ampopts", &len);
  28. if ( pp && ((ampopts = *(int *)pp->value) == 0) ) {