Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / misc / imx7_snvs.h
blob1272076086a7277ade897c1789fcc18b9912b34e
1 /*
2 * Copyright (c) 2017, Impinj, Inc.
4 * i.MX7 SNVS block emulation code
6 * Author: Andrey Smirnov <andrew.smirnov@gmail.com>
8 * This work is licensed under the terms of the GNU GPL, version 2 or later.
9 * See the COPYING file in the top-level directory.
12 #ifndef IMX7_SNVS_H
13 #define IMX7_SNVS_H
15 #include "qemu/bitops.h"
16 #include "hw/sysbus.h"
17 #include "qom/object.h"
20 enum IMX7SNVSRegisters {
21 SNVS_LPCR = 0x38,
22 SNVS_LPCR_TOP = BIT(6),
23 SNVS_LPCR_DP_EN = BIT(5),
24 SNVS_LPSRTCMR = 0x050, /* Secure Real Time Counter MSB Register */
25 SNVS_LPSRTCLR = 0x054, /* Secure Real Time Counter LSB Register */
28 #define TYPE_IMX7_SNVS "imx7.snvs"
29 OBJECT_DECLARE_SIMPLE_TYPE(IMX7SNVSState, IMX7_SNVS)
31 struct IMX7SNVSState {
32 /* <private> */
33 SysBusDevice parent_obj;
35 MemoryRegion mmio;
37 uint64_t tick_offset;
38 uint64_t lpcr;
41 #endif /* IMX7_SNVS_H */