1. 12 May, 2009 1 commit
    • Paul Mundt's avatar
      sh: clkfwk: Use arch_clk_init() for on-chip clock registration. · 9fe5ee0e
      Paul Mundt authored
      CPUs registering on-chip clocks should be using arch_clk_init() with the
      new scheme so that the CPUs have the opportunity to establish the
      topology prior to the initial root clock rate propagation. This ensures
      that CPUs with on-chip clocks that use CLK_ENABLE_ON_INIT are properly
      enabled at the initial propagation time, without having to further poke
      the root clocks.
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
  2. 11 May, 2009 3 commits
    • Paul Mundt's avatar
      sh: clkfwk: Tidy up on-chip clock registration and rate propagation. · f5c84cf5
      Paul Mundt authored
      This tidies up the set_rate hack that the on-chip clocks were abusing to
      trigger rate propagation, which is now handled generically.
      Additionally, now that CLK_ENABLE_ON_INIT is wired up where it needs to
      be for these clocks, the clk_enable() can go away. In some cases this was
      bumping up the refcount higher than it should have been.
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
    • Paul Mundt's avatar
      sh: clkfwk: Consolidate the ALWAYS_ENABLED / NEEDS_INIT mess. · 4ff29ff8
      Paul Mundt authored
      There is no real distinction here in behaviour, either a clock needs to
      be enabled on initialiation or not. The ALWAYS_ENABLED flag was always
      intended to only apply to clocks that were physically always on and could
      simply not be disabled at all from software. Unfortunately over time this
      was abused and the meaning became a bit blurry.
      So, we kill off both of all of those paths now, as well as the newer
      NEEDS_INIT flag, and consolidate on a CLK_ENABLE_ON_INIT. Clocks that
      need to be enabled on initialization can set this, and it will purposely
      enable them and bump the refcount up.
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
    • Paul Mundt's avatar
      sh: clkfwk: Make recalc return an unsigned long. · b68d8201
      Paul Mundt authored
      This is prep work for cleaning up some of the rate propagation bits.
      Trivial conversion.
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
  3. 03 Mar, 2009 1 commit
  4. 16 May, 2008 1 commit
  5. 07 May, 2007 1 commit