summaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2020-07-06 23:01:18 +0300
committerHeiko Schocher <hs@denx.de>2020-07-09 07:02:45 +0300
commitbaed77913831325bf25dcc27ff72e1cd742a7cc3 (patch)
treee4cc1bc90bb9eb7cd4a5470c2291ee7ca53c7dd0 /arch/sandbox
parenta3e36525a9b853c09d5f5726eff3641cd0cb5619 (diff)
downloadu-boot-baed77913831325bf25dcc27ff72e1cd742a7cc3.tar.xz
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>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/include/asm/rtc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/rtc.h b/arch/sandbox/include/asm/rtc.h
index 1fbfea7999..5bb032f59f 100644
--- a/arch/sandbox/include/asm/rtc.h
+++ b/arch/sandbox/include/asm/rtc.h
@@ -21,6 +21,11 @@ enum {
REG_RESET = 0x20,
+ REG_AUX0 = 0x30,
+ REG_AUX1,
+ REG_AUX2,
+ REG_AUX3,
+
REG_COUNT = 0x80,
};