Merge branch 'omap-timer-for-v3.10' of git://github.com/jonhunter/linux into omap...
authorTony Lindgren <tony@atomide.com>
Wed, 3 Apr 2013 17:47:59 +0000 (10:47 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 3 Apr 2013 17:47:59 +0000 (10:47 -0700)
Conflicts:
arch/arm/mach-omap2/timer.c

1  2 
arch/arm/mach-omap2/board-cm-t3517.c
arch/arm/mach-omap2/board-generic.c
arch/arm/mach-omap2/common.h
arch/arm/mach-omap2/timer.c

Simple merge
index e54a480601988402e4b43fe54e4ac287fbed51d4,7324d995094d83169054cad11016481c08ec0369..78813b3972098faf7860be9a90ce4fd94b1ac1dc
@@@ -140,9 -139,8 +140,9 @@@ DT_MACHINE_START(AM33XX_DT, "Generic AM
        .init_irq       = omap_intc_of_init,
        .handle_irq     = omap3_intc_handle_irq,
        .init_machine   = omap_generic_init,
-       .init_time      = omap3_am33xx_gptimer_timer_init,
+       .init_time      = omap3_gptimer_timer_init,
        .dt_compat      = am33xx_boards_compat,
 +      .restart        = am33xx_restart,
  MACHINE_END
  #endif
  
Simple merge
index 06cbb49cc976fd73be8fd3647fccac665ee1059f,fd05024bbe4b79d672d89059c57544e2fb1879e3..858ec7c17d5663e89823611e082bcf41b1492659
@@@ -130,8 -120,8 +120,7 @@@ static void omap2_gp_timer_set_mode(enu
  }
  
  static struct clock_event_device clockevent_gpt = {
-       .name           = "gp_timer",
        .features       = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT,
 -      .shift          = 32,
        .rating         = 300,
        .set_next_event = omap2_gp_timer_set_next_event,
        .set_mode       = omap2_gp_timer_set_mode,
@@@ -336,14 -336,20 +335,14 @@@ static void __init omap2_gp_clockevent_
  
        __omap_dm_timer_int_enable(&clkev, OMAP_TIMER_INT_OVERFLOW);
  
 -      clockevent_gpt.mult = div_sc(clkev.rate, NSEC_PER_SEC,
 -                                   clockevent_gpt.shift);
 -      clockevent_gpt.max_delta_ns =
 -              clockevent_delta2ns(0xffffffff, &clockevent_gpt);
 -      clockevent_gpt.min_delta_ns =
 -              clockevent_delta2ns(3, &clockevent_gpt);
 -              /* Timer internal resynch latency. */
 -
        clockevent_gpt.cpumask = cpu_possible_mask;
        clockevent_gpt.irq = omap_dm_timer_get_irq(&clkev);
 -      clockevents_register_device(&clockevent_gpt);
 +      clockevents_config_and_register(&clockevent_gpt, clkev.rate,
 +                                      3, /* Timer internal resynch latency */
 +                                      0xffffffff);
  
-       pr_info("OMAP clockevent source: GPTIMER%d at %lu Hz\n",
-               gptimer_id, clkev.rate);
+       pr_info("OMAP clockevent source: %s at %lu Hz\n", clockevent_gpt.name,
+               clkev.rate);
  }
  
  /* Clocksource code */
@@@ -488,7 -496,7 +489,7 @@@ static void __init realtime_counter_ini
                pr_err("%s: ioremap failed\n", __func__);
                return;
        }
-       sys_clk = clk_get(NULL, OMAP5_MPU_SOURCE);
 -      sys_clk = clk_get(NULL, "sys_clkin_ck");
++      sys_clk = clk_get(NULL, "sys_clkin");
        if (IS_ERR(sys_clk)) {
                pr_err("%s: failed to get system clock handle\n", __func__);
                iounmap(base);