ARM: tegra: Add Tegra20 host1x clock support
authorThierry Reding <thierry.reding@avionic-design.de>
Thu, 15 Nov 2012 21:07:56 +0000 (22:07 +0100)
committerStephen Warren <swarren@nvidia.com>
Thu, 15 Nov 2012 21:46:26 +0000 (14:46 -0700)
Extend the pll_d frequency table with a few entries to support common
HDMI and LVDS display modes and setup the clock parents for the two
display controllers and HDMI.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/mach-tegra/tegra20_clocks_data.c

index 9615ee39c353305c54cff1a8c269c92f11269d94..a23a0734e352c81afc59a97a18ec2d3d6588b756 100644 (file)
@@ -246,11 +246,16 @@ static struct clk_pll_freq_table tegra_pll_d_freq_table[] = {
        { 19200000, 216000000, 135, 12, 1, 3},
        { 26000000, 216000000, 216, 26, 1, 4},
 
+       { 12000000, 297000000,  99,  4, 1, 4 },
+       { 12000000, 339000000, 113,  4, 1, 4 },
+
        { 12000000, 594000000, 594, 12, 1, 8},
        { 13000000, 594000000, 594, 13, 1, 8},
        { 19200000, 594000000, 495, 16, 1, 8},
        { 26000000, 594000000, 594, 26, 1, 8},
 
+       { 12000000, 616000000, 616, 12, 1, 8},
+
        { 12000000, 1000000000, 1000, 12, 1, 12},
        { 13000000, 1000000000, 1000, 13, 1, 12},
        { 19200000, 1000000000, 625,  12, 1, 8},
@@ -1036,9 +1041,6 @@ static struct clk_duplicate tegra_clk_duplicates[] = {
        CLK_DUPLICATE("usbd",   "utmip-pad",    NULL),
        CLK_DUPLICATE("usbd",   "tegra-ehci.0", NULL),
        CLK_DUPLICATE("usbd",   "tegra-otg",    NULL),
-       CLK_DUPLICATE("hdmi",   "tegradc.0",    "hdmi"),
-       CLK_DUPLICATE("hdmi",   "tegradc.1",    "hdmi"),
-       CLK_DUPLICATE("host1x", "tegra_grhost", "host1x"),
        CLK_DUPLICATE("2d",     "tegra_grhost", "gr2d"),
        CLK_DUPLICATE("3d",     "tegra_grhost", "gr3d"),
        CLK_DUPLICATE("epp",    "tegra_grhost", "epp"),
@@ -1051,6 +1053,9 @@ static struct clk_duplicate tegra_clk_duplicates[] = {
        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", "tegradc.0", "parent"),
+       CLK_DUPLICATE("pll_p", "tegradc.1", "parent"),
+       CLK_DUPLICATE("pll_d_out0", "hdmi", "parent"),
 };
 
 #define CLK(dev, con, ck)      \