Re: [PATCH 4/5] mtd: spi-nor: Add driver for Adaptrum Anarion QSPI controller

2017-07-31 Thread Alexandru Gagniuc
Hi Marek, Me again! On 07/29/2017 02:34 AM, Marek Vasut wrote: On 07/29/2017 12:07 AM, Alexandru Gagniuc wrote: +static void aspi_drain_fifo(struct anarion_qspi *aspi, uint8_t *buf, size_t len) +{ + uint32_t data; Is this stuff below something like ioread32_rep() ? [snip

Re: [PATCH 4/5] mtd: spi-nor: Add driver for Adaptrum Anarion QSPI controller

2017-07-31 Thread Alexandru Gagniuc
On 07/29/2017 02:34 AM, Marek Vasut wrote: On 07/29/2017 12:07 AM, Alexandru Gagniuc wrote: Add support for the QSPI controller found in Adaptrum Anarion SOCs. This controller is designed specifically to handle SPI NOR chips, and the driver is modeled as such. Because the system is emulated

Re: Adding new ARC platforms (was Re: Handling stub code for new platforms)

2017-08-11 Thread Alexandru Gagniuc
Hi Vineet, On 08/10/2017 06:07 PM, Vineet Gupta wrote: Hi Alexandru, On 08/11/2017 12:58 AM, Alexandru Gagniuc wrote: Hi, Looking under arch/arc, I see the current way is to add a plat-[socname] for each new SoC. However, it seems that plat-sim, and plat-tb10x are just place-holders

Re: [PATCH] arc: Mask individual IRQ lines during core INTC init

2017-08-10 Thread Alexandru Gagniuc
.com> Cc: Alexandru Gagniuc <ale...@adaptrum.com> Tested-by: Alexandru Gagniuc <ale...@adaptrum.com> --- arch/arc/kernel/intc-arcv2.c | 3 +++ arch/arc/kernel/intc-compact.c | 14 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arc/kernel/intc-ar

Handling stub code for new platforms

2017-08-10 Thread Alexandru Gagniuc
Hi, Looking under arch/arc, I see the current way is to add a plat-[socname] for each new SoC. However, it seems that plat-sim, and plat-tb10x are just place-holders for the compatible bindings. I was going to do the same for plat-anarion, which required an early boot workaround. However,

[PATCH v2 2/2] ARC: DTS: Add device-tree for Anarion-based development board

2017-08-04 Thread Alexandru Gagniuc
Signed-off-by: Alexandru Gagniuc <ale...@adaptrum.com> --- Changes since v1: * Updated CPU core clock to 24 MHz to match HW changes. arch/arc/boot/dts/adaptrum_anarion.dtsi | 108 arch/arc/boot/dts/adaptrum_anarion_fpga.dts | 49 + 2 files c

[PATCH v2 1/2] ARC: [plat-anarion] Add early boot workarounds for Anarion SOC

2017-08-04 Thread Alexandru Gagniuc
and interrupt mapping established. Signed-off-by: Alexandru Gagniuc <ale...@adaptrum.com> --- Changes since v1: * None arch/arc/Kconfig | 1 + arch/arc/Makefile| 1 + arch/arc/plat-anarion/Kconfig| 10 ++ arch/arc/plat-anarion/Makefile

[PATCH 2/5] ARC: [plat-anarion] Add early boot workarounds for Anarion SOC

2017-07-28 Thread Alexandru Gagniuc
and interrupt mapping established. Signed-off-by: Alexandru Gagniuc <ale...@adaptrum.com> --- arch/arc/Kconfig | 1 + arch/arc/Makefile| 1 + arch/arc/plat-anarion/Kconfig| 10 ++ arch/arc/plat-anarion/Makefile | 7 +++ arch/arc/plat-a

[PATCH 4/5] mtd: spi-nor: Add driver for Adaptrum Anarion QSPI controller

2017-07-28 Thread Alexandru Gagniuc
are implemented at this time. Signed-off-by: Alexandru Gagniuc <ale...@adaptrum.com> --- .../devicetree/bindings/mtd/anarion-quadspi.txt| 22 + drivers/mtd/spi-nor/Kconfig| 7 + drivers/mtd/spi-nor/Makefile | 1 + drivers/mtd/spi-nor/a

[PATCH 1/5] of: Add vendor prefix for Adaptrum, Inc.

2017-07-28 Thread Alexandru Gagniuc
Signed-off-by: Alexandru Gagniuc <ale...@adaptrum.com> --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index da

[PATCH 5/5] ARC: DTS: Add device-tree for Anarion-based development board

2017-07-28 Thread Alexandru Gagniuc
Signed-off-by: Alexandru Gagniuc <ale...@adaptrum.com> --- arch/arc/boot/dts/adaptrum_anarion.dtsi | 107 arch/arc/boot/dts/adaptrum_anarion_fpga.dts | 49 + 2 files changed, 156 insertions(+) create mode 100644 arch/arc/bo

Re: [PATCH 4/5] mtd: spi-nor: Add driver for Adaptrum Anarion QSPI controller

2017-07-31 Thread Alexandru Gagniuc
On 07/31/2017 02:33 PM, Marek Vasut wrote: On 07/31/2017 07:17 PM, Alexandru Gagniuc wrote: Hi Marek, Thank you again for your feedback. I've applied a majority of your suggestions, and I am very happy with the result. I should have v2 posted within a day or so. [snip] +/* + * This mask

Re: [PATCH 4/5] mtd: spi-nor: Add driver for Adaptrum Anarion QSPI controller

2017-07-31 Thread Alexandru Gagniuc
On 07/31/2017 03:43 PM, Marek Vasut wrote: On 08/01/2017 12:20 AM, Alexandru Gagniuc wrote: On 07/31/2017 02:33 PM, Marek Vasut wrote: On 07/31/2017 07:17 PM, Alexandru Gagniuc wrote: +struct anarion_qspi { +structspi_nor nor; +structdevice *dev; +uintptr_t

Re: snps, dwmac interrupt storm (Was: ARC770: "unexpected IRQ trap at vector 00" during boot)

2017-08-02 Thread Alexandru Gagniuc
On 08/01/2017 11:23 PM, Vineet Gupta wrote: On 08/02/2017 03:03 AM, Alex wrote: On 07/25/2017 08:08 PM, Vineet Gupta wrote: I have tried the workarouns I mentioned on top of linux 4.9.34, and it works exactly as expected. however, on top of 4.13-rc3 [1], the story is a lot different. As soon as

Re: Adding new ARC platforms (was Re: Handling stub code for new platforms)

2017-08-16 Thread Alexandru Gagniuc
On 08/13/2017 10:34 AM, Vineet Gupta wrote: On 08/11/2017 10:55 PM, Alexandru Gagniuc wrote: I was hoping to avoid the addition of extra source files for zero code gain, though your proposal does work. However, since the platform would be added unconditionally, would it make more sense to add

[PATCH v3 2/2] ARC: DTS: Add device-tree for Anarion-based development board

2017-08-16 Thread Alexandru Gagniuc
This is split into the SOC bindings, and the board dts. The Endor board is currently an FPGA emulation. Once real, silicon arrives, we plan to remove Endor support. Signed-off-by: Alexandru Gagniuc <ale...@adaptrum.com> --- arch/arc/boot/dts/adaptrum_anarion.dtsi

[PATCH v3 0/2] Add platform support for Adaptrum Anarion SOC

2017-08-16 Thread Alexandru Gagniuc
le binding with 'arc-' Changes since v1: * Updated CPU core clock to 24 MHz to match HW changes. Alexandru Gagniuc (2): ARC: [plat-sim] Add .compatible property for Adaptrum Anarion SOC ARC: DTS: Add device-tree for Anarion-based development board arch/arc/boot/dts/adaptrum_an

[PATCH v3 1/2] ARC: [plat-sim] Add .compatible property for Adaptrum Anarion SOC

2017-08-16 Thread Alexandru Gagniuc
as opposed to adding plat-anarion/-- because it doesn't add a bunch of extra files. Signed-off-by: Alexandru Gagniuc <ale...@adaptrum.com> --- arch/arc/plat-sim/platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arc/plat-sim/platform.c b/arch/arc/plat-sim/platform.c index