diff options
author | Peter Chubb <peter.chubb@nicta.com.au> | 2012-07-04 10:43:33 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2012-07-04 10:43:33 +0000 |
commit | bcc181b0ad84bfa2369f39c55c63752820d49284 (patch) | |
tree | 7e6251dbc1035168bd7088fe6c433b162e8de3ca /hw/imx.h | |
parent | 40b6f91151e7538ffeec5316300030140b09c16c (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.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 */ |