[U-Boot] [PATCH v2 4/4] mips: ath79: add AP121 reference board

2015-12-21 Thread Wills Wang
Signed-off-by: Wills Wang --- arch/mips/Kconfig | 8 board/ath79/ap121/Kconfig | 15 +++ board/ath79/ap121/MAINTAINERS | 6 +++ board/ath79/ap121/Makefile| 8 board/ath79/ap121/README | 18 board/ath79/ap121/ap121.c | 18 board/ath7

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

2015-12-21 Thread Wills Wang
Signed-off-by: Wills Wang --- drivers/serial/Makefile| 1 + drivers/serial/serial_ar933x.c | 337 + 2 files changed, 338 insertions(+) create mode 100644 drivers/serial/serial_ar933x.c diff --git a/drivers/serial/Makefile b/drivers/serial/Makef

[U-Boot] [PATCH v2 2/4] mips: ath79: add spi driver

2015-12-21 Thread Wills Wang
Signed-off-by: Wills Wang --- drivers/spi/Makefile| 1 + drivers/spi/ath79_spi.c | 142 2 files changed, 143 insertions(+) create mode 100644 drivers/spi/ath79_spi.c diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile index 3eca745..7

[U-Boot] [PATCH v2 0/4] add support for atheros ath79 based SOCs

2015-12-21 Thread Wills Wang
These series of patch add support for atheros ath79 based SOCs in u-boot, at the present moment it's just available for ar933x chip. Changes since V1: 1. Move all SoC specific header files into arch/mips/include/asm/arch-ath79 2. Check SOC type and extract common code into arch/mips/mach-ath79 3.

[U-Boot] [PATCH v2 1/4] mips: add base support for atheros ath79 based SOCs

2015-12-21 Thread Wills Wang
This patch enable work for ar933x SOC, tested on ar9331 board. Signed-off-by: Wills Wang --- arch/mips/Makefile |1 + arch/mips/include/asm/arch-ath79/ar71xx_regs.h | 1143 arch/mips/include/asm/arch-ath79/ar933x_uart.h | 67 ++ arch/mi

[U-Boot] [PATCH v3 17/17] arm: socfpga: sr1500: Update qspiboot to use UBIFS

2015-12-21 Thread Chin Liang See
Update the qspiboot console command to use UBIFS instead of old jffs2 file system. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- include/configs/socfpga_sr1500.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-)

[U-Boot] [PATCH v3 16/17] arm: socfpga: sockit: Update qspiboot to use UBIFS

2015-12-21 Thread Chin Liang See
Update the qspiboot console command to use UBIFS instead of old jffs2 file system. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- include/configs/socfpga_sockit.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/incl

[U-Boot] [PATCH v3 14/17] arm: socfpga: cyclone5_socdk: Update qspiboot to use UBIFS

2015-12-21 Thread Chin Liang See
Update the qspiboot console command to use UBIFS instead of old jffs2 file system. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- include/configs/socfpga_cyclone5_socdk.h | 6 ++ 1 file changed, 2 insertions(+), 4 dele

[U-Boot] [PATCH v3 15/17] arm: socfpga: arria5_socdk: Update qspiboot to use UBIFS

2015-12-21 Thread Chin Liang See
Update the qspiboot console command to use UBIFS instead of old jffs2 file system. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- include/configs/socfpga_arria5_socdk.h | 6 ++ 1 file changed, 2 insertions(+), 4 deleti

[U-Boot] [PATCH v3 12/17] arm: socfpga: sockit: Enable qspiload console command

2015-12-21 Thread Chin Liang See
Enabling qspiload command which will load the kernel image and dtb from UBIFS within MTD partition labeled UBI. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- include/configs/socfpga_sockit.h | 1 + 1 file changed, 1 inser

[U-Boot] [PATCH v3 13/17] arm: socfpga: sr1500: Enable qspiload console command

2015-12-21 Thread Chin Liang See
Enabling qspiload command which will load the kernel image and dtb from UBIFS within MTD partition labeled UBI. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- include/configs/socfpga_sr1500.h | 1 + 1 file changed, 1 inser

[U-Boot] [PATCH v3 11/17] arm: socfpga: arria5_socdk: Enable qspiload console command

2015-12-21 Thread Chin Liang See
Enabling qspiload command which will load the kernel image and dtb from UBIFS within MTD partition labeled UBI. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- include/configs/socfpga_arria5_socdk.h | 1 + 1 file changed, 1

[U-Boot] [PATCH v3 08/17] arm: socfpga: sockit: Enable ubiload console command

2015-12-21 Thread Chin Liang See
Enabling ubiload command to load kernel image and device tree from mtd part labeled "UBI". ubiload command will search the file from directory /boot. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- include/configs/socfpga_s

[U-Boot] [PATCH v3 10/17] arm: socfpga: cyclone5_socdk: Enable qspiload console command

2015-12-21 Thread Chin Liang See
Enabling qspiload command which will load the kernel image and dtb from UBIFS within MTD partition labeled UBI. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- include/configs/socfpga_cyclone5_socdk.h | 1 + 1 file changed,

[U-Boot] [PATCH v3 09/17] arm: socfpga: sr1500: Enable ubiload console command

2015-12-21 Thread Chin Liang See
Enabling ubiload command to load kernel image and device tree from mtd part labeled "UBI". ubiload command will search the file from directory /boot. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- include/configs/socfpga_s

[U-Boot] [PATCH v3 07/17] arm: socfpga: arria5_socdk: Enable ubiload console command

2015-12-21 Thread Chin Liang See
Enabling ubiload command to load kernel image and device tree from mtd part labeled "UBI". ubiload command will search the file from directory /boot. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- include/configs/socfpga_a

[U-Boot] [PATCH v3 04/17] arm: socfpga: sockit: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS

2015-12-21 Thread Chin Liang See
Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI and UBIFS support on serial NOR flash Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- configs/socfpga_sockit_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/con

[U-Boot] [PATCH v3 06/17] arm: socfpga: cyclone5_socdk: Enable ubiload console command

2015-12-21 Thread Chin Liang See
Enabling ubiload command to load kernel image and device tree from mtd part labeled "UBI". ubiload command will search the file from directory /boot. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- include/configs/socfpga_c

[U-Boot] [PATCH v3 05/17] arm: socfpga: sr1500: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS

2015-12-21 Thread Chin Liang See
Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI and UBIFS support on serial NOR flash Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- configs/socfpga_sr1500_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/con

[U-Boot] [PATCH v3 02/17] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS

2015-12-21 Thread Chin Liang See
Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI and UBIFS support on serial NOR flash Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- configs/socfpga_cyclone5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/c

[U-Boot] [PATCH v3 03/17] arm: socfpga: arria5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS

2015-12-21 Thread Chin Liang See
Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI and UBIFS support on serial NOR flash Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- configs/socfpga_arria5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/con

[U-Boot] [PATCH v3 01/17] arm: socfpga: Enable ubi and ubifs support

2015-12-21 Thread Chin Liang See
When QSPI and NAND is enabled, the ubi and ubifs support will be enabled too. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- Changes for v2 - move CONFIG_SPI_FLASH_USE_4K_SECTORS to Kconfig --- include/configs/socfpga_comm

Re: [U-Boot] [PATCH] arm: socfpga: Fix emac1 doesn't work on socdk board

2015-12-21 Thread Chin Liang See
On Tue, 2015-12-22 at 15:22 +0800, shengjiangwu wrote: > Updated pinmux group MIXED1IO[0-13] for RGMII1. > Updated EMAC1 clock. > > Signed-off-by: shengjiangwu > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Dinh Nguyen > Cc: Pavel Machek > Cc: Marek Vasut > Cc: Stefan Roese > --- > board/alt

Re: [U-Boot] Driver model test breakages

2015-12-21 Thread Bin Meng
Hi Joe, On Tue, Dec 22, 2015 at 12:50 PM, Bin Meng wrote: > On Tue, Dec 22, 2015 at 12:04 PM, Bin Meng wrote: >> Hi Joe, >> >> On Tue, Dec 22, 2015 at 11:08 AM, Joe Hershberger >> wrote: >>> Hi Bin, >>> >>> On Mon, Dec 21, 2015 at 9:00 PM, Bin Meng wrote: Hi Joe, On Tue, Dec 22,

[U-Boot] [PATCH 2/2] dm: eth: Stick to 'ethact' when 'ethrotate' is 'no' in eth_init()

2015-12-21 Thread Bin Meng
When 'ethrotate' variable is set to 'no' and 'ethact' variable is already set to an ethernet device, we should stick to 'ethact'. Signed-off-by: Bin Meng --- net/eth.c | 24 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/net/eth.c b/net/eth.c index 6c490

[U-Boot] [PATCH 1/2] dm: eth: Test 'ethrotate' before changing current ethernet device

2015-12-21 Thread Bin Meng
In eth_current_changed(), the call to eth_get_dev() below has a side effect of rotating ethernet device if uc_priv->current == NULL. This is not what we want when 'ethrotate' variable is 'no'. Signed-off-by: Bin Meng --- net/eth.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a

Re: [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS

2015-12-21 Thread Chin Liang See
On Tue, 2015-12-22 at 07:07 +0100, Stefan Roese wrote: > On 22.12.2015 03:09, Marek Vasut wrote: > > On Tuesday, December 22, 2015 at 02:55:05 AM, Chin Liang See wrote: > > > On Tue, 2015-12-22 at 02:15 +0100, Marek Vasut wrote: > > > > On Tuesday, December 22, 2015 at 01:59:46 AM, Chin Liang See >

Re: [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS

2015-12-21 Thread Stefan Roese
On 22.12.2015 03:09, Marek Vasut wrote: On Tuesday, December 22, 2015 at 02:55:05 AM, Chin Liang See wrote: On Tue, 2015-12-22 at 02:15 +0100, Marek Vasut wrote: On Tuesday, December 22, 2015 at 01:59:46 AM, Chin Liang See wrote: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI and UBIFS suppo

Re: [U-Boot] Driver model test breakages

2015-12-21 Thread Bin Meng
On Tue, Dec 22, 2015 at 12:04 PM, Bin Meng wrote: > Hi Joe, > > On Tue, Dec 22, 2015 at 11:08 AM, Joe Hershberger > wrote: >> Hi Bin, >> >> On Mon, Dec 21, 2015 at 9:00 PM, Bin Meng wrote: >>> Hi Joe, >>> >>> On Tue, Dec 22, 2015 at 10:39 AM, Joe Hershberger >>> wrote: On Mon, Dec 21, 2015

Re: [U-Boot] [RFC] board_f: generalize code for case of no relocation

2015-12-21 Thread Simon Glass
Hi Aexey, On 15 December 2015 at 03:06, Alexey Brodkin wrote: > Current implementation of disabled relocation only works for EFI. > > In case of GD_FLG_SKIP_RELOC jump_to_copy() will return instead of > jumping further in board_init_r() etc. And jump_to_copy() being the last > call in init_sequen

Re: [U-Boot] [RFC PATCH 1/2] common: Add new clk command

2015-12-21 Thread Simon Glass
Hi Michal, On 22 January 2014 at 04:02, Michal Simek wrote: > Command provides just dump subcommand for showing clock > frequencies in a soc. > > Signed-off-by: Michal Simek > --- > > README | 1 + > common/Makefile | 1 + > common/cmd_clk.c | 51 >

Re: [U-Boot] [PATCH 1/2] arm: imx6: Add DDR3 calibration code for MX6 Q/D/DL

2015-12-21 Thread Tim Harvey
On Sun, Dec 20, 2015 at 11:31 AM, Eric Nelson wrote: > Hi Marek, > > I'd recommend passing parameters of mx6_ddr_sysinfo (input) and > mx6_mmdc_calibration (output) to this routine. > I don't know that this would make sense. The mx6_ddr_sysinfo shouldn't be affected by calibration and the mx6_mm

Re: [U-Boot] Driver model test breakages

2015-12-21 Thread Bin Meng
Hi Joe, On Tue, Dec 22, 2015 at 11:08 AM, Joe Hershberger wrote: > Hi Bin, > > On Mon, Dec 21, 2015 at 9:00 PM, Bin Meng wrote: >> Hi Joe, >> >> On Tue, Dec 22, 2015 at 10:39 AM, Joe Hershberger >> wrote: >>> On Mon, Dec 21, 2015 at 8:36 PM, Bin Meng wrote: Hi Joe, On Tue, Dec 2

[U-Boot] [PATCH 2/2] arm: socfpga: Enable simple bus in SPL on all boards

2015-12-21 Thread Marek Vasut
The simple bus support must be enabled in SPL, otherwise the boards will not be able to parse the DT and will fail to boot. Signed-off-by: Marek Vasut Cc: Dinh Nguyen --- configs/socfpga_arria5_defconfig | 1 + configs/socfpga_cyclone5_defconfig | 1 + 2 files changed, 2 insertions(+) diff -

[U-Boot] [PATCH 1/2] arm: socfpga: Make /soc available in pre-reloc

2015-12-21 Thread Marek Vasut
This node must be available before relocation, otherwise the board will not find mmc and will thus not boot. Signed-off-by: Marek Vasut Cc: Dinh Nguyen --- arch/arm/dts/socfpga_cyclone5_socdk.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/socfpga_cyclone5_socdk.dts b/

Re: [U-Boot] Driver model test breakages

2015-12-21 Thread Joe Hershberger
Hi Bin and Simon, On Mon, Dec 21, 2015 at 9:08 PM, Joe Hershberger wrote: > Hi Bin, > > On Mon, Dec 21, 2015 at 9:00 PM, Bin Meng wrote: >> Hi Joe, >> >> On Tue, Dec 22, 2015 at 10:39 AM, Joe Hershberger >> wrote: >>> On Mon, Dec 21, 2015 at 8:36 PM, Bin Meng wrote: Hi Joe, On T

Re: [U-Boot] Driver model test breakages

2015-12-21 Thread Joe Hershberger
Hi Bin, On Mon, Dec 21, 2015 at 9:00 PM, Bin Meng wrote: > Hi Joe, > > On Tue, Dec 22, 2015 at 10:39 AM, Joe Hershberger > wrote: >> On Mon, Dec 21, 2015 at 8:36 PM, Bin Meng wrote: >>> Hi Joe, >>> >>> On Tue, Dec 22, 2015 at 10:32 AM, Joe Hershberger >>> wrote: Hi Bin, On Mon,

Re: [U-Boot] Driver model test breakages

2015-12-21 Thread Bin Meng
Hi Joe, On Tue, Dec 22, 2015 at 10:39 AM, Joe Hershberger wrote: > On Mon, Dec 21, 2015 at 8:36 PM, Bin Meng wrote: >> Hi Joe, >> >> On Tue, Dec 22, 2015 at 10:32 AM, Joe Hershberger >> wrote: >>> Hi Bin, >>> >>> On Mon, Dec 21, 2015 at 8:12 PM, Bin Meng wrote: Hi Joe, Simon, On

Re: [U-Boot] Driver model test breakages

2015-12-21 Thread Joe Hershberger
Hi Bin, On Mon, Dec 21, 2015 at 8:36 PM, Bin Meng wrote: > Hi Joe, > > On Tue, Dec 22, 2015 at 10:32 AM, Joe Hershberger > wrote: >> Hi Bin, >> >> On Mon, Dec 21, 2015 at 8:12 PM, Bin Meng wrote: >>> Hi Joe, Simon, >>> >>> On Tue, Dec 22, 2015 at 6:46 AM, Joe Hershberger >>> wrote: Hi Sim

Re: [U-Boot] Driver model test breakages

2015-12-21 Thread Joe Hershberger
On Mon, Dec 21, 2015 at 8:36 PM, Bin Meng wrote: > Hi Joe, > > On Tue, Dec 22, 2015 at 10:32 AM, Joe Hershberger > wrote: >> Hi Bin, >> >> On Mon, Dec 21, 2015 at 8:12 PM, Bin Meng wrote: >>> Hi Joe, Simon, >>> >>> On Tue, Dec 22, 2015 at 6:46 AM, Joe Hershberger >>> wrote: Hi Simon and Bi

Re: [U-Boot] Driver model test breakages

2015-12-21 Thread Bin Meng
Hi Joe, On Tue, Dec 22, 2015 at 10:32 AM, Joe Hershberger wrote: > Hi Bin, > > On Mon, Dec 21, 2015 at 8:12 PM, Bin Meng wrote: >> Hi Joe, Simon, >> >> On Tue, Dec 22, 2015 at 6:46 AM, Joe Hershberger >> wrote: >>> Hi Simon and Bin >>> >>> On Thu, Dec 10, 2015 at 8:05 PM, Simon Glass wrote: >>

Re: [U-Boot] Driver model test breakages

2015-12-21 Thread Joe Hershberger
Hi Bin, On Mon, Dec 21, 2015 at 8:12 PM, Bin Meng wrote: > Hi Joe, Simon, > > On Tue, Dec 22, 2015 at 6:46 AM, Joe Hershberger > wrote: >> Hi Simon and Bin >> >> On Thu, Dec 10, 2015 at 8:05 PM, Simon Glass wrote: >>> Hi, >>> >>> The following three commits causes breakages in the driver model

Re: [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS

2015-12-21 Thread Chin Liang See
On Tue, 2015-12-22 at 03:09 +0100, Marek Vasut wrote: > On Tuesday, December 22, 2015 at 02:55:05 AM, Chin Liang See wrote: > > On Tue, 2015-12-22 at 02:15 +0100, Marek Vasut wrote: > > > On Tuesday, December 22, 2015 at 01:59:46 AM, Chin Liang See > > > wrote: > > > > Undefine CONFIG_SPI_FLASH_USE

Re: [U-Boot] Driver model test breakages

2015-12-21 Thread Bin Meng
Hi Joe, Simon, On Tue, Dec 22, 2015 at 6:46 AM, Joe Hershberger wrote: > Hi Simon and Bin > > On Thu, Dec 10, 2015 at 8:05 PM, Simon Glass wrote: >> Hi, >> >> The following three commits causes breakages in the driver model tests: >> >> 4efad20a sf: Update status reg check in spi_flash_cmd_

Re: [U-Boot] [PATCH] net: gem: Build warning fixes for 64-bit

2015-12-21 Thread Joe Hershberger
Hi Michal, On Fri, Oct 30, 2015 at 10:00 AM, Michal Simek wrote: > Cast pointers to unsigned long instead of a sized 32-bit type to avoid > pointer to integer cast size mismatch warnings. > > Signed-off-by: Michal Simek Looks like some other form of this patch is already applied. Please verify

Re: [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS

2015-12-21 Thread Marek Vasut
On Tuesday, December 22, 2015 at 02:55:05 AM, Chin Liang See wrote: > On Tue, 2015-12-22 at 02:15 +0100, Marek Vasut wrote: > > On Tuesday, December 22, 2015 at 01:59:46 AM, Chin Liang See wrote: > > > Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI > > > and UBIFS support on serial NOR flash > >

[U-Boot] [ANN] U-Boot v2016.01-rc3 released

2015-12-21 Thread Tom Rini
Hey all, I've pushed v2016.01-rc3 out and it should be everywhere soon. So, with this I think I've got everything in that I should have picked up already and have now merged. At this point I'm going to ask that things be either a bug fix (not saying it has to be critical, but it has to fix somet

Re: [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS

2015-12-21 Thread Chin Liang See
On Tue, 2015-12-22 at 02:15 +0100, Marek Vasut wrote: > On Tuesday, December 22, 2015 at 01:59:46 AM, Chin Liang See wrote: > > Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI > > and UBIFS support on serial NOR flash > > > > Signed-off-by: Chin Liang See > > Cc: Dinh Nguyen > > Cc: Dinh Nguyen

Re: [U-Boot] [PATCH V2] arm: novena: Switch novena to config_distro_bootcmd

2015-12-21 Thread Marek Vasut
On Monday, December 14, 2015 at 12:24:33 PM, Stefano Babic wrote: > Hi Vagrant, > > On 13/12/2015 00:16, Vagrant Cascadian wrote: > > On 2015-11-24, Marek Vasut wrote: > >> From: Vagrant Cascadian > >> > >> Switch Novena to distro bootcmd > > > > Anything remaining on this? Can we hope to see

Re: [U-Boot] [PATCH] arm: novena: Fix EEPROM i2c configuration

2015-12-21 Thread Marek Vasut
On Wednesday, November 25, 2015 at 12:36:44 AM, Marek Vasut wrote: > On Novena, the DRAM SPD is connected to i2c1 while the Utility EEPROM > is connected to i2c3. Now that the EEPROM handling in U-Boot is fixed, > also fix this bit on Novena. > > Signed-off-by: Marek Vasut > Cc: Sean Cross > Cc:

Re: [U-Boot] [PATCH 1/2] arm: imx6: Add DDR3 calibration code for MX6 Q/D/DL

2015-12-21 Thread Marek Vasut
On Sunday, December 20, 2015 at 08:31:46 PM, Eric Nelson wrote: > Hi Marek, > > On 12/16/2015 07:40 AM, Marek Vasut wrote: > > Add DDR3 calibration code for i.MX6Q, i.MX6D and i.MX6DL. This code > > fine-tunes the behavior of the MMDC controller in order to improve > > the signal integrity and mem

Re: [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS

2015-12-21 Thread Marek Vasut
On Tuesday, December 22, 2015 at 01:59:46 AM, Chin Liang See wrote: > Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI > and UBIFS support on serial NOR flash > > Signed-off-by: Chin Liang See > Cc: Dinh Nguyen > Cc: Dinh Nguyen > Cc: Pavel Machek > Cc: Marek Vasut > Cc: Stefan Roese > --- >

Re: [U-Boot] [PATCH v2 1/5] arm: socfpga: Enable ubi and ubifs support

2015-12-21 Thread Marek Vasut
On Tuesday, December 22, 2015 at 01:59:45 AM, Chin Liang See wrote: > When QSPI and NAND is enabled, the ubi and ubifs support > will be enabled too. > > Signed-off-by: Chin Liang See > Cc: Dinh Nguyen > Cc: Dinh Nguyen > Cc: Pavel Machek > Cc: Marek Vasut > Cc: Stefan Roese > --- > Changes

Re: [U-Boot] [PATCH 2/2] arm: imx6: Enable DDR calibration on Novena

2015-12-21 Thread Marek Vasut
On Sunday, December 20, 2015 at 08:33:58 PM, Eric Nelson wrote: > Hi Marek, > > On 12/16/2015 07:40 AM, Marek Vasut wrote: > > Enable the DDR calibration functionality on Novena to deal with the > > memory SoDIMM on this board. > > Shouldn't this be in two patches? Not really, the old values wor

[U-Boot] [PATCH v2 4/5] arm: socfpga: cyclone5_socdk: Enable qspiload console command

2015-12-21 Thread Chin Liang See
Enabling qspiload command which will load the kernel image and dtb from UBIFS within MTD partition labeled UBI. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- Changes for v2 - use && instead ; for qspiload --- include/conf

[U-Boot] [PATCH v2 5/5] arm: socfpga: cyclone5_socdk: Update qspiboot to use UBIFS

2015-12-21 Thread Chin Liang See
Update the qspiboot console command to use UBIFS instead of old jffs2 file system. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- Changes for v2 - part of series --- include/configs/socfpga_cyclone5_socdk.h | 6 ++ 1 f

[U-Boot] [PATCH v2 3/5] arm: socfpga: cyclone5_socdk: Enable ubiload console command

2015-12-21 Thread Chin Liang See
Enabling ubiload command to load kernel image and device tree from mtd part labeled "UBI". ubiload command will search the file from directory /boot. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- Changes for v2 - use && in

[U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS

2015-12-21 Thread Chin Liang See
Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI and UBIFS support on serial NOR flash Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- Changes for v2 - move CONFIG_SPI_FLASH_USE_4K_SECTORS to Kconfig --- configs/socfpga_cyc

[U-Boot] [PATCH v2 1/5] arm: socfpga: Enable ubi and ubifs support

2015-12-21 Thread Chin Liang See
When QSPI and NAND is enabled, the ubi and ubifs support will be enabled too. Signed-off-by: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- Changes for v2 - move CONFIG_SPI_FLASH_USE_4K_SECTORS to Kconfig --- include/configs/socfpga_comm

Re: [U-Boot] [PATCH] arm: socfpga: cyclone5_socdk: Update qspiboot to use UBIFS

2015-12-21 Thread Chin Liang See
On Tue, 2015-12-22 at 08:32 +0800, Chin Liang See wrote: > On Tue, 2015-12-22 at 00:14 +0100, Marek Vasut wrote: > > On Monday, December 21, 2015 at 05:08:17 PM, Chin Liang See wrote: > > > Update the qspiboot console command to use UBIFS instead > > > of old jffs2 file system. > > > > > > Signed-

Re: [U-Boot] [PATCH] arm: socfpga: cyclone5_socdk: Update qspiboot to use UBIFS

2015-12-21 Thread Marek Vasut
On Tuesday, December 22, 2015 at 01:32:26 AM, Chin Liang See wrote: > On Tue, 2015-12-22 at 00:14 +0100, Marek Vasut wrote: > > On Monday, December 21, 2015 at 05:08:17 PM, Chin Liang See wrote: > > > Update the qspiboot console command to use UBIFS instead > > > of old jffs2 file system. > > > >

Re: [U-Boot] [PATCH] arm: socfpga: cyclone5_socdk: Update qspiboot to use UBIFS

2015-12-21 Thread Chin Liang See
On Tue, 2015-12-22 at 00:14 +0100, Marek Vasut wrote: > On Monday, December 21, 2015 at 05:08:17 PM, Chin Liang See wrote: > > Update the qspiboot console command to use UBIFS instead > > of old jffs2 file system. > > > > Signed-off-by: Chin Liang See > > Cc: Dinh Nguyen > > Cc: Dinh Nguyen > >

Re: [U-Boot] [PATCH] arm: socfpga: cyclone5_socdk: Enable qspiload console command

2015-12-21 Thread Marek Vasut
On Tuesday, December 22, 2015 at 01:23:14 AM, Chin Liang See wrote: > On Tue, 2015-12-22 at 00:13 +0100, Marek Vasut wrote: > > On Monday, December 21, 2015 at 04:50:17 PM, Chin Liang See wrote: > > > Enabling qspiload command which will load the kernel > > > image and dtb from UBIFS within MTD par

Re: [U-Boot] [PATCH v2] usb: dwc2: avoid out of bounds access

2015-12-21 Thread Marek Vasut
On Tuesday, December 22, 2015 at 01:21:48 AM, Stefan Brüns wrote: > flush_dcache_range may access data after priv->aligned_buffer end if > len > DWC2_DATA_BUF_SIZE. > memcpy may access data after buffer end if done > 0 > > Signed-off-by: Stefan Brüns > Acked-by: Marek Vasut > Acked-by: Stephen W

Re: [U-Boot] [PATCH v4 2/2] usb: musb: Fix hub port setting for SPLIT transactions

2015-12-21 Thread Marek Vasut
On Tuesday, December 22, 2015 at 01:21:04 AM, Stefan Brüns wrote: > The ifdef'ed Linux kernel code uses the 1 based port number, whereas U-Boot > puts a 0 based port number into the register. The reason the 0 based port > number apparently works can probably be taken from the USB 2.0 spec: > > 8.4

Re: [U-Boot] [PATCH v2] usb: Alloc buffer for USB descriptor dynamically

2015-12-21 Thread Marek Vasut
On Tuesday, December 22, 2015 at 01:18:13 AM, Stefan Brüns wrote: > The configuration descriptor includes all interface, endpoint and > auxiliary descriptors (e.g. report, union) so 512 bytes may not be enough. > > Signed-off-by: Stefan Brüns > Reviewed-by: Marek Vasut > Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH] arm: socfpga: cyclone5_socdk: Enable qspiload console command

2015-12-21 Thread Chin Liang See
On Tue, 2015-12-22 at 00:13 +0100, Marek Vasut wrote: > On Monday, December 21, 2015 at 04:50:17 PM, Chin Liang See wrote: > > Enabling qspiload command which will load the kernel > > image and dtb from UBIFS within MTD partition labeled > > UBI. > > > > Signed-off-by: Chin Liang See > > Cc: Dinh

[U-Boot] [PATCH v2] usb: dwc2: avoid out of bounds access

2015-12-21 Thread Stefan Brüns
flush_dcache_range may access data after priv->aligned_buffer end if len > DWC2_DATA_BUF_SIZE. memcpy may access data after buffer end if done > 0 Signed-off-by: Stefan Brüns Acked-by: Marek Vasut Acked-by: Stephen Warren --- v2: Added Acked-by: ... drivers/usb/host/dwc2.c | 7 --- 1 file

Re: [U-Boot] [PATCH] arm: socfpga: Enable ubiload console command

2015-12-21 Thread Chin Liang See
On Tue, 2015-12-22 at 00:13 +0100, Marek Vasut wrote: > On Monday, December 21, 2015 at 04:36:14 PM, Chin Liang See wrote: > > Enabling ubiload command to load kernel image and > > device tree from mtd part labeled "UBI". ubiload > > command will search the file from folder /boot. > > ... director

[U-Boot] [PATCH v4 2/2] usb: musb: Fix hub port setting for SPLIT transactions

2015-12-21 Thread Stefan Brüns
The ifdef'ed Linux kernel code uses the 1 based port number, whereas U-Boot puts a 0 based port number into the register. The reason the 0 based port number apparently works can probably be taken from the USB 2.0 spec: 8.4.2.2 Start-Split Transaction Token ... The host must correctly set the port

[U-Boot] [PATCH v4 1/2] usb: Move determination of TT hub address/port into separate function

2015-12-21 Thread Stefan Brüns
Start split and complete split tokens need the hub address and the downstream port of the first HS hub (device view). The core of the function was duplicated in both host/ehci_hcd and musb-new/usb-compat.h. Signed-off-by: Stefan Brüns Reviewed-by: Marek Vasut Reviewed-by: Hans de Goede Tested-

Re: [U-Boot] [PATCH] arm: socfpga: Enable ubi and ubifs support

2015-12-21 Thread Chin Liang See
On Tue, 2015-12-22 at 00:12 +0100, Marek Vasut wrote: > On Monday, December 21, 2015 at 04:22:07 PM, Chin Liang See wrote: > > When QSPI and NAND is enabled, the ubi and ubifs support > > will be enabled too. > > > > Signed-off-by: Chin Liang See > > Cc: Dinh Nguyen > > Cc: Dinh Nguyen > > Cc:

[U-Boot] [PATCH v2] usb: Alloc buffer for USB descriptor dynamically

2015-12-21 Thread Stefan Brüns
The configuration descriptor includes all interface, endpoint and auxiliary descriptors (e.g. report, union) so 512 bytes may not be enough. Signed-off-by: Stefan Brüns Reviewed-by: Marek Vasut Reviewed-by: Simon Glass --- v2: add missing free() in error path common/usb.c | 42 ++

Re: [U-Boot] [PATCH] arm: socfpga: cyclone5_socdk: Enable qspiload console command

2015-12-21 Thread Marek Vasut
On Monday, December 21, 2015 at 04:50:17 PM, Chin Liang See wrote: > Enabling qspiload command which will load the kernel > image and dtb from UBIFS within MTD partition labeled > UBI. > > Signed-off-by: Chin Liang See > Cc: Dinh Nguyen > Cc: Dinh Nguyen > Cc: Pavel Machek > Cc: Marek Vasut >

Re: [U-Boot] [PATCH] arm: socfpga: Enable ubiload console command

2015-12-21 Thread Marek Vasut
On Monday, December 21, 2015 at 04:36:14 PM, Chin Liang See wrote: > Enabling ubiload command to load kernel image and > device tree from mtd part labeled "UBI". ubiload > command will search the file from folder /boot. ... directory ... this is not windows. > Signed-off-by: Chin Liang See > Cc:

Re: [U-Boot] [PATCH v2] arm: socfpga: Enabling MTD default partitions

2015-12-21 Thread Marek Vasut
On Monday, December 21, 2015 at 04:01:51 PM, Chin Liang See wrote: > Enabling MTD default partitions if its not defined in board > configuration file. The layout as below > device nor0 , # parts = 6 ff705000.spi.0 (the dot is missing). I can fix it while applying though. > #: name

Re: [U-Boot] [PATCH] arm: socfpga: cyclone5_socdk: Update qspiboot to use UBIFS

2015-12-21 Thread Marek Vasut
On Monday, December 21, 2015 at 05:08:17 PM, Chin Liang See wrote: > Update the qspiboot console command to use UBIFS instead > of old jffs2 file system. > > Signed-off-by: Chin Liang See > Cc: Dinh Nguyen > Cc: Dinh Nguyen > Cc: Pavel Machek > Cc: Marek Vasut > Cc: Stefan Roese > --- > inc

Re: [U-Boot] [PATCH] arm: socfpga: Enable ubi and ubifs support

2015-12-21 Thread Marek Vasut
On Monday, December 21, 2015 at 04:22:07 PM, Chin Liang See wrote: > When QSPI and NAND is enabled, the ubi and ubifs support > will be enabled too. > > Signed-off-by: Chin Liang See > Cc: Dinh Nguyen > Cc: Dinh Nguyen > Cc: Pavel Machek > Cc: Marek Vasut > Cc: Stefan Roese > --- > include/

Re: [U-Boot] [PATCH 2/2 v2] usb: musb: Fix hub port number for SPLIT transactions

2015-12-21 Thread Marek Vasut
On Tuesday, December 22, 2015 at 12:02:44 AM, Stefan Bruens wrote: > On Monday 21 December 2015 21:27:01 Marek Vasut wrote: > > On Monday, December 21, 2015 at 08:33:31 PM, Hans de Goede wrote: > > > This patch needs to be re-spun to apply on top of the compile fixed > > > [patch 1/2] of this set.

[U-Boot] [PATCH v2 5/8] drivers/pci/pci_mvebu: Fix for boards with X4 lanes

2015-12-21 Thread Phil Sutter
Armada XP has support for X4 lanes, boards specify this in their serdes_cfg. During PEX init in high_speed_env_lib.c, the configuration is stored in GEN_PURP_RES_2_REG. When enumerating PEX, subsequent interfaces of an X4 lane must be skipped. Otherwise the enumeration hangs up the board. The way

[U-Boot] [PATCH v2 0/8] Add support for Synology DS414 and some related fixes

2015-12-21 Thread Phil Sutter
This is version 2 of my patch series to support Synology DS414 NAS after rebasing it onto mvebu-dm-spl-2015-12-14 branch of u-boot-a38x.git. Due to this, some things became unnecessary or could be solved differently. In addition to that, static env settings have been added. In detail: * Dropped pa

[U-Boot] [PATCH v2 1/8] drivers/pci: Fix for debug builds without CONFIG_PCI_ENUM_ONLY

2015-12-21 Thread Phil Sutter
The debug printing references bar_res, which exists only if CONFIG_PCI_ENUM_ONLY is not defined. Therefore move it into the ifdef'd area. Signed-off-by: Phil Sutter --- drivers/pci/pci_auto_old.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pci_auto_old.c b/dri

[U-Boot] [PATCH v2 7/8] mvebu: Support Synology DS414

2015-12-21 Thread Phil Sutter
This adds support for the MV78230 based DS414 NAS by Synology. The relevant bits have been extracted from the 'synogpl-5004-armadaxp' package Synology kindly published, garnished with a fair amount of trial-and-error. Sadly, support is far from perfect. The major parts I have failed in are SATA an

[U-Boot] [PATCH v2 4/8] axp: Fix debugging support in DDR3 write leveling

2015-12-21 Thread Phil Sutter
If MV_DEBUG_WL is defined, DEBUG_WL_S and DEBUG_WL_D macros are missing. In addition to that, get rid of debug output printing non-existent counter variable. Signed-off-by: Phil Sutter --- drivers/ddr/marvell/axp/ddr3_write_leveling.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) di

[U-Boot] [PATCH v2 3/8] README: Review the u-boot porting guide list

2015-12-21 Thread Phil Sutter
* There is no boards.cfg anymore, so drop (1). * Creating flash.c and u-boot.lds seems not mandatory as well. * Adjusting the enumerators for the above implicitly fixed for double items numbered (3). Signed-off-by: Phil Sutter --- README | 11 --- 1 file changed, 4 insertions(+), 7 del

[U-Boot] [PATCH v2 8/8] common: Implement Synology specific command set

2015-12-21 Thread Phil Sutter
Synology keeps per item configuration in a dedicated 'partition' in SPI flash, namely the one named 'vendor' in DTS file. It contains the two NICs MAC addresses as well as the item's serial number. I didn't find a way to have this information extracted automatically, therefore implemented 'syno pop

[U-Boot] [PATCH v2 2/8] mvebu: Fix for non-DM ehci-marvell support

2015-12-21 Thread Phil Sutter
This mimics the relevant code in mach-kirkwood headers. The *_winctrl_calcsize functions are identical, as well as the MVCPU_WIN_* macros. Implementing shared headers/code between mvebu and kirkwood is left for someone with a better knowledge of how u-boot is organized internally. Signed-off-by: P

[U-Boot] [PATCH v2 6/8] mvebu: Add rudimental MV78320 support

2015-12-21 Thread Phil Sutter
Signed-off-by: Phil Sutter --- arch/arm/mach-mvebu/cpu.c | 16 +++- arch/arm/mach-mvebu/include/mach/soc.h | 1 + arch/arm/mach-mvebu/serdes/axp/high_speed_env_lib.c | 6 +- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/ar

Re: [U-Boot] [PATCH] net: Fix delay in net_retry test

2015-12-21 Thread Stefan Bruens
Hi Joe, On Monday 21 December 2015 16:50:52 Joe Hershberger wrote: > Hi Stefan, > > On Mon, Dec 21, 2015 at 4:31 PM, Joe Hershberger wrote: > > Introduced in 45b4773 (net/arp: account for ARP delay, avoid duplicate > > packets on timeout) > > > > Check the arp timeout and adjust the timeout st

Re: [U-Boot] [U-boot] Pull arc changes

2015-12-21 Thread Tom Rini
On Mon, Dec 21, 2015 at 08:40:09PM +, Alexey Brodkin wrote: > Hi Tom, > > The following changes since commit 3721208fa7fdb2af6ac13300d5d81433742c6ba1: > > x86: Remove Graeme Russ from the git alias file (2015-12-21 09:37:46 -0500) > > are available in the git repository at: > > git://g

Re: [U-Boot] Please pull u-boot-sunxi master

2015-12-21 Thread Tom Rini
On Mon, Dec 21, 2015 at 09:39:56PM +0100, Hans de Goede wrote: > Hi Tom, > > Here is another sunxi pull-req for v2016.01, the most > important thing in this pull-req is a patch to > select DM_KEYBOARD in Kconfig, which fixes usb-kbd > support which was broken for sunxi since the keyboard > driver

Re: [U-Boot] [PATCH 2/2 v2] usb: musb: Fix hub port number for SPLIT transactions

2015-12-21 Thread Stefan Bruens
On Monday 21 December 2015 21:27:01 Marek Vasut wrote: > On Monday, December 21, 2015 at 08:33:31 PM, Hans de Goede wrote: > > This patch needs to be re-spun to apply on top of the compile fixed [patch > > 1/2] of this set. With that done this patch is: > > > > Reviewed-by: Hans de Goede > > Test

Re: [U-Boot] Driver model test breakages

2015-12-21 Thread Simon Glass
Hi Joe, On 21 December 2015 at 15:17, Joe Hershberger wrote: > On Mon, Dec 21, 2015 at 4:14 PM, Joe Hershberger > wrote: 45b47734 net/arp: account for ARP delay, avoid duplicate packets on timeout >>> >>> This is still broken - Joe do you have any ideas? The release is coming >>>

Re: [U-Boot] [PATCH] net: Fix delay in net_retry test

2015-12-21 Thread Joe Hershberger
Hi Stefan, On Mon, Dec 21, 2015 at 4:31 PM, Joe Hershberger wrote: > Introduced in 45b4773 (net/arp: account for ARP delay, avoid duplicate > packets on timeout) > > Check the arp timeout and adjust the timeout start time before the call > to eth_recv() so that the sandbox driver has the opportu

Re: [U-Boot] Driver model test breakages

2015-12-21 Thread Joe Hershberger
Hi Simon and Bin On Thu, Dec 10, 2015 at 8:05 PM, Simon Glass wrote: > Hi, > > The following three commits causes breakages in the driver model tests: > > 4efad20a sf: Update status reg check in spi_flash_cmd_wait_ready > 45b47734 net/arp: account for ARP delay, avoid duplicate packets o

[U-Boot] [PATCH] net: Fix delay in net_retry test

2015-12-21 Thread Joe Hershberger
Introduced in 45b4773 (net/arp: account for ARP delay, avoid duplicate packets on timeout) Check the arp timeout and adjust the timeout start time before the call to eth_recv() so that the sandbox driver has the opportunity to adjust the sandbox timer after the new start time has been recorded.

Re: [U-Boot] Driver model test breakages

2015-12-21 Thread Joe Hershberger
Hi Simon and Thomas, On Mon, Dec 21, 2015 at 4:17 PM, Joe Hershberger wrote: > On Mon, Dec 21, 2015 at 4:14 PM, Joe Hershberger > wrote: 45b47734 net/arp: account for ARP delay, avoid duplicate packets on timeout >>> >>> This is still broken - Joe do you have any ideas? The releas

Re: [U-Boot] [PATCH] axs103: add support of generic OHCI USB 1.1 controller

2015-12-21 Thread Marek Vasut
On Monday, December 21, 2015 at 09:34:08 PM, Alexey Brodkin wrote: > Hi, > > On Thu, 2015-12-17 at 16:08 +0100, Marek Vasut wrote: > > On Thursday, December 17, 2015 at 02:32:26 PM, Alexey Brodkin wrote: > > > Hi Marek, > > > > > > On Thu, 2015-12-17 at 05:01 +0100, Marek Vasut wrote: > > > > On

Re: [U-Boot] Driver model test breakages

2015-12-21 Thread Joe Hershberger
On Mon, Dec 21, 2015 at 4:14 PM, Joe Hershberger wrote: >>> 45b47734 net/arp: account for ARP delay, avoid duplicate packets on >>> timeout >> >> This is still broken - Joe do you have any ideas? The release is coming >> soonish. > > This was the first commit that caused the timeout to not g

Re: [U-Boot] Driver model test breakages

2015-12-21 Thread Joe Hershberger
>> 45b47734 net/arp: account for ARP delay, avoid duplicate packets on >> timeout > > This is still broken - Joe do you have any ideas? The release is coming > soonish. This was the first commit that caused the timeout to not get skipped, however it would time out and proceed. What caused t

  1   2   >