i.MX: Split the CCM class into an abstract base class and a concrete class
commitcb54d868c6a2292443645f25b295630f925474f8
authorJean-Christophe Dubois <jcd@tribudubois.net>
Thu, 17 Dec 2015 13:37:15 +0000 (17 13:37 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 17 Dec 2015 13:37:15 +0000 (17 13:37 +0000)
tree903913a43da3c7fa2c25c42d76587ea39044bee1
parentaaa9ec3b4ddaea53c6218ac90bf4ebc4b0bcff31
i.MX: Split the CCM class into an abstract base class and a concrete class

The IMX_CCM class is now the base abstract class that is used by EPIT
and GPT timer implementation.

IMX31_CCM class is the concrete class implementing CCM for i.MX31 SOC.

For now the i.MX25 continues to use the i.MX31 CCM implementation.

An i.MX25 specific CCM will be introduced in a later patch.

We also rework initialization to stop using deprecated sysbus device init.

Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net>
Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Message-id: fd3c7f87b50f5ebc99ec91f01413db35017f116d.1449528242.git.jcd@tribudubois.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/fsl-imx25.c
hw/arm/fsl-imx31.c
hw/misc/Makefile.objs
hw/misc/imx31_ccm.c [new file with mode: 0644]
hw/misc/imx_ccm.c
include/hw/arm/fsl-imx25.h
include/hw/arm/fsl-imx31.h
include/hw/misc/imx31_ccm.h [copied from include/hw/misc/imx_ccm.h with 53% similarity]
include/hw/misc/imx_ccm.h
include/hw/timer/imx_epit.h
include/hw/timer/imx_gpt.h