aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/dsi.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@nokia.com>2010-02-23 10:40:00 -0500
committerTomi Valkeinen <tomi.valkeinen@nokia.com>2010-02-23 10:43:39 -0500
commit63cf28ac3e3166a02a4e0db6168cf403ed66e3a5 (patch)
tree9574fb6566fc1bd872aa0932732e75c028857036 /drivers/video/omap2/dss/dsi.c
parent6d2e0bd60848e97756f40e49da207e862f4f3851 (diff)
OMAP: DSS2: fix get_dsi/dispc_clk_source() usage
After changing the selection of DSI and DISPC clock source the users of get_dsi/dispc_clk_source() functions were left unchanged. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video/omap2/dss/dsi.c')
-rw-r--r--drivers/video/omap2/dss/dsi.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c
index 4b85ed202d50..928b5e44a3dd 100644
--- a/drivers/video/omap2/dss/dsi.c
+++ b/drivers/video/omap2/dss/dsi.c
@@ -778,7 +778,7 @@ static unsigned long dsi_fclk_rate(void)
778{ 778{
779 unsigned long r; 779 unsigned long r;
780 780
781 if (dss_get_dsi_clk_source() == 0) { 781 if (dss_get_dsi_clk_source() == DSS_SRC_DSS1_ALWON_FCLK) {
782 /* DSI FCLK source is DSS1_ALWON_FCK, which is dss1_fck */ 782 /* DSI FCLK source is DSS1_ALWON_FCK, which is dss1_fck */
783 r = dss_clk_get_rate(DSS_CLK_FCK1); 783 r = dss_clk_get_rate(DSS_CLK_FCK1);
784 } else { 784 } else {
@@ -1231,17 +1231,19 @@ void dsi_dump_clocks(struct seq_file *s)
1231 seq_printf(s, "dsi1_pll_fck\t%-16luregm3 %u\t(%s)\n", 1231 seq_printf(s, "dsi1_pll_fck\t%-16luregm3 %u\t(%s)\n",
1232 cinfo->dsi1_pll_fclk, 1232 cinfo->dsi1_pll_fclk,
1233 cinfo->regm3, 1233 cinfo->regm3,
1234 dss_get_dispc_clk_source() == 0 ? "off" : "on"); 1234 dss_get_dispc_clk_source() == DSS_SRC_DSS1_ALWON_FCLK ?
1235 "off" : "on");
1235 1236
1236 seq_printf(s, "dsi2_pll_fck\t%-16luregm4 %u\t(%s)\n", 1237 seq_printf(s, "dsi2_pll_fck\t%-16luregm4 %u\t(%s)\n",
1237 cinfo->dsi2_pll_fclk, 1238 cinfo->dsi2_pll_fclk,
1238 cinfo->regm4, 1239 cinfo->regm4,
1239 dss_get_dsi_clk_source() == 0 ? "off" : "on"); 1240 dss_get_dsi_clk_source() == DSS_SRC_DSS1_ALWON_FCLK ?
1241 "off" : "on");
1240 1242
1241 seq_printf(s, "- DSI -\n"); 1243 seq_printf(s, "- DSI -\n");
1242 1244
1243 seq_printf(s, "dsi fclk source = %s\n", 1245 seq_printf(s, "dsi fclk source = %s\n",
1244 dss_get_dsi_clk_source() == 0 ? 1246 dss_get_dsi_clk_source() == DSS_SRC_DSS1_ALWON_FCLK ?
1245 "dss1_alwon_fclk" : "dsi2_pll_fclk"); 1247 "dss1_alwon_fclk" : "dsi2_pll_fclk");
1246 1248
1247 seq_printf(s, "DSI_FCLK\t%lu\n", dsi_fclk_rate()); 1249 seq_printf(s, "DSI_FCLK\t%lu\n", dsi_fclk_rate());