[PATCH 2/2] commands: clk_dump: denote always enabled clocks
Antony Pavlov
antonynpavlov at gmail.com
Sun Dec 2 15:42:25 EST 2012
Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
drivers/clk/clk.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 2ff7586..cb94755 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -221,9 +221,13 @@ int clk_register(struct clk *clk)
static void dump_one(struct clk *clk, int verbose, int indent)
{
struct clk *c;
+ char *always = "";
- printf("%*s%s (rate %ld, %sabled)\n", indent * 4, "", clk->name, clk_get_rate(clk),
- clk->enable_count ? "en" : "dis");
+ if (clk->flags & CLK_ALWAYS_ENABLED)
+ always = "always ";
+
+ printf("%*s%s (rate %ld, %s%sabled)\n", indent * 4, "", clk->name, clk_get_rate(clk),
+ always, clk->enable_count ? "en" : "dis");
if (verbose) {
if (clk->num_parents > 1) {
--
1.7.10.4
More information about the barebox
mailing list