summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-starfive.c
AgeCommit message (Collapse)AuthorFilesLines
2022-10-27rtc:starfive: add pm ops for rtcziv.xu1-0/+1
add pm ops for rtc Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2022-10-27rtc-starfive.c:add system pm for rtcziv.xu1-1/+4
add system pm for rtc Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2022-08-30rtc: starfive: Standardize property "compatible"Hal Feng1-1/+1
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2022-08-09rtc: starfive: Fix time may be not updated when date updatedHal Feng1-0/+14
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>
2022-08-09rtc: starfive: Fix command 'hwclock' can't work in rootfsHal Feng1-5/+7
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>
2022-07-21rtc: starfive: Change reset apiHal Feng1-26/+11
Use devm_reset_control_array_get_exclusive() to get reset Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2022-07-14rtc: starfive: Improve rtc driverHal Feng1-7/+28
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>
2022-07-14rtc: starfive: Improve coding styleHal Feng1-3/+6
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2022-04-25rtc: starfive: Use stardand clock and reset apis for initializationHal Feng1-29/+59
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2022-03-16rtc: starfive: Get the interrupt status using Completion.samin1-30/+45
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>
2021-11-19rtc: starfive-rtc: Add RTC support for StarFive JH7110.SaminGuo1-0/+669
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>