]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: rtc: correctly set week day for mc146818
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 21 Jul 2018 16:40:20 +0000 (18:40 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 28 Jul 2018 15:58:09 +0000 (11:58 -0400)
commitc5b53baeaa1ba32bdbfd492c1dc38b6f2b64484a
treeadafab7c60fb33bc5854d28edf02a4e69d0bbcd7
parenta92b794f3203831b384cfd5bb700718ad9fdeb05
drivers: rtc: correctly set week day for mc146818

The driver sets the weekday incorrectly when called by the
'date set' command.

Sunday is 1, Saturday is 7 unlike in U-Boot (see data sheet
https://www.nxp.com/docs/en/data-sheet/MC146818.pdf, table 3).

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/rtc/mc146818.c