arm: Remove frq properties on CMSDK timer, dualtimer, watchdog, ARMSSE
[qemu/ar7.git] / include / hw / timer / cmsdk-apb-timer.h
blobc4c7eae849995abbd093a96a8ce7ebd58facf615
1 /*
2 * ARM CMSDK APB timer emulation
4 * Copyright (c) 2017 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.
12 #ifndef CMSDK_APB_TIMER_H
13 #define CMSDK_APB_TIMER_H
15 #include "hw/qdev-properties.h"
16 #include "hw/sysbus.h"
17 #include "hw/ptimer.h"
18 #include "hw/clock.h"
19 #include "qom/object.h"
21 #define TYPE_CMSDK_APB_TIMER "cmsdk-apb-timer"
22 OBJECT_DECLARE_SIMPLE_TYPE(CMSDKAPBTimer, CMSDK_APB_TIMER)
25 * QEMU interface:
26 * + Clock input "pclk": clock for the timer
27 * + sysbus MMIO region 0: the register bank
28 * + sysbus IRQ 0: timer interrupt TIMERINT
30 struct CMSDKAPBTimer {
31 /*< private >*/
32 SysBusDevice parent_obj;
34 /*< public >*/
35 MemoryRegion iomem;
36 qemu_irq timerint;
37 struct ptimer_state *timer;
38 Clock *pclk;
40 uint32_t ctrl;
41 uint32_t value;
42 uint32_t reload;
43 uint32_t intstatus;
46 #endif