arm: tegra: Reduce coresite clock frequency
ScottPeterson [Thu, 19 Jan 2012 19:27:07 +0000 (11:27 -0800)]
Source coresite clock from clk_m and reduce its frequency
to 1Mhz to reduce the power consumption on csite module.

BUG 922351

Signed-off-by: ScottPeterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/76287
(cherry picked from commit 80c11f4c789efea49b30b8731711aa4c20d7630c)

Change-Id: If8a75924229c8d6aae4fd449eff6ae2e194a6e45
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/79995
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

arch/arm/mach-tegra/Kconfig
arch/arm/mach-tegra/common.c

index f811d2b..a507373 100644 (file)
@@ -155,6 +155,7 @@ config MACH_TEGRA_ENTERPRISE
        bool "Enterprise board"
        depends on ARCH_TEGRA_3x_SOC
        select MACH_HAS_SND_SOC_TEGRA_MAX98088 if SND_SOC
+       select TEGRA_SLOW_CSITE
        help
          Support for NVIDIA Enterprise development platform
 
@@ -471,3 +472,9 @@ config TEGRA_WDT_RECOVERY
          suspend/resume hangs.
 endif
 
+config TEGRA_SLOW_CSITE
+       bool "lower csite clock to 1 Mhz to reduce its power consumption"
+       default n
+       help
+         When enabled, csite will be running at 1 Mhz and the performance of
+         jtag, lauterbach and other debugger will be extremely slow.
index 2dc7acc..cfae2bc 100644 (file)
@@ -172,7 +172,11 @@ static __initdata struct tegra_clk_init_table common_clk_init_table[] = {
        { "hclk",       "sclk",         108000000,      true },
        { "pclk",       "hclk",         54000000,       true },
 #endif
-       { "csite",      NULL,           0,              true },
+#ifdef CONFIG_TEGRA_SLOW_CSITE
+       { "csite",      "clk_m",        1000000,        true },
+#else
+       { "csite",      NULL,           0,              true },
+#endif
        { "emc",        NULL,           0,              true },
        { "cpu",        NULL,           0,              true },
        { "kfuse",      NULL,           0,              true },