@@ -237,7 +237,7 @@ static int emc_set_timing(struct tegra_clk_emc *tegra,
div = timing->parent_rate / (timing->rate / 2) - 2;
- err = tegra_emc_prepare_timing_change(emc, timing->rate);
+ err = tegra124_emc_prepare_timing_change(emc, timing->rate);
if (err)
return err;
@@ -255,7 +255,7 @@ static int emc_set_timing(struct tegra_clk_emc *tegra,
spin_unlock_irqrestore(tegra->lock, flags);
- tegra_emc_complete_timing_change(emc, timing->rate);
+ tegra124_emc_complete_timing_change(emc, timing->rate);
clk_hw_reparent(&tegra->hw, __clk_get_hw(timing->parent));
clk_disable_unprepare(tegra->prev_parent);
@@ -562,8 +562,8 @@ static struct emc_timing *tegra_emc_find_timing(struct tegra_emc *emc,
return timing;
}
-int tegra_emc_prepare_timing_change(struct tegra_emc *emc,
- unsigned long rate)
+int tegra124_emc_prepare_timing_change(struct tegra_emc *emc,
+ unsigned long rate)
{
struct emc_timing *timing = tegra_emc_find_timing(emc, rate);
struct emc_timing *last = &emc->last_timing;
@@ -790,8 +790,8 @@ int tegra_emc_prepare_timing_change(struct tegra_emc *emc,
return 0;
}
-void tegra_emc_complete_timing_change(struct tegra_emc *emc,
- unsigned long rate)
+void tegra124_emc_complete_timing_change(struct tegra_emc *emc,
+ unsigned long rate)
{
struct emc_timing *timing = tegra_emc_find_timing(emc, rate);
struct emc_timing *last = &emc->last_timing;
@@ -11,9 +11,9 @@
struct tegra_emc;
-int tegra_emc_prepare_timing_change(struct tegra_emc *emc,
- unsigned long rate);
-void tegra_emc_complete_timing_change(struct tegra_emc *emc,
- unsigned long rate);
+int tegra124_emc_prepare_timing_change(struct tegra_emc *emc,
+ unsigned long rate);
+void tegra124_emc_complete_timing_change(struct tegra_emc *emc,
+ unsigned long rate);
#endif /* __SOC_TEGRA_EMC_H__ */
Tegra210 emc scaling is similar but sufficiently different to require a new implementation of the clock driver and the emc timing code. Hence rename the existing tegra_emc_prepare_timing_change and tegra_emc_complete_timing_change to tegra124_emc_prepare_timing_change and tegra124_emc_complete_timing_change because they really only apply to Tegra124. Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> --- drivers/clk/tegra/clk-emc.c | 4 ++-- drivers/memory/tegra/tegra124-emc.c | 8 ++++---- include/soc/tegra/emc.h | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-)