diff options
author | Boris BREZILLON <b.brezillon@overkiz.com> | 2013-12-21 10:34:48 +0100 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-12-22 23:14:28 -0800 |
commit | 0903ea60173fab226a867ceb080b2e0269a6c975 (patch) | |
tree | 426e65588ada203d419495126323d0a009dcdee0 /include | |
parent | 5279fc402ae59361a224d641d5823b21b4206232 (diff) | |
download | op-kernel-dev-0903ea60173fab226a867ceb080b2e0269a6c975.zip op-kernel-dev-0903ea60173fab226a867ceb080b2e0269a6c975.tar.gz |
clk: add accuracy support for fixed clock
This patch adds support for accuracy retrieval on fixed clocks.
It also adds a new dt property called 'clock-accuracy' to define the clock
accuracy.
This can be usefull for oscillator (RC, crystal, ...) definitions which are
always given an accuracy characteristic.
Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/clk-provider.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 16d182c..5429f5d 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -204,6 +204,7 @@ struct clk_hw { struct clk_fixed_rate { struct clk_hw hw; unsigned long fixed_rate; + unsigned long fixed_accuracy; u8 flags; }; @@ -211,6 +212,9 @@ extern const struct clk_ops clk_fixed_rate_ops; struct clk *clk_register_fixed_rate(struct device *dev, const char *name, const char *parent_name, unsigned long flags, unsigned long fixed_rate); +struct clk *clk_register_fixed_rate_with_accuracy(struct device *dev, + const char *name, const char *parent_name, unsigned long flags, + unsigned long fixed_rate, unsigned long fixed_accuracy); void of_fixed_clk_setup(struct device_node *np); |