allwinner-a10-pit: implement prescaler and source selection
commit286226a47980d25f95afe920d430d3bbcb883546
authorBeniamino Galvani <b.galvani@gmail.com>
Tue, 25 Mar 2014 18:22:08 +0000 (25 19:22 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 17 Apr 2014 20:34:06 +0000 (17 21:34 +0100)
treecdd64ff3236cd206dff9a4066178f3ff114883ec
parenta63f9f85e387791e7a94480379ca5421a0b6d580
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>
hw/arm/cubieboard.c
hw/timer/allwinner-a10-pit.c
include/hw/timer/allwinner-a10-pit.h