summary refs log tree commit diff stats
path: root/include/hw/misc/imx7_snvs.h
diff options
context:
space:
mode:
authorNikita Ostrenkov <n.ostrenkov@gmail.com>2023-12-19 17:57:50 +0000
committerPeter Maydell <peter.maydell@linaro.org>2023-12-19 18:03:32 +0000
commit6f9c3aaa34e937d8deaab44671e7562e4027436b (patch)
treeeae19e122ec81b71489e97f711160fbabed84bff /include/hw/misc/imx7_snvs.h
parent6980c31dec42b6daebf7fec13b2d39ed87bb4766 (diff)
downloadfocaccia-qemu-6f9c3aaa34e937d8deaab44671e7562e4027436b.tar.gz
focaccia-qemu-6f9c3aaa34e937d8deaab44671e7562e4027436b.zip
fsl-imx: add simple RTC emulation for i.MX6 and i.MX7 boards
Signed-off-by: Nikita Ostrenkov <n.ostrenkov@gmail.com>
Message-id: 20231216133408.2884-1-n.ostrenkov@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/misc/imx7_snvs.h')
-rw-r--r--include/hw/misc/imx7_snvs.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/hw/misc/imx7_snvs.h b/include/hw/misc/imx7_snvs.h
index 14a1d6fe6b..1272076086 100644
--- a/include/hw/misc/imx7_snvs.h
+++ b/include/hw/misc/imx7_snvs.h
@@ -20,7 +20,9 @@
 enum IMX7SNVSRegisters {
     SNVS_LPCR = 0x38,
     SNVS_LPCR_TOP   = BIT(6),
-    SNVS_LPCR_DP_EN = BIT(5)
+    SNVS_LPCR_DP_EN = BIT(5),
+    SNVS_LPSRTCMR = 0x050, /* Secure Real Time Counter MSB Register */
+    SNVS_LPSRTCLR = 0x054, /* Secure Real Time Counter LSB Register */
 };
 
 #define TYPE_IMX7_SNVS "imx7.snvs"
@@ -31,6 +33,9 @@ struct IMX7SNVSState {
     SysBusDevice parent_obj;
 
     MemoryRegion mmio;
+
+    uint64_t tick_offset;
+    uint64_t lpcr;
 };
 
 #endif /* IMX7_SNVS_H */