[Qemu-devel] [PATCH v5 06/14] i.MX: Add code to emulate GPCv2 IP block

2018-02-06 Thread Andrey Smirnov
) += slavio_intctl.o diff --git a/hw/intc/imx_gpcv2.c b/hw/intc/imx_gpcv2.c new file mode 100644 index 00..4eb9ce2668 --- /dev/null +++ b/hw/intc/imx_gpcv2.c @@ -0,0 +1,125 @@ +/* + * Copyright (c) 2018, Impinj, Inc. + * + * i.MX7 GPCv2 block emulation code + * + * Author: Andrey Smirnov

[Qemu-devel] [PATCH v5 07/14] i.MX: Add i.MX7 GPT variant

2018-02-06 Thread Andrey Smirnov
: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/timer/imx_gpt.c | 25 + include/hw/timer/imx_gpt.h | 1 + 2 files changed, 26 insertions(+) diff --git a/hw/timer/imx_gpt.c b/hw/timer/imx_gpt.c index 4b9b54bf2e..65e4ee6bcf 100644 --- a/hw/timer/imx_gpt.c +++ b/hw

[Qemu-devel] [PATCH v5 13/14] hw/arm: Move virt's PSCI DT fixup code to arm/boot.c

2018-02-06 Thread Andrey Smirnov
Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: Marcel Apfelbaum Cc: Michael S. Tsirkin Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/arm/boot.c | 65 +

[Qemu-devel] [PATCH v5 12/14] i.MX: Add i.MX7 SOC implementation.

2018-02-06 Thread Andrey Smirnov
: Andrey Smirnov --- default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs| 2 + hw/arm/fsl-imx7.c | 580 include/hw/arm/fsl-imx7.h | 221 +++ 4 files changed, 804 insertions(+) create mode 100644 hw/arm

[Qemu-devel] [PATCH v5 08/14] i.MX: Add implementation of i.MX7 GPR IP block

2018-02-06 Thread Andrey Smirnov
: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/misc/Makefile.objs | 1 + hw/misc/imx7_gpr.c | 124 + hw/misc/trace-events | 4 ++ include/hw/misc/imx7_gpr.h | 28 ++ 4 files changed, 157 insertions(+) create mode

[Qemu-devel] [PATCH v5 09/14] pci: Use pci_config_size in pci_data_* accessors

2018-02-06 Thread Andrey Smirnov
@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/pci/pci_host.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/hw/pci/pci_host.c b/hw/pci/pci_host.c index 5eaa935cb5..ea52ea07cd 100644 --- a/hw/pci/pci_host.c +++ b/hw/pci

[Qemu-devel] [PATCH v5 10/14] pci: Add support for Designware IP block

2018-02-06 Thread Andrey Smirnov
nu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- default-configs/arm-softmmu.mak | 2 + hw/pci-host/Makefile.objs| 2 + hw/pci-host/designware.c | 759 +++ include/hw/pci-host/designware.h | 97 +

Re: [Qemu-devel] [PATCH v5 00/14] Initial i.MX7 support

2018-02-08 Thread Andrey Smirnov
On Thu, Feb 8, 2018 at 5:49 AM, Peter Maydell wrote: > On 7 February 2018 at 04:24, Andrey Smirnov wrote: >> Hi everyone, >> >> This v5 of the patch series containing the work that I've done in >> order to enable support for i.MX7 emulation in QEMU. > &g

Re: [Qemu-devel] [PATCH v5 12/14] i.MX: Add i.MX7 SOC implementation.

2018-02-08 Thread Andrey Smirnov
On Thu, Feb 8, 2018 at 5:26 AM, Peter Maydell wrote: > On 7 February 2018 at 04:24, Andrey Smirnov wrote: >> The following interfaces are partially or fully emulated: > > Hi Andrey. I was just going through this series to apply to > target-arm.next, and I noticed that fsl-

Re: [Qemu-devel] [PATCH v5 09/14] pci: Use pci_config_size in pci_data_* accessors

2018-02-08 Thread Andrey Smirnov
On Thu, Feb 8, 2018 at 9:34 AM, Michael S. Tsirkin wrote: > On Thu, Feb 08, 2018 at 05:20:53PM +, Peter Maydell wrote: >> On 7 February 2018 at 04:24, Andrey Smirnov wrote: >> > Use pci_config_size (as opposed to PCI_CONFIG_SPACE_SIZE) in >> > pci_data_read() an

[Qemu-devel] [PATCH v4 01/14] sdhci: Add i.MX specific subtype of SDHCI

2018-01-15 Thread Andrey Smirnov
-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/sd/sdhci-internal.h | 19 + hw/sd/sdhci.c | 228 - include/hw/sd/sdhci.h | 14 +++ 3

[Qemu-devel] [PATCH v4 00/14] Initial i.MX7 support

2018-01-15 Thread Andrey Smirnov
ssues that I thought I was having, so I just dropped that code. - A number of smaller feedback items from Peter and other has been incorporated into the patches. Thanks, Andrey Smirnov [v3] https://lists.gnu.org/archive/html/qemu-devel/2017-11/msg04236.html [v2] https://lists.gnu

[Qemu-devel] [PATCH v4 02/14] hw: i.MX: Convert i.MX6 to use TYPE_IMX_USDHC

2018-01-15 Thread Andrey Smirnov
Convert i.MX6 to use TYPE_IMX_USDHC since that's what real HW comes with. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/arm/fsl-imx6.c | 2 +- 1 file chang

[Qemu-devel] [PATCH v4 08/14] i.MX: Add implementation of i.MX7 GPR IP block

2018-01-15 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/misc/Makefile.objs | 1 + hw/misc/imx7_gpr.c

[Qemu-devel] [PATCH v4 03/14] i.MX: Add code to emulate i.MX7 CCM, PMU and ANALOG IP blocks

2018-01-15 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/misc/Makefile.objs | 1 + hw/misc/imx7_ccm.c

[Qemu-devel] [PATCH v4 04/14] i.MX: Add code to emulate i.MX2 watchdog IP block

2018-01-15 Thread Andrey Smirnov
: Andrey Smirnov --- hw/misc/Makefile.objs | 1 + hw/misc/imx2_wdt.c | 89 ++ include/hw/misc/imx2_wdt.h | 33 + 3 files changed, 123 insertions(+) create mode 100644 hw/misc/imx2_wdt.c create mode 100644 include/hw/misc

[Qemu-devel] [PATCH v4 06/14] i.MX: Add code to emulate GPCv2 IP block

2018-01-15 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/intc/Makefile.objs | 2

[Qemu-devel] [PATCH v4 09/14] pci: Add support for Designware IP block

2018-01-15 Thread Andrey Smirnov
Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- default-configs/arm-softmmu.mak | 2 + hw/pci-host/Makefile.objs| 2 + hw/pci-host/designware.c | 618 +++

[Qemu-devel] [PATCH v4 11/14] ARM: Add basic code to emulate A7MPCore DAP block

2018-01-15 Thread Andrey Smirnov
Add minimal code to emulate A7MPCore DAP block needed to boot Linux guest. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/arm/Makefile.objs | 2 +- hw/arm

[Qemu-devel] [PATCH v4 05/14] i.MX: Add code to emulate i.MX7 SNVS IP-block

2018-01-15 Thread Andrey Smirnov
-by: Andrey Smirnov --- hw/misc/Makefile.objs | 1 + hw/misc/imx7_snvs.c | 83 + include/hw/misc/imx7_snvs.h | 35 +++ 3 files changed, 119 insertions(+) create mode 100644 hw/misc/imx7_snvs.c create mode 100644 include/hw

[Qemu-devel] [PATCH v4 10/14] usb: Add basic code to emulate Chipidea USB IP

2018-01-15 Thread Andrey Smirnov
Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/usb/Makefile.objs | 1 + hw/usb/chipidea.c | 176 ++ include/hw/usb/chipidea.h | 16 + 3 files changed, 193 insertions(+) create mode 100644 hw/usb/chipidea.c create mode

[Qemu-devel] [PATCH v4 13/14] hw/arm: Move virt's PSCI DT fixup code to arm/boot.c

2018-01-15 Thread Andrey Smirnov
Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/arm/boot.c | 65 +++ hw/arm/virt.c | 61 --

[Qemu-devel] [PATCH v4 12/14] i.MX: Add i.MX7 SOC implementation.

2018-01-15 Thread Andrey Smirnov
controller Tested to boot and work with upstream Linux (4.13+) guest. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- default-configs/arm-softmmu.mak | 1 + hw/arm

Re: [Qemu-devel] [PATCH] hw/misc: Add code to emulate Xilinx Slave Serial port

2018-01-15 Thread Andrey Smirnov
On Tue, Dec 19, 2017 at 4:48 PM, Alistair Francis wrote: > On Thu, Dec 14, 2017 at 7:19 AM, Andrey Smirnov > wrote: >> Add code to emulate Xilinx Slave Serial FPGA configuration port. >> >> Cc: "Edgar E. Iglesias" >> Cc: Alistair Francis >> Cc: qe

Re: [Qemu-devel] [PATCH v4 11/14] ARM: Add basic code to emulate A7MPCore DAP block

2018-01-16 Thread Andrey Smirnov
On Mon, Jan 15, 2018 at 8:32 PM, Philippe Mathieu-Daudé wrote: > Hi Andrey, > > On 01/15/2018 10:37 PM, Andrey Smirnov wrote: >> Add minimal code to emulate A7MPCore DAP block needed to boot Linux >> guest. > > I was not aware the DAP is accessed by upstream Linux

Re: [Qemu-devel] [PATCH v4 08/14] i.MX: Add implementation of i.MX7 GPR IP block

2018-01-16 Thread Andrey Smirnov
On Mon, Jan 15, 2018 at 8:45 PM, Philippe Mathieu-Daudé wrote: > On 01/15/2018 10:37 PM, Andrey Smirnov wrote: >> Add minimal code needed to allow upstream Linux guest to boot. >> >> Cc: Peter Maydell >> Cc: Jason Wang >> Cc: Philippe Mathieu-Daudé >>

Re: [Qemu-devel] [PATCH v4 00/14] Initial i.MX7 support

2018-01-16 Thread Andrey Smirnov
On Tue, Jan 16, 2018 at 7:08 AM, Peter Maydell wrote: > On 16 January 2018 at 01:36, Andrey Smirnov wrote: >> Hi everyone, >> >> This v4 of the patch series containing the work that I've done in >> order to enable support for i.MX7 emulation in QEMU. >> &

Re: [Qemu-devel] [PATCH v4 09/14] pci: Add support for Designware IP block

2018-01-17 Thread Andrey Smirnov
On Wed, Jan 17, 2018 at 7:23 AM, Marcel Apfelbaum wrote: > > Hi Peter, > > > On 16/01/2018 16:34, Peter Maydell wrote: >> >> On 16 January 2018 at 01:37, Andrey Smirnov >> wrote: >>> >>> Add code needed to get a functional PCI subsytem when

Re: [Qemu-devel] [PATCH v5 10/14] pci: Add support for Designware IP block

2018-02-08 Thread Andrey Smirnov
On Thu, Feb 8, 2018 at 9:45 AM, Michael S. Tsirkin wrote: > On Tue, Feb 06, 2018 at 08:24:34PM -0800, Andrey Smirnov wrote: >> Add code needed to get a functional PCI subsytem when using in >> conjunction with upstream Linux guest (4.13+). Tested to work against >> &quo

Re: [Qemu-devel] [PATCH v5 10/14] pci: Add support for Designware IP block

2018-02-08 Thread Andrey Smirnov
On Thu, Feb 8, 2018 at 12:11 PM, Michael S. Tsirkin wrote: > On Thu, Feb 08, 2018 at 12:03:04PM -0800, Andrey Smirnov wrote: >> >> +#define PCIE_PORT_LINK_CONTROL 0x710 >> >> + >> >> +#define PCIE_PHY_DEBUG_R1 0x72C >> >

Re: [Qemu-devel] [PATCH v5 10/14] pci: Add support for Designware IP block

2018-02-08 Thread Andrey Smirnov
On Thu, Feb 8, 2018 at 12:33 PM, Michael S. Tsirkin wrote: > On Thu, Feb 08, 2018 at 12:22:53PM -0800, Andrey Smirnov wrote: >> On Thu, Feb 8, 2018 at 12:11 PM, Michael S. Tsirkin wrote: >> > On Thu, Feb 08, 2018 at 12:03:04PM -0800, Andrey Smirnov wrote: >> >> >

[Qemu-devel] [PATCH v6 0/3] Initial i.MX7 support

2018-02-13 Thread Andrey Smirnov
PU. I couldn't reproduce the issues that I thought I was having, so I just dropped that code. - A number of smaller feedback items from Peter and other has been incorporated into the patches. Thanks, Andrey Smirnov [v5] https://lists.gnu.org/archive/html/qemu-devel/2018-02/msg

[Qemu-devel] [PATCH v6 2/3] i.MX: Add i.MX7 SOC implementation.

2018-02-13 Thread Andrey Smirnov
: Andrey Smirnov --- default-configs/arm-softmmu.mak | 1 + include/hw/arm/fsl-imx7.h | 222 +++ hw/arm/fsl-imx7.c | 580 hw/arm/Makefile.objs| 2 + 4 files changed, 805 insertions(+) create mode 100644 include

[Qemu-devel] [PATCH v6 1/3] pci: Add support for Designware IP block

2018-02-13 Thread Andrey Smirnov
nu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- default-configs/arm-softmmu.mak | 2 + include/hw/pci-host/designware.h | 102 ++ include/hw/pci/pci_ids.h | 2 + hw/pci-host/designware.c | 755

Re: [Qemu-devel] [PATCH v6 1/3] pci: Add support for Designware IP block

2018-02-13 Thread Andrey Smirnov
On Tue, Feb 13, 2018 at 10:13 AM, Michael S. Tsirkin wrote: > On Tue, Feb 13, 2018 at 09:07:10AM -0800, Andrey Smirnov wrote: >> +static void designware_pcie_root_class_init(ObjectClass *klass, void *data) >> +{ >> +PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); &g

Re: [Qemu-devel] [PATCH v6 1/3] pci: Add support for Designware IP block

2018-02-13 Thread Andrey Smirnov
On Tue, Feb 13, 2018 at 2:15 PM, Michael S. Tsirkin wrote: > On Tue, Feb 13, 2018 at 12:24:40PM -0800, Andrey Smirnov wrote: >> On Tue, Feb 13, 2018 at 10:13 AM, Michael S. Tsirkin wrote: >> > On Tue, Feb 13, 2018 at 09:07:10AM -0800, Andrey Smirnov wrote:

[Qemu-devel] [PATCH v3 03/30] imx_fec: Change queue flushing heuristics

2017-11-06 Thread Andrey Smirnov
bled. To prevent the problem, change the code to always flush packet queue when ENET_RDAR transitions 0 -> ENET_RDAR_RDAR. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --

[Qemu-devel] [PATCH v3 01/30] imx_fec: Do not link to netdev

2017-11-06 Thread Andrey Smirnov
qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/arm/fsl-imx6.c | 1 + hw/net/imx_fec.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/arm/fsl-imx6.c b/hw/arm/fsl-imx6.c index 26fd2

[Qemu-devel] [PATCH v3 00/30] Initial i.MX7 support

2017-11-06 Thread Andrey Smirnov
my goal was to be able to boot into vanilla Linux kerenel and have working SMP without needing to use a PSCI implementing bootloader. If that is something that new board code shouldn't do, please let me know. Thanks, Andrey Smirnov [v2] https://lists.gnu.org/archive/html/qemu-devel/2017-1

[Qemu-devel] [PATCH v3 05/30] imx_fec: Use MIN instead of explicit ternary operator

2017-11-06 Thread Andrey Smirnov
Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw

[Qemu-devel] [PATCH v3 04/30] imx_fec: Use ENET_FTRL to determine truncation length

2017-11-06 Thread Andrey Smirnov
: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 4 ++-- include/hw/net/imx_fec.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH v3 11/30] sdhci: Add i.MX specific subtype of SDHCI

2017-11-06 Thread Andrey Smirnov
-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/sd/sdhci-internal.h | 15 ++ hw/sd/sdhci.c | 127 - include/hw/sd/sdhci.h | 8 3 files changed, 148 insertions

[Qemu-devel] [PATCH v3 10/30] imx_fec: Reserve full 4K page for the register file

2017-11-06 Thread Andrey Smirnov
Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index 48d012cad6..e236bc933c 100644 --- a/hw/net/imx_fec.c +++ b/hw/net/imx_fec.c @@ -1252,7

[Qemu-devel] [PATCH v3 08/30] imx_fec: Use correct length for packet size

2017-11-06 Thread Andrey Smirnov
@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index 38d8c27dcd..eefb3b2c62 100644 --- a/hw/net/imx_fec.c ++

[Qemu-devel] [PATCH v3 13/30] i.MX: Add code to emulate i.MX7 CCM, PMU and ANALOG IP blocks

2017-11-06 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/misc/Makefile.objs | 1 + hw/misc/imx7_ccm.c

[Qemu-devel] [PATCH v3 02/30] imx_fec: Refactor imx_eth_enable_rx()

2017-11-06 Thread Andrey Smirnov
ll Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index 88b4b049d7..8b2e4b8ffe 100644 --- a/hw/net/imx_fec.c +++ b/hw/net/imx_fec.c @@ -536,19 +536,19 @@ static void imx_eth_do_tx(I

[Qemu-devel] [PATCH v3 14/30] i.MX: Add code to emulate i.MX2 watchdog IP block

2017-11-06 Thread Andrey Smirnov
Add enough code to emulate i.MX2 watchdog IP block so it would be possible to reboot the machine running Linux Guest. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/misc

[Qemu-devel] [PATCH v3 07/30] imx_fec: Add support for multiple Tx DMA rings

2017-11-06 Thread Andrey Smirnov
More recent version of the IP block support more than one Tx DMA ring, so add the code implementing that feature. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/net

[Qemu-devel] [PATCH v3 06/30] imx_fec: Emulate SHIFT16 in ENETx_RACC

2017-11-06 Thread Andrey Smirnov
Needed to support latest Linux kernel driver which relies on that functionality. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c

[Qemu-devel] [PATCH v3 15/30] i.MX: Add code to emulate i.MX7 SNVS IP-block

2017-11-06 Thread Andrey Smirnov
Add code to emulate SNVS IP-block. Currently only the bits needed to be able to emulate machine shutdown are implemented. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw

[Qemu-devel] [PATCH v3 09/30] imx_fec: Fix a typo in imx_enet_receive()

2017-11-06 Thread Andrey Smirnov
Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index

[Qemu-devel] [PATCH v3 16/30] i.MX: Add code to emulate GPCv2 IP block

2017-11-06 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/intc/Makefile.objs | 2 +- hw/intc/imx_gpcv2.c

[Qemu-devel] [PATCH v3 24/30] i.MX: Add code to emulate i.MX7 ADC IP block

2017-11-06 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/misc/Makefile.objs | 1 + hw/misc/imx7_adc.c

[Qemu-devel] [PATCH v3 12/30] sdhci: Implement write method of ACMD12ERRSTS register

2017-11-06 Thread Andrey Smirnov
Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/sd/sdhci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index f561cc44e3

[Qemu-devel] [PATCH v3 19/30] i.MX: Add code to emulate SDMA IP block

2017-11-06 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/dma/Makefile.objs | 1 + hw/dma/imx_sdma.c

[Qemu-devel] [PATCH v3 23/30] i.MX: Add code to emulate i.MX7 USBMISC IP block

2017-11-06 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/usb/Makefile.objs | 1 + hw/usb/imx-usbmisc.c

[Qemu-devel] [PATCH v3 20/30] i.MX: Add code to emulate FlexCAN IP block

2017-11-06 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/misc/Makefile.objs | 1 + hw/misc/imx_flexcan.c

[Qemu-devel] [PATCH v3 26/30] usb: Add basic code to emulate Chipidea USB IP

2017-11-06 Thread Andrey Smirnov
Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/usb/Makefile.objs | 1 + hw/usb/chipidea.c | 176 ++ include/hw/usb/chipidea.h | 16 + 3 files changed, 193 insertions(+) create mode 100644 hw/usb/chipidea.c create mode

[Qemu-devel] [PATCH v3 25/30] i.MX: Add code to emulate i.MX7 SRC IP-block

2017-11-06 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/misc/Makefile.objs | 1 + hw/misc/imx7_src.c

[Qemu-devel] [PATCH v3 21/30] i.MX: Add implementation of i.MX7 GPR IP block

2017-11-06 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/misc/Makefile.objs | 1 + hw/misc/imx7_gpr.c

[Qemu-devel] [PATCH v3 28/30] i.MX: Add code to emulate i.MX LCD block

2017-11-06 Thread Andrey Smirnov
Add basic i.MX LCD block emulation code needed to boot Linux guest. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/display/Makefile.objs | 2 ++ hw/display

[Qemu-devel] [PATCH v3 17/30] i.MX: Add code to emulate i.MX7 IOMUXC IP block

2017-11-06 Thread Andrey Smirnov
Add minimal code needed to allow upstream Linux guest to boot. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/misc/Makefile.objs | 1 + hw/misc/imx7_iomuxc.c

[Qemu-devel] [PATCH v3 22/30] pci: Add support for Designware IP block

2017-11-06 Thread Andrey Smirnov
Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- default-configs/arm-softmmu.mak | 2 + hw/pci-host/Makefile.objs| 2 + hw/pci-host/designware.c | 614 +++

[Qemu-devel] [PATCH v3 27/30] ARM: Add basic code to emulate A7MPCore DAP block

2017-11-06 Thread Andrey Smirnov
Add minimal code to emulate A7MPCore DAP block needed to boot Linux guest. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/arm/Makefile.objs | 2 +- hw/arm

[Qemu-devel] [PATCH v3 29/30] i.MX: Add i.MX7 SOC implementation.

2017-11-06 Thread Andrey Smirnov
controller Tested to boot and work with upstream Linux (4.13+) guest. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- default-configs/arm-softmmu.mak | 1 + hw/arm

[Qemu-devel] [PATCH 01/13] imx_fec: Do not link to netdev

2017-12-11 Thread Andrey Smirnov
qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/arm/fsl-imx6.c | 1 + hw/net/imx_fec.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/arm/fsl-imx6.c b/hw/arm/fsl-imx6.c index 26fd2

[Qemu-devel] [PATCH 00/13] i.MX FEC and SD changes

2017-12-11 Thread Andrey Smirnov
version_id) - FSL_IMX25_FEC_SIZE is used as a size of FEC's register file - Removed leftover code from "imx_fec: Change queue flushing heuristics" [1] https://lists.gnu.org/archive/html/qemu-arm/2017-11/msg00045.html Andrey Smirnov (13): imx_fec: D

[Qemu-devel] [PATCH 02/13] imx_fec: Refactor imx_eth_enable_rx()

2017-12-11 Thread Andrey Smirnov
ll Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index 88b4b049d7..8b2e4b8ffe 100644 --- a/hw/net/imx_fec.c +++ b/hw/net/imx_fec.c @@ -536,19 +536,19 @@ static void imx_eth_do_tx(I

[Qemu-devel] [PATCH 03/13] imx_fec: Change queue flushing heuristics

2017-12-11 Thread Andrey Smirnov
bled. To prevent the problem, change the code to always flush packet queue when ENET_RDAR transitions 0 -> ENET_RDAR_RDAR. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off

[Qemu-devel] [PATCH 05/13] imx_fec: Use ENET_FTRL to determine truncation length

2017-12-11 Thread Andrey Smirnov
: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 4 ++-- include/hw/net/imx_fec.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH 07/13] imx_fec: Emulate SHIFT16 in ENETx_RACC

2017-12-11 Thread Andrey Smirnov
Needed to support latest Linux kernel driver which relies on that functionality. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c

[Qemu-devel] [PATCH 06/13] imx_fec: Use MIN instead of explicit ternary operator

2017-12-11 Thread Andrey Smirnov
Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw

[Qemu-devel] [PATCH 13/13] sdhci: Implement write method of ACMD12ERRSTS register

2017-12-11 Thread Andrey Smirnov
Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/sd/sdhci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c

[Qemu-devel] [PATCH 10/13] imx_fec: Fix a typo in imx_enet_receive()

2017-12-11 Thread Andrey Smirnov
Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index

[Qemu-devel] [PATCH 09/13] imx_fec: Use correct length for packet size

2017-12-11 Thread Andrey Smirnov
@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index 77d27f763e..6cb9e2e20e 100644 --- a/hw/net/imx_fec.c ++

[Qemu-devel] [PATCH 12/13] sdhci: Add i.MX specific subtype of SDHCI

2017-12-11 Thread Andrey Smirnov
-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/sd/sdhci-internal.h | 19 + hw/sd/sdhci.c | 228 - include/hw/sd/sdhci.h | 8 ++ 3 files changed, 253 insertions

[Qemu-devel] [PATCH 11/13] imx_fec: Reserve full FSL_IMX25_FEC_SIZE page for the register file

2017-12-11 Thread Andrey Smirnov
: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 2 +- include/hw/arm/fsl-imx25.h | 1 - include/hw/net/imx_fec.h | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/net/imx_fec.c b/hw/net

[Qemu-devel] [PATCH 08/13] imx_fec: Add support for multiple Tx DMA rings

2017-12-11 Thread Andrey Smirnov
: Andrey Smirnov --- hw/net/imx_fec.c | 133 --- include/hw/net/imx_fec.h | 18 ++- 2 files changed, 130 insertions(+), 21 deletions(-) diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index 825c879a28..77d27f763e 100644 --- a/hw/net/imx_fec.c

Re: [Qemu-devel] [PATCH 12/13] sdhci: Add i.MX specific subtype of SDHCI

2017-12-14 Thread Andrey Smirnov
On Tue, Dec 12, 2017 at 9:52 AM, Peter Maydell wrote: > On 11 December 2017 at 21:30, Andrey Smirnov wrote: >> IP block found on several generations of i.MX family does not use >> vanilla SDHCI implementation and it comes with a number of quirks. >> >> Introduce i.MX S

Re: [Qemu-devel] [PATCH 00/13] i.MX FEC and SD changes

2017-12-14 Thread Andrey Smirnov
On Tue, Dec 12, 2017 at 9:40 AM, Peter Maydell wrote: > On 11 December 2017 at 21:29, Andrey Smirnov wrote: >> Hi everyone, >> >> This patchset is a spin-off from original i.MX7 support submission >> found here [1], containing all of the patchest that are more or

Re: [Qemu-devel] [PATCH 00/13] i.MX FEC and SD changes

2017-12-14 Thread Andrey Smirnov
On Wed, Dec 13, 2017 at 6:09 PM, Philippe Mathieu-Daudé wrote: > Hi Andrey, Peter, > > On 12/12/2017 02:40 PM, Peter Maydell wrote: >> On 11 December 2017 at 21:29, Andrey Smirnov >> wrote: >>> Hi everyone, >>> >>> This patchset is a spin-off

[Qemu-devel] [PATCH v2 02/15] imx_fec: Refactor imx_eth_enable_rx()

2017-12-14 Thread Andrey Smirnov
ll Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index 88b4b049d7..8b2e4b8ffe 100644 --- a/hw/net/imx_fec.c +++ b/hw/net/imx_fec.c @@ -536,19 +536,19 @@ static void imx_eth_do_tx(I

[Qemu-devel] [PATCH v2 01/15] imx_fec: Do not link to netdev

2017-12-14 Thread Andrey Smirnov
qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/arm/fsl-imx6.c | 1 + hw/net/imx_fec.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/arm/fsl-imx6.c b/hw/arm/fsl-imx6.c index 26fd2

[Qemu-devel] [PATCH v2 05/15] imx_fec: Use ENET_FTRL to determine truncation length

2017-12-14 Thread Andrey Smirnov
: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 4 ++-- include/hw/net/imx_fec.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH v2 04/15] imx_fec: Move Tx frame buffer away from the stack

2017-12-14 Thread Andrey Smirnov
Make Tx frame assembly buffer to be a paort of IMXFECState structure to avoid a concern about having large data buffer on the stack. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey

[Qemu-devel] [PATCH v2 00/15] i.MX FEC and SD changes

2017-12-14 Thread Andrey Smirnov
- FSL_IMX25_FEC_SIZE is used as a size of FEC's register file - Removed leftover code from "imx_fec: Change queue flushing heuristics" [v1] https://lists.gnu.org/archive/html/qemu-arm/2017-12/msg00085.html [1] https://lists.gnu.org/archive/html/qemu-arm/20

[Qemu-devel] [PATCH v2 12/15] sdhci: Add i.MX specific subtype of SDHCI

2017-12-14 Thread Andrey Smirnov
-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/sd/sdhci-internal.h | 19 + hw/sd/sdhci.c | 228 - include/hw/sd/sdhci.h | 14 +++ 3

[Qemu-devel] [PATCH v2 11/15] imx_fec: Reserve full FSL_IMX25_FEC_SIZE page for the register file

2017-12-14 Thread Andrey Smirnov
: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 2 +- include/hw/arm/fsl-imx25.h | 1 - include/hw/net/imx_fec.h | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH v2 03/15] imx_fec: Change queue flushing heuristics

2017-12-14 Thread Andrey Smirnov
bled. To prevent the problem, change the code to always flush packet queue when ENET_RDAR transitions 0 -> ENET_RDAR_RDAR. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off

[Qemu-devel] [PATCH v2 09/15] imx_fec: Use correct length for packet size

2017-12-14 Thread Andrey Smirnov
@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index 77d27f763e..6cb9e2e20e 100644 --- a/hw/net/imx_fec.c ++

[Qemu-devel] [PATCH v2 10/15] imx_fec: Fix a typo in imx_enet_receive()

2017-12-14 Thread Andrey Smirnov
Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net

[Qemu-devel] [PATCH v2 06/15] imx_fec: Use MIN instead of explicit ternary operator

2017-12-14 Thread Andrey Smirnov
Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw

[Qemu-devel] [PATCH v2 14/15] sd: Check for READ_MULTIPLE_BLOCK size limit violation first

2017-12-14 Thread Andrey Smirnov
-bounds check to happen before BLK_READ_BLOCK(), so this way it will only trigger if illegal read is truly about to happen. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/sd/

[Qemu-devel] [PATCH v2 08/15] imx_fec: Add support for multiple Tx DMA rings

2017-12-14 Thread Andrey Smirnov
: Andrey Smirnov --- hw/net/imx_fec.c | 133 --- include/hw/net/imx_fec.h | 18 ++- 2 files changed, 130 insertions(+), 21 deletions(-) diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index 825c879a28..77d27f763e 100644 --- a/hw/net/imx_fec.c

[Qemu-devel] [PATCH v2 07/15] imx_fec: Emulate SHIFT16 in ENETx_RACC

2017-12-14 Thread Andrey Smirnov
Needed to support latest Linux kernel driver which relies on that functionality. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/net/imx_fec.c

[Qemu-devel] [PATCH v2 15/15] sdhci: Implement write method of ACMD12ERRSTS register

2017-12-14 Thread Andrey Smirnov
Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov --- hw/sd/sdhci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c

[Qemu-devel] [PATCH v2 13/15] hw: i.MX: Convert i.MX6 to use TYPE_IMX_USDHC

2017-12-14 Thread Andrey Smirnov
Convert i.MX6 to use TYPE_IMX_USDHC since that's what real HW comes with. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- hw/arm/fsl-imx6.c | 2 +- 1 file chang

[Qemu-devel] [PATCH] hw/misc: Add code to emulate PFUZE3000 PMIC

2017-12-14 Thread Andrey Smirnov
Add trivial code to emulate PFUZE3000 PMIC. Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.orgn Cc: yurov...@gmail.com Cc: Peter Maydell Signed-off-by: Andrey Smirnov --- Integrating this into a build system via "obj-y" might not be the best way. Does this code need a dedicated CONF

[Qemu-devel] [PATCH] hw/misc: Add code to emulate Xilinx Slave Serial port

2017-12-14 Thread Andrey Smirnov
Add code to emulate Xilinx Slave Serial FPGA configuration port. Cc: "Edgar E. Iglesias" Cc: Alistair Francis Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov --- Integrating this into a build system via "obj-y" might

Re: [Qemu-devel] [PATCH 12/13] sdhci: Add i.MX specific subtype of SDHCI

2017-12-14 Thread Andrey Smirnov
On Thu, Dec 14, 2017 at 7:32 AM, Philippe Mathieu-Daudé wrote: > Hi Andrey, > > On 12/14/2017 11:03 AM, Andrey Smirnov wrote: >> On Tue, Dec 12, 2017 at 9:52 AM, Peter Maydell >> wrote: >>> On 11 December 2017 at 21:30, Andrey Smirnov >>> wrote

<    1   2   3   >