2 * IMX7 System Reset Controller
4 * Copyright (C) 2023 Jean-Christophe Dubois <jcd@tribudubois.net>
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
13 #include "hw/sysbus.h"
14 #include "qemu/bitops.h"
15 #include "qom/object.h"
22 #define SRC_HSICPHY_RCR 7
23 #define SRC_USBOPHY1_RCR 8
24 #define SRC_USBOPHY2_RCR 9
25 #define SRC_MPIPHY_RCR 10
26 #define SRC_PCIEPHY_RCR 11
45 #define R_CORE1_ENABLE_SHIFT 1
46 #define R_CORE1_ENABLE_LENGTH 1
48 #define R_CORE1_RST_SHIFT 5
49 #define R_CORE1_RST_LENGTH 1
50 #define R_CORE0_RST_SHIFT 4
51 #define R_CORE0_RST_LENGTH 1
53 #define TYPE_IMX7_SRC "imx7.src"
54 OBJECT_DECLARE_SIMPLE_TYPE(IMX7SRCState
, IMX7_SRC
)
58 SysBusDevice parent_obj
;
63 uint32_t regs
[SRC_MAX
];
66 #endif /* IMX7_SRC_H */