aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-05-18 05:37:58 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-07-25 03:08:16 -0400
commit7e42403e3bbce191ad7e4ce8c598d48be6232f57 (patch)
treeb445c70c064ce862d6b932c1c0a5b00314284540 /drivers/video/omap2
parent19077a736148360b8510fa3a45f919d1a6354b06 (diff)
OMAP: DSS2: Remove core_dump_clocks
Currently dss.c does all the low level clock handling in the DSS, and thus it contains pointers to all the clocks. This allows dss.c to dump the clock information for all the clocks. With pm_runtime this is no longer the case, as each submodule will handle its clocks independently. Thus remove the core_dump_clocks function as it cannot be used with pm_runtime. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r--drivers/video/omap2/dss/dss.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c
index 4f3de3580f53..ff5664e0856c 100644
--- a/drivers/video/omap2/dss/dss.c
+++ b/drivers/video/omap2/dss/dss.c
@@ -989,50 +989,10 @@ static void dss_clk_disable_all_no_ctx(void)
989 dss_clk_disable_no_ctx(clks); 989 dss_clk_disable_no_ctx(clks);
990} 990}
991 991
992#if defined(CONFIG_DEBUG_FS) && defined(CONFIG_OMAP2_DSS_DEBUG_SUPPORT)
993/* CLOCKS */
994static void core_dump_clocks(struct seq_file *s)
995{
996 int i;
997 struct clk *clocks[5] = {
998 dss.dss_ick,
999 dss.dss_fck,
1000 dss.dss_sys_clk,
1001 dss.dss_tv_fck,
1002 dss.dss_video_fck
1003 };
1004
1005 const char *names[5] = {
1006 "ick",
1007 "fck",
1008 "sys_clk",
1009 "tv_fck",
1010 "video_fck"
1011 };
1012
1013 seq_printf(s, "- CORE -\n");
1014
1015 seq_printf(s, "internal clk count\t\t%u\n", dss.num_clks_enabled);
1016
1017 for (i = 0; i < 5; i++) {
1018 if (!clocks[i])
1019 continue;
1020 seq_printf(s, "%s (%s)%*s\t%lu\t%d\n",
1021 names[i],
1022 clocks[i]->name,
1023 24 - strlen(names[i]) - strlen(clocks[i]->name),
1024 "",
1025 clk_get_rate(clocks[i]),
1026 clocks[i]->usecount);
1027 }
1028}
1029#endif /* defined(CONFIG_DEBUG_FS) && defined(CONFIG_OMAP2_DSS_DEBUG_SUPPORT) */
1030
1031/* DEBUGFS */ 992/* DEBUGFS */
1032#if defined(CONFIG_DEBUG_FS) && defined(CONFIG_OMAP2_DSS_DEBUG_SUPPORT) 993#if defined(CONFIG_DEBUG_FS) && defined(CONFIG_OMAP2_DSS_DEBUG_SUPPORT)
1033void dss_debug_dump_clocks(struct seq_file *s) 994void dss_debug_dump_clocks(struct seq_file *s)
1034{ 995{
1035 core_dump_clocks(s);
1036 dss_dump_clocks(s); 996 dss_dump_clocks(s);
1037 dispc_dump_clocks(s); 997 dispc_dump_clocks(s);
1038#ifdef CONFIG_OMAP2_DSS_DSI 998#ifdef CONFIG_OMAP2_DSS_DSI