diff options
| author | Xunlei Pang <[email protected]> | 2015-06-12 03:10:16 +0000 |
|---|---|---|
| committer | Alexandre Belloni <[email protected]> | 2015-06-24 23:13:42 +0000 |
| commit | 9c5150b31b49e3d89c52df9b1c1ebcea4e665ec3 (patch) | |
| tree | bba4dff4be684e676b1a148ea7eca8393cb39efb /drivers/rtc/interface.c | |
| parent | rtc: sunxi: Replace deprecated rtc_tm_to_time() (diff) | |
| download | kernel-9c5150b31b49e3d89c52df9b1c1ebcea4e665ec3.tar.gz kernel-9c5150b31b49e3d89c52df9b1c1ebcea4e665ec3.zip | |
rtc: NTP: Add CONFIG_RTC_SYSTOHC_DEVICE for NTP synchronization
Currently, CONFIG_RTC_SYSTOHC uses CONFIG_RTC_HCTOSYS_DEVICE which
is originally used by CONFIG_RTC_HCTOSYS, but this rtc device has
some limiations, for example, it must be battery-backed, be able
to work with irq off and through system suspension, etc.
So add CONFIG_RTC_SYSTOHC_DEVICE used exclusively for CONFIG_RTC_SYSTOHC,
it is more lenient compared to CONFIG_RTC_HCTOSYS_DEVICE, and could
be assigned any available RTC in the system.
Default value is CONFIG_RTC_HCTOSYS_DEVICE which is "rtc0" by default.
After this patch, NTP will sync up "rtc0" by default.
Cc: Paul Bolle <[email protected]>
Signed-off-by: Xunlei Pang <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'drivers/rtc/interface.c')
0 files changed, 0 insertions, 0 deletions
