2 * IMX6 System Reset Controller
4 * Copyright (C) 2012 NICTA
5 * Updated by Jean-Christophe Dubois <jcd@tribudubois.net>
7 * This work is licensed under the terms of the GNU GPL, version 2 or later.
8 * See the COPYING file in the top-level directory.
14 #include "hw/sysbus.h"
15 #include "qemu/bitops.h"
16 #include "qom/object.h"
37 #define CORE3_ENABLE_SHIFT 24
38 #define CORE3_ENABLE_LENGTH 1
39 #define CORE2_ENABLE_SHIFT 23
40 #define CORE2_ENABLE_LENGTH 1
41 #define CORE1_ENABLE_SHIFT 22
42 #define CORE1_ENABLE_LENGTH 1
43 #define CORE3_RST_SHIFT 16
44 #define CORE3_RST_LENGTH 1
45 #define CORE2_RST_SHIFT 15
46 #define CORE2_RST_LENGTH 1
47 #define CORE1_RST_SHIFT 14
48 #define CORE1_RST_LENGTH 1
49 #define CORE0_RST_SHIFT 13
50 #define CORE0_RST_LENGTH 1
51 #define SW_IPU1_RST_SHIFT 3
52 #define SW_IPU1_RST_LENGTH 1
53 #define SW_IPU2_RST_SHIFT 12
54 #define SW_IPU2_RST_LENGTH 1
55 #define WARM_RST_ENABLE_SHIFT 0
56 #define WARM_RST_ENABLE_LENGTH 1
58 #define EXTRACT(value, name) extract32(value, name##_SHIFT, name##_LENGTH)
60 #define TYPE_IMX6_SRC "imx6.src"
61 OBJECT_DECLARE_SIMPLE_TYPE(IMX6SRCState
, IMX6_SRC
)
65 SysBusDevice parent_obj
;
70 uint32_t regs
[SRC_MAX
];
74 #endif /* IMX6_SRC_H */