Received: from eggs.gnu.org ([2001:4830:134:3::10]:39505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrCmz-00058x-JE for qemu-devel@nongnu.org; Tue, 27 Oct 2015 18:32:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrCmw-0001xf-DC for qemu-devel@nongnu.org; Tue, 27 Oct 2015 18:32:21 -0400 Received: from zose-mta05.web4all.fr ([185.49.20.50]:34815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrCmw-0001wg-89 for qemu-devel@nongnu.org; Tue, 27 Oct 2015 18:32:18 -0400 From: Jean-Christophe Dubois Date: Tue, 27 Oct 2015 23:32:08 +0100 Message-Id: Subject: [Qemu-devel] [PATCH 0/2] i.MX: Add an i.MX25 specific CCM driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, peter.maydell@linaro.org, crosthwaite.peter@gmail.com Cc: Jean-Christophe Dubois i.MX25 SOC has a different CCM device than i.MX31. Qemu i.MX25 emulation was built with i.MX31 CCM driver. This allows Linux to work on top of the i.MX25 emultion but this is not correct. Furthermore, other SOC we could emulate like i.MX6 have yet a different implementation of the CCM device. We then add an i.MX25 specific CCM Device and have the i.MX25 SOC use it. Jean-Christophe Dubois (2): i.MX: rework CCM driver. i.MX: Add i.MX25 CCM driver hw/arm/fsl-imx25.c | 6 +- hw/arm/fsl-imx31.c | 6 +- hw/misc/Makefile.objs | 2 + hw/misc/imx25_ccm.c | 224 +++++++++++++++++++++++++++++++++++++++ hw/misc/imx31_ccm.c | 240 ++++++++++++++++++++++++++++++++++++++++++ hw/misc/imx_ccm.c | 249 +++----------------------------------------- hw/timer/imx_epit.c | 8 +- hw/timer/imx_gpt.c | 12 +-- include/hw/arm/fsl-imx25.h | 4 +- include/hw/arm/fsl-imx31.h | 4 +- include/hw/misc/imx25_ccm.h | 61 +++++++++++ include/hw/misc/imx31_ccm.h | 68 ++++++++++++ include/hw/misc/imx_ccm.h | 73 +++---------- include/hw/timer/imx_epit.h | 1 - include/hw/timer/imx_gpt.h | 1 - 15 files changed, 640 insertions(+), 319 deletions(-) create mode 100644 hw/misc/imx25_ccm.c create mode 100644 hw/misc/imx31_ccm.c create mode 100644 include/hw/misc/imx25_ccm.h create mode 100644 include/hw/misc/imx31_ccm.h -- 2.5.0