1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-11-01 10:56:02 +01:00

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>
This commit is contained in:
Rasmus Villemoes
2020-07-06 22:01:18 +02:00
committed by Heiko Schocher
parent a3e36525a9
commit baed779138
2 changed files with 50 additions and 0 deletions

View File

@@ -21,6 +21,11 @@ enum {
REG_RESET = 0x20,
REG_AUX0 = 0x30,
REG_AUX1,
REG_AUX2,
REG_AUX3,
REG_COUNT = 0x80,
};