Skip to content

Commit 4da66b6

Browse files
alexandrebelloniMike Turquette
authored andcommitted
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>
1 parent 942d1d6 commit 4da66b6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/clk/at91/clk-main.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ static unsigned long clk_main_recalc_rate(struct at91_pmc *pmc,
388388
if (parent_rate)
389389
return parent_rate;
390390

391+
pr_warn("Main crystal frequency not set, using approximate value\n");
391392
tmp = pmc_read(pmc, AT91_CKGR_MCFR);
392393
if (!(tmp & AT91_PMC_MAINRDY))
393394
return 0;

0 commit comments

Comments
 (0)