Skip to content

Commit e1e3e70

Browse files
claudiubezneabebarino
authored andcommitted
clk: at91: sckc: register slow_rc with accuracy option
Chapter 57.7.5 of SAM9X60 datasheet specifies that the maximum drift of this oscillator is +- 3KHz. Use that value and the formula at [1] or the calculator at [2] to compute the PPB value. [1] https://www.everythingrf.com/rf-calculators/ppm-to-hz-calculator [2] https://www.changpuak.ch/electronics/ppm_to_Hz_converter.php Fixes: 04bcc42 ("clk: at91: sckc: add support for SAM9X60") Signed-off-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 172e7dd commit e1e3e70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/clk/at91/sckc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,9 @@ static void __init of_sam9x60_sckc_setup(struct device_node *np)
471471
if (!regbase)
472472
return;
473473

474-
slow_rc = clk_hw_register_fixed_rate(NULL, parent_names[0], NULL, 0,
475-
32768);
474+
slow_rc = clk_hw_register_fixed_rate_with_accuracy(NULL, parent_names[0],
475+
NULL, 0, 32768,
476+
93750000);
476477
if (IS_ERR(slow_rc))
477478
return;
478479

0 commit comments

Comments
 (0)