Re: [U-Boot] [PATCH 4/6] mips: ath79: Add support for ungating USB and ethernet on qca953x

2016-05-31 Thread Wills Wang
On 05/31/2016 04:50 PM, Piotr Dymacz wrote: Hello, 2016-05-31 2:51 GMT+02:00 Marek Vasut <ma...@denx.de>: On 05/31/2016 02:35 AM, Wills Wang wrote: [snip] +static int usb_reset_qca953x(void __iomem *reset_regs) +{ +void __iomem *pregs = map_physmem(AR71XX_PLL_BASE, AR71XX_PL

Re: [U-Boot] [PATCH 4/6] mips: ath79: Add support for ungating USB and ethernet on qca953x

2016-05-30 Thread Wills Wang
On 05/30/2016 11:18 PM, Marek Vasut wrote: On 05/30/2016 04:54 PM, Wills Wang wrote: Add code to ungate USB and ethernet controller on qca953x Is this code coming from mainline Linux ? No, i refer to u-boot code from QSDK. Signed-off-by: Wills Wang <wills.w...@live.com> --- arc

[U-Boot] [PATCH 6/6] mips: ath79: ap143: Reset ethernet on boot

2016-05-30 Thread Wills Wang
This patch reset the ethernet controller for ap143 board Signed-off-by: Wills Wang <wills.w...@live.com> --- board/qca/ap143/ap143.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/qca/ap143/ap143.c b/board/qca/ap143/ap143.c index 1572472..e921ea5 100644 --- a/board/qca/ap143

[U-Boot] [PATCH 3/6] mips: ath79: Use 8MB flash profile for mtd partition by default

2016-05-30 Thread Wills Wang
Change bootm flash address and mtd partition table for 8MB flash profile. Signed-off-by: Wills Wang <wills.w...@live.com> --- include/configs/ap121.h | 4 ++-- include/configs/ap143.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/configs/ap121.h b/i

[U-Boot] [PATCH 4/6] mips: ath79: Add support for ungating USB and ethernet on qca953x

2016-05-30 Thread Wills Wang
Add code to ungate USB and ethernet controller on qca953x Signed-off-by: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/reset.c | 50 1 file changed, 50 insertions(+) diff --git a/arch/mips/mach-ath79/reset.c b/arch/mips/mach

[U-Boot] [PATCH 5/6] mips: ath79: Use AR933X_PLL_SWITCH_CLOCK_CONTROL_REG macro define

2016-05-30 Thread Wills Wang
Add AR933X_PLL_SWITCH_CLOCK_CONTROL_REG define for ar933x chip. Signed-off-by: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/include/mach/ar71xx_regs.h | 1 + arch/mips/mach-ath79/reset.c| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 2/6] mips: ath79: ap121: Enable ethernet

2016-05-30 Thread Wills Wang
This patch enable network function for ap121 board. Signed-off-by: Wills Wang <wills.w...@live.com> Acked-by: Marek Vasut <ma...@denx.de> --- arch/mips/dts/ap121.dts | 5 + arch/mips/dts/ar933x.dtsi | 4 ++-- board/qca/ap121/ap121.c | 2 ++ configs/ap121_defconfig | 9

[U-Boot] [PATCH 1/6] mips: ath79: Rename get_bootstrap into ath79_get_bootstrap

2016-05-30 Thread Wills Wang
Add a platform prefix for function name in order to make more readable, and move it into ath79.h Signed-off-by: Wills Wang <wills.w...@live.com> Acked-by: Marek Vasut <ma...@denx.de> --- arch/mips/mach-ath79/ar933x/clk.c | 4 ++-- arch/mips/mach-ath79/ar933x/ddr.c

Re: [U-Boot] [PATCH 5/7] mips: ath79: Unify DDR initialization entry for ar934x

2016-05-22 Thread Wills Wang
On 05/22/2016 07:13 PM, Marek Vasut wrote: On 05/22/2016 05:59 AM, Wills Wang wrote: Use function "ddr_init" for ath79 platform DDR initialization, and put it into mach/ddr.h Signed-off-by: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/ar933x/ddr.c |

Re: [U-Boot] [PATCH 3/7] mips: ath79: Use uniform header for reset

2016-05-22 Thread Wills Wang
On 05/22/2016 07:08 PM, Marek Vasut wrote: On 05/22/2016 05:59 AM, Wills Wang wrote: Collect all reset operation on platform and move them into a uniform header Signed-off-by: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/include/mach/ath79.h | 3 --- arch/mips/mach

Re: [U-Boot] [PATCH V2 1/7] mips: ath79: ar933x: Avoid warning with gcc5

2016-05-22 Thread Wills Wang
On 05/22/2016 07:15 PM, Marek Vasut wrote: On 05/22/2016 05:59 AM, Wills Wang wrote: GCC 5.3 report a warning: 'upper' and 'lower' may be used uninitialized in this function [-Wmaybe-uninitialized]. Compiler might need explicit initializer. Signed-off-by: Wills Wang <wills.w...@live.

Re: [U-Boot] [PATCH V2 2/7] mips: ath79: ar933x: Fix ethernet PHY mismatch

2016-05-22 Thread Wills Wang
On 05/22/2016 07:05 PM, Marek Vasut wrote: On 05/22/2016 05:59 AM, Wills Wang wrote: We need reset the Ethernet Switch analog part before operation, or the build-in Ethernet PHY don't work. Signed-off-by: Wills Wang <wills.w...@live.com> --- So what changed in V2 here ? I change

[U-Boot] [PATCH 7/7] mips: ath79: ap121: Enable ethernet

2016-05-21 Thread Wills Wang
This patch enable network function for ap121 board, it's based on the coming ethernet driver ag7xxx. Signed-off-by: Wills Wang <wills.w...@live.com> --- arch/mips/dts/ap121.dts | 5 + arch/mips/dts/ar933x.dtsi | 4 ++-- board/qca/ap121/ap121.c | 2 ++ configs/ap121_defconfig

[U-Boot] [PATCH 4/7] mips: ath79: Rename get_bootstrap into ath79_get_bootstrap

2016-05-21 Thread Wills Wang
Add a platform prefix for function name in order to make more readable Signed-off-by: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/ar933x/clk.c | 2 +- arch/mips/mach-ath79/ar933x/ddr.c | 2 +- arch/mips/mach-ath79/ar934x/clk.c | 4 ++-- arch/mips/mach

[U-Boot] [PATCH 6/7] mips: ath79: Unify PLL initialization entry

2016-05-21 Thread Wills Wang
Use function "pll_init" for ath79 platform PLL initialization, and put it into mach/clk.h Signed-off-by: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/ar934x/clk.c | 2 +- arch/mips/mach-ath79/include/mach/ath79.h | 2 -- arch/mips/mach-ath79/include/m

[U-Boot] [PATCH 5/7] mips: ath79: Unify DDR initialization entry for ar934x

2016-05-21 Thread Wills Wang
Use function "ddr_init" for ath79 platform DDR initialization, and put it into mach/ddr.h Signed-off-by: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/ar933x/ddr.c | 2 +- arch/mips/mach-ath79/ar934x/ddr.c | 2 +- arch/mips/mach-ath79/include/mach/ath

[U-Boot] [PATCH V2 2/7] mips: ath79: ar933x: Fix ethernet PHY mismatch

2016-05-21 Thread Wills Wang
We need reset the Ethernet Switch analog part before operation, or the build-in Ethernet PHY don't work. Signed-off-by: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/include/mach/ar71xx_regs.h | 1 + arch/mips/mach-ath79/reset.c| 3 ++- 2 files chan

[U-Boot] [PATCH V2 1/7] mips: ath79: ar933x: Avoid warning with gcc5

2016-05-21 Thread Wills Wang
GCC 5.3 report a warning: 'upper' and 'lower' may be used uninitialized in this function [-Wmaybe-uninitialized]. Compiler might need explicit initializer. Signed-off-by: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/ar933x/ddr.c | 2 ++ 1 file changed, 2 insertions(+) diff

[U-Boot] [PATCH 3/7] mips: ath79: Use uniform header for reset

2016-05-21 Thread Wills Wang
Collect all reset operation on platform and move them into a uniform header Signed-off-by: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/include/mach/ath79.h | 3 --- arch/mips/mach-ath79/include/mach/reset.h | 2 ++ board/tplink/wdr4300/wdr4300.c| 1 + 3 files c

Re: [U-Boot] [PATCH 2/2] mips: ath79: ar933x: Fix probe error for kernel driver ag71xx

2016-05-21 Thread Wills Wang
On 05/22/2016 12:43 AM, Daniel Schwierzeck wrote: 2016-05-21 13:58 GMT+02:00 Wills Wang <wills.w...@live.com>: We need reset the Ethernet Switch analog part before operation, or the build-in Ethernet PHY don't work, openwrt kernel driver ag71xx occur the following error: [1.

Re: [U-Boot] [PATCH 9/9] mips: ath79: Add support for TPLink WDR4300

2016-05-21 Thread Wills Wang
On 05/22/2016 12:47 AM, Marek Vasut wrote: On 05/21/2016 06:29 PM, Wills Wang wrote: On 05/07/2016 02:10 AM, Marek Vasut wrote: [...] diff --git a/board/tplink/wdr4300/wdr4300.c b/board/tplink/wdr4300/wdr4300.c new file mode 100644 index 000..6e070fd --- /dev/null +++ b/board/tplink

Re: [U-Boot] [PATCH V2 8/9] mips: ath79: Add AR934x support

2016-05-21 Thread Wills Wang
On 05/22/2016 12:49 AM, Marek Vasut wrote: On 05/21/2016 06:22 PM, Wills Wang wrote: On 05/07/2016 02:10 AM, Marek Vasut wrote: [...] + +static void ar934x_srif_pll_cfg(void __iomem *pll_reg_base, const u32 srif_val) +{ +u32 reg; +do { +writel(0x10810f00, pll_reg_base + 0x4

Re: [U-Boot] [PATCH 9/9] mips: ath79: Add support for TPLink WDR4300

2016-05-21 Thread Wills Wang
On 05/07/2016 02:10 AM, Marek Vasut wrote: [...] diff --git a/board/tplink/wdr4300/wdr4300.c b/board/tplink/wdr4300/wdr4300.c new file mode 100644 index 000..6e070fd --- /dev/null +++ b/board/tplink/wdr4300/wdr4300.c @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2016 Marek Vasut +

Re: [U-Boot] [PATCH V2 8/9] mips: ath79: Add AR934x support

2016-05-21 Thread Wills Wang
On 05/07/2016 02:10 AM, Marek Vasut wrote: [...] + +static void ar934x_srif_pll_cfg(void __iomem *pll_reg_base, const u32 srif_val) +{ + u32 reg; + do { + writel(0x10810f00, pll_reg_base + 0x4); + writel(srif_val, pll_reg_base + 0x0); +

[U-Boot] [PATCH 1/2] mips: ath79: ar933x: Avoid warning with gcc5

2016-05-21 Thread Wills Wang
gcc 5.3 report a warning: 'upper' and 'lower' may be used uninitialized in this function [-Wmaybe-uninitialized]. compiler might need explicit initializer. Signed-off-by: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/ar933x/ddr.c | 2 ++ 1 file changed, 2 insertions(+) diff

[U-Boot] [PATCH 2/2] mips: ath79: ar933x: Fix probe error for kernel driver ag71xx

2016-05-21 Thread Wills Wang
: no PHY found with phy_mask=0010 Signed-off-by: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/include/mach/ar71xx_regs.h | 1 + arch/mips/mach-ath79/reset.c| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/mach-ath79/includ

Re: [U-Boot] [PATCH] net: Add ag7xxx driver for Atheros MIPS

2016-05-21 Thread Wills Wang
On 05/21/2016 01:08 AM, Marek Vasut wrote: On 05/20/2016 06:43 PM, Wills Wang wrote: On 05/20/2016 07:59 PM, Marek Vasut wrote: On 05/20/2016 06:18 AM, Wills Wang wrote: On 05/08/2016 11:22 PM, Marek Vasut wrote: On 05/08/2016 02:58 PM, Daniel Schwierzeck wrote: Hi! Am 05.05.2016 um 21

Re: [U-Boot] [PATCH] net: Add ag7xxx driver for Atheros MIPS

2016-05-20 Thread Wills Wang
On 05/21/2016 01:08 AM, Marek Vasut wrote: On 05/20/2016 06:43 PM, Wills Wang wrote: On 05/20/2016 07:59 PM, Marek Vasut wrote: On 05/20/2016 06:18 AM, Wills Wang wrote: On 05/08/2016 11:22 PM, Marek Vasut wrote: On 05/08/2016 02:58 PM, Daniel Schwierzeck wrote: Hi! Am 05.05.2016 um 21

Re: [U-Boot] [PATCH] net: Add ag7xxx driver for Atheros MIPS

2016-05-20 Thread Wills Wang
On 05/20/2016 07:59 PM, Marek Vasut wrote: On 05/20/2016 06:18 AM, Wills Wang wrote: On 05/08/2016 11:22 PM, Marek Vasut wrote: On 05/08/2016 02:58 PM, Daniel Schwierzeck wrote: Hi! Am 05.05.2016 um 21:34 schrieb Marek Vasut: Add ethernet driver for the AR933x and AR934x Atheros MIPS

Re: [U-Boot] [PATCH] net: Add ag7xxx driver for Atheros MIPS

2016-05-19 Thread Wills Wang
On 05/08/2016 11:22 PM, Marek Vasut wrote: On 05/08/2016 02:58 PM, Daniel Schwierzeck wrote: Hi! Am 05.05.2016 um 21:34 schrieb Marek Vasut: Add ethernet driver for the AR933x and AR934x Atheros MIPS machines. The driver could be easily extended to other WiSoCs. How to make this patch

Re: [U-Boot] [PATCH 0/4] ath79: fix some minor defects

2016-05-06 Thread Wills Wang
13:19 schrieb Daniel Schwierzeck: Am 12.04.2016 um 05:09 schrieb Wills Wang: These series of patch based on top of mips/next, it fix some defects on the previous patch series "add support for atheros ath79 based SOCs". Wills Wang (4): ath79: spi: Remove the explicit pinctrl setting

[U-Boot] [PATCH 4/4] ath79: add readonly attribute for ath79_soc_desc

2016-04-12 Thread Wills Wang
use 'const' keywork to qualify readonly attribute for lookup-table member Signed-off-by: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/cpu.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/mips/mach-ath79/cpu.c b/arch/mips/mach-ath79/cpu.c

[U-Boot] [PATCH 0/4] ath79: fix some minor defects

2016-04-11 Thread Wills Wang
These series of patch based on top of mips/next, it fix some defects on the previous patch series "add support for atheros ath79 based SOCs". Wills Wang (4): ath79: spi: Remove the explicit pinctrl setting ar933x: serial: Remove the explicit pinctrl setting ath79: ar933x: use

[U-Boot] [PATCH 3/4] ath79: ar933x: use BIT macro for bit shift operation

2016-04-11 Thread Wills Wang
used a uniform BIT macro for register bit-field shift Signed-off-by: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/ar933x/ddr.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/mips/mach-ath79/ar933x/ddr.c b/arch/mips/mach-ath79/ar933x

[U-Boot] [PATCH 2/4] ar933x: serial: Remove the explicit pinctrl setting

2016-04-11 Thread Wills Wang
The correct pinctrl is handled automatically so we don't need to do it in the driver. Signed-off-by: Wills Wang <wills.w...@live.com> --- drivers/serial/serial_ar933x.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/serial/serial_ar933x.c b/d

[U-Boot] [PATCH 1/4] ath79: spi: Remove the explicit pinctrl setting

2016-04-11 Thread Wills Wang
The correct pinctrl is handled automatically so we don't need to do it in the driver. Signed-off-by: Wills Wang <wills.w...@live.com> --- drivers/spi/ath79_spi.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/spi/ath79_spi.c b/drivers/spi/ath79_spi.c index 0

Re: [U-Boot] [PATCH v8 6/9] drivers: serial: add serial driver for ar933x SOC

2016-04-11 Thread Wills Wang
On Sunday, April 10, 2016 02:34 AM, Simon Glass wrote: Hi Wills, On 16 March 2016 at 02:59, Wills Wang <wills.w...@live.com> wrote: This patch add support for ar933x serial. Reviewed-by: Thomas Chou <tho...@wytron.com.tw> Reviewed-by: Daniel Schwierzeck <daniel.schwie

Re: [U-Boot] [PATCH v8 1/9] mips: add base support for QCA/Atheros ath79 SOCs

2016-03-19 Thread Wills Wang
On Thursday, March 17, 2016 11:44 AM, Marek Vasut wrote: On 03/17/2016 04:39 AM, Wills Wang wrote: On Thursday, March 17, 2016 05:35 AM, Marek Vasut wrote: On 03/16/2016 09:59 AM, Wills Wang wrote: This patch add some common code for QCA/Atheros ath79 SOCs such as DDR tuning, chip reset

Re: [U-Boot] [PATCH v8 1/9] mips: add base support for QCA/Atheros ath79 SOCs

2016-03-19 Thread Wills Wang
On Thursday, March 17, 2016 08:20 PM, Marek Vasut wrote: On 03/17/2016 05:02 AM, Wills Wang wrote: On Thursday, March 17, 2016 11:44 AM, Marek Vasut wrote: On 03/17/2016 04:39 AM, Wills Wang wrote: On Thursday, March 17, 2016 05:35 AM, Marek Vasut wrote: On 03/16/2016 09:59 AM, Wills Wang

Re: [U-Boot] [PATCH v8 3/9] mips: ath79: add support for QCA953x SOCs

2016-03-19 Thread Wills Wang
On Thursday, March 17, 2016 05:39 AM, Marek Vasut wrote: On 03/16/2016 09:59 AM, Wills Wang wrote: This patch enable work for qca953x SOC. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v8: - Fix multi-line comment for qca953x Changes in v7: - Use CKSEGxADDR i

Re: [U-Boot] [PATCH v8 2/9] mips: ath79: add support for AR933x SOCs

2016-03-19 Thread Wills Wang
On Thursday, March 17, 2016 05:38 AM, Marek Vasut wrote: On 03/16/2016 09:59 AM, Wills Wang wrote: This patch enable work for ar933x SOC. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v8: - Fix multi-line comment for ar933x Changes in v7: - Use CKSEGxADDR i

Re: [U-Boot] [PATCH v8 1/9] mips: add base support for QCA/Atheros ath79 SOCs

2016-03-19 Thread Wills Wang
On Thursday, March 17, 2016 05:35 AM, Marek Vasut wrote: On 03/16/2016 09:59 AM, Wills Wang wrote: This patch add some common code for QCA/Atheros ath79 SOCs such as DDR tuning, chip reset and CPU detection. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v8:

[U-Boot] [PATCH v8 8/9] mips: ath79: add AP121 reference board

2016-03-16 Thread Wills Wang
This patch add board-level code and base DT for AP121. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v8: - Move board/ath79/ap121 into board/qca/ap121 - Move SYS_VENDOR into board-level for ap121 Changes in v7: - Use KSEG1 address for debug port in ap121 Changes

[U-Boot] [PATCH v8 7/9] drivers: spi: add spi support for QCA/Atheros ath79 SOCs

2016-03-16 Thread Wills Wang
This patch add a compatible spi driver for ath79 series SOC. Reviewed-by: Thomas Chou <tho...@wytron.com.tw> Reviewed-by: Daniel Schwierzeck <daniel.schwierz...@gmail.com> Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v8: - Remove ath79_spi_write/read - U

[U-Boot] [PATCH v8 6/9] drivers: serial: add serial driver for ar933x SOC

2016-03-16 Thread Wills Wang
This patch add support for ar933x serial. Reviewed-by: Thomas Chou <tho...@wytron.com.tw> Reviewed-by: Daniel Schwierzeck <daniel.schwierz...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v8: - R

[U-Boot] [PATCH v8 5/9] drivers: pinctrl: Add simple pinctrl driver for QCA/Athores qca953x.

2016-03-16 Thread Wills Wang
This is a simple pinctrl driver, it just support uart and spi pin-mux now. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/pinctrl/K

[U-Boot] [PATCH v8 2/9] mips: ath79: add support for AR933x SOCs

2016-03-16 Thread Wills Wang
This patch enable work for ar933x SOC. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v8: - Fix multi-line comment for ar933x Changes in v7: - Use CKSEGxADDR instead of KSEGxADDR for ar933x Changes in v6: - Remove board.c - Define magic value in ddr.c Changes in v5:

[U-Boot] [PATCH v8 3/9] mips: ath79: add support for QCA953x SOCs

2016-03-16 Thread Wills Wang
This patch enable work for qca953x SOC. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v8: - Fix multi-line comment for qca953x Changes in v7: - Use CKSEGxADDR instead of KSEGxADDR for qca953x Changes in v6: - Initial support for qca953x Changes in v5: None Changes in v4

[U-Boot] [PATCH v8 4/9] drivers: pinctrl: Add simple pinctrl driver for QCA/Athores ar933x.

2016-03-16 Thread Wills Wang
This is a simple pinctrl driver, it just support uart and spi pin-mux now. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/pinctrl/K

[U-Boot] [PATCH v8 9/9] mips: ath79: add AP143 reference board

2016-03-16 Thread Wills Wang
This patch add board-level code and base DT for AP143. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v8: - Move board/ath79/ap143 into board/qca/ap143 - Move SYS_VENDOR into board-level for ap143 Changes in v7: - Use KSEG1 address for debug port in ap143 Changes in v6

[U-Boot] [PATCH v8 1/9] mips: add base support for QCA/Atheros ath79 SOCs

2016-03-16 Thread Wills Wang
This patch add some common code for QCA/Atheros ath79 SOCs such as DDR tuning, chip reset and CPU detection. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v8: - Use setbits_be32 - Use lookup-table instead of big switch statement for CPU detection Changes in v7: - Use setb

[U-Boot] [PATCH v8 0/9] add support for atheros ath79 based SOCs

2016-03-16 Thread Wills Wang
ips/include/asm/arch-ath79 - Check SOC type and extract common code into arch/mips/mach-ath79 - Move serial driver code into drivers/serial - Add a compatible spi driver - Add a reference board implemention Wills Wang (9): mips: add base support for QCA/Atheros ath79 SOCs mips: ath79: add sup

Re: [U-Boot] [PATCH v7 5/7] mips: ath79: add spi driver

2016-02-02 Thread Wills Wang
On Wednesday, January 27, 2016 09:33 AM, Marek Vasut wrote: On Saturday, January 16, 2016 at 07:13:51 PM, Wills Wang wrote: Reviewed-by: Thomas Chou <tho...@wytron.com.tw> Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v7: - Define spi_cs_activate/spi_cs_deactiv

Re: [U-Boot] [PATCH 3/3] mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

2016-01-29 Thread Wills Wang
On Thursday, January 28, 2016 10:53 PM, Marek Vasut wrote: On Thursday, January 28, 2016 at 03:43:58 PM, Wills Wang wrote: On Thursday, January 28, 2016 09:44 PM, Marek Vasut wrote: On Thursday, January 28, 2016 at 02:31:11 PM, Wills Wang wrote: On Thursday, January 28, 2016 07:51 AM, Marek

Re: [U-Boot] [PATCH 1/3] mips: ath79: Fix compiler warning on const assignment

2016-01-28 Thread Wills Wang
On Thursday, January 28, 2016 07:51 AM, Marek Vasut wrote: The assignment const T var; var = value; is illegal, since var is constant. Drop the const to fix the compiler warning. Signed-off-by: Marek Vasut <ma...@denx.de> Cc: Daniel Schwierzeck <daniel.schwierz...@gmail.com> Cc

Re: [U-Boot] [PATCH 2/3] mips: ath79: Drop SYS_MIPS_CACHE_INIT_RAM_LOAD

2016-01-28 Thread Wills Wang
to prevent such failure and potential undefined behavior. Signed-off-by: Marek Vasut <ma...@denx.de> Cc: Daniel Schwierzeck <daniel.schwierz...@gmail.com> Cc: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/ar

Re: [U-Boot] [PATCH 3/3] mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

2016-01-28 Thread Wills Wang
and ap143 boards. Signed-off-by: Marek Vasut <ma...@denx.de> Cc: Daniel Schwierzeck <daniel.schwierz...@gmail.com> Cc: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/Kconfig | 6 -- board/ath79/ap121/Kconfig| 6 ++ board/ath79/ap143/Kconfig|

Re: [U-Boot] [PATCH 3/3] mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

2016-01-28 Thread Wills Wang
On Thursday, January 28, 2016 09:44 PM, Marek Vasut wrote: On Thursday, January 28, 2016 at 02:31:11 PM, Wills Wang wrote: On Thursday, January 28, 2016 07:51 AM, Marek Vasut wrote: In order to support boards with ath79 from different vendors and thus located under /board/$VENDOR/ , we need

Re: [U-Boot] [PATCH 3/3] mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

2016-01-28 Thread Wills Wang
and ap143 boards. Signed-off-by: Marek Vasut <ma...@denx.de> Cc: Daniel Schwierzeck <daniel.schwierz...@gmail.com> Cc: Wills Wang <wills.w...@live.com> --- arch/mips/mach-ath79/Kconfig | 6 -- board/ath79/ap121/Kconfig| 6 ++ board/ath79/ap143/Kconfig|

Re: [U-Boot] [PATCH v7 2/7] mips: ath79: add support for AR933x SOCs

2016-01-22 Thread Wills Wang
On Sunday, January 17, 2016 03:31 AM, Marek Vasut wrote: On Saturday, January 16, 2016 at 07:13:48 PM, Wills Wang wrote: This patch enable work for ar933x SOC. And it adds DDR code and clock code ... which is missing from the commit message. These code was split in v5, the commit message

Re: [U-Boot] [PATCH v7 6/7] mips: ath79: add AP121 reference board

2016-01-22 Thread Wills Wang
On Sunday, January 17, 2016 03:50 AM, Daniel Schwierzeck wrote: Am Sonntag, den 17.01.2016, 02:13 +0800 schrieb Wills Wang: Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v7: - Use KSEG1 address for debug port in ap121 Changes in v6: - Convert SZ_XXX into hex in a

Re: [U-Boot] [PATCH v7 3/7] mips: ath79: add support for QCA953x SOCs

2016-01-22 Thread Wills Wang
On Sunday, January 17, 2016 03:33 AM, Marek Vasut wrote: On Saturday, January 16, 2016 at 07:13:49 PM, Wills Wang wrote: This patch enable work for qca953x SOC. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v7: - Use CKSEGxADDR instead of KSEGxADDR for qca953x C

Re: [U-Boot] [PATCH v7 5/7] mips: ath79: add spi driver

2016-01-22 Thread Wills Wang
On Sunday, January 17, 2016 03:37 AM, Daniel Schwierzeck wrote: Am Sonntag, den 17.01.2016, 02:13 +0800 schrieb Wills Wang: Reviewed-by: Thomas Chou <tho...@wytron.com.tw> Signed-off-by: Wills Wang <wills.w...@live.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierz...@g

Re: [U-Boot] [PATCH v7 1/7] mips: add base support for QCA/Atheros ath79 SOCs

2016-01-22 Thread Wills Wang
On Sunday, January 17, 2016 03:19 AM, Marek Vasut wrote: On Saturday, January 16, 2016 at 07:13:47 PM, Wills Wang wrote: Commit message is missing. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v7: - Use setbits_32 - Fix include path for SoC specific headers Changes

Re: [U-Boot] [PATCH v7 1/7] mips: add base support for QCA/Atheros ath79 SOCs

2016-01-22 Thread Wills Wang
On Saturday, January 23, 2016 11:06 AM, Marek Vasut wrote: On Saturday, January 23, 2016 at 02:31:31 AM, Wills Wang wrote: On Friday, January 22, 2016 10:44 PM, Marek Vasut wrote: On Friday, January 22, 2016 at 10:02:18 AM, Wills Wang wrote: On Sunday, January 17, 2016 03:19 AM, Marek Vasut

Re: [U-Boot] [PATCH v7 1/7] mips: add base support for QCA/Atheros ath79 SOCs

2016-01-22 Thread Wills Wang
On Friday, January 22, 2016 10:44 PM, Marek Vasut wrote: On Friday, January 22, 2016 at 10:02:18 AM, Wills Wang wrote: On Sunday, January 17, 2016 03:19 AM, Marek Vasut wrote: On Saturday, January 16, 2016 at 07:13:47 PM, Wills Wang wrote: Commit message is missing. Signed-off-by: Wills

Re: [U-Boot] [PATCH v7 0/7] add support for atheros ath79 based SOCs

2016-01-21 Thread Wills Wang
On Thursday, January 21, 2016 01:35 PM, Marek Vasut wrote: On Thursday, January 21, 2016 at 03:58:44 AM, Wills Wang wrote: On Thursday, January 21, 2016 09:32 AM, Marek Vasut wrote: On Sunday, January 17, 2016 at 01:21:29 PM, Wills Wang wrote: On 01/17/2016 06:24 PM, Daniel Schwierzeck

Re: [U-Boot] [PATCH v7 0/7] add support for atheros ath79 based SOCs

2016-01-20 Thread Wills Wang
On Thursday, January 21, 2016 09:32 AM, Marek Vasut wrote: On Sunday, January 17, 2016 at 01:21:29 PM, Wills Wang wrote: On 01/17/2016 06:24 PM, Daniel Schwierzeck wrote: 2016-01-17 6:49 GMT+01:00 Wills Wang <wills.w...@live.com>: On 01/17/2016 03:05 AM, Marek Vasut wrote: On Sa

Re: [U-Boot] [PATCH v7 0/7] add support for atheros ath79 based SOCs

2016-01-20 Thread Wills Wang
On Thursday, January 21, 2016 09:32 AM, Marek Vasut wrote: On Sunday, January 17, 2016 at 01:21:29 PM, Wills Wang wrote: On 01/17/2016 06:24 PM, Daniel Schwierzeck wrote: 2016-01-17 6:49 GMT+01:00 Wills Wang <wills.w...@live.com>: On 01/17/2016 03:05 AM, Marek Vasut wrote: On Sa

Re: [U-Boot] [PATCH v7 0/7] add support for atheros ath79 based SOCs

2016-01-17 Thread Wills Wang
On 01/17/2016 06:24 PM, Daniel Schwierzeck wrote: 2016-01-17 6:49 GMT+01:00 Wills Wang <wills.w...@live.com>: On 01/17/2016 03:05 AM, Marek Vasut wrote: On Saturday, January 16, 2016 at 07:13:46 PM, Wills Wang wrote: These series of patch add support for atheros ath79 based SOCs in

Re: [U-Boot] [PATCH v6 00/10] add support for atheros ath79 based SOCs

2016-01-16 Thread Wills Wang
On Saturday, January 16, 2016 01:26 PM, Marek Vasut wrote: On Monday, January 04, 2016 at 12:06:17 PM, Wills Wang wrote: These series of patch add support for atheros ath79 based SOCs in u-boot, at the present moment it's just available for ar933x and qca953x chip. Changes in v6: - Remove

Re: [U-Boot] [PATCH v7 0/7] add support for atheros ath79 based SOCs

2016-01-16 Thread Wills Wang
On 01/17/2016 03:05 AM, Marek Vasut wrote: On Saturday, January 16, 2016 at 07:13:46 PM, Wills Wang wrote: These series of patch add support for atheros ath79 based SOCs in u-boot, at the present moment it's just available for ar933x and qca953x chip. This patch serises is based

Re: [U-Boot] [PATCH v6 06/10] ns16550: add support for mips

2016-01-16 Thread Wills Wang
On Saturday, January 09, 2016 10:30 PM, Daniel Schwierzeck wrote: Am Samstag, den 09.01.2016, 18:46 +0800 schrieb Wills Wang: On 01/09/2016 12:23 AM, Daniel Schwierzeck wrote: Am Montag, den 04.01.2016, 19:14 +0800 schrieb Wills Wang: MIPS archtecture have no "in_le32/in_be32/out

[U-Boot] [PATCH v7 7/7] mips: ath79: add AP143 reference board

2016-01-16 Thread Wills Wang
Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v7: - Use KSEG1 address for debug port in ap143 Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/mips/dts/Makefile| 1 + arch/mips/dts/ap143.dts

Re: [U-Boot] [PATCH v6 00/10] add support for atheros ath79 based SOCs

2016-01-16 Thread Wills Wang
On Saturday, January 16, 2016 11:33 PM, Marek Vasut wrote: On Saturday, January 16, 2016 at 02:15:27 PM, Wills Wang wrote: On Saturday, January 16, 2016 01:26 PM, Marek Vasut wrote: On Monday, January 04, 2016 at 12:06:17 PM, Wills Wang wrote: These series of patch add support for atheros

[U-Boot] [PATCH v7 1/7] mips: add base support for QCA/Atheros ath79 SOCs

2016-01-16 Thread Wills Wang
Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v7: - Use setbits_32 - Fix include path for SoC specific headers Changes in v6: - Move ar933x as separate patch - Add get_bootstrap in reset.c - Use map_physmem instead of KSEG1ADDR - Add arch_cpu_init for detect SOC type for

[U-Boot] [PATCH v7 2/7] mips: ath79: add support for AR933x SOCs

2016-01-16 Thread Wills Wang
This patch enable work for ar933x SOC. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v7: - Use CKSEGxADDR instead of KSEGxADDR for ar933x Changes in v6: - Remove board.c - Define magic value in ddr.c Changes in v5: None Changes in v4: None Changes in v3: None Changes

[U-Boot] [PATCH v7 6/7] mips: ath79: add AP121 reference board

2016-01-16 Thread Wills Wang
Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v7: - Use KSEG1 address for debug port in ap121 Changes in v6: - Convert SZ_XXX into hex in ap121.h - Remove useless CONFIG_SYS_INIT_SP_OFFSET in ap121.h - Add board_early_init_f for DDR and pin initialization - Select UART a

[U-Boot] [PATCH v7 3/7] mips: ath79: add support for QCA953x SOCs

2016-01-16 Thread Wills Wang
This patch enable work for qca953x SOC. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v7: - Use CKSEGxADDR instead of KSEGxADDR for qca953x Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/mips/mach-ath79/K

[U-Boot] [PATCH v7 4/7] mips: ath79: add serial driver for ar933x SOC

2016-01-16 Thread Wills Wang
Reviewed-by: Thomas Chou <tho...@wytron.com.tw> Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v7: - remove map_physmem for debug port Changes in v6: - Remove wait loop in putc and getc - Use map_physmem instead of KSEG1ADDR Changes in v5: - remove ar933x_ser

[U-Boot] [PATCH v7 5/7] mips: ath79: add spi driver

2016-01-16 Thread Wills Wang
Reviewed-by: Thomas Chou <tho...@wytron.com.tw> Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v7: - Define spi_cs_activate/spi_cs_deactivate - Rename MHZ to ATH79_SPI_MHZ - Use clrsetbits_32 Changes in v6: - Add rrw_delay in ath79_spi_priv for more accurate tim

[U-Boot] [PATCH v7 0/7] add support for atheros ath79 based SOCs

2016-01-16 Thread Wills Wang
Add a compatible spi driver - Add a reference board implemention Wills Wang (7): mips: add base support for QCA/Atheros ath79 SOCs mips: ath79: add support for AR933x SOCs mips: ath79: add support for QCA953x SOCs mips: ath79: add serial driver for ar933x SOC mips: ath79: add spi drive

Re: [U-Boot] [PATCH v1 0/9] MIPS: sync asm header files with linux-4.4

2016-01-11 Thread Wills Wang
On 01/11/2016 06:55 PM, Purna Chandra Mandal wrote: On 01/09/2016 10:02 PM, Daniel Schwierzeck wrote: This patch series updates all MIPS asm header files containing I/O code as well as processor, register and assembly definitions. The source of the update are the MIPS asm header files of

Re: [U-Boot] [PATCH v6 06/10] ns16550: add support for mips

2016-01-09 Thread Wills Wang
On 01/09/2016 12:23 AM, Daniel Schwierzeck wrote: Am Montag, den 04.01.2016, 19:14 +0800 schrieb Wills Wang: MIPS archtecture have no "in_le32/in_be32/out_le32/out_be32" macro, but usually define CONFIG_SYS_BIG_ENDIAN, this patch use readl/writel for register operation in mips w

Re: [U-Boot] [PATCH v6 08/10] mips: ath79: add spi driver

2016-01-09 Thread Wills Wang
On 01/06/2016 08:16 PM, Jagan Teki wrote: On 4 January 2016 at 16:44, Wills Wang <wills.w...@live.com> wrote: Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v6: - Add rrw_delay in ath79_spi_priv for more accurate timing - Remove ath79_spi_delay - Cal

Re: [U-Boot] [PATCH v6 01/10] mips: implement to access the KSEG0/1 memory range in map_physmem

2016-01-05 Thread Wills Wang
On 01/05/2016 10:45 AM, Thomas Chou wrote: Hi Wills, On 2016年01月04日 19:14, Wills Wang wrote: U-boot just use the no MMU virtual address segment(KSEG0/1), this patch enable access the uncached memory range(KSEG1) by flag "MAP_NOCACHE", other flag for KSEG0 access. Signed-off-by:

Re: [U-Boot] [PATCH v6 07/10] ns16550: map register base address for debug UART

2016-01-05 Thread Wills Wang
On 01/06/2016 05:18 AM, Daniel Schwierzeck wrote: 2016-01-04 14:07 GMT+01:00 Thomas Chou <tho...@wytron.com.tw>: Hi Wills, On 2016年01月04日 19:14, Wills Wang wrote: MIPS need to use KSEG1 address for register operation, this patch add map_physmem to convert CONFIG_DEBUG_UART_BASE for

Re: [U-Boot] [PATCH v3 2/4] mips: ath79: add serial driver for ar933x SOC

2016-01-05 Thread Wills Wang
On 01/06/2016 08:25 AM, Simon Glass wrote: Hi WIlls, On 24 December 2015 at 04:22, Wills Wang <wills.w...@live.com> wrote: Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v3: None Changes in v2: None drivers/serial/Makefile| 1 + drivers/serial/ser

[U-Boot] [PATCH v6 01/10] mips: implement to access the KSEG0/1 memory range in map_physmem

2016-01-04 Thread Wills Wang
U-boot just use the no MMU virtual address segment(KSEG0/1), this patch enable access the uncached memory range(KSEG1) by flag "MAP_NOCACHE", other flag for KSEG0 access. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v6: - Remove useless "else" Changes

[U-Boot] [PATCH v6 00/10] add support for atheros ath79 based SOCs

2016-01-04 Thread Wills Wang
C type and extract common code into arch/mips/mach-ath79 - Move serial driver code into drivers/serial - Add a compatible spi driver - Add a reference board implemention Wills Wang (10): mips: implement to access the KSEG0/1 memory range in map_physmem mips: add base support for QCA/Atheros ath79 S

[U-Boot] [PATCH v6 02/10] mips: add base support for QCA/Atheros ath79 SOCs

2016-01-04 Thread Wills Wang
Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v6: - Move ar933x as separate patch - Add get_bootstrap in reset.c - Use map_physmem instead of KSEG1ADDR - Add arch_cpu_init for detect SOC type for early Changes in v5: - Add independent Kconfig - Use SRAM for initial stack

[U-Boot] [PATCH v6 05/10] mips: ath79: add serial driver for ar933x SOC

2016-01-04 Thread Wills Wang
Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v6: - Remove wait loop in putc and getc - Use map_physmem instead of KSEG1ADDR Changes in v5: - remove ar933x_serial_platdata - Import document "qca,ar9330-uart.txt" from kernel - Add support for debug UART Chang

[U-Boot] [PATCH v6 04/10] mips: ath79: add support for QCA953x SOCs

2016-01-04 Thread Wills Wang
This patch enable work for qca953x SOC. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/mips/mach-ath79/Kconfig | 10 + arch/mips/mach-ath79/Ma

[U-Boot] [PATCH v6 03/10] mips: ath79: add support for AR933x SOCs

2016-01-04 Thread Wills Wang
This patch enable work for ar933x SOC. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v6: - Remove board.c - Define magic value in ddr.c Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/mips/mach-ath79/Kconfig| 10 +

[U-Boot] [PATCH v6 07/10] ns16550: map register base address for debug UART

2016-01-04 Thread Wills Wang
MIPS need to use KSEG1 address for register operation, this patch add map_physmem to convert CONFIG_DEBUG_UART_BASE for debug UART. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None d

[U-Boot] [PATCH v6 06/10] ns16550: add support for mips

2016-01-04 Thread Wills Wang
MIPS archtecture have no "in_le32/in_be32/out_le32/out_be32" macro, but usually define CONFIG_SYS_BIG_ENDIAN, this patch use readl/writel for register operation in mips when define CONFIG_SYS_NS16550_MEM32. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v6: No

[U-Boot] [PATCH v6 10/10] mips: ath79: add AP143 reference board

2016-01-04 Thread Wills Wang
Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/mips/dts/Makefile| 1 + arch/mips/dts/ap143.dts | 37 +++ arch/mips/dts/qca953x.dtsi

[U-Boot] [PATCH v6 09/10] mips: ath79: add AP121 reference board

2016-01-04 Thread Wills Wang
Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v6: - Convert SZ_XXX into hex in ap121.h - Remove useless CONFIG_SYS_INIT_SP_OFFSET in ap121.h - Add board_early_init_f for DDR and pin initialization - Select UART and SPI in ap121_defconfig Changes in v5:

[U-Boot] [PATCH v6 08/10] mips: ath79: add spi driver

2016-01-04 Thread Wills Wang
Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes in v6: - Add rrw_delay in ath79_spi_priv for more accurate timing - Remove ath79_spi_delay - Calculate delay in ath79_spi_set_speed Changes in v5: - remove ar933x_spi_platdata - Import document "spi-ath79.txt" from ke

Re: [U-Boot] [PATCH v6 07/10] ns16550: map register base address for debug UART

2016-01-04 Thread Wills Wang
On 01/04/2016 09:07 PM, Thomas Chou wrote: Hi Wills, On 2016年01月04日 19:14, Wills Wang wrote: MIPS need to use KSEG1 address for register operation, this patch add map_physmem to convert CONFIG_DEBUG_UART_BASE for debug UART. Signed-off-by: Wills Wang <wills.w...@live.com> --- Changes

  1   2   >