summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/clock.c
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2013-03-02 19:37:42 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:02:51 -0700
commit7450df6cd2c8d2cd171d187fc70a1a072d02a09f (patch)
tree4f3164065fbf981ab2fe0b349c56e90d4db7073f /arch/arm/mach-tegra/clock.c
parent0cc9ba4731371d9cba5270f92436a92f370d39c9 (diff)
ARM: tegra11: clock: Preset EMC monitor rate
Use EMC boot rate as EMC monitor output reading during initialization until actual monitoring starts. Bug 1239168 Change-Id: I85376d06292412fb89570fd09fa4c1f4e506fb4e Signed-off-by: Alex Frid <afrid@nvidia.com> Reviewed-on: http://git-master/r/205781 (cherry picked from commit afd55844431f7ec2b52e49f5e92aa0afc4170dc0) Reviewed-on: http://git-master/r/208930 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bo Yan <byan@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/clock.c')
-rw-r--r--arch/arm/mach-tegra/clock.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c
index b543241ae2a3..a63be522d645 100644
--- a/arch/arm/mach-tegra/clock.c
+++ b/arch/arm/mach-tegra/clock.c
@@ -6,7 +6,7 @@
* Author:
* Colin Cross <ccross@google.com>
*
- * Copyright (C) 2010-2012 NVIDIA Corporation
+ * Copyright (c) 2019-2013, NVIDIA CORPORATION. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
@@ -786,6 +786,16 @@ void tegra_init_max_rate(struct clk *c, unsigned long max_rate)
}
}
+/* Use boot rate as emc monitor output until actual monitoring starts */
+void __init tegra_clk_preset_emc_monitor(void)
+{
+ struct clk *c = tegra_get_clock_by_name("mon.emc");
+
+ if (c) {
+ clk_set_rate(c, c->boot_rate);
+ clk_enable(c);
+ }
+}
static void __init tegra_clk_vefify_rates(void)
{