ARM: tegra: clock: Add smp_twd clock
Colin Cross [Tue, 15 Mar 2011 00:28:25 +0000 (17:28 -0700)]
Change-Id: If129115add0fc26e4cd940bcbb36be681045f0b3
Signed-off-by: Colin Cross <ccross@android.com>

arch/arm/mach-tegra/tegra2_clocks.c

index 8e8ba3b..221d845 100644 (file)
@@ -1968,6 +1968,15 @@ static struct clk tegra_clk_virtual_cpu = {
        },
 };
 
+static struct clk tegra_clk_twd = {
+       .name     = "twd",
+       .parent   = &tegra_clk_cclk,
+       .ops      = NULL,
+       .max_rate = 250000000,
+       .mul      = 1,
+       .div      = 4,
+};
+
 static struct clk tegra_clk_cop = {
        .name      = "cop",
        .parent    = &tegra_clk_sclk,
@@ -2242,6 +2251,7 @@ struct clk_duplicate tegra_clk_duplicates[] = {
        CLK_DUPLICATE("mpe", "tegra_grhost", "mpe"),
        CLK_DUPLICATE("cop", "tegra-avp", "cop"),
        CLK_DUPLICATE("vde", "tegra-aes", "vde"),
+       CLK_DUPLICATE("twd", "smp_twd", NULL),
 };
 
 #define CLK(dev, con, ck)      \
@@ -2282,6 +2292,7 @@ struct clk *tegra_ptr_clks[] = {
        &tegra_clk_blink,
        &tegra_clk_cop,
        &tegra_clk_emc,
+       &tegra_clk_twd,
 };
 
 static void tegra2_init_one_clock(struct clk *c)