Re: [U-Boot] [PATCHv3 4/4] igep00x0: UBIize

2016-01-10 Thread Heiko Schocher
Hello Ladislav, Am 11.01.2016 um 00:18 schrieb Ladislav Michl: This patch converts IGEP board to use UBI volumes for environment, u-boot, kernel... With exception of first four sectors read by SoC boot ROM whole NAND is UBI managed. Code is too big, so I dropped CONFIG_SPL_EXT_SUPPORT to make it

Re: [U-Boot] [PATCHv3 3/4] spl: Lightweight UBI and UBI fastmap support

2016-01-10 Thread Heiko Schocher
Hello Ladislav, Am 11.01.2016 um 00:17 schrieb Ladislav Michl: From: Thomas Gleixner Booting a payload out of NAND FLASH from the SPL is a crux today, as it requires hard partioned FLASH. Not a brilliant idea with the reliability of todays NAND FLASH chips. The upstream UBI + UBI fastmap impl

Re: [U-Boot] [PATCHv2 0/3] spl: Lightweight UBI and UBI fastmap support

2016-01-10 Thread Heiko Schocher
Hello Ladislav Michl, Am 10.01.2016 um 15:00 schrieb Ladislav Michl: Dear Heiko Schocher, On Thu, Jan 07, 2016 at 11:47:27AM +0100, Heiko Schocher wrote: [...] Just seen at my automated builds [1], that your patches break the smartweb build [2] ... reason is that "git am" for them fail with cu

Re: [U-Boot] [PATCH] ARM: Disable "DISCARD" for secure section if CONFIG_ARMV7_SECURE_BASE isn't defined

2016-01-10 Thread Dongsheng Wang
Hi Tom, Sorry for my late reply, and thanks for your reply. How about the following comments, following your suggestion I remove some redundant comments? If my understanding is wrong, please correct me, thanks: #if defined(CONFIG_ARMV7_SECURE_BASE) && defined(CONFIG_ARMV7_NONSEC) /*

Re: [U-Boot] [PATCH 0/8] arm: ls1021atwr: Convert to driver model and enable serial support

2016-01-10 Thread Bin Meng
Hi Simon, On Thu, Jan 7, 2016 at 5:22 PM, Bin Meng wrote: > Hi Alison, > > On Thu, Jan 7, 2016 at 2:19 PM, Huan Wang wrote: >> Hi, Bin, >> >>> On Thu, Jan 7, 2016 at 2:01 PM, Huan Wang wrote: >>> > Hi, Bin, >>> > >>> >> On Wed, Jan 6, 2016 at 1:31 PM, Huan Wang wrote: >>> >> > Hi, >>> >> > >>>

Re: [U-Boot] [PATCH 7/8] serial: lpuart: Add driver model serial support

2016-01-10 Thread Bin Meng
Hi Simon, On Wed, Jan 6, 2016 at 8:25 AM, Simon Glass wrote: > Hi Bin, > > On 31 December 2015 at 01:53, Bin Meng wrote: >> This adds driver model support to lpuart serial driver. >> >> Signed-off-by: Bin Meng >> --- >> >> doc/driver-model/serial-howto.txt | 1 - >> drivers/serial/serial_lpu

Re: [U-Boot] [PATCH 1/8] fdt: Fix up stdout correctly in fdt_fixup_stdout()

2016-01-10 Thread Bin Meng
Hi Simon, On Fri, Jan 8, 2016 at 11:34 AM, Simon Glass wrote: > Hi Bin, > > On 31 December 2015 at 01:53, Bin Meng wrote: >> When CONFIG_OF_STDOUT_VIA_ALIAS is on, always fix up kernel's stdout >> string with hardcoded CONFIG_CONS_INDEX. >> >> This actually reverts commit 3e303f748cf57fb23e8ec95

[U-Boot] [Patch V4 4/4] dm: env_sf: fix saveenv() to use driver model

2016-01-10 Thread Gong Qianyu
From: Gong Qianyu It might be missed when converting spi_flash_probe() in cmd_sf.c. This commit refers to fbb099183e3a53f77a975964cdf2e73d11e565af. Signed-off-by: Gong Qianyu --- V4: - Use CONFIG_ENV_* instead of CONFIG_SF_*. - Remove the variables and call the macros directly. - Use set_de

[U-Boot] [Patch V3 3/3] armv8/ls1043aqds: add QSPI boot support

2016-01-10 Thread Gong Qianyu
Enable the U-Boot Driver Model(DM) to use the Freescale QSPI driver. Signed-off-by: Gong Qianyu --- V3: - No change. V2: - Fix blank line issues. arch/arm/include/asm/arch-fsl-layerscape/cpu.h | 2 ++ board/freescale/ls1043aqds/MAINTAINERS | 1 + board/freescale/ls1043aqds/README

[U-Boot] [Patch V3 2/3] armv8/ls1043aqds: add QSPI support in SD boot

2016-01-10 Thread Gong Qianyu
From: Gong Qianyu QSPI and IFC are pin-multiplexed on LS1043A. So we use ls1043aqds_sdcard_ifc_defconfig to support IFC in SD boot and ls1043aqds_sdcard_qspi_defconfig to support QSPI in SD boot. Signed-off-by: Gong Qianyu --- V3: - Remove the fixup for IFC. V2: - Modified rcw file to change

[U-Boot] [Patch V3 0/3] LS1043AQDS SPI related patches

2016-01-10 Thread Gong Qianyu
Hi all, The version 3 patchset fixes to: - remove fdt fixup for IFC when booting with QSPI. Also note that to work well on LS1043AQDS board, this patchset depends on the QSPI bug fixing patchset and QIXIS related patchset that I have already sent out and are still under review. [Patch V3 1/3] ar

[U-Boot] [Patch V3 1/3] armv8/ls1043aqds: add DSPI support

2016-01-10 Thread Gong Qianyu
From: Gong Qianyu Enable three DSPI flash memories on board. Commands: => sf probe 1:0 SF: Detected N25Q128A with page size 256 Bytes, erase size 64 KiB, total 16 MiB => sf probe 1:1 SF: Detected SST25WF040B with page size 256 Bytes,

[U-Boot] [Patch V4 3/4] spi: fsl_qspi: Fix qspi_op_rdsr memcpy issue

2016-01-10 Thread Gong Qianyu
From: Gong Qianyu In current driver, we always copy 4 bytes to the dest memory. Actually the dest memory may be shorter than 4 bytes. Add an argument to indicate the dest memory length. Avoid writing memory outside of the bounds. Signed-off-by: Gong Qianyu --- V3-V4: - No change. V2: - New pa

[U-Boot] [Patch V4 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-10 Thread Gong Qianyu
From: Gong Qianyu In current driver everytime we memcpy 4 bytes to the dest memory regardless of the remaining length. This patch adds checking the remaining length before memcpy. If the length is shorter than 4 bytes, memcpy the actual length of data to the dest memory. Signed-off-by: Gong Qian

[U-Boot] [Patch V4 1/4] spi: fsl_qspi: fix compile warning for 64-bit platform

2016-01-10 Thread Gong Qianyu
From: Gong Qianyu This patch fixes the following compile warning: drivers/spi/fsl_qspi.c: In function 'fsl_qspi_probe': drivers/spi/fsl_qspi.c:937:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] priv->regs = (struct

Re: [U-Boot] [Patch V3 4/4] dm: env_sf: fix saveenv() to use driver model

2016-01-10 Thread Qianyu Gong
> -Original Message- > From: Jagan Teki [mailto:jt...@openedev.com] > Sent: Saturday, January 09, 2016 1:07 AM > To: Qianyu Gong > Cc: u-boot@lists.denx.de; Gong Qianyu ; Yao Yuan > ; Mingkai Hu > Subject: Re: [U-Boot] [Patch V3 4/4] dm: env_sf: fix saveenv() to use driver > model > >

[U-Boot] [PATCHv3 4/4] igep00x0: UBIize

2016-01-10 Thread Ladislav Michl
This patch converts IGEP board to use UBI volumes for environment, u-boot, kernel... With exception of first four sectors read by SoC boot ROM whole NAND is UBI managed. Code is too big, so I dropped CONFIG_SPL_EXT_SUPPORT to make it fit. It is meant more likely as a test of Thomas' patch, so more

[U-Boot] [PATCHv3 3/4] spl: Lightweight UBI and UBI fastmap support

2016-01-10 Thread Ladislav Michl
From: Thomas Gleixner Booting a payload out of NAND FLASH from the SPL is a crux today, as it requires hard partioned FLASH. Not a brilliant idea with the reliability of todays NAND FLASH chips. The upstream UBI + UBI fastmap implementation which is about to brought to u-boot is too heavy weight

[U-Boot] [PATCHv3 2/4] nand_spl_simple: Add a simple NAND read function

2016-01-10 Thread Ladislav Michl
From: Thomas Gleixner To support UBI in SPL we need a simple NAND read function. Add one to nand_spl_simple and keep it as simple as it goes. Signed-off-by: Thomas Gleixner Signed-off-by: Ladislav Michl Acked-by: Scott Wood --- Changes in v3: - Rename nand_spl_read_flash to nand_spl_read_blo

[U-Boot] [PATCHv3 1/4] mtd: Sort subsystem directories aplhabeticaly in Makefile

2016-01-10 Thread Ladislav Michl
Signed-off-by: Ladislav Michl --- drivers/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile index c9031f2..9c5c6c0 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -18,14 +18,14 @@ obj-$(CONFIG_SYS_MVEBU_DDR_A38X) += ddr/ma

[U-Boot] [PATCHv3 0/4] spl: Lightweight UBI and UBI fastmap support

2016-01-10 Thread Ladislav Michl
This is yet another update of Thomas's patchset: https://patchwork.ozlabs.org/patch/367305/ https://patchwork.ozlabs.org/patch/367306/ First patch is just sorting Makefile mtd entries aplhabeticaly and can be applied any time, fourth is an example how to make it work with a real board and leaves s

Re: [U-Boot] [PATCH 4/6] arm: socfpga: arria10: don't build GEN5 sdram for arria10

2016-01-10 Thread Marek Vasut
On Friday, January 08, 2016 at 04:51:21 PM, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > The Arria10 device will not be able to re-use the GEN5 SDRAM controller, > so we shouldn't build the driver. Move CONFIG_ALTERA_SDRAM to Kconfig > option in drivers/ddr/altera/Kconfig. > >

Re: [U-Boot] [PATCH 6/6] arm: socfpga: arria10: remove board_init and s_init

2016-01-10 Thread Marek Vasut
On Friday, January 08, 2016 at 04:51:23 PM, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > These functions are already in arch/arm/mach-socfpga/board.c > > Signed-off-by: Dinh Nguyen Applied to u-boot-socfpga/02-arria10 , thanks! Best regards, Marek Vasut _

Re: [U-Boot] [PATCH 0/6] arm: socfpga: arria10: more a10 enablement

2016-01-10 Thread Marek Vasut
On Friday, January 08, 2016 at 04:51:17 PM, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Hi, > > This is another round of patches for the Arria10 device. There are still > some build failures that related to the clocking, FPGA manager, and bridge > support. > > Thanks, I only

Re: [U-Boot] [PATCH 5/6] arm: socfpga: arria10 fpga does not have bridges mapped

2016-01-10 Thread Marek Vasut
On Friday, January 08, 2016 at 04:51:22 PM, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > On the Arria10 device, the bridges are not mapped through the interconnect. > > Signed-off-by: Dinh Nguyen Applied to u-boot-socfpga/02-arria10 , thanks! Best regards, Marek Vasut __

Re: [U-Boot] [PATCH 3/6] arm: socfpga: arria10: update dwmac reset function to support Arria10

2016-01-10 Thread Marek Vasut
On Friday, January 08, 2016 at 04:51:20 PM, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > On the Arria10, the EMAC phy mode configuration for each EMACs is located > in separate registers versus being in 1 register for the GEN5 devices. The > Arria10 also has 3 EMACs compared to

Re: [U-Boot] [PATCH 2/6] arm: socfpga: add reset manager defines for Arria10

2016-01-10 Thread Marek Vasut
On Friday, January 08, 2016 at 04:51:19 PM, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Add the Arria10 reset manager defines that is used in Linux. Change the > license to SPDX. See point 4 of this: http://www.denx.de/wiki/view/U-Boot/Patches#Attributing_Code_Copyrights_Sign

Re: [U-Boot] [PATCH 1/6] arm: socfpga: wrap system manager functions for A5/C5 devices

2016-01-10 Thread Marek Vasut
On Friday, January 08, 2016 at 04:51:18 PM, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > The system manager on Arria10 is not used for pin muxing duties, so wrap > these functions for GEN5 devices only. > > Signed-off-by: Dinh Nguyen Applied to u-boot-socfpga/02-arria10 Best

[U-Boot] [PATCH v2 4/9] MIPS: sync I/O related header files with linux-4.4

2016-01-10 Thread Daniel Schwierzeck
Mainly sync asm/io.h to get a working ioremap() implementation as well as the full set of I/O accessors. Pull in additional header files to make this work. Furthermore port over the directory 'arch/mips/include/asm/mach-generic/' with contains default definitions for I/O and memory spaces and defa

Re: [U-Boot] Are non-default configurations expected to work? Re: usb: dwc2: does not compile in 2016-rc3 when updating from -rc1.

2016-01-10 Thread Marek Vasut
On Sunday, January 10, 2016 at 09:11:46 PM, Tom Rini wrote: > On Sun, Jan 10, 2016 at 08:40:06PM +0100, Marek Vasut wrote: > > On Sunday, January 10, 2016 at 08:28:24 PM, Tom Rini wrote: > > > On Sun, Jan 10, 2016 at 08:18:39PM +0100, Marek Vasut wrote: > > > > On Sunday, January 10, 2016 at 08:16:

Re: [U-Boot] Are non-default configurations expected to work? Re: usb: dwc2: does not compile in 2016-rc3 when updating from -rc1.

2016-01-10 Thread Tom Rini
On Sun, Jan 10, 2016 at 08:40:06PM +0100, Marek Vasut wrote: > On Sunday, January 10, 2016 at 08:28:24 PM, Tom Rini wrote: > > On Sun, Jan 10, 2016 at 08:18:39PM +0100, Marek Vasut wrote: > > > On Sunday, January 10, 2016 at 08:16:55 PM, Tom Rini wrote: > > > > On Sun, Jan 10, 2016 at 08:06:59PM +0

Re: [U-Boot] Are non-default configurations expected to work? Re: usb: dwc2: does not compile in 2016-rc3 when updating from -rc1.

2016-01-10 Thread Marek Vasut
On Sunday, January 10, 2016 at 08:28:24 PM, Tom Rini wrote: > On Sun, Jan 10, 2016 at 08:18:39PM +0100, Marek Vasut wrote: > > On Sunday, January 10, 2016 at 08:16:55 PM, Tom Rini wrote: > > > On Sun, Jan 10, 2016 at 08:06:59PM +0100, Marek Vasut wrote: > > > > On Sunday, January 10, 2016 at 08:04:

Re: [U-Boot] Are non-default configurations expected to work? Re: usb: dwc2: does not compile in 2016-rc3 when updating from -rc1.

2016-01-10 Thread Tom Rini
On Sun, Jan 10, 2016 at 08:18:39PM +0100, Marek Vasut wrote: > On Sunday, January 10, 2016 at 08:16:55 PM, Tom Rini wrote: > > On Sun, Jan 10, 2016 at 08:06:59PM +0100, Marek Vasut wrote: > > > On Sunday, January 10, 2016 at 08:04:06 PM, Tom Rini wrote: > > > > On Sun, Jan 10, 2016 at 07:39:29PM +0

Re: [U-Boot] Are non-default configurations expected to work? Re: usb: dwc2: does not compile in 2016-rc3 when updating from -rc1.

2016-01-10 Thread Marek Vasut
On Sunday, January 10, 2016 at 08:16:55 PM, Tom Rini wrote: > On Sun, Jan 10, 2016 at 08:06:59PM +0100, Marek Vasut wrote: > > On Sunday, January 10, 2016 at 08:04:06 PM, Tom Rini wrote: > > > On Sun, Jan 10, 2016 at 07:39:29PM +0100, Pavel Machek wrote: > > > > > > > Pristine u-boot 2016.01-rc4 co

Re: [U-Boot] Are non-default configurations expected to work? Re: usb: dwc2: does not compile in 2016-rc3 when updating from -rc1.

2016-01-10 Thread Tom Rini
On Sun, Jan 10, 2016 at 08:06:59PM +0100, Marek Vasut wrote: > On Sunday, January 10, 2016 at 08:04:06 PM, Tom Rini wrote: > > On Sun, Jan 10, 2016 at 07:39:29PM +0100, Pavel Machek wrote: > > > > > > Pristine u-boot 2016.01-rc4 compiles fine for CV SoCDK. Can you > > > > > > please test mainline _

Re: [U-Boot] Are non-default configurations expected to work? Re: usb: dwc2: does not compile in 2016-rc3 when updating from -rc1.

2016-01-10 Thread Marek Vasut
On Sunday, January 10, 2016 at 08:04:06 PM, Tom Rini wrote: > On Sun, Jan 10, 2016 at 07:39:29PM +0100, Pavel Machek wrote: > > > > > Pristine u-boot 2016.01-rc4 compiles fine for CV SoCDK. Can you > > > > > please test mainline _before_ reporting issues ? > > > > > > > > Can you please test mainl

Re: [U-Boot] Are non-default configurations expected to work? Re: usb: dwc2: does not compile in 2016-rc3 when updating from -rc1.

2016-01-10 Thread Tom Rini
On Sun, Jan 10, 2016 at 07:39:29PM +0100, Pavel Machek wrote: > > > > Pristine u-boot 2016.01-rc4 compiles fine for CV SoCDK. Can you please > > > > test mainline _before_ reporting issues ? > > > > > > Can you please test mainline before complaining? > > > > Yes I _did_ test mainline AND booted

Re: [U-Boot] Are non-default configurations expected to work? Re: usb: dwc2: does not compile in 2016-rc3 when updating from -rc1.

2016-01-10 Thread Marek Vasut
On Sunday, January 10, 2016 at 07:39:29 PM, Pavel Machek wrote: > > > > Pristine u-boot 2016.01-rc4 compiles fine for CV SoCDK. Can you > > > > please test mainline _before_ reporting issues ? > > > > > > Can you please test mainline before complaining? > > > > Yes I _did_ test mainline AND boote

[U-Boot] Are non-default configurations expected to work? Re: usb: dwc2: does not compile in 2016-rc3 when updating from -rc1.

2016-01-10 Thread Pavel Machek
> > > Pristine u-boot 2016.01-rc4 compiles fine for CV SoCDK. Can you please > > > test mainline _before_ reporting issues ? > > > > Can you please test mainline before complaining? > > Yes I _did_ test mainline AND booted it on the actual board. The USB does work > (if you disable dcache, which

Re: [U-Boot] usb: dwc2: does not compile in 2016-rc3 when updating from -rc1.

2016-01-10 Thread Marek Vasut
On Sunday, January 10, 2016 at 06:50:21 PM, Pavel Machek wrote: > On Sun 2016-01-10 14:45:54, Marek Vasut wrote: > > On Sunday, January 10, 2016 at 01:04:17 PM, Pavel Machek wrote: > > > On Sun 2016-01-10 12:56:15, Pavel Machek wrote: > > > > Hi! > > > > > > > > After updating from 2016-rc1, I get

Re: [U-Boot] usb: dwc2: does not compile in 2016-rc3 when updating from -rc1.

2016-01-10 Thread Pavel Machek
On Sun 2016-01-10 14:45:54, Marek Vasut wrote: > On Sunday, January 10, 2016 at 01:04:17 PM, Pavel Machek wrote: > > On Sun 2016-01-10 12:56:15, Pavel Machek wrote: > > > Hi! > > > > > > After updating from 2016-rc1, I get this compile error: > > > CC common/main.o > > > drivers/usb/host/

Re: [U-Boot] usb: dwc2: does not compile in 2016-rc3 when updating from -rc1.

2016-01-10 Thread Marek Vasut
On Sunday, January 10, 2016 at 01:04:17 PM, Pavel Machek wrote: > On Sun 2016-01-10 12:56:15, Pavel Machek wrote: > > Hi! > > > > After updating from 2016-rc1, I get this compile error: > > CC common/main.o > > drivers/usb/host/dwc2.c: In function 'usb_lowlevel_init': > > drivers/usb/ho

Re: [U-Boot] [PATCHv2 0/3] spl: Lightweight UBI and UBI fastmap support

2016-01-10 Thread Ladislav Michl
Dear Heiko Schocher, On Thu, Jan 07, 2016 at 11:47:27AM +0100, Heiko Schocher wrote: [...] > Just seen at my automated builds [1], that your patches break the > smartweb build [2] ... reason is that "git am" for them fail with > current u-boot ... search for "2016-01-07 10:43:30,943" in [2] > > W

Re: [U-Boot] usb: dwc2: does not compile in 2016-rc3 when updating from -rc1.

2016-01-10 Thread Pavel Machek
On Sun 2016-01-10 12:56:15, Pavel Machek wrote: > Hi! > > After updating from 2016-rc1, I get this compile error: > > CC common/main.o > drivers/usb/host/dwc2.c: In function 'usb_lowlevel_init': > drivers/usb/host/dwc2.c:1028:40: error: 'CONFIG_USB_DWC2_REG_ADDR' > undeclared (first

[U-Boot] usb: dwc2: does not compile in 2016-rc3 when updating from -rc1.

2016-01-10 Thread Pavel Machek
Hi! After updating from 2016-rc1, I get this compile error: CC common/main.o drivers/usb/host/dwc2.c: In function 'usb_lowlevel_init': drivers/usb/host/dwc2.c:1028:40: error: 'CONFIG_USB_DWC2_REG_ADDR' undeclared (first use in this function) priv->regs = (struct dwc2_core_regs *)

Re: [U-Boot] [PULL] Please pull u-boot-imx

2016-01-10 Thread Stefano Babic
Hi Fabio, Otavio, On 09/01/2016 20:15, Fabio Estevam wrote: > Hi Stefano, > > On Fri, Jan 8, 2016 at 1:08 PM, Stefano Babic wrote: >> Hi Tom, >> >> just a few fixes for release. Pleas epull from u-boot-imx, thanks ! > > There are some more fixes that would be good to have for 2016.01: > https:/