1. 29 Oct, 2009 3 commits
    • Mikael Pettersson's avatar
      iop: enable generic time · 980f2296
      Mikael Pettersson authored
      
      
      This updates the IOP platform to use the kernel's generic time
      framework. With clockevent support in place, this reduces to
      selecting GENERIC_TIME and removing the platform's private timer
      ->offset() operation (iop_gettimeoffset).
      
      Tested on n2100, compile-tested for all plat-iop machines.
      Signed-off-by: default avatarMikael Pettersson <mikpe@it.uu.se>
      Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
      980f2296
    • Mikael Pettersson's avatar
      iop: clockevent support · 469d3044
      Mikael Pettersson authored
      
      
      This updates the IOP platform to expose the interrupting
      timer 0 as a clockevent object. The timer interrupt handler
      is changed to call the clockevent ->event_handler() instead
      of timer_tick(), and ->set_next_event() and ->set_mode()
      operations are added to allow the mode of the timer to be
      updated (required for ONESHOT/NOHZ mode).
      
      Timer 0 must now be properly initialised, which requires
      a new write_tcr0() function from the mach-specific code.
      
      The mode of timer 0 must be read at the start of ->set_mode(),
      which requires a new read_tmr0() function from the mach-
      specific code.
      
      Initial setup of timer 0 is also rewritten to be more robust.
      
      Tested on n2100, compile-tested for all plat-iop machines.
      Signed-off-by: default avatarMikael Pettersson <mikpe@it.uu.se>
      Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
      469d3044
    • Mikael Pettersson's avatar
      iop: clocksource support · a91549a8
      Mikael Pettersson authored
      
      
      This updates the IOP platform to expose the free-running
      timer 1 as a clocksource object. This timer is now also
      properly initialised, which requires a new write_tcr1()
      function from the mach-specific code. Apart from the
      explicit initialisation, there is no functional change
      in how timer 1 is programmed.
      
      Tested on n2100, compile-tested for all plat-iop machines.
      Signed-off-by: default avatarMikael Pettersson <mikpe@it.uu.se>
      Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
      a91549a8
  2. 15 Oct, 2009 18 commits
  3. 14 Oct, 2009 19 commits