summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-rs5c313.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-17 23:53:27 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-18 10:38:22 +0300
commitd7599245007a653fb5ff96d5ae067cb3204ff7fb (patch)
tree2904bd2eba75fd8cf8019c01d9a6ddc8d5f96a05 /drivers/rtc/rtc-rs5c313.c
parent14dc3ec5203ced2000ef157f147944233309c850 (diff)
downloadlinux-d7599245007a653fb5ff96d5ae067cb3204ff7fb.tar.xz
rtc: ls1x: add range
While the year is encoded on 32 bits in SYS_TOYWRITE1i/SYS_TOYREAD1. The Loongson 1c datasheet states that the range is from 0 to 99. The current code exceeds this range and seems to be working, I deduce that the leap year algorithm will fail in 2100. Anyway, alarm registers only encode the year on 14 bits so with alarm support, the range will always be limited to 0 to 16383. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-rs5c313.c')
0 files changed, 0 insertions, 0 deletions