aboutsummaryrefslogtreecommitdiff
path: root/hw/imx.h
diff options
context:
space:
mode:
authorPeter Chubb <peter.chubb@nicta.com.au>2012-07-04 10:43:33 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-07-04 10:43:33 +0000
commitbcc181b0ad84bfa2369f39c55c63752820d49284 (patch)
tree7e6251dbc1035168bd7088fe6c433b162e8de3ca /hw/imx.h
parent40b6f91151e7538ffeec5316300030140b09c16c (diff)
i.MX31: Clock Control Module
For Linux to be able to work out how fast its clocks are going, so that timer ticks come approximately at the right time, it needs to be able to query the clock control module (CCM). This is the start of a CCM implementation. It currently knows only about the MCU, HSP and IPG clocks --- i.e., the ones used to feed the periodic and general purpose timers. Signed-off-by: Peter Chubb <peter.chubb@nicta.com.au> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/imx.h')
-rw-r--r--hw/imx.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/imx.h b/hw/imx.h
index c1023cc3c0..707e943aab 100644
--- a/hw/imx.h
+++ b/hw/imx.h
@@ -13,4 +13,14 @@
void imx_serial_create(int uart, const target_phys_addr_t addr, qemu_irq irq);
+typedef enum {
+ NOCLK,
+ MCU,
+ HSP,
+ IPG,
+ CLK_32k
+} IMXClk;
+
+uint32_t imx_clock_frequency(DeviceState *s, IMXClk clock);
+
#endif /* IMX_H */