projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21c8ed2
)
clk: max77686: Provide .recalc_rate() operation
author
Tomasz Figa
<
[email protected]
>
Thu, 12 Dec 2013 16:07:15 +0000
(17:07 +0100)
committer
Mike Turquette
<
[email protected]
>
Wed, 8 Jan 2014 17:46:03 +0000
(09:46 -0800)
It is usually nice to know frequency of a clock, so this patch adds a
.recalc_rate() callback returning rates of provided clocks.
Signed-off-by: Tomasz Figa <
[email protected]
>
Acked-by: Kyungmin Park <
[email protected]
>
Signed-off-by: Mike Turquette <
[email protected]
>
drivers/clk/clk-max77686.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk-max77686.c
b/drivers/clk/clk-max77686.c
index 9e66115a326b1517dcda2d274312fc521716d6d6..d050d0b156d31ead5316abdb9f4e0a5c77542048 100644
(file)
--- a/
drivers/clk/clk-max77686.c
+++ b/
drivers/clk/clk-max77686.c
@@
-81,10
+81,17
@@
static int max77686_clk_is_prepared(struct clk_hw *hw)
return val & max77686->mask;
}
+static unsigned long max77686_recalc_rate(struct clk_hw *hw,
+ unsigned long parent_rate)
+{
+ return 32768;
+}
+
static struct clk_ops max77686_clk_ops = {
.prepare = max77686_clk_prepare,
.unprepare = max77686_clk_unprepare,
.is_prepared = max77686_clk_is_prepared,
+ .recalc_rate = max77686_recalc_rate,
};
static struct clk_init_data max77686_clks_init[MAX77686_CLKS_NUM] = {