Re: [PATCH 4/6] irqchip: add irqchip driver for nuc900

2016-07-21 Thread Wan ZongShun
refer to your previous nuc900 series patches for SPARSE IRQ, now I am waiting for rc1 release, and will send v3 patches. > > Arnd -- --- Vincent Wan(Zongshun) www.mcuos.com

Re: [PATCH 4/6] irqchip: add irqchip driver for nuc900

2016-07-21 Thread Wan ZongShun
refer to your previous nuc900 series patches for SPARSE IRQ, now I am waiting for rc1 release, and will send v3 patches. > > Arnd -- --- Vincent Wan(Zongshun) www.mcuos.com

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-15 Thread Wan ZongShun
2016-07-15 15:00 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Friday, July 15, 2016 1:15:58 PM CEST Wan Zongshun wrote: >> >> Actually, I have two choice to implement this function: >> >> option1: >> >> void __exception_irq_entry aic_handle_irq(st

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-15 Thread Wan ZongShun
2016-07-15 15:00 GMT+08:00 Arnd Bergmann : > On Friday, July 15, 2016 1:15:58 PM CEST Wan Zongshun wrote: >> >> Actually, I have two choice to implement this function: >> >> option1: >> >> void __exception_irq_entry aic_handle_irq(struct p

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-14 Thread Wan Zongshun
On 2016年07月14日 21:54, Jason Cooper wrote: Hi Wan Zongshun, On Thu, Jul 14, 2016 at 11:36:53AM +0800, Wan Zongshun wrote: On 2016年07月14日 04:09, Jason Cooper wrote: On Sun, Jul 10, 2016 at 03:27:22PM +0800, Wan Zongshun wrote: This patch is to add irqchip driver support for nuc900 plat

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-14 Thread Wan Zongshun
On 2016年07月14日 21:54, Jason Cooper wrote: Hi Wan Zongshun, On Thu, Jul 14, 2016 at 11:36:53AM +0800, Wan Zongshun wrote: On 2016年07月14日 04:09, Jason Cooper wrote: On Sun, Jul 10, 2016 at 03:27:22PM +0800, Wan Zongshun wrote: This patch is to add irqchip driver support for nuc900 plat

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-14 Thread Wan Zongshun
On 2016年07月12日 16:26, Arnd Bergmann wrote: On Tuesday, July 12, 2016 3:04:42 PM CEST Wan Zongshun wrote: Ideally, this should just go away once we use SPARSE_IRQ. This platform also can use SPARSE_IRQ? this just a simple irq map and no more irq number in this Soc. SPARSE_IRQ is implied

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-14 Thread Wan Zongshun
On 2016年07月12日 16:26, Arnd Bergmann wrote: On Tuesday, July 12, 2016 3:04:42 PM CEST Wan Zongshun wrote: Ideally, this should just go away once we use SPARSE_IRQ. This platform also can use SPARSE_IRQ? this just a simple irq map and no more irq number in this Soc. SPARSE_IRQ is implied

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-13 Thread Wan Zongshun
On 2016年07月14日 04:09, Jason Cooper wrote: Hi Wan Zongshun, On Sun, Jul 10, 2016 at 03:27:22PM +0800, Wan Zongshun wrote: This patch is to add irqchip driver support for nuc900 plat, current this driver only supports nuc970 SoC. Signed-off-by: Wan Zongshun <mcuos@gmail.com> ---

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-13 Thread Wan Zongshun
On 2016年07月14日 04:09, Jason Cooper wrote: Hi Wan Zongshun, On Sun, Jul 10, 2016 at 03:27:22PM +0800, Wan Zongshun wrote: This patch is to add irqchip driver support for nuc900 plat, current this driver only supports nuc970 SoC. Signed-off-by: Wan Zongshun --- arch/arm/mach-w90x900

Re: [PATCH 00/20] iommu/amd: Use generic IOVA allocator

2016-07-13 Thread Wan Zongshun
On 2016年07月12日 18:55, Joerg Roedel wrote: Hey Vincent, On Tue, Jul 12, 2016 at 05:03:08PM +0800, Wan Zongshun wrote: Currently, those patches can not work at my eCarrizo board. When I merged your patches, boot failed, and no any info print to me. I set iommu=pt, it also does not work; set

Re: [PATCH 00/20] iommu/amd: Use generic IOVA allocator

2016-07-13 Thread Wan Zongshun
On 2016年07月12日 18:55, Joerg Roedel wrote: Hey Vincent, On Tue, Jul 12, 2016 at 05:03:08PM +0800, Wan Zongshun wrote: Currently, those patches can not work at my eCarrizo board. When I merged your patches, boot failed, and no any info print to me. I set iommu=pt, it also does not work; set

Re: [PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files

2016-07-13 Thread Wan Zongshun
On 2016年07月12日 23:39, Afzal Mohammed wrote: Hi, On Sun, Jul 10, 2016 at 03:42:20PM +0800, Wan Zongshun wrote: This patch is to add dts support for nuc970 platform. cpu ! in soc ? lost in fab ? ;) Do you mean I should add cpus into soc like? cpus { #address-cells

Re: [PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files

2016-07-13 Thread Wan Zongshun
On 2016年07月12日 23:39, Afzal Mohammed wrote: Hi, On Sun, Jul 10, 2016 at 03:42:20PM +0800, Wan Zongshun wrote: This patch is to add dts support for nuc970 platform. cpu ! in soc ? lost in fab ? ;) Do you mean I should add cpus into soc like? cpus { #address-cells

Re: [PATCH v2 06/10] soc: Add SoC specific driver support for nuc900

2016-07-12 Thread Wan Zongshun
On 2016年07月11日 16:03, Arnd Bergmann wrote: On Sunday, July 10, 2016 3:27:26 PM CEST Wan Zongshun wrote: + ret = of_property_read_string(np, "compatible", _dev_attr->soc_id); + if (ret) return -EINVAL; + + soc_dev_attr->mach

Re: [PATCH v2 06/10] soc: Add SoC specific driver support for nuc900

2016-07-12 Thread Wan Zongshun
On 2016年07月11日 16:03, Arnd Bergmann wrote: On Sunday, July 10, 2016 3:27:26 PM CEST Wan Zongshun wrote: + ret = of_property_read_string(np, "compatible", _dev_attr->soc_id); + if (ret) return -EINVAL; + + soc_dev_attr->mach

Re: [PATCH 00/20] iommu/amd: Use generic IOVA allocator

2016-07-12 Thread Wan Zongshun
On 2016年07月08日 19:44, Joerg Roedel wrote: Hi, here is a patch-set to make the AMD IOMMU driver use the generic IOVA allocator, which is already used in the Intel VT-d driver and a few other places. The main reason for the conversion is to make the driver benefit from the recent scalability

Re: [PATCH 00/20] iommu/amd: Use generic IOVA allocator

2016-07-12 Thread Wan Zongshun
On 2016年07月08日 19:44, Joerg Roedel wrote: Hi, here is a patch-set to make the AMD IOMMU driver use the generic IOVA allocator, which is already used in the Intel VT-d driver and a few other places. The main reason for the conversion is to make the driver benefit from the recent scalability

Re: [PATCH v2 03/10] Clocksource: add nuc970 clocksource driver

2016-07-12 Thread Wan Zongshun
On 2016年07月11日 23:36, Arnd Bergmann wrote: On Sunday, July 10, 2016 3:27:23 PM CEST Wan Zongshun wrote: +config NUC900_TIMER +bool "Clocksource timer for nuc900 platform" if COMPILE_TEST +depends on ARM +select CLKSRC_OF if OF +select CLKSRC_MMIO +

Re: [PATCH v2 03/10] Clocksource: add nuc970 clocksource driver

2016-07-12 Thread Wan Zongshun
On 2016年07月11日 23:36, Arnd Bergmann wrote: On Sunday, July 10, 2016 3:27:23 PM CEST Wan Zongshun wrote: +config NUC900_TIMER +bool "Clocksource timer for nuc900 platform" if COMPILE_TEST +depends on ARM +select CLKSRC_OF if OF +select CLKSRC_MMIO +

Re: [PATCH v2 01/10] ARM: NUC900: Add nuc970 machine support

2016-07-12 Thread Wan Zongshun
On 2016年07月12日 12:30, Wan Zongshun wrote: On 2016年07月12日 00:04, Arnd Bergmann wrote: On Sunday, July 10, 2016 3:27:21 PM CEST Wan Zongshun wrote: +ifeq ($(CONFIG_SOC_NUC970),) obj-y := irq.o time.o mfp.o gpio.o clock.o obj-y += clksel.o

Re: [PATCH v2 01/10] ARM: NUC900: Add nuc970 machine support

2016-07-12 Thread Wan Zongshun
On 2016年07月12日 12:30, Wan Zongshun wrote: On 2016年07月12日 00:04, Arnd Bergmann wrote: On Sunday, July 10, 2016 3:27:21 PM CEST Wan Zongshun wrote: +ifeq ($(CONFIG_SOC_NUC970),) obj-y := irq.o time.o mfp.o gpio.o clock.o obj-y += clksel.o

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-12 Thread Wan Zongshun
On 2016年07月11日 23:46, Arnd Bergmann wrote: On Sunday, July 10, 2016 3:27:22 PM CEST Wan Zongshun wrote: + +#if !defined(CONFIG_SOC_NUC900) #define NR_IRQS(IRQ_ADC+1) +#else +#define NR_IRQS62 +#endif The Kconfig symbols are a bit confusing here

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-12 Thread Wan Zongshun
On 2016年07月11日 23:46, Arnd Bergmann wrote: On Sunday, July 10, 2016 3:27:22 PM CEST Wan Zongshun wrote: + +#if !defined(CONFIG_SOC_NUC900) #define NR_IRQS(IRQ_ADC+1) +#else +#define NR_IRQS62 +#endif The Kconfig symbols are a bit confusing here

Re: [PATCH v2 01/10] ARM: NUC900: Add nuc970 machine support

2016-07-11 Thread Wan Zongshun
On 2016年07月12日 00:04, Arnd Bergmann wrote: On Sunday, July 10, 2016 3:27:21 PM CEST Wan Zongshun wrote: +ifeq ($(CONFIG_SOC_NUC970),) obj-y := irq.o time.o mfp.o gpio.o clock.o obj-y += clksel.o dev.o cpu.o +endif # W90X900 CPU support

Re: [PATCH v2 01/10] ARM: NUC900: Add nuc970 machine support

2016-07-11 Thread Wan Zongshun
On 2016年07月12日 00:04, Arnd Bergmann wrote: On Sunday, July 10, 2016 3:27:21 PM CEST Wan Zongshun wrote: +ifeq ($(CONFIG_SOC_NUC970),) obj-y := irq.o time.o mfp.o gpio.o clock.o obj-y += clksel.o dev.o cpu.o +endif # W90X900 CPU support

Re: [PATCH v2 06/10] soc: Add SoC specific driver support for nuc900

2016-07-11 Thread Wan ZongShun
2016-07-11 18:24 GMT+08:00 Arnd Bergmann <a...@arndb.de>: > On Monday, July 11, 2016 5:07:01 PM CEST Wan Zongshun wrote: >> >> On 2016年07月11日 16:03, Arnd Bergmann wrote: >> > On Sunday, July 10, 2016 3:27:26 PM CEST Wan Zongshun wrote: >> >> + ret

Re: [PATCH v2 06/10] soc: Add SoC specific driver support for nuc900

2016-07-11 Thread Wan ZongShun
2016-07-11 18:24 GMT+08:00 Arnd Bergmann : > On Monday, July 11, 2016 5:07:01 PM CEST Wan Zongshun wrote: >> >> On 2016年07月11日 16:03, Arnd Bergmann wrote: >> > On Sunday, July 10, 2016 3:27:26 PM CEST Wan Zongshun wrote: >> >> + ret = of_

Re: [PATCH] iommu/amd: Fix unity mapping initialization race

2016-07-11 Thread Wan ZongShun
linux-foundation.org > https://lists.linuxfoundation.org/mailman/listinfo/iommu -- --- Vincent Wan(Zongshun) www.mcuos.com

Re: [PATCH] iommu/amd: Fix unity mapping initialization race

2016-07-11 Thread Wan ZongShun
linux-foundation.org > https://lists.linuxfoundation.org/mailman/listinfo/iommu -- --- Vincent Wan(Zongshun) www.mcuos.com

Re: [PATCH] iommu/amd: Fix unity mapping initialization race

2016-07-11 Thread Wan Zongshun
On 2016年07月11日 15:19, Joerg Roedel wrote: On Sun, Jul 10, 2016 at 07:40:53PM +0800, Wan Zongshun wrote: Do you mean we need enable the V and TV bits to DTE entry after all DTEs tables were initialized completely? Yes, this is what my patch does and what fixes the bug that was reported

Re: [PATCH] iommu/amd: Fix unity mapping initialization race

2016-07-11 Thread Wan Zongshun
On 2016年07月11日 15:19, Joerg Roedel wrote: On Sun, Jul 10, 2016 at 07:40:53PM +0800, Wan Zongshun wrote: Do you mean we need enable the V and TV bits to DTE entry after all DTEs tables were initialized completely? Yes, this is what my patch does and what fixes the bug that was reported

Re: [PATCH v2 06/10] soc: Add SoC specific driver support for nuc900

2016-07-11 Thread Wan Zongshun
On 2016年07月11日 16:03, Arnd Bergmann wrote: On Sunday, July 10, 2016 3:27:26 PM CEST Wan Zongshun wrote: + ret = of_property_read_string(np, "compatible", _dev_attr->soc_id); + if (ret) return -EINVAL; + + soc_dev_attr->mach

Re: [PATCH v2 06/10] soc: Add SoC specific driver support for nuc900

2016-07-11 Thread Wan Zongshun
On 2016年07月11日 16:03, Arnd Bergmann wrote: On Sunday, July 10, 2016 3:27:26 PM CEST Wan Zongshun wrote: + ret = of_property_read_string(np, "compatible", _dev_attr->soc_id); + if (ret) return -EINVAL; + + soc_dev_attr->mach

Re: [PATCH v2 05/10] power/reset: Add reset driver support for nuc900

2016-07-10 Thread Wan Zongshun
On 2016年07月11日 05:56, Paul Gortmaker wrote: On Sun, Jul 10, 2016 at 3:27 AM, Wan Zongshun <v...@iommu.org> wrote This driver is to add reset support for nuc900 series, currently, it only supports nuc970 SoC reset. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- drivers

Re: [PATCH v2 05/10] power/reset: Add reset driver support for nuc900

2016-07-10 Thread Wan Zongshun
On 2016年07月11日 05:56, Paul Gortmaker wrote: On Sun, Jul 10, 2016 at 3:27 AM, Wan Zongshun wrote This driver is to add reset support for nuc900 series, currently, it only supports nuc970 SoC reset. Signed-off-by: Wan Zongshun --- drivers/power/reset/Kconfig| 7 +++ drivers/power

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-10 Thread Wan Zongshun
On 2016年07月11日 05:51, Paul Gortmaker wrote: On Sun, Jul 10, 2016 at 3:27 AM, Wan Zongshun <v...@iommu.org> wrote: This patch is to add irqchip driver support for nuc900 plat, current this driver only supports nuc970 SoC. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- a

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-10 Thread Wan Zongshun
On 2016年07月11日 05:51, Paul Gortmaker wrote: On Sun, Jul 10, 2016 at 3:27 AM, Wan Zongshun wrote: This patch is to add irqchip driver support for nuc900 plat, current this driver only supports nuc970 SoC. Signed-off-by: Wan Zongshun --- arch/arm/mach-w90x900/include/mach/irqs.h | 5

Re: [PATCH v2 09/10] Documentation: devicetree: Add dts description for nuc900

2016-07-10 Thread Wan Zongshun
On 2016年07月11日 06:17, Arnd Bergmann wrote: On Sunday, July 10, 2016 3:42:21 PM CEST Wan Zongshun wrote: + +Required properties: +- compatible : Should be "nuvoton,nuc970-tmr" +- reg : Address and length of the register set +- clocks : Reference on the timer input clock +-

Re: [PATCH v2 09/10] Documentation: devicetree: Add dts description for nuc900

2016-07-10 Thread Wan Zongshun
On 2016年07月11日 06:17, Arnd Bergmann wrote: On Sunday, July 10, 2016 3:42:21 PM CEST Wan Zongshun wrote: + +Required properties: +- compatible : Should be "nuvoton,nuc970-tmr" +- reg : Address and length of the register set +- clocks : Reference on the timer input clock +-

Re: [PATCH] iommu/amd: Fix unity mapping initialization race

2016-07-10 Thread Wan Zongshun
On 2016年07月07日 00:00, Joerg Roedel wrote: From: Joerg Roedel There is a race condition in the AMD IOMMU init code that causes requested unity mappings to be blocked by the IOMMU for a short period of time. This results on boot failures and IO_PAGE_FAULTs on some machines.

Re: [PATCH] iommu/amd: Fix unity mapping initialization race

2016-07-10 Thread Wan Zongshun
On 2016年07月07日 00:00, Joerg Roedel wrote: From: Joerg Roedel There is a race condition in the AMD IOMMU init code that causes requested unity mappings to be blocked by the IOMMU for a short period of time. This results on boot failures and IO_PAGE_FAULTs on some machines. Fix this by making

[PATCH v2 10/10] nuc900: add nuc970 platform defconfig file

2016-07-10 Thread Wan Zongshun
Add nuc970_defconfig file support. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- arch/arm/configs/nuc970_defconfig | 76 +++ 1 file changed, 76 insertions(+) create mode 100644 arch/arm/configs/nuc970_defconfig diff --git a/arch/arm/c

[PATCH v2 10/10] nuc900: add nuc970 platform defconfig file

2016-07-10 Thread Wan Zongshun
Add nuc970_defconfig file support. Signed-off-by: Wan Zongshun --- arch/arm/configs/nuc970_defconfig | 76 +++ 1 file changed, 76 insertions(+) create mode 100644 arch/arm/configs/nuc970_defconfig diff --git a/arch/arm/configs/nuc970_defconfig b/arch/arm

[PATCH v2 09/10] Documentation: devicetree: Add dts description for nuc900

2016-07-10 Thread Wan Zongshun
This patch is to add dts description for nuc900 platform. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- .../devicetree/bindings/arm/nuvoton/nuc970.txt | 12 .../bindings/clock/nuvoton,nuc970-clk.txt | 13 + .../interrupt-controller/nuvoton,

[PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files

2016-07-10 Thread Wan Zongshun
This patch is to add dts support for nuc970 platform. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/nuc970-evb.dts | 34 arch/arm/boot/dts/nuc970.dtsi| 88 3

[PATCH v2 09/10] Documentation: devicetree: Add dts description for nuc900

2016-07-10 Thread Wan Zongshun
This patch is to add dts description for nuc900 platform. Signed-off-by: Wan Zongshun --- .../devicetree/bindings/arm/nuvoton/nuc970.txt | 12 .../bindings/clock/nuvoton,nuc970-clk.txt | 13 + .../interrupt-controller/nuvoton,nuc900-aic.txt| 15

[PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files

2016-07-10 Thread Wan Zongshun
This patch is to add dts support for nuc970 platform. Signed-off-by: Wan Zongshun --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/nuc970-evb.dts | 34 arch/arm/boot/dts/nuc970.dtsi| 88 3 files changed, 123 insertions

[PATCH v2 04/10] clk: add Clock driver for nuc970

2016-07-10 Thread Wan Zongshun
This patch is to add clock framework driver for nuc970. The clock controller generates all clocks for Video, Audio, CPU, system bus and all functionalities, nuc970 includes two PLL modules. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- drivers/clk/Makefile| 1 + drive

[PATCH v2 04/10] clk: add Clock driver for nuc970

2016-07-10 Thread Wan Zongshun
This patch is to add clock framework driver for nuc970. The clock controller generates all clocks for Video, Audio, CPU, system bus and all functionalities, nuc970 includes two PLL modules. Signed-off-by: Wan Zongshun --- drivers/clk/Makefile| 1 + drivers/clk/nuc900/Makefile

[PATCH v2 00/10] ARM: NUC900: Add NUC970 SoC support

2016-07-10 Thread Wan Zongshun
and soc drivers, split some dts patches according to maillist's comments. Wan Zongshun (10): ARM: NUC900: Add nuc970 machine support irqchip: add irqchip driver for nuc900 Clocksource: add nuc970 clocksource driver clk: add Clock driver for nuc970 power/reset: Add reset driver support

[PATCH v2 00/10] ARM: NUC900: Add NUC970 SoC support

2016-07-10 Thread Wan Zongshun
and soc drivers, split some dts patches according to maillist's comments. Wan Zongshun (10): ARM: NUC900: Add nuc970 machine support irqchip: add irqchip driver for nuc900 Clocksource: add nuc970 clocksource driver clk: add Clock driver for nuc970 power/reset: Add reset driver support

[PATCH v2 06/10] soc: Add SoC specific driver support for nuc900

2016-07-10 Thread Wan Zongshun
This patch is to add SoC specific driver for nuc970 SoC, it is for getting nuc970 version id and chip id. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/nuvoton/Kconfig | 10 d

[PATCH v2 03/10] Clocksource: add nuc970 clocksource driver

2016-07-10 Thread Wan Zongshun
resolution, and programmable counting period. The timer can generate an interrupt signal upon timeout, or provide the current value of count during operation. Currently, we are using TIMER0 and TIMER1 for clocksource and clockevent device driver support. Signed-off-by: Wan Zongshun <mc

[PATCH v2 01/10] ARM: NUC900: Add nuc970 machine support

2016-07-10 Thread Wan Zongshun
NUC970 is a new SoC of Nuvoton nuc900 series, this patch is to add machine file support for it. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- arch/arm/mach-w90x900/Kconfig | 20 arch/arm/mach-w90x900/Makefile | 3 +++ arch/arm/mach-w90x900/nuc900.

[PATCH v2 06/10] soc: Add SoC specific driver support for nuc900

2016-07-10 Thread Wan Zongshun
This patch is to add SoC specific driver for nuc970 SoC, it is for getting nuc970 version id and chip id. Signed-off-by: Wan Zongshun --- drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/nuvoton/Kconfig | 10 drivers/soc/nuvoton/Makefile

[PATCH v2 03/10] Clocksource: add nuc970 clocksource driver

2016-07-10 Thread Wan Zongshun
resolution, and programmable counting period. The timer can generate an interrupt signal upon timeout, or provide the current value of count during operation. Currently, we are using TIMER0 and TIMER1 for clocksource and clockevent device driver support. Signed-off-by: Wan Zongshun --- drivers

[PATCH v2 01/10] ARM: NUC900: Add nuc970 machine support

2016-07-10 Thread Wan Zongshun
NUC970 is a new SoC of Nuvoton nuc900 series, this patch is to add machine file support for it. Signed-off-by: Wan Zongshun --- arch/arm/mach-w90x900/Kconfig | 20 arch/arm/mach-w90x900/Makefile | 3 +++ arch/arm/mach-w90x900/nuc900.c | 41

[PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-10 Thread Wan Zongshun
This patch is to add irqchip driver support for nuc900 plat, current this driver only supports nuc970 SoC. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- arch/arm/mach-w90x900/include/mach/irqs.h | 5 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-nu

[PATCH v2 05/10] power/reset: Add reset driver support for nuc900

2016-07-10 Thread Wan Zongshun
This driver is to add reset support for nuc900 series, currently, it only supports nuc970 SoC reset. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- drivers/power/reset/Kconfig| 7 +++ drivers/power/reset/Makefile | 1 + drivers/power/reset/nuc900-reset.

[PATCH v2 07/10] ARM: dts: Add clock header file into dt-bindings

2016-07-10 Thread Wan Zongshun
This patch is to add nuc970 clock Macros header file into include/dt-bindings/clock. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- include/dt-bindings/clock/nuc970-clock.h | 233 +++ 1 file changed, 233 insertions(+) create mode 100644 include/dt-bi

[PATCH v2 05/10] power/reset: Add reset driver support for nuc900

2016-07-10 Thread Wan Zongshun
This driver is to add reset support for nuc900 series, currently, it only supports nuc970 SoC reset. Signed-off-by: Wan Zongshun --- drivers/power/reset/Kconfig| 7 +++ drivers/power/reset/Makefile | 1 + drivers/power/reset/nuc900-reset.c | 93

[PATCH v2 07/10] ARM: dts: Add clock header file into dt-bindings

2016-07-10 Thread Wan Zongshun
This patch is to add nuc970 clock Macros header file into include/dt-bindings/clock. Signed-off-by: Wan Zongshun --- include/dt-bindings/clock/nuc970-clock.h | 233 +++ 1 file changed, 233 insertions(+) create mode 100644 include/dt-bindings/clock/nuc970-clock.h

[PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-10 Thread Wan Zongshun
This patch is to add irqchip driver support for nuc900 plat, current this driver only supports nuc970 SoC. Signed-off-by: Wan Zongshun --- arch/arm/mach-w90x900/include/mach/irqs.h | 5 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-nuc900.c | 150

Re: [PATCH 4/6] irqchip: add irqchip driver for nuc900

2016-07-08 Thread Wan Zongshun
On 2016年06月29日 23:27, Arnd Bergmann wrote: On Saturday, June 25, 2016 6:37:20 PM CEST Wan Zongshun wrote: +#define IRQ_WDTW90X900_IRQ(1) +#define IRQ_WWDT W90X900_IRQ(2) +#define IRQ_LVDW90X900_IRQ(3) +#define IRQ_EXT0 W90X900_IRQ(4) +#define

Re: [PATCH 4/6] irqchip: add irqchip driver for nuc900

2016-07-08 Thread Wan Zongshun
On 2016年06月29日 23:27, Arnd Bergmann wrote: On Saturday, June 25, 2016 6:37:20 PM CEST Wan Zongshun wrote: +#define IRQ_WDTW90X900_IRQ(1) +#define IRQ_WWDT W90X900_IRQ(2) +#define IRQ_LVDW90X900_IRQ(3) +#define IRQ_EXT0 W90X900_IRQ(4) +#define

Re: [PATCH 3/6] Clocksource: add nuc970 clocksource driver

2016-07-05 Thread Wan Zongshun
On 2016年06月28日 03:46, Daniel Lezcano wrote: On 06/25/2016 12:37 PM, Wan Zongshun wrote: This patch is to add nuc970 clocksource driver support. Hi Wan, add a detailed description of how works this timer and its general design. If there is a pointer or a reference to a manual that would

Re: [PATCH 3/6] Clocksource: add nuc970 clocksource driver

2016-07-05 Thread Wan Zongshun
On 2016年06月28日 03:46, Daniel Lezcano wrote: On 06/25/2016 12:37 PM, Wan Zongshun wrote: This patch is to add nuc970 clocksource driver support. Hi Wan, add a detailed description of how works this timer and its general design. If there is a pointer or a reference to a manual that would

Re: [PATCH 4/6] irqchip: add irqchip driver for nuc900

2016-07-05 Thread Wan Zongshun
On 2016年06月29日 23:27, Arnd Bergmann wrote: On Saturday, June 25, 2016 6:37:20 PM CEST Wan Zongshun wrote: +#define IRQ_WDTW90X900_IRQ(1) +#define IRQ_WWDT W90X900_IRQ(2) +#define IRQ_LVDW90X900_IRQ(3) +#define IRQ_EXT0 W90X900_IRQ(4) +#define

Re: [PATCH 4/6] irqchip: add irqchip driver for nuc900

2016-07-05 Thread Wan Zongshun
On 2016年06月29日 23:27, Arnd Bergmann wrote: On Saturday, June 25, 2016 6:37:20 PM CEST Wan Zongshun wrote: +#define IRQ_WDTW90X900_IRQ(1) +#define IRQ_WWDT W90X900_IRQ(2) +#define IRQ_LVDW90X900_IRQ(3) +#define IRQ_EXT0 W90X900_IRQ(4) +#define

Re: [PATCH 3/6] Clocksource: add nuc970 clocksource driver

2016-07-05 Thread Wan Zongshun
On 2016年06月29日 23:25, Arnd Bergmann wrote: On Saturday, June 25, 2016 6:37:19 PM CEST Wan Zongshun wrote: This patch is to add nuc970 clocksource driver support. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- .../mach-w90x900/include/mach/nuc970-regs-timer.h | 44 + d

Re: [PATCH 3/6] Clocksource: add nuc970 clocksource driver

2016-07-05 Thread Wan Zongshun
On 2016年06月29日 23:25, Arnd Bergmann wrote: On Saturday, June 25, 2016 6:37:19 PM CEST Wan Zongshun wrote: This patch is to add nuc970 clocksource driver support. Signed-off-by: Wan Zongshun --- .../mach-w90x900/include/mach/nuc970-regs-timer.h | 44 + drivers/clocksource/Kconfig

Re: [PATCH 1/6] ARM: NUC900: Add nuc970 machine support

2016-07-05 Thread Wan Zongshun
On 2016年06月29日 23:19, Arnd Bergmann wrote: On Saturday, June 25, 2016 6:37:17 PM CEST Wan Zongshun wrote: NUC970 is a new SoC of Nuvoton nuc900 series, this patch is to add machine file support for it. Signed-off-by: Wan Zongshun <mcuos@gmail.com> Nice to see some activity on th

Re: [PATCH 1/6] ARM: NUC900: Add nuc970 machine support

2016-07-05 Thread Wan Zongshun
On 2016年06月29日 23:19, Arnd Bergmann wrote: On Saturday, June 25, 2016 6:37:17 PM CEST Wan Zongshun wrote: NUC970 is a new SoC of Nuvoton nuc900 series, this patch is to add machine file support for it. Signed-off-by: Wan Zongshun Nice to see some activity on the port! --- arch/arm

Re: [PATCH 1/1] iommu/amd: initialize devid variable before using it

2016-06-26 Thread Wan ZongShun
SLOT(devid), > PCI_FUNC(devid)); > > - devid = e->devid; > flags = e->flags; > Sure, thanks for your patch. This is my fault. > ret = add_acpi_hid_device(hid, uid, , false); > -- > 2.9.0 > -- --- Vincent Wan(Zongshun) www.mcuos.com

Re: [PATCH 1/1] iommu/amd: initialize devid variable before using it

2016-06-26 Thread Wan ZongShun
devid)); > > - devid = e->devid; > flags = e->flags; > Sure, thanks for your patch. This is my fault. > ret = add_acpi_hid_device(hid, uid, , false); > -- > 2.9.0 > -- --- Vincent Wan(Zongshun) www.mcuos.com

[PATCH 0/6] ARM: NUC900: Add NUC970 SoC support

2016-06-25 Thread Wan Zongshun
, such as dts, driver/clk, driver/clocksource , driver/irqchip drivers. The old w90x900 plat such as nuc910,nuc960 codes will also be changed to new style according to nuc970 codes after those patches was accepted. Wan Zongshun (6): ARM: NUC900: Add nuc970 machine support ARM: dts: nuc900: Add

[PATCH 0/6] ARM: NUC900: Add NUC970 SoC support

2016-06-25 Thread Wan Zongshun
, such as dts, driver/clk, driver/clocksource , driver/irqchip drivers. The old w90x900 plat such as nuc910,nuc960 codes will also be changed to new style according to nuc970 codes after those patches was accepted. Wan Zongshun (6): ARM: NUC900: Add nuc970 machine support ARM: dts: nuc900: Add

[PATCH 3/6] Clocksource: add nuc970 clocksource driver

2016-06-25 Thread Wan Zongshun
This patch is to add nuc970 clocksource driver support. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- .../mach-w90x900/include/mach/nuc970-regs-timer.h | 44 + drivers/clocksource/Kconfig| 8 + drivers/clocksource/Makefile

[PATCH 1/6] ARM: NUC900: Add nuc970 machine support

2016-06-25 Thread Wan Zongshun
NUC970 is a new SoC of Nuvoton nuc900 series, this patch is to add machine file support for it. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- arch/arm/mach-w90x900/Kconfig | 25 arch/arm/mach-w90x900/Makefile | 3 + .../mach-w

[PATCH 3/6] Clocksource: add nuc970 clocksource driver

2016-06-25 Thread Wan Zongshun
This patch is to add nuc970 clocksource driver support. Signed-off-by: Wan Zongshun --- .../mach-w90x900/include/mach/nuc970-regs-timer.h | 44 + drivers/clocksource/Kconfig| 8 + drivers/clocksource/Makefile | 1 + drivers/clocksource

[PATCH 1/6] ARM: NUC900: Add nuc970 machine support

2016-06-25 Thread Wan Zongshun
NUC970 is a new SoC of Nuvoton nuc900 series, this patch is to add machine file support for it. Signed-off-by: Wan Zongshun --- arch/arm/mach-w90x900/Kconfig | 25 arch/arm/mach-w90x900/Makefile | 3 + .../mach-w90x900/include/mach/nuc970-regs

[PATCH 5/6] clk: add Clock driver for nuc970

2016-06-25 Thread Wan Zongshun
Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- drivers/clk/Makefile| 1 + drivers/clk/nuc900/Makefile | 6 + drivers/clk/nuc900/clk-apll.c | 168 drivers/clk/nuc900/clk-ccf.h| 53 +++ drivers/clk/nuc900/clk-nuc970.c

[PATCH 4/6] irqchip: add irqchip driver for nuc900

2016-06-25 Thread Wan Zongshun
This patch is to add irqchip driver support for nuc900 plat, current this driver only supports nuc970 SoC. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- arch/arm/mach-w90x900/include/mach/irqs.h | 69 ++ .../mach-w90x900/include/mach/nuc970-regs-aic.h

[PATCH 5/6] clk: add Clock driver for nuc970

2016-06-25 Thread Wan Zongshun
Signed-off-by: Wan Zongshun --- drivers/clk/Makefile| 1 + drivers/clk/nuc900/Makefile | 6 + drivers/clk/nuc900/clk-apll.c | 168 drivers/clk/nuc900/clk-ccf.h| 53 +++ drivers/clk/nuc900/clk-nuc970.c | 920 drivers/clk

[PATCH 4/6] irqchip: add irqchip driver for nuc900

2016-06-25 Thread Wan Zongshun
This patch is to add irqchip driver support for nuc900 plat, current this driver only supports nuc970 SoC. Signed-off-by: Wan Zongshun --- arch/arm/mach-w90x900/include/mach/irqs.h | 69 ++ .../mach-w90x900/include/mach/nuc970-regs-aic.h| 53 +++ drivers

[PATCH 2/6] ARM: dts: nuc900: Add nuc970 dts files

2016-06-25 Thread Wan Zongshun
This patch is to add dts support for nuc970 platform. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- .../devicetree/bindings/arm/nuvoton/nuc970.txt | 30 +++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/nuc970-evb.dts | 20 ++

[PATCH 6/6] nuc900: add nuc970 platform defconfig file

2016-06-25 Thread Wan Zongshun
Add nuc970_defconfig file support. Signed-off-by: Wan Zongshun <mcuos@gmail.com> --- arch/arm/configs/nuc970_defconfig | 1278 + 1 file changed, 1278 insertions(+) create mode 100644 arch/arm/configs/nuc970_defconfig diff --git a/arch/arm/c

[PATCH 2/6] ARM: dts: nuc900: Add nuc970 dts files

2016-06-25 Thread Wan Zongshun
This patch is to add dts support for nuc970 platform. Signed-off-by: Wan Zongshun --- .../devicetree/bindings/arm/nuvoton/nuc970.txt | 30 +++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/nuc970-evb.dts | 20 ++ arch/arm/boot/dts/nuc970

[PATCH 6/6] nuc900: add nuc970 platform defconfig file

2016-06-25 Thread Wan Zongshun
Add nuc970_defconfig file support. Signed-off-by: Wan Zongshun --- arch/arm/configs/nuc970_defconfig | 1278 + 1 file changed, 1278 insertions(+) create mode 100644 arch/arm/configs/nuc970_defconfig diff --git a/arch/arm/configs/nuc970_defconfig b/arch/arm

[PATCH 0/6] ARM: NUC900: Add NUC970 SoC support

2016-06-25 Thread Wan Zongshun
, such as dts, driver/clk, driver/clocksource , driver/irqchip drivers. The old w90x900 plat such as nuc910,nuc960 codes will also be changed to new style according to nuc970 codes after those patches was accepted. Wan Zongshun (6): ARM: NUC900: Add nuc970 machine support ARM: dts: nuc900: Add

[PATCH 0/6] ARM: NUC900: Add NUC970 SoC support

2016-06-25 Thread Wan Zongshun
, such as dts, driver/clk, driver/clocksource , driver/irqchip drivers. The old w90x900 plat such as nuc910,nuc960 codes will also be changed to new style according to nuc970 codes after those patches was accepted. Wan Zongshun (6): ARM: NUC900: Add nuc970 machine support ARM: dts: nuc900: Add

[PATCH 0/6] ARM: NUC900: Add NUC970 SoC support

2016-06-25 Thread Wan Zongshun
, such as dts, driver/clk, driver/clocksource , driver/irqchip drivers. The old w90x900 plat such as nuc910,nuc960 codes will also be changed to new style according to nuc970 codes after those patches was accepted. Wan Zongshun (6): ARM: NUC900: Add nuc970 machine support ARM: dts: nuc900: Add

[PATCH 0/6] ARM: NUC900: Add NUC970 SoC support

2016-06-25 Thread Wan Zongshun
, such as dts, driver/clk, driver/clocksource , driver/irqchip drivers. The old w90x900 plat such as nuc910,nuc960 codes will also be changed to new style according to nuc970 codes after those patches was accepted. Wan Zongshun (6): ARM: NUC900: Add nuc970 machine support ARM: dts: nuc900: Add

[PATCH 0/6] ARM: NUC900: Add NUC970 SoC support

2016-06-25 Thread Wan Zongshun
, such as dts, driver/clk, driver/clocksource , driver/irqchip drivers. The old w90x900 plat such as nuc910,nuc960 codes will also be changed to new style according to nuc970 codes after those patches was accepted. Wan Zongshun (6): ARM: NUC900: Add nuc970 machine support ARM: dts: nuc900: Add

[PATCH 0/6] ARM: NUC900: Add NUC970 SoC support

2016-06-25 Thread Wan Zongshun
, such as dts, driver/clk, driver/clocksource , driver/irqchip drivers. The old w90x900 plat such as nuc910,nuc960 codes will also be changed to new style according to nuc970 codes after those patches was accepted. Wan Zongshun (6): ARM: NUC900: Add nuc970 machine support ARM: dts: nuc900: Add

[PATCH v2] iommu/amd: Add proper error check in two functions

2016-06-15 Thread Wan Zongshun
From: Wan Zongshun <vincent@amd.com> This patch is to do the following: 1. Add error check for caller of iommu_device_create. 2. Add error check for caller of iommu_device_link and move 'iommu = amd_iommu_rlookup_table[dev_data->devid]' out of iommuv2 capability condition

[PATCH v2] iommu/amd: Add proper error check in two functions

2016-06-15 Thread Wan Zongshun
From: Wan Zongshun This patch is to do the following: 1. Add error check for caller of iommu_device_create. 2. Add error check for caller of iommu_device_link and move 'iommu = amd_iommu_rlookup_table[dev_data->devid]' out of iommuv2 capability condition that make iommu_device_link also

Re: [PATCH v2] iommu/amd: Set AMD iommu callbacks for platform bus driver

2016-06-13 Thread Wan ZongShun
2016-05-10 21:21 GMT+08:00 Wan Zongshun <vincent@amd.com>: > From: Wan Zongshun <vincent@amd.com> > > AMD has more drivers will use ACPI to platform bus driver later, > all those devices need iommu support, for example: eMMC driver. > > For latest AMD eMMC con

Re: [PATCH v2] iommu/amd: Set AMD iommu callbacks for platform bus driver

2016-06-13 Thread Wan ZongShun
2016-05-10 21:21 GMT+08:00 Wan Zongshun : > From: Wan Zongshun > > AMD has more drivers will use ACPI to platform bus driver later, > all those devices need iommu support, for example: eMMC driver. > > For latest AMD eMMC controller, it will utilize sdhci-acpi.c driver,

  1   2   3   >