1. 31 Aug, 2012 1 commit
  2. 28 Aug, 2012 1 commit
  3. 25 Aug, 2012 1 commit
    • Linus Walleij's avatar
      clk: convert ARM RealView to common clk · f9a6aa43
      Linus Walleij authored
      
      This converts the ARM RealView machine over to using the common
      clock. The approach is similar to the one used for the Integrator,
      and we're reusing the ICST wrapper code.
      
      We have to put the clock intialization in the timer init function
      for the clocks to be available when initializing the timer,
      keeping them in early_init() is too early for the common clk.
      
      Since we now have to go down and compile drivers/clk/versatile
      a CONFIG_COMMON_CLK_VERSATILE symbol has been added so the proper
      code gets compiled into the kernel for either machine. A leftover
      CLK_VERSATILE in the Integrator Kconfig was fixed up to use
      the new symbol as well.
      
      Tested on ARM RealView PB1176.
      
      Cc: Pawel Moll <pawel.moll@arm.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
      f9a6aa43
  4. 24 Aug, 2012 1 commit
  5. 19 Jul, 2012 1 commit
  6. 12 Jul, 2012 2 commits
  7. 11 Jul, 2012 2 commits
    • Linus Walleij's avatar
      ARM: u300: convert to common clock · 50667d63
      Linus Walleij authored
      
      This converts the U300 clock implementation over to use the common
      struct clk and moves the implementation down into drivers/clk.
      Since VCO isn't used in tree it was removed, it's not hard to
      put it back in if need be.
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      [mturquette@linaro.org: trivial Makefile conflict]
      Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
      50667d63
    • Mark Brown's avatar
      clk: wm831x: Add initial WM831x clock driver · f05259a6
      Mark Brown authored
      
      The WM831x and WM832x series of PMICs contain a flexible clocking
      subsystem intended to provide always on and system core clocks.  It
      features:
      
      - A 32.768kHz crystal oscillator which can optionally be used to pass
        through an externally generated clock.
      - A FLL which can be clocked from either the 32.768kHz oscillator or
        the CLKIN pin.
      - A CLKOUT pin which can bring out either the oscillator or the FLL
        output.
      - The 32.768kHz clock can also optionally be brought out on the GPIO
        pins of the device.
      
      This driver fully supports the 32.768kHz oscillator and CLKOUT.  The FLL
      is supported only in AUTO mode, the full flexibility of the FLL cannot
      currently be used.
      
      Due to a lack of access to systems where the core SoC has been converted
      to use the generic clock API this driver has been compile tested only.
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
      f05259a6
  8. 10 Jun, 2012 1 commit
  9. 12 May, 2012 1 commit
    • Viresh Kumar's avatar
      SPEAr: clk: Add VCO-PLL Synthesizer clock · 55b8fd4f
      Viresh Kumar authored
      
      All SPEAr SoC's contain PLLs. Their Fout is derived based on following equations
      
      - In normal mode
        vco = (2 * M[15:8] * Fin)/N
      
      - In Dithered mode
        vco = (2 * M[15:0] * Fin)/(256 * N)
      
      pll_rate = vco/2^p
      
      vco and pll are very closely bound to each other,
      "vco needs to program: mode, m & n" and "pll needs to program p",
      both share common enable/disable logic and registers.
      
      This patch adds in support for this type of clock.
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@st.com>
      Reviewed-by: default avatarMike Turquette <mturquette@linaro.org>
      55b8fd4f
  10. 08 May, 2012 2 commits
  11. 16 Mar, 2012 2 commits
    • Mike Turquette's avatar
      clk: basic clock hardware types · 9d9f78ed
      Mike Turquette authored
      
      Many platforms support simple gateable clocks, fixed-rate clocks,
      adjustable divider clocks and multi-parent multiplexer clocks.
      
      This patch introduces basic clock types for the above-mentioned hardware
      which share some common characteristics.
      
      Based on original work by Jeremy Kerr and contribution by Jamie Iles.
      Dividers and multiplexor clocks originally contributed by Richard Zhao &
      Sascha Hauer.
      Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
      Signed-off-by: default avatarMike Turquette <mturquette@ti.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Tested-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: default avatarRob Herring <rob.herring@calxeda.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Jeremy Kerr <jeremy.kerr@canonical.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Arnd Bergman <arnd.bergmann@linaro.org>
      Cc: Paul Walmsley <paul@pwsan.com>
      Cc: Shawn Guo <shawn.guo@freescale.com>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Jamie Iles <jamie@jamieiles.com>
      Cc: Richard Zhao <richard.zhao@linaro.org>
      Cc: Saravana Kannan <skannan@codeaurora.org>
      Cc: Magnus Damm <magnus.damm@gmail.com>
      Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: Linus Walleij <linus.walleij@stericsson.com>
      Cc: Stephen Boyd <sboyd@codeaurora.org>
      Cc: Amit Kucheria <amit.kucheria@linaro.org>
      Cc: Deepak Saxena <dsaxena@linaro.org>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      9d9f78ed
    • Mike Turquette's avatar
      clk: introduce the common clock framework · b2476490
      Mike Turquette authored
      
      The common clock framework defines a common struct clk useful across
      most platforms as well as an implementation of the clk api that drivers
      can use safely for managing clocks.
      
      The net result is consolidation of many different struct clk definitions
      and platform-specific clock framework implementations.
      
      This patch introduces the common struct clk, struct clk_ops and an
      implementation of the well-known clock api in include/clk/clk.h.
      Platforms may define their own hardware-specific clock structure and
      their own clock operation callbacks, so long as it wraps an instance of
      struct clk_hw.
      
      See Documentation/clk.txt for more details.
      
      This patch is based on the work of Jeremy Kerr, which in turn was based
      on the work of Ben Herrenschmidt.
      Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
      Signed-off-by: default avatarMike Turquette <mturquette@ti.com>
      Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Tested-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: Rob Herring <rob.herring <at> calxeda.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Jeremy Kerr <jeremy.kerr@canonical.com>
      Cc: Arnd Bergman <arnd.bergmann@linaro.org>
      Cc: Paul Walmsley <paul@pwsan.com>
      Cc: Shawn Guo <shawn.guo@freescale.com>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Richard Zhao <richard.zhao@linaro.org>
      Cc: Saravana Kannan <skannan@codeaurora.org>
      Cc: Magnus Damm <magnus.damm@gmail.com>
      Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: Linus Walleij <linus.walleij@stericsson.com>
      Cc: Stephen Boyd <sboyd@codeaurora.org>
      Cc: Amit Kucheria <amit.kucheria@linaro.org>
      Cc: Deepak Saxena <dsaxena@linaro.org>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      b2476490
  12. 26 Nov, 2010 1 commit