Skip to content

Commit

Permalink
OMAP: DSS2: improve clock debugfs output
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomi Valkeinen committed May 11, 2011
1 parent e3502ce commit ab46d8b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion drivers/video/omap2/dss/dss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,15 +1026,26 @@ static void core_dump_clocks(struct seq_file *s)
dss.dss_video_fck
};

const char *names[5] = {
"ick",
"fck",
"sys_clk",
"tv_fck",
"video_fck"
};

seq_printf(s, "- CORE -\n");

seq_printf(s, "internal clk count\t\t%u\n", dss.num_clks_enabled);

for (i = 0; i < 5; i++) {
if (!clocks[i])
continue;
seq_printf(s, "%-15s\t%lu\t%d\n",
seq_printf(s, "%s (%s)%*s\t%lu\t%d\n",
names[i],
clocks[i]->name,
24 - strlen(names[i]) - strlen(clocks[i]->name),
"",
clk_get_rate(clocks[i]),
clocks[i]->usecount);
}
Expand Down

0 comments on commit ab46d8b

Please sign in to comment.