1. 07 9月, 2012 3 次提交
    • S
      ARM: tegra: remove tegra_timer from tegra_list_clks · 20f46658
      Stephen Warren 提交于
      tegra_time is a struct sys_timer, not a struct clk, so can't be included
      in an array of struct clk *.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      20f46658
    • P
      ARM: tegra: Port tegra to generic clock framework · 92fe58f0
      Prashant Gaikwad 提交于
      This patch converts tegra clock code to generic clock framework in following way:
       - Implement clk_ops as required by generic clk framework. (tegraXX_clocks.c)
       - Use platform specific struct clk_tegra in clk_ops implementation instead of struct clk.
       - Initialize all clock data statically. (tegraXX_clocks_data.c)
      
      Legacy framework did not have recalc_rate and is_enabled functions. Implemented these functions.
      Removed init function. It's functionality is splitted into recalc_rate and is_enabled.
      
      Static initialization is used since slab is not up in .init_early and clock
      is needed to be initialized before clockevent/clocksource initialization.
      Macros redefined for clk_tegra.
      
      Also, single struct clk_tegra is used for all type of clocks (PLL, peripheral etc.). This
      is to move quickly to generic common clock framework so that other dependent features will
      not be blocked (such as DT binding).
      
      Enabling COMMON_CLOCK config moved to ARCH_TEGRA since it is enabled for both Tegra20
      and Tegra30.
      Signed-off-by: NPrashant Gaikwad <pgaikwad@nvidia.com>
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      92fe58f0
    • P
      ARM: tegra20: Separate out clk ops and clk data · 86edb87a
      Prashant Gaikwad 提交于
      Move clock initialization data to separate file. This is
      required for migrating to generic clock framework if static
      initialization is used.
      Signed-off-by: NPrashant Gaikwad <pgaikwad@nvidia.com>
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      86edb87a