19 Dec, 2011

1 commit

  • sched_clock() is yet another blocker on the road to the single
    image. This patch implements an idea by Russell King:

    http://www.spinics.net/lists/linux-omap/msg49561.html

    Instead of asking the platform to implement both sched_clock()
    itself and the rollover callback, simply register a read()
    function, and let the ARM code care about sched_clock() itself,
    the conversion to ns and the rollover. sched_clock() uses
    this read() function as an indirection to the platform code.
    If the platform doesn't provide a read(), the code falls back
    to the jiffy counter (just like the default sched_clock).

    This allow some simplifications and possibly some footprint gain
    when multiple platforms are compiled in. Among the drawbacks,
    the removal of the *_fixed_sched_clock optimization which could
    negatively impact some platforms (sa1100, tegra, versatile
    and omap).

    Tested on 11MPCore, OMAP4 and Tegra.

    Cc: Imre Kaloz
    Cc: Eric Miao
    Cc: Colin Cross
    Cc: Erik Gilling
    Cc: Olof Johansson
    Cc: Sascha Hauer
    Cc: Alessandro Rubini
    Cc: STEricsson
    Cc: Lennert Buytenhek
    Cc: Ben Dooks
    Tested-by: Jamie Iles
    Tested-by: Tony Lindgren
    Tested-by: Kyungmin Park
    Acked-by: Linus Walleij
    Acked-by: Nicolas Pitre
    Acked-by: Krzysztof Halasa
    Acked-by: Kukjin Kim
    Signed-off-by: Marc Zyngier
    Signed-off-by: Russell King

    Marc Zyngier
     

24 May, 2011

2 commits


19 May, 2011

1 commit

  • Since support for mxc91231 was introduced 2009 it only saw patches that
    were part of (mxc or arm) global cleanups. The only supported machine
    only had 4 devices (2x UART, sdhc, watchdog).

    Cc: Dmitriy Taychenachev
    LAKML-Reference: 1302211482-17926-1-git-send-email-u.kleine-koenig@pengutronix.de
    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Sascha Hauer

    Uwe Kleine-König
     

23 Mar, 2011

2 commits


23 Dec, 2010

1 commit

  • In d7e81c2 (clocksource: Add clocksource_register_hz/khz interface) new
    interfaces were added which simplify (and optimize) the selection of the
    divisor shift/mult constants. Switch over to using this new interface.

    Acked-by: Sascha Hauer
    Signed-off-by: Russell King

    Russell King
     

23 Apr, 2010

1 commit


22 Apr, 2010

1 commit


09 Feb, 2010

1 commit

  • Refactor the timer code into version 1 and version 2.

    Essentially there are 2 versions of the timer hardware on Freescale MXC
    hardware. Version 1 is found on MX1/MXL, MX21 and MX27. Version 2 is found on
    MX25, MX31, MX35, MX37, MX51, and future parts.

    Signed-off-by: Sascha Hauer
    Acked-by: Grant Likely
    Signed-off-by: Amit Kucheria

    Sascha Hauer
     

14 Aug, 2009

2 commits


07 Aug, 2009

1 commit


07 May, 2009

2 commits


22 Apr, 2009

1 commit

  • Pass clocksource pointer to the read() callback for clocksources. This
    allows us to share the callback between multiple instances.

    [hugh@veritas.com: fix powerpc build of clocksource pass clocksource mods]
    [akpm@linux-foundation.org: cleanup]
    Signed-off-by: Magnus Damm
    Acked-by: John Stultz
    Cc: Thomas Gleixner
    Signed-off-by: Hugh Dickins
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Magnus Damm
     

13 Mar, 2009

2 commits

  • Here are some of the warnings that get fixed by this:

    > 200 times: warning: cast adds address space to expression ()
    twelve times: warning: symbol 'xxx' was not declared. Should it be static
    two times: warning: symbol 'clock' shadows an earlier one
    five times: warning: incorrect type in initializer (different address spaces)

    Signed-off-by: Holger Schurig
    Signed-off-by: Sascha Hauer

    Holger Schurig
     
  • - rename mxc_clocks_init to architecture specific versions. This
    allows us to have more than one architecture compiled in.
    - call mxc_timer_init from clock initialisation instead from board
    code

    Signed-off-by: Sascha Hauer

    Sascha Hauer
     

13 Dec, 2008

1 commit


07 Aug, 2008

2 commits


05 Jul, 2008

1 commit

  • This patch adds timer support for the i.MX machine family. This code can
    be used on the following machs:

    - i.MX1 (tested)
    - i.MX2 (i.MX21 (to be tested), i.MX27 (tested))
    - i.MX3 (i.MX31 (tested))

    TODO: It seems impossible to build a kernel for more than one CPU because the
    timer do not follow the platform device rules. So it does only work if
    timer 1 can be accessed on all CPUs at the same address.

    Signed-off-by: Juergen Beisert
    Signed-off-by: Sascha Hauer

    Juergen Beisert