test: dm: rtc: add test of dm_rtc_read, dm_rtc_write
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Mon, 6 Jul 2020 20:01:18 +0000 (22:01 +0200)
committerHeiko Schocher <hs@denx.de>
Thu, 9 Jul 2020 04:02:45 +0000 (06:02 +0200)
commitbaed77913831325bf25dcc27ff72e1cd742a7cc3
treee4cc1bc90bb9eb7cd4a5470c2291ee7ca53c7dd0
parenta3e36525a9b853c09d5f5726eff3641cd0cb5619
test: dm: rtc: add test of dm_rtc_read, dm_rtc_write

Define a few aux registers and check that they can be read/written
individually. Also check that one can access the time-keeping
registers directly and get the expected results.

Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
arch/sandbox/include/asm/rtc.h
test/dm/rtc.c