ARM: Tegra3: clocks: Configurable cbus divider
Mohit Kataria [Wed, 20 Jun 2012 05:35:39 +0000 (10:35 +0530)]
Added config option to set cbus divider.

Bug 978870

Change-Id: I49c57064ce695dd703ad97a50b8c0d373f5a05d0
Signed-off-by: Mohit Kataria <mkataria@nvidia.com>
Reviewed-on: http://git-master/r/114197
(cherry picked from commit 3f2b0e2b973a106d62e1f4bfb75bb40bd1a96b9b)
Reviewed-on: http://git-master/r/109962
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

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

index ed35a91..b84d32a 100644 (file)
@@ -430,6 +430,10 @@ config TEGRA_SE_ON_CBUS
        help
          This option enables SE clock to be derived from cbus
 
+config TEGRA_CBUS_CLOCK_DIVIDER
+        int "CBUS clock divider"
+        default "2"
+
 config TEGRA_CONVSERVATIVE_GOV_ON_EARLYSUPSEND
        bool "Use conservative cpu frequency governor when device enters early suspend"
        depends on HAS_EARLYSUSPEND && CPU_FREQ
index bf7fde0..87592e2 100644 (file)
@@ -4232,7 +4232,7 @@ static struct clk tegra_clk_cbus = {
        .ops       = &tegra_clk_cbus_ops,
        .max_rate  = 700000000,
        .mul       = 1,
-       .div       = 2,
+       .div       = CONFIG_TEGRA_CBUS_CLOCK_DIVIDER,
        .flags     = PERIPH_ON_CBUS,
        .shared_bus_backup = {
                .input = &tegra_pll_p,