diff options
author | Nikita Ostrenkov <n.ostrenkov@gmail.com> | 2023-12-19 17:57:50 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-12-19 18:03:32 +0000 |
commit | 6f9c3aaa34e937d8deaab44671e7562e4027436b (patch) | |
tree | eae19e122ec81b71489e97f711160fbabed84bff /include/hw | |
parent | 6980c31dec42b6daebf7fec13b2d39ed87bb4766 (diff) | |
download | qemu-6f9c3aaa34e937d8deaab44671e7562e4027436b.zip qemu-6f9c3aaa34e937d8deaab44671e7562e4027436b.tar.gz qemu-6f9c3aaa34e937d8deaab44671e7562e4027436b.tar.bz2 |
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')
-rw-r--r-- | include/hw/misc/imx7_snvs.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/hw/misc/imx7_snvs.h b/include/hw/misc/imx7_snvs.h index 14a1d6f..1272076 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 */ |