Age | Commit message (Collapse) | Author | Files | Lines |
|
add pm ops for rtc
Signed-off-by: ziv.xu <ziv.xu@starfive.com>
|
|
add system pm for rtc
Signed-off-by: ziv.xu <ziv.xu@starfive.com>
|
|
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
Register RTC_TIME/DATE updates when bit IRQ_STATUS.IRQ_1SEC rises.
If RTC_TIME is read when IRQ_STATUS.IRQ_1SEC is low and RTC_DATE is
read when IRQ_STATUS.IRQ_1SEC is high, the mismatched problem happens.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
Read time from register RTC_TIME/RTC_DATE (0x3C/0x40) instead
of RTC_TIME_LATCH/RTC_DATE_LATCH (0x44/0x48)
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
Use devm_reset_control_array_get_exclusive() to get reset
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
1. Set initial time if rtc is never set.
2. Add timeout when clearing interrupt flag register.
3. Improve alarm function.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
starfiv rtc needs to get interrupt status when setting rtc clock and
configuring hardware calibration. Use completion to identify states in
interrupt handlers.
In addition, when clearing the interrupt, you need to pull to determine
whether to clear the state, otherwise the clearing will be unsuccessful.
Signed-off-by: samin <samin.guo@starfivetech.com>
|
|
1)32.768k-RTC device.
2)sw/hw calibration support;
3)alarm support;
4)5.15 Use "devm_rtc_register_device" instead of "rtc_register_device"
Signed-off-by: SaminGuo <samin.guo@starfivetech.com>
|