refresh patches so they apply cleanly
authorFlorian Fainelli <florian@openwrt.org>
Fri, 14 Sep 2012 15:37:12 +0000 (15:37 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 14 Sep 2012 15:37:12 +0000 (15:37 +0000)
SVN-Revision: 33406

target/linux/leon/patches/001-find_irq_and_timer_via_of.patch
target/linux/leon/patches/007-amp_timer.patch

index 035543db6d298557e3a26de944a8f14de7d8b8d7..18d7f8beac7a176ab5c884e31e4c3ac58aa70e91 100644 (file)
@@ -45,4 +45,4 @@ Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
 +      if (leon3_gptimer_regs && leon3_irqctrl_regs && leon3_gptimer_irq) {
                LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[0].val, 0);
                LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[0].rld,
-                                     (((1000000 / 100) - 1)));
+                                     (((1000000 / HZ) - 1)));
index cd31da2653ba100814bc47573109d3225da5dbf6..d8d436347fc46777cc41d20be6f23511ffbeb3fb 100644 (file)
@@ -66,10 +66,11 @@ Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
        if (leon3_gptimer_regs && leon3_irqctrl_regs && leon3_gptimer_irq) {
 -              LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[0].val, 0);
 -              LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[0].rld,
+-                                    (((1000000 / HZ) - 1)));
+-              LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[0].ctrl, 0);
 +              LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].val, 0);
 +              LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].rld,
-                                     (((1000000 / 100) - 1)));
--              LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[0].ctrl, 0);
++                                    (((1000000 / 100) - 1)));
 +              LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].ctrl, 0);
  
  #ifdef CONFIG_SMP
@@ -84,7 +85,7 @@ Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
                }
  
 -              LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[1].val, 0);
--              LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[1].rld, (((1000000/100) - 1)));
+-              LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[1].rld, (((1000000/HZ) - 1)));
 -              LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[1].ctrl, 0);
 +              LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx+1].val, 0);
 +              LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx+1].rld, (((1000000/100) - 1)));