summaryrefslogtreecommitdiff
path: root/include/hw/timer/aspeed_timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/timer/aspeed_timer.h')
-rw-r--r--include/hw/timer/aspeed_timer.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/hw/timer/aspeed_timer.h b/include/hw/timer/aspeed_timer.h
index bd6c1a7f9..44dc2f89d 100644
--- a/include/hw/timer/aspeed_timer.h
+++ b/include/hw/timer/aspeed_timer.h
@@ -22,7 +22,7 @@
#ifndef ASPEED_TIMER_H
#define ASPEED_TIMER_H
-#include "qemu/timer.h"
+#include "hw/ptimer.h"
#define ASPEED_TIMER(obj) \
OBJECT_CHECK(AspeedTimerCtrlState, (obj), TYPE_ASPEED_TIMER);
@@ -33,16 +33,15 @@ typedef struct AspeedTimer {
qemu_irq irq;
uint8_t id;
- QEMUTimer timer;
/**
* Track the line level as the ASPEED timers implement edge triggered
* interrupts, signalling with both the rising and falling edge.
*/
int32_t level;
+ ptimer_state *timer;
uint32_t reload;
uint32_t match[2];
- uint64_t start;
} AspeedTimer;
typedef struct AspeedTimerCtrlState {