1. 26 10月, 2015 1 次提交
    • D
      clk: rockchip: Allow more precision for some mmc clock phases · f0232063
      Douglas Anderson 提交于
      Because of the inexact nature of the extra MMC delay elements (it's
      not possible to keep the phase monotonic and to also make phases (mod
      90) > 70), we previously only allowed phases (mod 90) of 22.5, 45,
      and 67.5.
      
      But it's not the end of the world if the MMC clock phase goes
      non-monotonic.  At most we'll be 25 degrees off.  It's way better to
      test more phases to look for bad ones than to be 25 degrees off, because
      in the case of MMC really the point is to find bad phases and get as far
      asway from the as possible.  If we get to test extra phases by going
      slightly non-monotonic then that might be fine.  Worst case we would
      end up at a phases that's slight differnt than the one we wanted, but
      at least we'd still be quite far away from the a bad phase.
      Signed-off-by: NDouglas Anderson <dianders@chromium.org>
      Fold in more precise variance-values of 44-77 instead of 40-80.
      Fold in the actual removal of the monotonic requirement and adapt
      patch message accordingly.
      Signed-off-by: NHeiko Stuebner <heiko@sntech.de>
      Acked-by: NStephen Boyd <sboyd@codeaurora.org>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      f0232063
  2. 25 8月, 2015 1 次提交
  3. 21 7月, 2015 1 次提交
  4. 07 7月, 2015 1 次提交
  5. 05 6月, 2015 1 次提交
  6. 28 11月, 2014 1 次提交
    • A
      clk: rockchip: Add support for the mmc clock phases using the framework · 89bf26cb
      Alexandru M Stan 提交于
      This patch adds the 2 physical clocks for the mmc (drive and sample). They're
      mostly there for the phase properties, but they also show the true clock
      (by dividing by RK3288_MMC_CLKGEN_DIV).
      
      The drive and sample phases are generated by dividing an upstream parent clock
      by 2, this allows us to adjust the phase by 90 deg.
      
      There's also an option to have up to 255 delay elements (40-80 picoseconds long).
      This driver uses those elements (under the assumption that they're 60 ps long)
      to generate approximate 22.5 degrees options. 67.5 (22.5*3) might be as high as
      90 deg if the delay elements are as big as 80 ps, so a finer division (smaller
      than 22.5) was not picked because the phase might not be monotonic anymore.
      Suggested-by: NHeiko Stuebner <heiko@sntech.de>
      Signed-off-by: NAlexandru M Stan <amstan@chromium.org>
      Signed-off-by: NHeiko Stuebner <heiko@sntech.de>
      89bf26cb