]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: tegra: clock: add i2c fast clock entry in clock table
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 8 Aug 2012 07:51:31 +0000 (13:21 +0530)
committerStephen Warren <swarren@nvidia.com>
Wed, 15 Aug 2012 16:38:56 +0000 (10:38 -0600)
Tegra's i2c controller require two clock sources named as
div-clk and fast-clk for proper operation.
Currently, the entry of fast-clk is missing in tegra30
clock table and it is incorrectly named in the tegra20
clock table.
Adds aliases to enable lookups for "fast-clk" to succeed.
A later patch will remove the incorrectly named clock,
once the driver is modified to use the new name.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/mach-tegra/tegra20_clocks_data.c
arch/arm/mach-tegra/tegra30_clocks_data.c

index b5c518ebd50abdbaf7dd825906852d875e012e46..7312ecd8a81e9d7f091c1ec2a820f88f026083e2 100644 (file)
@@ -1028,6 +1028,10 @@ static struct clk_duplicate tegra_clk_duplicates[] = {
        CLK_DUPLICATE("cop",    "tegra-avp",    "cop"),
        CLK_DUPLICATE("vde",    "tegra-aes",    "vde"),
        CLK_DUPLICATE("cclk",   NULL,           "cpu"),
+       CLK_DUPLICATE("pll_p_out3", "tegra-i2c.0", "fast-clk"),
+       CLK_DUPLICATE("pll_p_out3", "tegra-i2c.1", "fast-clk"),
+       CLK_DUPLICATE("pll_p_out3", "tegra-i2c.2", "fast-clk"),
+       CLK_DUPLICATE("pll_p_out3", "tegra-i2c.3", "fast-clk"),
 };
 
 #define CLK(dev, con, ck)      \
index c924240cb69366757e25c880c6a385d84344f055..eae85b775285315d80cb941755bb3b82bb994f7d 100644 (file)
@@ -1287,6 +1287,11 @@ struct clk_duplicate tegra_clk_duplicates[] = {
        CLK_DUPLICATE("dam1", NULL, "dam1"),
        CLK_DUPLICATE("dam2", NULL, "dam2"),
        CLK_DUPLICATE("spdif_in", NULL, "spdif_in"),
+       CLK_DUPLICATE("pll_p_out3", "tegra-i2c.0", "fast-clk"),
+       CLK_DUPLICATE("pll_p_out3", "tegra-i2c.1", "fast-clk"),
+       CLK_DUPLICATE("pll_p_out3", "tegra-i2c.2", "fast-clk"),
+       CLK_DUPLICATE("pll_p_out3", "tegra-i2c.3", "fast-clk"),
+       CLK_DUPLICATE("pll_p_out3", "tegra-i2c.4", "fast-clk"),
 };
 
 struct clk *tegra_ptr_clks[] = {