1. 02 Nov, 2016 1 commit
  2. 29 Jan, 2016 2 commits
    • Geliang Tang's avatar
      clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h · 5fd9c05c
      Geliang Tang authored
      to_clk_*(_hw) macros have been repeatedly defined in many places.
      This patch moves all the to_clk_*(_hw) definitions in the common
      clock framework to public header clk-provider.h, and drop the local
      Signed-off-by: default avatarGeliang Tang <geliangtang@163.com>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
    • Heiko Stuebner's avatar
      clk-divider: make sure read-only dividers do not write to their register · 50359819
      Heiko Stuebner authored
      Commit e6d5e7d9 ("clk-divider: Fix READ_ONLY when divider > 1") removed
      the special ops struct for read-only clocks and instead opted to handle
      them inside the regular ops.
      On the rk3368 this results in breakage as aclkm now gets set a value.
      While it is the same divider value, the A53 core still doesn't like it,
      which can result in the cpu ending up in a hang.
      The reason being that "ACLKENMasserts one clock cycle before the rising
      edge of ACLKM" and the clock should only be touched when STANDBYWFIL2
      is asserted.
      To fix this, reintroduce the read-only ops but do include the round_rate
      callback. That way no writes that may be unsafe are done to the divider
      register in any case.
      The Rockchip use of the clk_divider_ops is adapted to this split again,
      as is the nxp, lpc18xx-ccu driver that was included since the original
      commit. On lpc18xx-ccu the divider seems to always be read-only
      so only uses the new ops now.
      Fixes: e6d5e7d9 ("clk-divider: Fix READ_ONLY when divider > 1")
      Reported-by: default avatarZhang Qing <zhangqing@rock-chips.com>
      Signed-off-by: Heiko Stuebner's avatarHeiko Stuebner <heiko@sntech.de>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
  3. 26 Oct, 2015 1 commit
  4. 18 Jun, 2015 1 commit