summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/rtc/rtc_d2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/drivers/rtc/rtc_d2.c b/firmware/drivers/rtc/rtc_d2.c
index 8f60bc20df..9eb5f5e5e2 100644
--- a/firmware/drivers/rtc/rtc_d2.c
+++ b/firmware/drivers/rtc/rtc_d2.c
@@ -37,9 +37,9 @@ int rtc_read_datetime(struct tm *tm)
37 oldlevel = disable_irq_save(); 37 oldlevel = disable_irq_save();
38 38
39 if (get_pmu_type() == PCF50606) 39 if (get_pmu_type() == PCF50606)
40 rc = pcf50606_read_multiple(0x0a, buf, sizeof(buf)); 40 rc = pcf50606_read_multiple(PCF5060X_RTCSC, buf, sizeof(buf));
41 else 41 else
42 rc = pcf50635_read_multiple(0x59, buf, sizeof(buf)); 42 rc = pcf50635_read_multiple(PCF5063X_REG_RTCSC, buf, sizeof(buf));
43 43
44 restore_irq(oldlevel); 44 restore_irq(oldlevel);
45 45
@@ -77,9 +77,9 @@ int rtc_write_datetime(const struct tm *tm)
77 oldlevel = disable_irq_save(); 77 oldlevel = disable_irq_save();
78 78
79 if (get_pmu_type() == PCF50606) 79 if (get_pmu_type() == PCF50606)
80 rc = pcf50606_write_multiple(0x0a, buf, sizeof(buf)); 80 rc = pcf50606_write_multiple(PCF5060X_RTCSC, buf, sizeof(buf));
81 else 81 else
82 rc = pcf50635_write_multiple(0x59, buf, sizeof(buf)); 82 rc = pcf50635_write_multiple(PCF5063X_REG_RTCSC, buf, sizeof(buf));
83 83
84 restore_irq(oldlevel); 84 restore_irq(oldlevel);
85 85