Home
last modified time | relevance | path

Searched hist:bcc7fd20e2e9df6f29db7d524623e0c7023dffc6 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/clk/
H A Dclk-wm831x.cdiff bcc7fd20e2e9df6f29db7d524623e0c7023dffc6 Wed May 01 17:32:05 CEST 2013 Axel Lin <axel.lin@ingics.com> clk: wm831x: Fix wm831x_clkout_get_parent

Current code looks strange because calling wm831x_clkout_set_parent() with 0 as
parent parameter, wm831x_clkout_get_parent() will return 1.

According to the datasheet:
R16528 (4090h) Clock Control1
BIT 0: CLKOUT output source select
0 = FLL output
1 = 32.768kHz oscillator

Thus fix the entry order in wm831x_clkout_parents[] to make it has
the same meaning as the datasheet and make the return value
of wm831x_clkout_get_parent() consistent with the parent pass to
wm831x_clkout_set_parent().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>