diff options
author | Heiko Schocher <[email protected]> | 2021-03-09 14:47:19 +0100 |
---|---|---|
committer | Alexandre Belloni <[email protected]> | 2021-03-15 23:03:27 +0100 |
commit | 6e00b6d0083ea5f529b057e87c0236747871b6a8 (patch) | |
tree | c1f9ee15f1ece33c84c325c3d352038c1d6269c0 /lib/mpi/mpi-sub-ui.c | |
parent | 936d3685e62436a378f02b8b74759b054d4aeca1 (diff) |
rtc: rv3028: correct weekday register usage
The datasheet for the rv3028 says the weekday has exact 3 bits
and in chapter 3.4.0 for the "3hâWeekday" register it says:
"""
This register holds the current day of the week. Each value represents
one weekday that is assigned by the user. Values will range from 0 to 6
The weekday counter is simply a 3-bit counter which counts up to 6
and then resets to 0.
"""
So do not code weekday bitwise instead, use the raw values from
0-6.
Tested on "PHYTEC phyBOARD-Pollux i.MX8MP" board.
Signed-off-by: Heiko Schocher <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions