2 * ARM IoTKit system control element
4 * Copyright (c) 2018 Linaro Limited
5 * Written by Peter Maydell
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 or
9 * (at your option) any later version.
13 * This is a model of the "system control element" which is part of the
14 * Arm IoTKit and documented in
15 * https://developer.arm.com/documentation/ecm0601256/latest
16 * Specifically, it implements the "system information block" and
17 * "system control register" blocks.
20 * + QOM property "sse-version": indicates which SSE version this is part of
21 * (used to identify whether to provide SSE-200-only registers, etc)
22 * + sysbus MMIO region 0: the system information register bank
23 * + sysbus MMIO region 1: the system control register bank
26 #ifndef HW_MISC_IOTKIT_SYSCTL_H
27 #define HW_MISC_IOTKIT_SYSCTL_H
29 #include "hw/sysbus.h"
30 #include "qom/object.h"
32 #define TYPE_IOTKIT_SYSCTL "iotkit-sysctl"
33 OBJECT_DECLARE_SIMPLE_TYPE(IoTKitSysCtl
, IOTKIT_SYSCTL
)
37 SysBusDevice parent_obj
;
42 uint32_t secure_debug
;
43 uint32_t reset_syndrome
;
57 uint32_t pdcm_pd_sys_sense
;
58 uint32_t pdcm_pd_sram0_sense
;
59 uint32_t pdcm_pd_sram1_sense
;
60 uint32_t pdcm_pd_sram2_sense
;
61 uint32_t pdcm_pd_sram3_sense
;
62 uint32_t pdcm_pd_cpu0_sense
;
63 uint32_t pdcm_pd_vmr0_sense
;
64 uint32_t pdcm_pd_vmr1_sense
;
69 uint32_t initsvtor0_rst
;
70 uint32_t initsvtor1_rst
;