aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-04-04 02:36:23 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-05-11 07:20:11 -0400
commitab46d8b2a346ef9d2dc70d7e11aef5e752a090f8 (patch)
tree910c1923f03eb9bdc1de3c267347c19fb9eb830d
parente3502ce97f2d2d183735d9fae76b081a634ffd85 (diff)
OMAP: DSS2: improve clock debugfs output
OMAP4 has clocks set up in a bit interesting way, causing, for example, the DSS's "ick" to be called "dss_fck". This patch changes the debugfs output to show both the DSS's name for the clock (ie. basically the clock alias), and the real name from the clock struct. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/video/omap2/dss/dss.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c
index 10ed2b2cc72b..ff61a08ff7b2 100644
--- a/drivers/video/omap2/dss/dss.c
+++ b/drivers/video/omap2/dss/dss.c
@@ -1026,6 +1026,14 @@ static void core_dump_clocks(struct seq_file *s)
1026 dss.dss_video_fck 1026 dss.dss_video_fck
1027 }; 1027 };
1028 1028
1029 const char *names[5] = {
1030 "ick",
1031 "fck",
1032 "sys_clk",
1033 "tv_fck",
1034 "video_fck"
1035 };
1036
1029 seq_printf(s, "- CORE -\n"); 1037 seq_printf(s, "- CORE -\n");
1030 1038
1031 seq_printf(s, "internal clk count\t\t%u\n", dss.num_clks_enabled); 1039 seq_printf(s, "internal clk count\t\t%u\n", dss.num_clks_enabled);
@@ -1033,8 +1041,11 @@ static void core_dump_clocks(struct seq_file *s)
1033 for (i = 0; i < 5; i++) { 1041 for (i = 0; i < 5; i++) {
1034 if (!clocks[i]) 1042 if (!clocks[i])
1035 continue; 1043 continue;
1036 seq_printf(s, "%-15s\t%lu\t%d\n", 1044 seq_printf(s, "%s (%s)%*s\t%lu\t%d\n",
1045 names[i],
1037 clocks[i]->name, 1046 clocks[i]->name,
1047 24 - strlen(names[i]) - strlen(clocks[i]->name),
1048 "",
1038 clk_get_rate(clocks[i]), 1049 clk_get_rate(clocks[i]),
1039 clocks[i]->usecount); 1050 clocks[i]->usecount);
1040 } 1051 }