diff options
author | Ondrej Jirman <megous@megous.com> | 2019-08-20 17:19:33 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-08-23 16:20:50 +0200 |
commit | b60ff2cfb598ddf03d8dcb43ed53c35aa563e04c (patch) | |
tree | d1b0404a5dfd18f0af6b1e57878cdea9beb41d9c /drivers/rtc/rtc-pcf2127.c | |
parent | dt-bindings: rtc: sun6i: Add compatible for H6 RTC (diff) | |
download | linux-b60ff2cfb598ddf03d8dcb43ed53c35aa563e04c.tar.xz linux-b60ff2cfb598ddf03d8dcb43ed53c35aa563e04c.zip |
rtc: sun6i: Add support for H6 RTC
RTC on H6 is mostly the same as on H5 and H3. It has slight differences
mostly in features that are not yet supported by this driver.
Some differences are already stated in the comments in existing code.
One other difference is that H6 has extra bit in LOSC_CTRL_REG, called
EXT_LOSC_EN to enable/disable external low speed crystal oscillator.
It also has bit EXT_LOSC_STA in LOSC_AUTO_SWT_STA_REG, to check whether
external low speed oscillator is working correctly.
This patch adds support for enabling LOSC when necessary:
- during reparenting
- when probing the clock
H6 also has capacbility to automatically reparent RTC clock from
external crystal oscillator, to internal RC oscillator, if external
oscillator fails. This is enabled by default. Disable it during
probe.
Signed-off-by: Ondrej Jirman <megous@megous.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20190820151934.3860-3-megous@megous.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-pcf2127.c')
0 files changed, 0 insertions, 0 deletions