[Qemu-devel] Help needed to run Exynos 4210 linux kernel on qemu?

2012-09-04 Thread Jean-Christophe DUBOIS
Hi, I am trying to run linux over qemu-system-arm emulating a nuri or smdkc210 Exynos 4210 based board. To do this I fetched the last qemu (from git://git.qemu.org/qemu.git) and built it with "./configure --target-list=arm-softmmu. Then I fetched the latest linux image for samsung processor

Re: [Qemu-devel] Help needed to run Exynos 4210 linux kernel on qemu?

2012-09-05 Thread Jean-Christophe DUBOIS
Hello Igor, Thanks for you reply and your time. JC On 09/05/2012 02:38 PM, Igor Mitsyanko wrote: On 09/04/2012 02:13 AM, Jean-Christophe DUBOIS wrote: Hello, Jean! I've just tried to do the same thing you're trying to do, it works for me if I remove earlyprintk from append. Ye

[Qemu-devel] [PATCH] i.MX: implement a more correct version of EPIT timer.

2013-04-09 Thread Jean-Christophe DUBOIS
This patch is providing a complete version of the EPIT timer. Note, however that the GPT timer in the same file is still not complete. Signed-off-by: Jean-Christophe DUBOIS --- hw/timer/imx_timer.c | 250 ++ 1 file changed, 192 insertions(+), 58

Re: [Qemu-devel] [PATCH] i.MX: implement a more correct version of EPIT timer.

2013-04-09 Thread Jean-Christophe DUBOIS
On 04/10/2013 01:27 AM, Peter Chubb wrote: This patch is providing a complete version of the EPIT timer. Note, however that the GPT timer in the same file is still not complete. Thanks! Comments in=line below. @@ -411,7 +441,7 @@ static int imx_timerg_init(SysBusDevice *dev) #define CR_SWR

Re: [Qemu-devel] [PATCH] i.MX: implement a more correct version of EPIT timer.

2013-04-10 Thread Jean-Christophe DUBOIS
On 04/10/2013 10:26 AM, Peter Maydell wrote: On 9 April 2013 23:32, Jean-Christophe DUBOIS wrote: @@ -605,11 +735,13 @@ static const VMStateDescription vmstate_imx_timerp = { .minimum_version_id_old = 1, .fields = (VMStateField[]) { VMSTATE_UINT32(cr, IMXTimerPState

[Qemu-devel] [PATCH v2] i.MX: implement a more correct version of EPIT timer.

2013-04-10 Thread Jean-Christophe DUBOIS
This patch is providing a complete version of the EPIT timer. Note, however that the GPT timer in the same file is still not complete. Signed-off-by: Jean-Christophe DUBOIS Change from v1: - bump up the version number on VMSTATE struct - fix comment --- hw/timer/imx_timer.c | 253

[Qemu-devel] [PATCH v3] i.MX: implement a more correct version of EPIT timer.

2013-04-10 Thread Jean-Christophe DUBOIS
This patch is providing a complete version of the EPIT timer. Note, however that the GPT timer in the same file is still not complete. Signed-off-by: Jean-Christophe DUBOIS Change from v2: - change all version number in VMSTATE struct. Change from v1: - bump up the version number on

Re: [Qemu-devel] [PATCH v2] i.MX: implement a more correct version of EPIT timer.

2013-04-10 Thread Jean-Christophe DUBOIS
On 04/10/2013 10:07 PM, Peter Maydell wrote: On 10 April 2013 21:02, Jean-Christophe DUBOIS wrote: static const VMStateDescription vmstate_imx_timerp = { .name = "imx-timerp", -.version_id = 1, +.version_id = 2, .minimum_version_id = 1, .minimum_version_

[Qemu-devel] [PATCH] Add i.MX25 3DS evaluation board support

2013-04-18 Thread Jean-Christophe DUBOIS
This is an initial port of the Freescale i.MX25 processor. This allow a minimally configured linux kernel to boot on Qemu. Signed-off-by: Jean-Christophe DUBOIS --- hw/arm/Makefile.objs |1 + hw/arm/imx25_3ds.c | 199 ++ 2 files changed

[Qemu-devel] [PATCH 1/2] Add i.MX FEC ethernet controller

2013-04-26 Thread Jean-Christophe DUBOIS
This port is based on the cold fire FEC emulator. A generic PHY was added (borrowed from lan9118). The buffer management is also modified as buffers are slightly different between coldfire and i.MX. Signed-off-by: Jean-Christophe DUBOIS --- default-configs/arm-softmmu.mak | 1 + hw/net

[Qemu-devel] [PATCH 2/2] Add i.MX25 3DS evaluation board support

2013-04-26 Thread Jean-Christophe DUBOIS
This is an initial port of the Freescale i.MX25 processor. This allow a minimally configured linux kernel to boot on Qemu. It also handle the newly added FEC ethernet device. Signed-off-by: Jean-Christophe DUBOIS --- hw/arm/Makefile.objs | 1 + hw/arm/imx25_3ds.c | 218

[Qemu-devel] [PATCH][ARM] Fix C15 FSR (C5) domain setting

2011-11-03 Thread Jean-Christophe DUBOIS
During Xvisor development, it was noted that qemu did not return the correct domain value in the C15 [Data] FSR register (C5). This patch is a proposal to fix it. Signed-off-by: Jean-Christophe DUBOIS --- --- qemu-0.15.1.org/target-arm/helper.c2011-10-12 18:41:43.0 +0200 +++ qemu

[Qemu-devel] [PATCH] arm: Fix CP15 FSR (C5) domain setting

2011-11-04 Thread Jean-Christophe DUBOIS
During Xvisor development, it was noted that qemu did not return the correct domain value in the Cp15 [Data] FSR register (C5). This patch is a proposal to fix it. Signed-off-by: Jean-Christophe DUBOIS --- --- qemu-0.15.1.org/target-arm/helper.c2011-10-12 18:41:43.0 +0200

[Qemu-devel] [PATCH] Fix reset bit for realview platform.

2011-11-04 Thread Jean-Christophe DUBOIS
-realview/realview_pba8.c#L274 Signed-off-by: Jean-Christophe DUBOIS --- hw/arm_sysctl.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/arm_sysctl.c b/hw/arm_sysctl.c index 17cf6f7..aef271e 100644 --- a/hw/arm_sysctl.c +++ b/hw/arm_sysctl.c @@ -237,7 +237,7 @@ static void

[Qemu-devel] [PATCH v2] realview: fix reset bit depending on platform

2011-11-05 Thread Jean-Christophe DUBOIS
/com.arm.doc.dui0440b/CACCHBFB.html Motherboard Express µATX: BOARD_ID = 0x190 = BOARD_ID_VEXPRESS No reset register v2: - Add multiple boards support - fix coding style - Added a BOARD_ID descriptor for unsupported baseboards. Signed-off-by: Jean-Christophe DUBOIS --- hw/arm_sysctl.c | 43

[Qemu-devel] [PATCH v2] arm: Fix CP15 FSR (C5) domain setting

2011-11-05 Thread Jean-Christophe DUBOIS
During Xvisor development, it was noted that qemu did not return the correct domain value in the Cp15 [Data] FSR register (C5). This patch is a proposal to fix it. v2: - fix coding style - rebase on git. Signed-off-by: Jean-Christophe DUBOIS --- target-arm/helper.c | 26

Re: [Qemu-devel] [PATCH v2] arm: Fix CP15 FSR (C5) domain setting

2011-11-06 Thread Jean-Christophe DUBOIS
On 06/11/2011 18:33, Peter Maydell wrote: On 5 November 2011 11:42, Jean-Christophe DUBOIS wrote: During Xvisor development, it was noted that qemu did not return the correct domain value in the Cp15 [Data] FSR register (C5). This patch is a proposal to fix it. v2: - fix coding style

[Qemu-devel] [PATCH v3] hw/arm_sysctl: Fix RESETCTL for realview-pb-a8 and -pbx-a9

2011-11-06 Thread Jean-Christophe DUBOIS
/topic/com.arm.doc.dui0440b/CACCHBFB.html Motherboard Express µATX: BOARD_ID = 0x190 = BOARD_ID_VEXPRESS No reset register Signed-off-by: Jean-Christophe DUBOIS --- v3: - change patch name to something more meaningful - move version information after the commit message. - remove added BOARD_ID

Re: [Qemu-devel] [PATCH v2] i.MX: implement a more correct version of EPIT timer.

2013-04-29 Thread Jean-Christophe DUBOIS
On 04/28/2013 11:29 PM, Peter Chubb wrote: "Jean-Christophe" == Jean-Christophe DUBOIS writes: Jean-Christophe> This patch is providing a complete version of the Jean-Christophe> EPIT timer. Note, however that the GPT timer in the Jean-Christophe> same file is still not co

Re: [Qemu-devel] [PATCH v2] i.MX: implement a more correct version of EPIT timer.

2013-04-29 Thread Jean-Christophe DUBOIS
On 04/29/2013 06:49 PM, Peter Maydell wrote: On 29 April 2013 17:39, Jean-Christophe DUBOIS wrote: Peter (Maydel), will you pick it up as is (actually the v3 version) or do I need to send a new version of the patch (a v4) ? The last on-list version still has the wrong vmstate version fields

[Qemu-devel] [PATCH 1/2] Add i.MX I2C device emulator.

2013-05-01 Thread Jean-Christophe DUBOIS
Signed-off-by: Jean-Christophe DUBOIS --- default-configs/arm-softmmu.mak | 2 + hw/i2c/Makefile.objs| 1 + hw/i2c/imx_i2c.c| 374 3 files changed, 377 insertions(+) create mode 100644 hw/i2c/imx_i2c.c diff --git a

[Qemu-devel] [PATCH 2/2] Add i.MX device to i.MX25 3DS platform.

2013-05-01 Thread Jean-Christophe DUBOIS
Signed-off-by: Jean-Christophe DUBOIS --- hw/arm/imx25_3ds.c | 48 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/hw/arm/imx25_3ds.c b/hw/arm/imx25_3ds.c index 9de4941..aba9279 100644 --- a/hw/arm/imx25_3ds.c +++ b/hw/arm

Re: [Qemu-devel] [PATCH 2/2] Add i.MX25 3DS evaluation board support

2013-05-01 Thread Jean-Christophe DUBOIS
interest to somebody? If so, what it the process to get it adopted in an official tree. Thanks JC On 04/26/2013 04:02 PM, Jean-Christophe DUBOIS wrote: This is an initial port of the Freescale i.MX25 processor. This allow a minimally configured linux kernel to boot on Qemu. It also handle

Re: [Qemu-devel] [PATCH 1/2] Add i.MX I2C device emulator.

2013-05-02 Thread Jean-Christophe DUBOIS
-Christophe DUBOIS wrote: ERROR: return is not a function, parentheses are not required #148: FILE: hw/i2c/imx_i2c.c:114: +return (s->i2cr & I2CR_IEN); >From checkpatch, here and below. Will do. +} + +static inline bool imx_i2c_interrupt_is_enabled(imx_i2c_state *s) +{ +retur

Re: [Qemu-devel] [PATCH 1/2] Add i.MX I2C device emulator.

2013-05-03 Thread Jean-Christophe DUBOIS
Andreas, On 05/02/2013 02:38 PM, Andreas Färber wrote: Hi, Am 01.05.2013 21:53, schrieb Jean-Christophe DUBOIS: Signed-off-by: Jean-Christophe DUBOIS --- default-configs/arm-softmmu.mak | 2 + hw/i2c/Makefile.objs| 1 + hw/i2c/imx_i2c.c| 374

Re: [Qemu-devel] [PATCH 1/2] Add i.MX I2C device emulator.

2013-05-03 Thread Jean-Christophe DUBOIS
On 05/03/2013 05:20 PM, Andreas Färber wrote: Am 03.05.2013 17:16, schrieb Jean-Christophe DUBOIS: Andreas, On 05/02/2013 02:38 PM, Andreas Färber wrote: Hi, Am 01.05.2013 21:53, schrieb Jean-Christophe DUBOIS: Signed-off-by: Jean-Christophe DUBOIS --- default-configs/arm-softmmu.mak

Re: [Qemu-devel] [PATCH 1/2] Add i.MX I2C device emulator.

2013-05-04 Thread Jean-Christophe DUBOIS
On 05/03/2013 06:41 PM, Andreas Färber wrote: CCtests/libi2c-imx.o LINK tests/tmp105-test CCtests/ds1338-test.o LINK tests/ds1338-test GTESTER check-qtest-arm Kernel image must be specified Without seeing your code and since tmp105-test is working on my side, I can only gues

Re: [Qemu-devel] [PATCH 1/2] Add i.MX I2C device emulator.

2013-05-04 Thread Jean-Christophe DUBOIS
On 05/04/2013 10:29 AM, Peter Maydell wrote: On 4 May 2013 09:27, Andreas Färber wrote: Am 04.05.2013 10:22, schrieb Jean-Christophe DUBOIS: Do you mean arm_load_kernel() should test for qtest_enable() or should I call arm_load_kernel() only if !qtest_enable() (there is not much platform

[Qemu-devel] [PATCH v2 0/4] Add i.MX25 support through the 3DS evaluation board

2013-05-04 Thread Jean-Christophe DUBOIS
Jean-Christophe DUBOIS (4): Add i.MX FEC Ethernet driver Add i.MX I2C controller driver. Add i.MX25 3DS evaluation board support. Add qtest support for i.MX I2C device emulation. default-configs/arm-softmmu.mak | 3 + hw/arm/Makefile.objs| 1 + hw/arm/imx25_3ds.c

[Qemu-devel] [PATCH v2 3/4] Add i.MX25 3DS evaluation board support.

2013-05-04 Thread Jean-Christophe DUBOIS
not present on the real board. Signed-off-by: Jean-Christophe DUBOIS --- hw/arm/Makefile.objs | 1 + hw/arm/imx25_3ds.c | 258 +++ 2 files changed, 259 insertions(+) create mode 100644 hw/arm/imx25_3ds.c diff --git a/hw/arm/Makefile.objs b/hw

[Qemu-devel] [PATCH v2 1/4] Add i.MX FEC Ethernet driver

2013-05-04 Thread Jean-Christophe DUBOIS
This is based on the mcf_fec.c FEC implementation for ColdFire. * a generic phy was added (borrowed from lan9118). * The buffer management is also modified as buffers are slightly different between coldfire and i.MX. Signed-off-by: Jean-Christophe DUBOIS --- default-configs/arm

[Qemu-devel] [PATCH v2 4/4] Add qtest support for i.MX I2C device emulation.

2013-05-04 Thread Jean-Christophe DUBOIS
This is using a ds1338 RTC chip on the i2c bus. This RTC chip is nop present on the real board Signed-off-by: Jean-Christophe DUBOIS --- tests/Makefile | 3 + tests/ds1338-test.c| 64 ++ tests/libqos/i2c-imx.c | 224

[Qemu-devel] [PATCH v2 2/4] Add i.MX I2C controller driver.

2013-05-04 Thread Jean-Christophe DUBOIS
The slave mode is not implemented. Signed-off-by: Jean-Christophe DUBOIS --- default-configs/arm-softmmu.mak | 2 + hw/i2c/Makefile.objs| 1 + hw/i2c/imx_i2c.c| 383 include/hw/arm/imx.h| 1 + 4 files changed

Re: [Qemu-devel] [PATCH v2 4/4] Add qtest support for i.MX I2C device emulation.

2013-05-04 Thread Jean-Christophe DUBOIS
On 05/04/2013 06:53 PM, Andreas Färber wrote: Am 04.05.2013 16:09, schrieb Jean-Christophe DUBOIS: +#include "qemu/bswap.h" Is this one needed? No, I will remove it. +enum IMXI2CRegisters { +IMX_I2C_IADR = 0x00, +IMX_I2C_IFDR = 0x04, +IMX_I2C_I2CR = 0x08, +IM

Re: [Qemu-devel] [PATCH v2 2/4] Add i.MX I2C controller driver.

2013-05-04 Thread Jean-Christophe DUBOIS
On 05/05/2013 05:14 AM, Peter Crosthwaite wrote: Hi JC, Thanks for actioning the comments. On Sun, May 5, 2013 at 12:09 AM, Jean-Christophe DUBOIS wrote: The slave mode is not implemented. Signed-off-by: Jean-Christophe DUBOIS --- As a general rule you need to indicate changes between the

Re: [Qemu-devel] [PATCH v2 2/4] Add i.MX I2C controller driver.

2013-05-05 Thread Jean-Christophe DUBOIS
On 05/05/2013 01:53 PM, Peter Crosthwaite wrote: Hi Peter, On Sun, May 5, 2013 at 9:41 PM, Peter Maydell wrote: On 5 May 2013 11:53, Peter Crosthwaite wrote: On Sun, May 5, 2013 at 8:47 PM, Peter Maydell wrote: On 5 May 2013 04:58, Jean-Christophe DUBOIS wrote: no extract16() macro

Re: [Qemu-devel] [PATCH v2 2/4] Add i.MX I2C controller driver.

2013-05-05 Thread Jean-Christophe DUBOIS
On 05/05/2013 01:34 PM, Andreas Färber wrote: Am 05.05.2013 05:14, schrieb Peter Crosthwaite: On Sun, May 5, 2013 at 12:09 AM, Jean-Christophe DUBOIS wrote: diff --git a/hw/i2c/imx_i2c.c b/hw/i2c/imx_i2c.c new file mode 100644 index 000..5b0d046 --- /dev/null +++ b/hw/i2c/imx_i2c.c

Re: [Qemu-devel] [PATCH v2 1/4] Add i.MX FEC Ethernet driver

2013-05-05 Thread Jean-Christophe DUBOIS
On 05/05/2013 05:11 AM, Peter Crosthwaite wrote: Hi JC, On Sun, May 5, 2013 at 12:09 AM, Jean-Christophe DUBOIS wrote: This is based on the mcf_fec.c FEC implementation for ColdFire. * a generic phy was added (borrowed from lan9118). * The buffer management is also modified as

Re: [Qemu-devel] [PATCH v2 1/4] Add i.MX FEC Ethernet driver

2013-05-05 Thread Jean-Christophe DUBOIS
On 05/05/2013 03:31 PM, Andreas Färber wrote: Am 05.05.2013 15:14, schrieb Jean-Christophe DUBOIS: On 05/05/2013 05:11 AM, Peter Crosthwaite wrote: Hi JC, On Sun, May 5, 2013 at 12:09 AM, Jean-Christophe DUBOIS wrote: This is based on the mcf_fec.c FEC implementation for ColdFire. Note

[Qemu-devel] [PATCH v3 0/4] Add i.MX25 support through the 3DS evaluation board

2013-05-05 Thread Jean-Christophe DUBOIS
It also adds qtest support for the I2C controller. Jean-Christophe DUBOIS (4): Add i.MX FEC Ethernet emulator Add i.MX I2C controller emulator Add i.MX25 3DS evaluation board support. Add qtest support for i.MX I2C device emulation. default-configs/arm-softmmu.mak | 3 + hw/arm

[Qemu-devel] [PATCH v3 3/4] Add i.MX25 3DS evaluation board support.

2013-05-05 Thread Jean-Christophe DUBOIS
not present on the real board. Changes since v1: * Added a ds1338 I2C device for qtest purpose. Changes since v2: * none Signed-off-by: Jean-Christophe DUBOIS --- default-configs/arm-softmmu.mak | 3 + hw/arm/Makefile.objs| 1 + hw/arm/imx25_3ds.c | 258

[Qemu-devel] [PATCH v3 1/4] Add i.MX FEC Ethernet emulator

2013-05-05 Thread Jean-Christophe DUBOIS
Controller emulation. + * + * Copyright (c) 2013 Jean-Christophe Dubois. + * + * Based on Coldfire Fast Ethernet Controller emulation. + * + * Copyright (c) 2007 CodeSourcery. + * + * This code is licensed under the GPL + */ + +#include "qemu/bitops.h" + +#include "sysemu/dma.h" +

[Qemu-devel] [PATCH v3 2/4] Add i.MX I2C controller emulator

2013-05-05 Thread Jean-Christophe DUBOIS
. * improve QOM cast * separate regs definition in its own file (to be reused by qtest) Signed-off-by: Jean-Christophe DUBOIS --- hw/i2c/Makefile.objs | 1 + hw/i2c/imx_i2c.c | 352 ++ hw/i2c/imx_i2c_regs.h | 63 + 3 files changed, 416

[Qemu-devel] [PATCH v3 4/4] Add qtest support for i.MX I2C device emulation.

2013-05-05 Thread Jean-Christophe DUBOIS
This is using a ds1338 RTC chip on the i2c bus. This RTC chip is not present on the real board. Changes since v1: * not present on v1 Changes since v2: * use a common header file for I2C regs definition Signed-off-by: Jean-Christophe DUBOIS --- tests/Makefile | 3 + tests

Re: [Qemu-devel] [PATCH v3 2/4] Add i.MX I2C controller emulator

2013-05-05 Thread Jean-Christophe DUBOIS
On 05/06/2013 04:19 AM, Peter Crosthwaite wrote: Hi JC, On Mon, May 6, 2013 at 12:28 AM, Jean-Christophe DUBOIS wrote: The slave mode is not implemented. Changes since v1: * use QOM cast * run checkpatch on code * added restrictin on MemoryRegionOps * use DeviceClass

[Qemu-devel] [PATCH v4 0/4] Add i.MX25 support through the 3DS evaluation board

2013-05-07 Thread Jean-Christophe DUBOIS
It also adds qtest support for the I2C controller. Jean-Christophe DUBOIS (4): Add i.MX FEC Ethernet emulator Add i.MX I2C controller emulator Add i.MX25 3DS evaluation board support. Add qtest support for i.MX I2C device emulation. default-configs/arm-softmmu.mak | 3 + hw/arm

[Qemu-devel] [PATCH v4 1/4] Add i.MX FEC Ethernet emulator

2013-05-07 Thread Jean-Christophe DUBOIS
This is based on the mcf_fec.c FEC implementation for ColdFire. * a generic phy was added (borrowed from lan9118). * The buffer management is also modified as buffers are slightly different between coldfire and i.MX. Signed-off-by: Jean-Christophe DUBOIS --- Changes since V1

[Qemu-devel] [PATCH v4 4/4] Add qtest support for i.MX I2C device emulation.

2013-05-07 Thread Jean-Christophe DUBOIS
This is using a ds1338 RTC chip on the i2c bus. This RTC chip is not present on the real board. Signed-off-by: Jean-Christophe DUBOIS --- Changes since v1: * not present on v1 Changes since v2: * use a common header file for I2C regs definition Changes since v3: * rework GPL

[Qemu-devel] [PATCH v4 3/4] Add i.MX25 3DS evaluation board support.

2013-05-07 Thread Jean-Christophe DUBOIS
not present on the real board. Signed-off-by: Jean-Christophe DUBOIS --- Changes since v1: * Added a ds1338 I2C device for qtest purpose. Changes since v2: * none Changes since v3: * Rework GPL header * use I2C constructor helper. hw/arm/Makefile.objs | 1 + hw/arm

[Qemu-devel] [PATCH v4 2/4] Add i.MX I2C controller emulator

2013-05-07 Thread Jean-Christophe DUBOIS
The slave mode is not implemented. Signed-off-by: Jean-Christophe DUBOIS --- Changes since v1: * use QOM cast * run checkpatch on code * added restrictin on MemoryRegionOps * use DeviceClass::realise as init function Changes since v2: * use CamelCase for state type

[Qemu-devel] [PATCH 14/14] [ARM] i.MX25: Fix DTS tree for real hardware.

2013-05-07 Thread Jean-Christophe DUBOIS
i.MX25 PDK only has 64 MB DDR Signed-off-by: Jean-Christophe DUBOIS --- arch/arm/board/imx25/dts/3dstack/3dstack.dtsi| 3 ++- arch/arm/board/imx25/dts/3dstack/one_guest_versatile.dts | 5 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm/board/imx25/dts

Re: [Qemu-devel] [PATCH 14/14] [ARM] i.MX25: Fix DTS tree for real hardware.

2013-05-07 Thread Jean-Christophe DUBOIS
Sorry for the 14/14 in the subject. JC On 05/07/2013 11:29 AM, Jean-Christophe DUBOIS wrote: i.MX25 PDK only has 64 MB DDR Signed-off-by: Jean-Christophe DUBOIS --- arch/arm/board/imx25/dts/3dstack/3dstack.dtsi| 3 ++- arch/arm/board/imx25/dts/3dstack/one_guest_versatile.dts

Re: [Qemu-devel] [PATCH v4 2/4] Add i.MX I2C controller emulator

2013-05-07 Thread Jean-Christophe DUBOIS
On 05/07/2013 09:35 AM, Jean-Christophe DUBOIS wrote: The slave mode is not implemented. Signed-off-by: Jean-Christophe DUBOIS --- Changes since v1: * use QOM cast * run checkpatch on code * added restrictin on MemoryRegionOps * use DeviceClass::realise as init function

[Qemu-devel] [PATCH] [ARM] i.MX25: Fix DTS tree for real hardware.

2013-05-08 Thread Jean-Christophe DUBOIS
i.MX25 PDK only has 64 MB DDR Signed-off-by: Jean-Christophe DUBOIS --- arch/arm/board/imx25/dts/3dstack/3dstack.dtsi| 3 ++- arch/arm/board/imx25/dts/3dstack/one_guest_versatile.dts | 5 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm/board/imx25/dts

[Qemu-devel] [PATCH v5 4/4] Add qtest support for i.MX I2C device emulation.

2013-05-08 Thread Jean-Christophe DUBOIS
This is using a ds1338 RTC chip on the i2c bus. This RTC chip is not present on the real board. Signed-off-by: Jean-Christophe DUBOIS --- Changes since v1: * not present on v1 Changes since v2: * use a common header file for I2C regs definition Changes since v3: * rework GPL

[Qemu-devel] [PATCH v5 3/4] Add i.MX25 3DS evaluation board support.

2013-05-08 Thread Jean-Christophe DUBOIS
For now we support: * timers (GPT and EPIT) * serial ports * ethernet (through the newly added FEC emulator) * I2C (through the newly added I2C emulator) Signed-off-by: Jean-Christophe DUBOIS --- Changes since v1: * Added a ds1338 I2C device for qtest purpose. Changes since

[Qemu-devel] [PATCH v5 2/4] Add i.MX I2C controller emulator

2013-05-08 Thread Jean-Christophe DUBOIS
The slave mode is not implemented. Signed-off-by: Jean-Christophe DUBOIS --- Changes since v1: * use QOM cast * run checkpatch on code * added restrictin on MemoryRegionOps * use DeviceClass::realise as init function Changes since v2: * use CamelCase for state type

[Qemu-devel] [PATCH v5 1/4] Add i.MX FEC Ethernet emulator

2013-05-08 Thread Jean-Christophe DUBOIS
This is based on the mcf_fec.c FEC implementation for ColdFire. * a generic phy was added (borrowed from lan9118). * The buffer management is also modified as buffers are slightly different between coldfire and i.MX. Signed-off-by: Jean-Christophe DUBOIS --- Changes since V1

[Qemu-devel] [PATCH v5 0/4] Add i.MX25 support through the 3DS evaluation board

2013-05-08 Thread Jean-Christophe DUBOIS
It also adds qtest support for the I2C controller. Jean-Christophe DUBOIS (4): Add i.MX FEC Ethernet emulator Add i.MX I2C controller emulator Add i.MX25 3DS evaluation board support. Add qtest support for i.MX I2C device emulation. default-configs/arm-softmmu.mak | 3 + hw/arm

Re: [Qemu-devel] [PATCH v5 0/4] Add i.MX25 support through the 3DS evaluation board

2013-05-12 Thread Jean-Christophe DUBOIS
Peter (and all), In your opinion, is this patch set good enough in its actual state for inclusion? Are you expecting anything else from me (beside maybe adding more i.MX devices in the future)? Thanks JC On 05/08/2013 10:28 AM, Jean-Christophe DUBOIS wrote: This series of patches add

[Qemu-devel] [PATCH] i.MX: split GPT and EPIT timer implementation

2013-05-19 Thread Jean-Christophe DUBOIS
There is no common code between these 2 timer implementation. So it is better to split them. Signed-off-by: Jean-Christophe DUBOIS --- hw/timer/Makefile.objs | 3 +- hw/timer/imx_epit.c| 404 hw/timer/imx_gpt.c | 465 hw/timer

[Qemu-devel] [PATCH 0/2] i.MX: Add an i.MX25 specific CCM driver

2015-10-27 Thread Jean-Christophe Dubois
. 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

[Qemu-devel] [PATCH 2/2] i.MX: Add i.MX25 CCM driver

2015-10-27 Thread Jean-Christophe Dubois
The i.MX25 CCM device is different from the i.MX31 one. So for now the emulation was not correct even if linux was working OK on top of the i.MX25 emulation. We add an i.MX25 specific CCM driver and use it in the i.MX25 SOC emulation. Signed-off-by: Jean-Christophe Dubois --- hw/arm/fsl-imx25

[Qemu-devel] [PATCH] i.MX: add support for lower and upper interrupt in GPIO.

2015-10-27 Thread Jean-Christophe Dubois
The i.MX6 GPIO device supports 2 interrupts instead of one. * 1 for the lower 16 GPIOs. * 1 for the upper 16 GPIOs. i.MX31 and i.MX25 only support 1 interrupt for the 32 GPIOs. So we add a property to turn the behavior on when required. Signed-off-by: Jean-Christophe Dubois --- hw/gpio

[Qemu-devel] [PATCH 1/2] i.MX: rework CCM driver.

2015-10-27 Thread Jean-Christophe Dubois
timer reference to CCM. These objects now use the utility function we added in 1) instead of direct reference to CCM object. Signed-off-by: Jean-Christophe Dubois --- hw/arm/fsl-imx25.c | 6 +- hw/arm/fsl-imx31.c | 6 +- hw/misc/Makefile.objs | 1 + hw/misc/imx31_ccm.c

Re: [Qemu-devel] [PATCH] i.MX: add support for lower and upper interrupt in GPIO.

2015-10-28 Thread Jean-Christophe DUBOIS
Le 27/10/2015 23:41, Peter Crosthwaite a écrit : On Tue, Oct 27, 2015 at 3:32 PM, Jean-Christophe Dubois mailto:j...@tribudubois.net>> wrote: The i.MX6 GPIO device supports 2 interrupts instead of one. * 1 for the lower 16 GPIOs. * 1 for the upper 16 GPIOs. i.MX

[Qemu-devel] [PATCH v2 0/2] Add an i.MX25 specific CCM driver

2015-10-28 Thread Jean-Christophe Dubois
. 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

[Qemu-devel] [PATCH v2 1/2] i.MX: rework CCM driver.

2015-10-28 Thread Jean-Christophe Dubois
timer reference to CCM. These objects now use the utility function we added in 1) instead of direct reference to CCM object. Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * None hw/arm/fsl-imx25.c | 6 +- hw/arm/fsl-imx31.c | 6 +- hw/misc/Makefile.objs

[Qemu-devel] [PATCH v2 2/2] i.MX: Add i.MX25 CCM driver

2015-10-28 Thread Jean-Christophe Dubois
The i.MX25 CCM device is different from the i.MX31 one. So for now the emulation was not correct even if linux was working OK on top of the i.MX25 emulation. We add an i.MX25 specific CCM driver and use it in the i.MX25 SOC emulation. Signed-off-by: Jean-Christophe Dubois --- Changes since v1

Re: [Qemu-devel] [PATCH v2 0/2] Add an i.MX25 specific CCM driver

2015-10-30 Thread Jean-Christophe DUBOIS
Le 30/10/2015 21:50, Peter Crosthwaite a écrit : On Fri, Oct 30, 2015 at 1:24 PM, Peter Maydell wrote: On 28 October 2015 at 23:02, Jean-Christophe Dubois wrote: 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

[Qemu-devel] [PATCH 0/6] Add i.MX6 (Single/Dual/Quad) support

2016-01-26 Thread Jean-Christophe Dubois
-sabrelite.dtsi device tree file. Jean-Christophe Dubois (6): i.MX: Allow GPT timer to rollover. i.MX: simplify CCM to only handle clock required by timers. i.MX: Add i.MX6 CCM and ANALOG device. i.MX: Add i.MX6 System Reset Controller device. i.MX: Add i.MX6 SOC implementation. i.MX: Add sabrelite

[Qemu-devel] [PATCH 3/6] i.MX: Add i.MX6 CCM and ANALOG device.

2016-01-26 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- hw/misc/Makefile.objs | 1 + hw/misc/imx6_ccm.c | 764 + include/hw/misc/imx6_ccm.h | 195 3 files changed, 960 insertions(+) create mode 100644 hw/misc/imx6_ccm.c create mode

[Qemu-devel] [PATCH 2/6] i.MX: simplify CCM to only handle clock required by timers.

2016-01-26 Thread Jean-Christophe Dubois
Various i.MX timers (GPT, EPIT, PWM, ...) are only requesting 4 clocks from the system. * CLK_NONE, * CLK_IPG, * CLK_IPG_HIGH, * CLK_32k Other "clocks" are not required by the qemu framework so far. Signed-off-by: Jean-Christophe Dubois --- hw/misc/imx25_ccm.c

[Qemu-devel] [PATCH 1/6] i.MX: Allow GPT timer to rollover.

2016-01-26 Thread Jean-Christophe Dubois
GPT timer need to rolloever when it reaches 0x. It also need to reset to 0 when in "retart mode" and crossing the compare 1 register. Signed-off-by: Jean-Christophe Dubois --- hw/timer/imx_gpt.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletion

[Qemu-devel] [PATCH 4/6] i.MX: Add i.MX6 System Reset Controller device.

2016-01-26 Thread Jean-Christophe Dubois
This controller is also present in i.MX5X devices but they are not yet emulated by Qemu. Signed-off-by: Jean-Christophe Dubois --- hw/misc/Makefile.objs | 1 + hw/misc/imx6_src.c | 353 + include/hw/misc/imx6_src.h | 72 + 3

[Qemu-devel] [PATCH 6/6] i.MX: Add sabrelite i.MX6 emulation.

2016-01-26 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- hw/arm/Makefile.objs | 2 +- hw/arm/sabrelite.c | 93 2 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 hw/arm/sabrelite.c diff --git a/hw/arm/Makefile.objs b/hw/arm

[Qemu-devel] [PATCH 5/6] i.MX: Add i.MX6 SOC implementation.

2016-01-26 Thread Jean-Christophe Dubois
For now we only support the following devices: * up to 4 Cortex A9 cores * A9 MPCORE (SCU, GIC, TWD) * 5 i.MX UARTs * 2 EPIT timers * 1 GPT timer * 7 GPIO controllers * 6 SDHC controllers * 1 CCM device * 1 SRC device * various ROM/RAM areas. Signed-off-by: Jean-Christophe Dubois --- default

Re: [Qemu-devel] [PATCH 1/6] i.MX: Allow GPT timer to rollover.

2016-01-26 Thread Jean-Christophe DUBOIS
Le 26/01/2016 22:54, Eric Blake a écrit : On 01/26/2016 02:44 PM, Jean-Christophe Dubois wrote: [meta-reply] Make sure your git settings properly thread your messages. Your 1/6 came through as a top-level thread, rather than in-reply-to the 0/6 cover letter (likewise for the rest of the series

Re: [Qemu-devel] [PATCH 0/6] Add i.MX6 (Single/Dual/Quad) support

2016-01-28 Thread Jean-Christophe DUBOIS
Hello Peter, Le 28/01/2016 15:57, Peter Maydell a écrit : On 26 January 2016 at 21:44, Jean-Christophe Dubois wrote: This patch series adds support for the Freescale i.MX6 processor. For now we only support the following devices: * up to 4 Cortex A9 cores * A9 MPCORE (SCU, GIC, TWD) * 5

Re: [Qemu-devel] [PATCH 2/6] i.MX: simplify CCM to only handle clock required by timers.

2016-02-02 Thread Jean-Christophe DUBOIS
Le 02/02/2016 17:22, Peter Maydell a écrit : On 26 January 2016 at 21:44, Jean-Christophe Dubois wrote: Various i.MX timers (GPT, EPIT, PWM, ...) are only requesting 4 clocks from the system. * CLK_NONE, * CLK_IPG, * CLK_IPG_HIGH, * CLK_32k Other "clocks" are not required b

[Qemu-devel] [PATCH v2] i.MX: add support for lower and upper interrupt in GPIO.

2015-11-14 Thread Jean-Christophe Dubois
The i.MX6 GPIO device supports 2 interrupts instead of one. * 1 for the lower 16 GPIOs. * 1 for the upper 16 GPIOs. i.MX31 and i.MX25 only support 1 interrupt for the 32 GPIOs. So we add a property to turn the behavior on when required. Signed-off-by: Jean-Christophe Dubois Reviewed-by: Peter

[Qemu-devel] [PATCH v3 0/3] Add an i.MX25 specific CCM driver

2015-11-19 Thread Jean-Christophe Dubois
. So we split the i.MX31 into a generic base class and a specific i.MX31 class. We then add an i.MX25 specific CCM Device and have the i.MX25 SOC use it. Jean-Christophe Dubois (3): i.MX: rename i.MX CCM get_clock() function and CLK ID enum names i.MX: Split the CCM class into an abstact base

[Qemu-devel] [PATCH v3 1/3] i.MX: rename i.MX CCM get_clock() function and CLK ID enum names

2015-11-19 Thread Jean-Christophe Dubois
This is to prepare for CCM code refactoring. This is just a bit of function and enum values renaming. We also remove some useless intermediate variables. Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * Not present Changes since v2: * Not present hw/misc/imx_ccm.c

[Qemu-devel] [PATCH v3 2/3] i.MX: Split the CCM class into an abstact base class and a concrete class.

2015-11-19 Thread Jean-Christophe Dubois
patch. We also rework initialization to stop using deprecated sysbus device init Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * None Changes since v2: * We moved to an inheritance QOM scheme hw/arm/fsl-imx25.c | 2 +- hw/arm/fsl-imx31.c | 2 +- hw/misc

[Qemu-devel] [PATCH v3 3/3] i.MX: Add an i.MX25 specific CCM class/instance.

2015-11-19 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * rework loging to match other i.MX drivers Changes since v2: * We moved to an inheritance QOM scheme hw/arm/fsl-imx25.c | 2 +- hw/misc/Makefile.objs | 1 + hw/misc/imx25_ccm.c | 243

Re: [Qemu-devel] [PATCH v3 2/3] i.MX: Split the CCM class into an abstact base class and a concrete class.

2015-11-24 Thread Jean-Christophe DUBOIS
Le 24/11/2015 23:04, Peter Crosthwaite a écrit : On Thu, Nov 19, 2015 at 12:40 PM, Jean-Christophe Dubois wrote: 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

Re: [Qemu-devel] [PATCH 4/6] i.MX: Add i.MX6 System Reset Controller device.

2016-02-06 Thread Jean-Christophe DUBOIS
Le 02/02/2016 17:46, Peter Maydell a écrit : On 26 January 2016 at 21:45, Jean-Christophe Dubois wrote: This controller is also present in i.MX5X devices but they are not yet emulated by Qemu. QEMU is all-caps. Signed-off-by: Jean-Christophe Dubois --- hw/misc/Makefile.objs | 1

Re: [Qemu-devel] [PATCH 0/6] Add i.MX6 (Single/Dual/Quad) support

2016-02-07 Thread Jean-Christophe DUBOIS
Le 02/02/2016 18:01, Peter Maydell a écrit : On 28 January 2016 at 19:22, Jean-Christophe DUBOIS wrote: Sabrelite uses uart2 for console but on qemu, this is uart1 that is wired to the default stdout. Consequently, I changed stdout-path in "chosen" to uart1. This I find a bit awk

Re: [Qemu-devel] [PATCH 3/6] i.MX: Add i.MX6 CCM and ANALOG device.

2016-02-07 Thread Jean-Christophe DUBOIS
Le 02/02/2016 17:41, Peter Maydell a écrit : On 26 January 2016 at 21:45, Jean-Christophe Dubois wrote: Signed-off-by: Jean-Christophe Dubois +static uint32_t imx6_analog_get_pll2_clk(IMX6CCMState *dev) +{ +uint32_t freq = 2400; + +if (EXTRACT(dev->analog[CCM_ANALOG_PLL_

[Qemu-devel] [PATCH v2 0/9] Add i.MX6 (Single/Dual/Quad) support

2016-02-08 Thread Jean-Christophe Dubois
. Note3: You need to disable the GPIO section related to physical push buttons in the Linux DTS tree in order to avoid excecive interrupt triggering on GPIO devices for non existant buttons. Jean-Christophe Dubois (9): i.MX: Allow GPT timer to rollover. i.MX: Rename CCM NOCLK to CLK_NONE for

[Qemu-devel] [PATCH v2 1/9] i.MX: Allow GPT timer to rollover.

2016-02-08 Thread Jean-Christophe Dubois
GPT timer need to rollover when it reaches 0x. It also need to reset to 0 when in "restart mode" and crossing the compare 1 register. Signed-off-by: Jean-Christophe Dubois --- Changes since V1: * None hw/timer/imx_gpt.c | 27 +++ 1 file changed, 15

[Qemu-devel] [PATCH v2 4/9] i.MX: Add the CLK_IPG_HIGH clock

2016-02-08 Thread Jean-Christophe Dubois
here these 2 clocks are different. Signed-off-by: Jean-Christophe Dubois --- Changes since V1: * Not present on V1 hw/misc/imx25_ccm.c | 1 + hw/misc/imx31_ccm.c | 1 + hw/timer/imx_epit.c | 8 hw/timer/imx_gpt.c| 16 include/hw/misc/imx_

[Qemu-devel] [PATCH v2 3/9] i.MX: Remove CCM useless clock computation handling.

2016-02-08 Thread Jean-Christophe Dubois
Most clocks supported by the CCM are useless to the qemu framework. Only clocks related to timers (EPIT, GPT, PWM, WATCHDOG, ...) are usefull to QEMU code. Therefore this patch removes clock computation handling for all clocks but: * CLK_NONE, * CLK_IPG, * CLK_32k Signed-off-by: Jean-Christophe

[Qemu-devel] [PATCH v2 2/9] i.MX: Rename CCM NOCLK to CLK_NONE for naming consistency.

2016-02-08 Thread Jean-Christophe Dubois
This way all CCM clock defines/enums are named CLK_XXX Signed-off-by: Jean-Christophe Dubois --- Changes since V1: * Not present on V1 hw/misc/imx25_ccm.c | 2 +- hw/misc/imx31_ccm.c | 2 +- hw/timer/imx_epit.c | 2 +- hw/timer/imx_gpt.c| 10 +- include

[Qemu-devel] [PATCH v2 6/9] i.MX: Add i.MX6 System Reset Controller device.

2016-02-08 Thread Jean-Christophe Dubois
This controller is also present in i.MX5X devices but they are not yet emulated by QEMU. Signed-off-by: Jean-Christophe Dubois --- Changes since V1: * Change "reset" sematic to mean full power cyvle. hw/misc/Makefile.objs | 1 + hw/misc/imx6_src.c

[Qemu-devel] [PATCH v2 7/9] i.MX: Add i.MX6 SOC implementation.

2016-02-08 Thread Jean-Christophe Dubois
-imx31.o kzm.o +obj-$(CONFIG_FSL_IMX6) += fsl-imx6.o diff --git a/hw/arm/fsl-imx6.c b/hw/arm/fsl-imx6.c new file mode 100644 index 000..0faae27 --- /dev/null +++ b/hw/arm/fsl-imx6.c @@ -0,0 +1,407 @@ +/* + * Copyright (c) 2015 Jean-Christophe Dubois + * + * i.MX6 SOC emulation. + * + * Based on

[Qemu-devel] [PATCH v2 5/9] i.MX: Add i.MX6 CCM and ANALOG device.

2016-02-08 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since V1: * move clk computation to uint64_t to avoid overflow * added explanation on _SET, _CLR and _TOG registers * move CCM and ANALOG handling in sub memory regions. hw/misc/Makefile.objs | 1 + hw/misc/imx6_ccm.c | 773

[Qemu-devel] [PATCH v2 8/9] i.MX: Add sabrelite i.MX6 emulation.

2016-02-08 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * output a message and exit if RAM size is unsupported. hw/arm/Makefile.objs | 2 +- hw/arm/sabrelite.c | 93 2 files changed, 94 insertions(+), 1 deletion(-) create mode

[Qemu-devel] [PATCH v2 9/9] i.MX: Add missing descriptions in devices.

2016-02-08 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since V1: * Not present on V1 hw/arm/fsl-imx25.c | 1 + hw/arm/fsl-imx31.c | 1 + hw/i2c/imx_i2c.c | 1 + hw/net/imx_fec.c | 1 + 4 files changed, 4 insertions(+) diff --git a/hw/arm/fsl-imx25.c b/hw/arm/fsl-imx25.c index fb743bf..1fbc317

[Qemu-devel] [PATCH 1/3] FIFO: Add a FIFO32 implementation

2016-02-13 Thread Jean-Christophe Dubois
This one is build on top of the existing FIFO8 Signed-off-by: Jean-Christophe Dubois --- include/qemu/fifo32.h | 206 ++ 1 file changed, 206 insertions(+) create mode 100644 include/qemu/fifo32.h diff --git a/include/qemu/fifo32.h b/include/qemu

  1   2   3   4   5   6   7   >