diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2014-07-01 16:12:12 +0200 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-07-02 09:00:52 -0700 |
commit | 4da66b631f6bee2dfdb77b571418f11016a7ba68 (patch) | |
tree | 39494b773c40c1f0395e11d69d851103e40bb9fc /drivers/clk/at91 | |
parent | 942d1d674931250e81af2aa124549562a06a28c7 (diff) |
clk: at91: main: warn when the main crystal frequency is not set
When the main crystal frequency is not set, the main clock is approximated using
the MAINF value in the CKGR_MCFR register. Warn the user in that case.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Boris BREZILLON <boris.brezillon@overkiz.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/at91')
-rw-r--r-- | drivers/clk/at91/clk-main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/at91/clk-main.c b/drivers/clk/at91/clk-main.c index 733306131b99..59fa3cc96c9e 100644 --- a/drivers/clk/at91/clk-main.c +++ b/drivers/clk/at91/clk-main.c @@ -388,6 +388,7 @@ static unsigned long clk_main_recalc_rate(struct at91_pmc *pmc, if (parent_rate) return parent_rate; + pr_warn("Main crystal frequency not set, using approximate value\n"); tmp = pmc_read(pmc, AT91_CKGR_MCFR); if (!(tmp & AT91_PMC_MAINRDY)) return 0; |