diff options
author | Beniamino Galvani <b.galvani@gmail.com> | 2014-03-25 19:22:08 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-04-17 21:34:06 +0100 |
commit | 286226a47980d25f95afe920d430d3bbcb883546 (patch) | |
tree | cdd64ff3236cd206dff9a4066178f3ff114883ec /include/hw/timer/allwinner-a10-pit.h | |
parent | a63f9f85e387791e7a94480379ca5421a0b6d580 (diff) | |
download | qemu-286226a47980d25f95afe920d430d3bbcb883546.zip |
allwinner-a10-pit: implement prescaler and source selection
This implements the prescaler and source fields of the timer control
register. The source for each timer can be selected among 4 clock
inputs whose frequencies are set through model properties.
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: 1395771730-16882-6-git-send-email-b.galvani@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/timer/allwinner-a10-pit.h')
-rw-r--r-- | include/hw/timer/allwinner-a10-pit.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/timer/allwinner-a10-pit.h b/include/hw/timer/allwinner-a10-pit.h index 2158fc0d7b..770bdc03c1 100644 --- a/include/hw/timer/allwinner-a10-pit.h +++ b/include/hw/timer/allwinner-a10-pit.h @@ -50,6 +50,7 @@ struct AwA10PITState { ptimer_state * timer[AW_A10_PIT_TIMER_NR]; AwA10TimerContext timer_context[AW_A10_PIT_TIMER_NR]; MemoryRegion iomem; + uint32_t clk_freq[4]; uint32_t irq_enable; uint32_t irq_status; |