diff options
author | Alex Frid <afrid@nvidia.com> | 2013-12-11 23:14:27 -0800 |
---|---|---|
committer | Yu-Huan Hsu <yhsu@nvidia.com> | 2013-12-17 17:22:39 -0800 |
commit | a3f4f13d5a020a0f3adae3e24f994a6b2460e63d (patch) | |
tree | 63a9e9c4e4af9e964bfab15ede2df0e9ee5410a7 /arch/arm/mach-tegra/tegra12_emc.c | |
parent | 2a139ef105b3507ed034e467aadb3ee732b61b2f (diff) |
ARM: tegra12: clock: Add memory controller clock
Memory controller clock is a child of EMC clock and it is running at
either 1:1 or 1:2 ratio from EMC. MC rate is changing as part of EMC
clock scaling only. No direct MC rate control is allowed.
Added MC clock to the clock tree for information purpose.
Ported from commit 9f8c1aa319ca19a39b56db901326997883fa6f2b
Change-Id: Ie4217493355745ba8e0df7129dc08cc7192d3bd6
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/344657
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/tegra12_emc.c')
-rw-r--r-- | arch/arm/mach-tegra/tegra12_emc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/tegra12_emc.c b/arch/arm/mach-tegra/tegra12_emc.c index 8b9f3e60b73a..3ba33242e362 100644 --- a/arch/arm/mach-tegra/tegra12_emc.c +++ b/arch/arm/mach-tegra/tegra12_emc.c @@ -967,6 +967,7 @@ int tegra_emc_set_rate(unsigned long rate) emc_set_clock(&tegra_emc_table[i], last_timing, clk_setting); clkchange_time = ktime_get(); emc_timing = &tegra_emc_table[i]; + tegra_mc_divider_update(emc); spin_unlock_irqrestore(&emc_access_lock, flags); emc_last_stats_update(i); @@ -1559,6 +1560,7 @@ int __init tegra12_emc_init(void) void tegra_emc_timing_invalidate(void) { emc_timing = NULL; + tegra_mc_divider_update(emc); } void tegra_emc_dram_type_init(struct clk *c) |