Skip to content

Commit d3f409d

Browse files
jacobschlossaescolar
authored andcommitted
drivers: rtc: rv3032: Restore configuration of backup reg
RV3032 PMU register should be set from DTS info, but is always being set to 0 which prevents backup power source configuration. Restore building PMU reg from DTS. Signed-off-by: Jacob Schloss <jacob.schloss@suburbanmarine.io>
1 parent 31bd0c2 commit d3f409d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/rtc/rtc_rv3032.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,7 @@ static DEVICE_API(rtc, rv3032_driver_api) = {
826826
\
827827
static const struct rv3032_config rv3032_config_##inst = { \
828828
.mfd = DEVICE_DT_GET(DT_INST_PARENT(inst)), \
829+
.backup = RV3032_BACKUP_FROM_DT_INST(inst), \
829830
.clkout_freq = DT_INST_PROP_OR(inst, clkout_frequency, 0), \
830831
}; \
831832
static struct rv3032_data rv3032_data_##inst; \

0 commit comments

Comments
 (0)