summaryrefslogtreecommitdiff
path: root/drivers/sysreset
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-07-08 00:07:26 +0200
committerTom Rini <trini@konsulko.com>2018-07-20 15:55:04 -0400
commitaf95a3e7c03e1538f43ca843f7282f36ce0488b8 (patch)
tree7041fa692e8216766f8e86dc70e85643cdc678dc /drivers/sysreset
parentb27dc8ec5c8f62f655b7964bc1bd12448ef788f8 (diff)
downloadu-boot-af95a3e7c03e1538f43ca843f7282f36ce0488b8.tar.gz
drivers: rtc: correct week day for mc146818
For qemu-x86 the date command produces wrong days of the week: Date: 2018-07-06 (Saturday) Time: 18:02:03 Date: 2018-07-07 (unknown day) Time: 21:02:06 According to a comment in the Linux driver the mc146818 only updates the day of the week if the register value is non-zero. Sunday is 1, saturday is 7 unlike in U-Boot (see data sheet https://www.nxp.com/docs/en/data-sheet/MC146818.pdf). So let's use our library function to determine the day of the week. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'drivers/sysreset')
0 files changed, 0 insertions, 0 deletions