1. 15 5月, 2015 1 次提交
    • S
      clk: versatile: Silence sparse warnings · 11bee5e1
      Stephen Boyd 提交于
      drivers/clk/versatile/clk-sp810.c:159:29: error: incompatible types for operation (<=)
      drivers/clk/versatile/clk-sp810.c:159:29:    left side has type char const *<noident>
      drivers/clk/versatile/clk-sp810.c:159:29:    right side has type int
      drivers/clk/versatile/clk-sp810.c:159:53: error: incompatible types for operation (<=)
      drivers/clk/versatile/clk-sp810.c:159:53:    left side has type char const *<noident>
      drivers/clk/versatile/clk-sp810.c:159:53:    right side has type int
      drivers/clk/versatile/clk-sp810.c:138:13: warning: symbol 'clk_sp810_of_setup' was not declared. Should it be static?
      
      Acked: Pawel Moll <pawel.moll@arm.com>
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      11bee5e1
  2. 09 4月, 2015 1 次提交
  3. 02 4月, 2015 1 次提交
  4. 28 11月, 2014 1 次提交
  5. 25 6月, 2014 1 次提交
  6. 31 5月, 2014 1 次提交
  7. 22 5月, 2014 1 次提交
  8. 16 5月, 2014 2 次提交
    • P
      clk: versatile: Split config options for sp810 and vexpress_osc · 5ee2b877
      Pawel Moll 提交于
      Move the Kconfig entry for Versatile (& Express) clock drivers
      into a separate file and add individual options for sp810
      and vexpress_osc drivers, as they are optional in some
      configurations and may have separate dependencies.
      Signed-off-by: NPawel Moll <pawel.moll@arm.com>
      Acked-by: NMike Turquette <mturquette@linaro.org>
      5ee2b877
    • P
      mfd: vexpress: Convert custom func API to regmap · 3b9334ac
      Pawel Moll 提交于
      Components of the Versatile Express platform (configuration
      microcontrollers on motherboard and daughterboards in particular)
      talk to each other over a custom configuration bus. They
      provide miscellaneous functions (from clock generator control
      to energy sensors) which are represented as platform devices
      (and Device Tree nodes). The transactions on the bus can
      be generated by different "bridges" in the system, some
      of which are universal for the whole platform (for the price
      of high transfer latencies), others restricted to a subsystem
      (but much faster).
      
      Until now drivers for such functions were using custom "func"
      API, which is being replaced in this patch by regmap calls.
      This required:
      
      * a rework (and move to drivers/bus directory, as suggested
        by Samuel and Arnd) of the config bus core, which is much
        simpler now and uses device model infrastructure (class)
        to keep track of the bridges; non-DT case (soon to be
        retired anyway) is simply covered by a special device
        registration function
      
      * the new config-bus driver also takes over device population,
        so there is no need for special matching table for
        of_platform_populate nor "simple-bus" hack in the arm64
        model dtsi file (relevant bindings documentation has
        been updated); this allows all the vexpress devices
        fit into normal device model, making it possible
        to remove plenty of early inits and other hacks in
        the near future
      
      * adaptation of the syscfg bridge implementation in the
        sysreg driver, again making it much simpler; there is
        a special case of the "energy" function spanning two
        registers, where they should be both defined in the tree
        now, but backward compatibility is maintained in the code
      
      * modification of the relevant drivers:
      
        * hwmon - just a straight-forward API change
        * power/reset driver - API change
        * regulator - API change plus error handling
          simplification
        * osc clock driver - this one required larger rework
          in order to turn in into a standard platform driver
      Signed-off-by: NPawel Moll <pawel.moll@arm.com>
      Acked-by: NMark Brown <broonie@linaro.org>
      Acked-by: NLee Jones <lee.jones@linaro.org>
      Acked-by: NGuenter Roeck <linux@roeck-us.net>
      Acked-by: NMike Turquette <mturquette@linaro.org>
      3b9334ac
  9. 15 5月, 2014 1 次提交
  10. 04 5月, 2014 1 次提交
  11. 24 4月, 2014 1 次提交
  12. 26 2月, 2014 1 次提交
    • L
      ARM: integrator: localize the impd1.h header · cc0cc4ca
      Linus Walleij 提交于
      As we move toward multiplatform support for the Integrator family
      we need to localize all <mach/*> headers. This moves the impd1.h
      header down to the machine folder, copying the the three defines
      only used by the clock driver down into the clock driver.
      
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: Jonathan Austin <jonathan.austin@arm.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Mike Turquette <mturquette@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      cc0cc4ca
  13. 13 2月, 2014 3 次提交
    • L
      clk: versatile: respect parent rate in ICST clock · a183da63
      Linus Walleij 提交于
      If the ICST clock has a parent, respect the rate of the parent
      when calculating the clock frequency. As this involves modifying
      the ICST parameter struct, make a cloned copy (the divisor
      arrays should be safe) so we can update the .ref field.
      
      Do not define the reference clock on the Integrator as we have
      the reference clock from the device tree. Keep it everywhere
      else.
      
      Cc: Mike Turquette <mturquette@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      a183da63
    • L
      clk: versatile: pass a parent to the ICST clock · bf6edb4b
      Linus Walleij 提交于
      As we want to actually define the parent frequency in the device
      tree for the ICST clocks, modify the clock registration function
      to take a parent argument.
      
      Cc: Mike Turquette <mturquette@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      bf6edb4b
    • L
      ARM: integrator: switch to fetch clocks from device tree · 09c978bc
      Linus Walleij 提交于
      This atomic commit changes the Integrator clock implementation
      and the machines to register clocks from the device tree and
      use these instead of the previous hard-coded clocks.
      
      In the clock implementation all hard-coded clocks and the
      special initialization function call goes away, and is
      replaced by two compatible strings for the two clocks
      available on the core module.
      
      Cc: Mike Turquette <mturquette@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      09c978bc
  14. 04 1月, 2014 2 次提交
  15. 20 12月, 2013 1 次提交
  16. 08 10月, 2013 1 次提交
  17. 20 8月, 2013 1 次提交
    • J
      clk: add CLK_SET_RATE_NO_REPARENT flag · 819c1de3
      James Hogan 提交于
      Add a CLK_SET_RATE_NO_REPARENT clock flag, which will prevent muxes
      being reparented during clk_set_rate.
      
      To avoid breaking existing platforms, all callers of clk_register_mux()
      are adjusted to pass the new flag. Platform maintainers are encouraged
      to remove the flag if they wish to allow mux reparenting on set_rate.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Reviewed-by: NStephen Boyd <sboyd@codeaurora.org>
      Cc: Mike Turquette <mturquette@linaro.org>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Sascha Hauer <kernel@pengutronix.de>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Viresh Kumar <viresh.linux@gmail.com>
      Cc: Kukjin Kim <kgene.kim@samsung.com>
      Cc: Haojian Zhuang <haojian.zhuang@linaro.org>
      Cc: Chao Xie <xiechao.mail@gmail.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: "Emilio López" <emilio@elopez.com.ar>
      Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
      Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
      Cc: Prashant Gaikwad <pgaikwad@nvidia.com>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Peter De Schrijver <pdeschrijver@nvidia.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Andrew Chew <achew@nvidia.com>
      Cc: Doug Anderson <dianders@chromium.org>
      Cc: Heiko Stuebner <heiko@sntech.de>
      Cc: Paul Walmsley <pwalmsley@nvidia.com>
      Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
      Cc: Thomas Abraham <thomas.abraham@linaro.org>
      Cc: Tomasz Figa <t.figa@samsung.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-samsung-soc@vger.kernel.org
      Cc: spear-devel@list.st.com
      Cc: linux-tegra@vger.kernel.org
      Tested-by: NHaojian Zhuang <haojian.zhuang@gmail.com>
      Acked-by: Stephen Warren <swarren@nvidia.com> [tegra]
      Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> [sunxi]
      Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com> [Zynq]
      Signed-off-by: NMike Turquette <mturquette@linaro.org>
      819c1de3
  18. 20 6月, 2013 1 次提交
  19. 19 4月, 2013 1 次提交
  20. 30 1月, 2013 1 次提交
  21. 25 1月, 2013 1 次提交
  22. 22 11月, 2012 3 次提交
  23. 30 10月, 2012 2 次提交
  24. 25 8月, 2012 1 次提交
    • L
      clk: convert ARM RealView to common clk · f9a6aa43
      Linus Walleij 提交于
      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: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NMike Turquette <mturquette@linaro.org>
      f9a6aa43
  25. 12 7月, 2012 2 次提交
    • L
      ARM: integrator: convert to common clock · a613163d
      Linus Walleij 提交于
      This converts the Integrator platform to use common clock
      and the ICST driver. Since from this point not all ARM
      reference platforms use the clock, we define
      CONFIG_PLAT_VERSATILE_CLOCK and select it for all platforms
      except the Integrator.
      
      Open issue: I could not use the .init_early() field of the
      machine descriptor to initialize the clocks, but had to
      move them to .init_irq(), so presumably .init_early() is
      so early that common clock is not up, and .init_machine()
      is too late since it's needed for the clockevent/clocksource
      initialization. Any suggestions on how to solve this is
      very welcome.
      
      Cc: Russell King <linux@arm.linux.org.uk>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      [mturquette@linaro.org: use 'select' instead of versatile Kconfig]
      Signed-off-by: NMike Turquette <mturquette@linaro.org>
      a613163d
    • L
      clk: add versatile ICST307 driver · 91b87a47
      Linus Walleij 提交于
      The ICST307 VCO clock has a shared driver in the ARM
      architecture. This patch provides a wrapper into the common
      clock framework so we can use the implementation in the
      ARM architecture without duplicating the code until all
      ARM platforms using this VCO are moved over. At that point
      we can merge the driver from the ARM platform into the
      generic file altogether.
      
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Mike Turquette <mturquette@ti.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      [mturquette@linaro.org: removed versatile Kconfig]
      Signed-off-by: NMike Turquette <mturquette@linaro.org>
      91b87a47