1. 30 Aug, 2018 1 commit
    • Rob Herring's avatar
      clk: Convert to using %pOFn instead of device_node.name · e665f029
      Rob Herring authored
      In preparation to remove the node name pointer from struct device_node,
      convert printf users to use the %pOFn format specifier.
      
      Cc: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
      Cc: Michael Turquette <mturquette@baylibre.com>
      Cc: Stephen Boyd <sboyd@kernel.org>
      Cc: linux-clk@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-renesas-soc@vger.kernel.org
      Cc: linux-omap@vger.kernel.org
      Signed-off-by: Rob Herring's avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
      e665f029
  2. 04 Jan, 2018 1 commit
  3. 21 Jul, 2017 1 commit
  4. 04 Nov, 2016 1 commit
    • Stéphan Rafin's avatar
      clk: sunxi: Fix M factor computation for APB1 · ac95330b
      Stéphan Rafin authored
      commit cfa63688 ("clk: sunxi: factors: Consolidate get_factors
      parameters into a struct") introduced a regression for m factor
      computation in sun4i_get_apb1_factors function.
      
      The old code reassigned the "parent_rate" parameter to the targeted
      divisor value and was buggy for the returned frequency but not for the
      computed factors. Now, returned frequency is good but m factor is
      incorrectly computed (its max value 31 is always set resulting in a
      significantly slower frequency than the requested one...)
      
      This patch simply restores the original proper computation for m while
      keeping the good changes for returned rate.
      
      Fixes: cfa63688 ("clk: sunxi: factors: Consolidate get_factors parameters into a struct")
      Signed-off-by: default avatarStéphan Rafin <stephan@soliotek.com>
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      ac95330b
  5. 25 Apr, 2016 1 commit
  6. 21 Apr, 2016 1 commit
  7. 22 Feb, 2016 3 commits
  8. 11 Feb, 2016 5 commits
  9. 02 Feb, 2016 1 commit
  10. 29 Jan, 2016 1 commit
  11. 27 Jan, 2016 2 commits
  12. 08 Dec, 2015 1 commit
    • Jens Kuske's avatar
      clk: sunxi: Add H3 clocks support · ab6e23a4
      Jens Kuske authored
      The H3 clock control unit is similar to the those of other sun8i family
      members like the A23.
      
      It adds a new bus gates clock similar to the simple gates, but with a
      different parent clock for each single gate.
      Some of the gates use the new AHB2 clock as parent, whose clock source
      is muxable between AHB1 and PLL6/2. The documentation isn't totally clear
      about which devices belong to AHB2 now, especially USB EHIC/OHIC, so it
      is mostly based on Allwinner kernel source code.
      Signed-off-by: default avatarJens Kuske <jenskuske@gmail.com>
      Acked-by: Rob Herring's avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      ab6e23a4
  13. 17 Oct, 2015 1 commit
  14. 24 Aug, 2015 3 commits
  15. 12 Aug, 2015 1 commit
  16. 28 Jul, 2015 3 commits
    • Dinh Nguyen's avatar
      clk: sunxi: make use of of_clk_parent_fill helper function · 8a53fb2b
      Dinh Nguyen authored
      Use of_clk_parent_fill to fill in the parent clock names' array.
      Signed-off-by: default avatarDinh Nguyen <dinguyen@opensource.altera.com>
      Acked-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      Cc: "Emilio López" <emilio@elopez.com.ar>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      8a53fb2b
    • Boris Brezillon's avatar
      clk: fix some determine_rate implementations · 57d866e6
      Boris Brezillon authored
      Some determine_rate implementations are not returning an error
      when they failed to adapt the rate according to the rate request.
      Fix them so that they return an error instead of silently
      returning 0.
      Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
      CC: Jonathan Corbet <corbet@lwn.net>
      CC: Tony Lindgren <tony@atomide.com>
      CC: Ralf Baechle <ralf@linux-mips.org>
      CC: "Emilio López" <emilio@elopez.com.ar>
      CC: Maxime Ripard <maxime.ripard@free-electrons.com>
      Cc: Tero Kristo <t-kristo@ti.com>
      CC: Peter De Schrijver <pdeschrijver@nvidia.com>
      CC: Prashant Gaikwad <pgaikwad@nvidia.com>
      CC: Stephen Warren <swarren@wwwdotorg.org>
      CC: Thierry Reding <thierry.reding@gmail.com>
      CC: Alexandre Courbot <gnurou@gmail.com>
      CC: linux-doc@vger.kernel.org
      CC: linux-kernel@vger.kernel.org
      CC: linux-arm-kernel@lists.infradead.org
      CC: linux-omap@vger.kernel.org
      CC: linux-mips@linux-mips.org
      CC: linux-tegra@vger.kernel.org
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      57d866e6
    • Boris Brezillon's avatar
      clk: change clk_ops' ->determine_rate() prototype · 0817b62c
      Boris Brezillon authored
      Clock rates are stored in an unsigned long field, but ->determine_rate()
      (which returns a rounded rate from a requested one) returns a long
      value (errors are reported using negative error codes), which can lead
      to long overflow if the clock rate exceed 2Ghz.
      
      Change ->determine_rate() prototype to return 0 or an error code, and pass
      a pointer to a clk_rate_request structure containing the expected target
      rate and the rate constraints imposed by clk users.
      
      The clk_rate_request structure might be extended in the future to contain
      other kind of constraints like the rounding policy, the maximum clock
      inaccuracy or other things that are not yet supported by the CCF
      (power consumption constraints ?).
      Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
      CC: Jonathan Corbet <corbet@lwn.net>
      CC: Tony Lindgren <tony@atomide.com>
      CC: Ralf Baechle <ralf@linux-mips.org>
      CC: "Emilio López" <emilio@elopez.com.ar>
      CC: Maxime Ripard <maxime.ripard@free-electrons.com>
      Acked-by: default avatarTero Kristo <t-kristo@ti.com>
      CC: Peter De Schrijver <pdeschrijver@nvidia.com>
      CC: Prashant Gaikwad <pgaikwad@nvidia.com>
      CC: Stephen Warren <swarren@wwwdotorg.org>
      CC: Thierry Reding <thierry.reding@gmail.com>
      CC: Alexandre Courbot <gnurou@gmail.com>
      CC: linux-doc@vger.kernel.org
      CC: linux-kernel@vger.kernel.org
      CC: linux-arm-kernel@lists.infradead.org
      CC: linux-omap@vger.kernel.org
      CC: linux-mips@linux-mips.org
      CC: linux-tegra@vger.kernel.org
      [sboyd@codeaurora.org: Fix parent dereference problem in
      __clk_determine_rate()]
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      Tested-by: default avatarRomain Perier <romain.perier@gmail.com>
      Signed-off-by: Heiko Stuebner's avatarHeiko Stuebner <heiko@sntech.de>
      [sboyd@codeaurora.org: Folded in fix from Heiko for fixed-rate
      clocks without parents or a rate determining op]
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      0817b62c
  17. 20 Jul, 2015 1 commit
  18. 05 Jul, 2015 1 commit
  19. 05 May, 2015 1 commit
  20. 25 Mar, 2015 2 commits
  21. 21 Mar, 2015 3 commits
  22. 23 Feb, 2015 1 commit
    • Chen-Yu Tsai's avatar
      clk: sunxi: Move USB clocks to separate file · 6089ef19
      Chen-Yu Tsai authored
      The USB clocks originally shared code with the gates clocks, but had
      additional reset controllers. Move these to a separate file. This will
      allow us to add new support for slightly different USB clocks, such as
      on the A80, without affecting gates clocks, and also facilitate the
      migration of gates clocks to a generic solution.
      
      This also cleans up the USB clocks code slightly, such as adding
      newlines, getting rid of the unused clkdev call, using a simple
      u32 instead of BITMAP for the clock masks, using BIT() macro to
      declare the clock bitmasks, and using of_io_request_and_map() to
      get the I/O address.
      Signed-off-by: Chen-Yu Tsai's avatarChen-Yu Tsai <wens@csie.org>
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      6089ef19
  23. 02 Feb, 2015 1 commit
  24. 25 Jan, 2015 1 commit
  25. 14 Jan, 2015 1 commit
  26. 06 Jan, 2015 1 commit