[U-Boot] [PATCH v5] armv8: lx2160aqds : Add support for LX2160AQDS platform

2018-11-16 Thread Pankaj Bansal
LX2160AQDS is a development board that supports LX2160A family SoCs. This patch add base support for this board. Signed-off-by: Wasim Khan Signed-off-by: Sriram Dash Signed-off-by: Pankaj Bansal --- Notes: This patch depends on following patches: [1]

Re: [U-Boot] [PATCH v2 3/4] hwspinlock: add stm32 hardware spinlock support

2018-11-16 Thread Patrice CHOTARD
Hi Benjamin On 11/14/18 10:01 AM, Benjamin Gaignard wrote: > Implement hardware spinlock support for STM32MP1. > > Signed-off-by: Benjamin Gaignard > --- > version 2: > - remove useless include > - add a private structure to store base address > - be more verbose in configuration flag

Re: [U-Boot] [PATCH v2 4/4] pinctrl: stm32: make pinctrl use hwspinlock

2018-11-16 Thread Patrice CHOTARD
Hi Benjamin On 11/14/18 10:01 AM, Benjamin Gaignard wrote: > From: Benjamin Gaignard > > Protect configuration registers with a hardware spinlock. > > If a hwspinlock is defined in the device-tree node used it > to be sure that none of the others processors on the SoC could > change the

Re: [U-Boot] [PATCH v2 2/4] clk: stm32: add hardware spinlock clock

2018-11-16 Thread Patrice CHOTARD
Hi Benjamin On 11/14/18 10:01 AM, Benjamin Gaignard wrote: > From: Benjamin Gaignard > > Add hardware spinlock in the list of the clocks. > > Signed-off-by: Benjamin Gaignard > --- > drivers/clk/clk_stm32mp1.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git

Re: [U-Boot] [PATCH v2 1/2] mtd/spi: Add JEDEC SFDP support in SPI framework

2018-11-16 Thread Simon Goldschmidt
On Fri, Nov 16, 2018 at 11:19 AM Vignesh R wrote: > > > > On 16/11/18 3:10 PM, Rajat Srivastava wrote: > >> Hi Rajat, > >> > >> On 13/11/18 5:30 PM, Rajat Srivastava wrote: > >>> Add support for JESD216 rev B standard JEDEC Serial Flash Discoverable > >>> Parameters (SFDP) tables to dynamically

Re: [U-Boot] [Uboot-stm32] [PATCH v2 1/4] dm: Add Hardware Spinlock class

2018-11-16 Thread Patrice CHOTARD
Hi Benjamin On 11/14/18 10:01 AM, Benjamin Gaignard wrote: > From: Benjamin Gaignard > > This is uclass for Hardware Spinlocks. > It implements two mandatory operations: lock and unlock > and one optional relax operation. > > Signed-off-by: Benjamin Gaignard > --- > version 2: > - use

Re: [U-Boot] [PATCH v2 1/2] mtd/spi: Add JEDEC SFDP support in SPI framework

2018-11-16 Thread Rajat Srivastava
> -Original Message- > From: Vignesh R > Sent: Thursday, November 15, 2018 2:52 PM > To: Rajat Srivastava ; u-boot@lists.denx.de > Cc: ja...@openedev.com > Subject: Re: [U-Boot] [PATCH v2 1/2] mtd/spi: Add JEDEC SFDP support in SPI > framework > > Hi Rajat, > > On 13/11/18 5:30 PM,

[U-Boot] [PATCH v3 1/4] dm: Add Hardware Spinlock class

2018-11-16 Thread Benjamin Gaignard
From: Benjamin Gaignard This is uclass for Hardware Spinlocks. It implements two mandatory operations: lock and unlock and one optional relax operation. Signed-off-by: Benjamin Gaignard Reviewed-by: Simon Glass Reviewed-by: Patrice Chotard --- arch/sandbox/dts/test.dts | 4 +

[U-Boot] [PATCH v3 3/4] hwspinlock: add stm32 hardware spinlock support

2018-11-16 Thread Benjamin Gaignard
Implement hardware spinlock support for STM32MP1. Signed-off-by: Benjamin Gaignard Reviewed-by: Simon Glass Reviewed-by: Patrice Chotard --- arch/arm/dts/stm32mp157c-ed1.dts | 4 ++ arch/arm/dts/stm32mp157c.dtsi | 9 configs/stm32mp15_basic_defconfig | 2 +

Re: [U-Boot] environment reliability after "env default -f -a"

2018-11-16 Thread Wolfgang Denk
Dear Sam, In message you wrote: > > My question is: do we rely on environment to be the same after doing > "env default -f -a", comparing to environment after reboot? If so, > should I provide some sort of env callback to run corresponding > routines on "env default" event (like [1])? We

Re: [U-Boot] Please pull u-boot-dm

2018-11-16 Thread Tom Rini
On Thu, Nov 15, 2018 at 08:32:30AM -0800, Simon Glass wrote: > Hi Tom, > > The following changes since commit 208ecbad2ea8e8f3c9933213867addf16f4a: > > Merge branch 'next' (2018-11-14 11:30:07 -0500) > > are available in the Git repository at: > > git://git.denx.de/u-boot-dm.git

Re: [U-Boot] Please pull u-boot-dm

2018-11-16 Thread Tom Rini
On Thu, Nov 15, 2018 at 06:05:05PM -0800, Simon Glass wrote: > Hi Tom, > > On 11 October 2018 at 07:10, Tom Rini wrote: > > On Tue, Oct 09, 2018 at 06:24:13PM -0600, Simon Glass wrote: > > > >> Hi Tom, > >> > >> Here is my attempt at a signed pull request. I've brought in most of the > >>

Re: [U-Boot] [PATCH v2 1/2] mtd/spi: Add JEDEC SFDP support in SPI framework

2018-11-16 Thread Vignesh R
On 16/11/18 3:10 PM, Rajat Srivastava wrote: >> Hi Rajat, >> >> On 13/11/18 5:30 PM, Rajat Srivastava wrote: >>> Add support for JESD216 rev B standard JEDEC Serial Flash Discoverable >>> Parameters (SFDP) tables to dynamically initialize flash size, page >>> size and address width of the flash.

[U-Boot] [PATCH v3 0/4] Add Hardware Spinlock class

2018-11-16 Thread Benjamin Gaignard
version 3: - use dev_get_parent - add Review-by version 2: - use -ETIMEDOUT and -ENOSYS for errors cases - do not test if ops is valid - remove useless include - add a private structure to store base address - be more verbose in configuration flag description and commit message - log the error

Re: [U-Boot] [PATCH v2 1/2] mtd/spi: Add JEDEC SFDP support in SPI framework

2018-11-16 Thread Jagan Teki
On 16/11/18 3:50 PM, Vignesh R wrote: On 16/11/18 3:10 PM, Rajat Srivastava wrote: Hi Rajat, On 13/11/18 5:30 PM, Rajat Srivastava wrote: Add support for JESD216 rev B standard JEDEC Serial Flash Discoverable Parameters (SFDP) tables to dynamically initialize flash size, page size and

[U-Boot] [PATCH v3 2/4] clk: stm32: add hardware spinlock clock

2018-11-16 Thread Benjamin Gaignard
From: Benjamin Gaignard Add hardware spinlock in the list of the clocks. Signed-off-by: Benjamin Gaignard Reviewed-by: Simon Glass Reviewed-by: Patrice Chotard --- drivers/clk/clk_stm32mp1.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/clk_stm32mp1.c

[U-Boot] [PATCH v3 4/4] pinctrl: stm32: make pinctrl use hwspinlock

2018-11-16 Thread Benjamin Gaignard
From: Benjamin Gaignard Protect configuration registers with a hardware spinlock. If a hwspinlock is defined in the device-tree node used it to be sure that none of the others processors on the SoC could change the configuration at the same time. Signed-off-by: Benjamin Gaignard Reviewed-by:

Re: [U-Boot] [PATCH] usb: Introduce CONFIG_SPL_DM_USB

2018-11-16 Thread Sven Schwermer
Hi again, > Did you have a chance to run it through travis CI to see if it builds on > all and every platform ? This was a really good tip. I discovered a bunch of problems and will basically replace CONFIG_DM_USB in the entire driver/usb directory. I’ll prepare split patches. Sven

Re: [U-Boot] [PATCH] usb: Introduce CONFIG_SPL_DM_USB

2018-11-16 Thread Marek Vasut
On 11/16/2018 01:46 PM, Sven Schwermer wrote: > Hi again, > >> Did you have a chance to run it through travis CI to see if it builds on >> all and every platform ? > > This was a really good tip. I discovered a bunch of problems and will > basically replace CONFIG_DM_USB in the entire

Re: [U-Boot] [PATCH v2 1/2] mtd/spi: Add JEDEC SFDP support in SPI framework

2018-11-16 Thread Rajat Srivastava
> -Original Message- > From: Simon Goldschmidt > Sent: Friday, November 16, 2018 3:53 PM > To: vigne...@ti.com > Cc: Rajat Srivastava ; U-Boot Mailing List b...@lists.denx.de>; Jagan Teki > Subject: Re: [U-Boot] [PATCH v2 1/2] mtd/spi: Add JEDEC SFDP support in SPI > framework > > On

[U-Boot] [PATCH] rpi: add URL of official revision code list

2018-11-16 Thread Jonathan Gray
Replace various third party lists of Raspberry Pi revision codes in a comment with the list on raspberrypi.org. Signed-off-by: Jonathan Gray --- board/raspberrypi/rpi/rpi.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/board/raspberrypi/rpi/rpi.c

[U-Boot] [PATCH] rpi: add 3 Model A+

2018-11-16 Thread Jonathan Gray
Add Raspberry Pi 3 Model A+ to list of models, the revision code is 0xE according to the list on raspberrypi.org. Signed-off-by: Jonathan Gray --- board/raspberrypi/rpi/rpi.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index

Re: [U-Boot] [PATCH v2 1/2] mtd/spi: Add JEDEC SFDP support in SPI framework

2018-11-16 Thread Simon Goldschmidt
On Fri, Nov 16, 2018 at 1:59 PM Rajat Srivastava wrote: > > > > > -Original Message- > > From: Simon Goldschmidt > > Sent: Friday, November 16, 2018 3:53 PM > > To: vigne...@ti.com > > Cc: Rajat Srivastava ; U-Boot Mailing List > b...@lists.denx.de>; Jagan Teki > > Subject: Re:

[U-Boot] [RFC][PATCH V0 1/7] mtd: add get/set of_node/flash_node helpers

2018-11-16 Thread Philippe Reynes
From: Brian Norris We are going to begin using the mtd->dev.of_node field for MTD device nodes, so let's add helpers for it. Also, we'll be making some conversions on spi_nor (and nand_chip eventually) too, so get that ready with their own helpers. Signed-off-by: Brian Norris Reviewed-by:

[U-Boot] [RFC][PATCH v0 2/7] mtd: nand: import nand_hw_control_init()

2018-11-16 Thread Philippe Reynes
From: Marc Gonzalez The code to initialize a struct nand_hw_control is duplicated across several drivers. Factorize it using an inline function. Signed-off-by: Marc Gonzalez Signed-off-by: Boris Brezillon [Linux commit: d45bc58dd3bdcaabc1d7d8d9b0b8dee826635cc6] [Philippe Reynes: adapt code to

[U-Boot] [RTC][PATCH V0 0/7] Initial support of driver brcmnand (from kernel 4.18)

2018-11-16 Thread Philippe Reynes
This serie is a RFC to port the support of driver brcmnand from kernel 4.18 to u-boot. I've tried to stay as close as possible to the kernel. In this first port, I haven't ported the support of DMA, it's not mandatory in the first step and it could be added later. This code has been tested on

[U-Boot] [RFC][PATCH V0 7/7] drivers: nand: brcmnand: add an option to read the write-protect from device tree

2018-11-16 Thread Philippe Reynes
The option write-protect may only change on the kernel command line, we add a property in the device tree to be more flexible. Signed-off-by: Philippe Reynes --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[U-Boot] [RFC][PATCH V0 4/7] arm: asm: io.h: define readX_relaxed and writeX_relaxed

2018-11-16 Thread Philippe Reynes
Signed-off-by: Philippe Reynes --- arch/arm/include/asm/io.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index 5df7472..ab6bc59 100644 --- a/arch/arm/include/asm/io.h +++ b/arch/arm/include/asm/io.h @@ -123,6 +123,21

[U-Boot] [RFC][PATCH V0 6/7] drivers: nand: brcmnand: add parameter parameter-page-big-endian

2018-11-16 Thread Philippe Reynes
The parameter page isn't always in big endian, so we add an option to choose the endiannes of the parameter page. Signed-off-by: Philippe Reynes --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

[U-Boot] [RFC][PATCH V0 5/7] drivers: nand: brcmnand: add initial support

2018-11-16 Thread Philippe Reynes
Signed-off-by: Philippe Reynes --- drivers/mtd/nand/raw/Kconfig| 19 + drivers/mtd/nand/raw/Makefile |1 + drivers/mtd/nand/raw/brcmnand/Makefile |6 + drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c| 124 +

[U-Boot] [RFC][PATCH v0 3/7] mtd: nand: provide several helpers to do common NAND operations

2018-11-16 Thread Philippe Reynes
From: Boris Brezillon This is part of the process of removing direct calls to ->cmdfunc() outside of the core in order to introduce a better interface to execute NAND operations. Here we provide several helpers and make use of them to remove all direct calls to ->cmdfunc(). This way, we can

[U-Boot] [PATCH v4 2/4] clk: stm32: add hardware spinlock clock

2018-11-16 Thread Benjamin Gaignard
From: Benjamin Gaignard Add hardware spinlock in the list of the clocks. Signed-off-by: Benjamin Gaignard Reviewed-by: Simon Glass Reviewed-by: Patrice Chotard --- drivers/clk/clk_stm32mp1.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/clk_stm32mp1.c

[U-Boot] [PATCH v4 0/4] Add Hardware Spinlock class

2018-11-16 Thread Benjamin Gaignard
version 4: - make timeout loop more robust version 3: - use dev_get_parent - add Review-by version 2: - use -ETIMEDOUT and -ENOSYS for errors cases - do not test if ops is valid - remove useless include - add a private structure to store base address - be more verbose in configuration flag

[U-Boot] [PATCH v4 1/4] dm: Add Hardware Spinlock class

2018-11-16 Thread Benjamin Gaignard
From: Benjamin Gaignard This is uclass for Hardware Spinlocks. It implements two mandatory operations: lock and unlock and one optional relax operation. Signed-off-by: Benjamin Gaignard Reviewed-by: Simon Glass Reviewed-by: Patrice Chotard --- version 4: - make timeout loop more robust

[U-Boot] [PATCH v4 4/4] pinctrl: stm32: make pinctrl use hwspinlock

2018-11-16 Thread Benjamin Gaignard
From: Benjamin Gaignard Protect configuration registers with a hardware spinlock. If a hwspinlock is defined in the device-tree node used it to be sure that none of the others processors on the SoC could change the configuration at the same time. Signed-off-by: Benjamin Gaignard Reviewed-by:

[U-Boot] [PATCH v4 3/4] hwspinlock: add stm32 hardware spinlock support

2018-11-16 Thread Benjamin Gaignard
Implement hardware spinlock support for STM32MP1. Signed-off-by: Benjamin Gaignard Reviewed-by: Simon Glass Reviewed-by: Patrice Chotard --- arch/arm/dts/stm32mp157c-ed1.dts | 4 ++ arch/arm/dts/stm32mp157c.dtsi | 9 configs/stm32mp15_basic_defconfig | 2 +

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

2018-11-16 Thread Peter Robinson
On Fri, Nov 16, 2018 at 1:06 AM Ricardo Salveti wrote: > > Hi Baruch, > > On Wed, Nov 14, 2018 at 5:07 AM Baruch Siach wrote: > > > > Hi Ricardo, > > > > On Tue, Nov 13, 2018 at 11:42:44AM -0200, Ricardo Salveti wrote: > > > On Thu, Sep 6, 2018 at 12:52 PM Fabio Estevam wrote: > > > > On Thu,

Re: [U-Boot] [PATCH v4 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-11-16 Thread Tom Rini
On Thu, Nov 15, 2018 at 11:59:34AM -0800, Simon Glass wrote: > Hi Ryder, > > On 13 November 2018 at 17:32, Ryder Lee wrote: > > On Tue, 2018-11-13 at 11:53 -0800, Simon Glass wrote: > >> Hi Ryder, > >> > >> On 6 November 2018 at 01:47, Ryder Lee wrote: > >> > This patch adds an extra operation

[U-Boot] [PATCH] sunxi: Update MAINTAINERS file for recent boards

2018-11-16 Thread Tom Rini
Add entries for the pine64-lts and pinebook configs. Cc: Vasily Khoruzhick Cc: Andre Przywara Signed-off-by: Tom Rini --- board/sunxi/MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS index 478e37285f12..9b6e0c4c21a2 100644

[U-Boot] [PATCH 1/4] mtd: Add a function to report when the MTD dev list has been updated

2018-11-16 Thread Boris Brezillon
We need to parse mtdparts/mtids again everytime a device has been added/removed from the MTD list, but there's currently no way to know when such an update has been done. Add an ->updated field to the idr struct that we set to true every time a device is added/removed and expose a function

[U-Boot] [PATCH 3/4] mtd: Delete partitions attached to the device when a device is deleted

2018-11-16 Thread Boris Brezillon
If we don't do that, partitions might still be exposed while the underlying device is gone. Fixes: 2a74930da57f ("mtd: mtdpart: implement proper partition handling") Signed-off-by: Boris Brezillon --- drivers/mtd/mtdcore.c | 1 + include/linux/mtd/mtd.h | 14 ++ 2 files changed,

[U-Boot] [PATCH 4/4] mtd: sf: Make sure we don't register the same device twice

2018-11-16 Thread Boris Brezillon
spi_flash_mtd_register() can be called several times and each time it will register the same mtd_info instance like if it was a new one. The MTD ID allocation gets crazy when that happens, so let's track the status of the sf_mtd_info object to avoid that. Fixes: 9fe6d8716e09 ("mtd, spi: Add MTD

[U-Boot] [PATCH 2/4] mtd: Parse mtdparts/mtdids again when the MTD list has been updated

2018-11-16 Thread Boris Brezillon
Updates to the MTD device list should trigger a new parsing of the mtdids/mtdparts vars even if those vars haven't changed. Fixes: 5db66b3aee6f ("cmd: mtd: add 'mtd' command") Signed-off-by: Boris Brezillon --- drivers/mtd/mtd_uboot.c | 18 +- 1 file changed, 17 insertions(+), 1

[U-Boot] [PATCH 1/2] sun8i_emac: add support for setting EMAC TX/RX delay

2018-11-16 Thread Alexander Weidinger
From: Icenowy Zheng Some boards have the EMAC TX/RX lanes wired with a different length with the clock lane, which can be workarounded by setting a TX/RX delay in the EMAC. This kind of delays are already defined in the newest device tree binding of dwmac-sun8i, which has already entered

Re: [U-Boot] [PATCH] serial: ns16550: add setconfig support

2018-11-16 Thread Simon Glass
Hi, On 16 November 2018 at 09:04, Simon Goldschmidt wrote: > > > Am Sa., 3. Nov. 2018, 08:56 hat Simon Goldschmidt > geschrieben: >> >> On 03.11.2018 07:08, Simon Glass wrote: >> > On 2 November 2018 at 14:28, Simon Goldschmidt >> > wrote: >> >> Add possibility to update the serial parity

[U-Boot] [PATCH v7 03/11] phy: Add a new driver for OMAP's USB2 PHYs

2018-11-16 Thread Jean-Jacques Hiblot
This drivers supports the USB2 PHY found on omap5 and dra7 SOCs. Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - omap-usb2-phy: Implement power_on and power_off callbacks

[U-Boot] [PATCH v7 01/11] syscon: dm: Add a new method to get a regmap from DTS

2018-11-16 Thread Jean-Jacques Hiblot
syscon_regmap_lookup_by_phandle() can be used to get the regmap of a syscon device from a reference in the DTS. It operates similarly to the linux version of the namesake function. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v7: - replace remaining if()

[U-Boot] efi_selftest_unicode_collation.c: build warning

2018-11-16 Thread Bin Meng
Hi, Build qemu-riscv32_defconfig with CONFIG_CMD_BOOTEFI_SELFTEST=y, the following build warnings were seen. In file included from lib/efi_selftest/efi_selftest_unicode_collation.c:10:0: lib/efi_selftest/efi_selftest_unicode_collation.c: In function 'test_stri_coll':

[U-Boot] [PATCH v7 00/11] [RESEND] Add support for DM_USB and DM_USB_DEV for TI's DRA7 EVMs and AM57 EVMs platforms.

2018-11-16 Thread Jean-Jacques Hiblot
Resending this series after rebasing on top of latest u-boot. This series applies on top of the series "[PATCH v3 0/7] Improvements for the dwc3_generic driver" Moving to DM_USB and DM_USB_DEV brings some benefits: - it is required to support DM_ETH and USB network adapters with the same

Re: [U-Boot] [PATCH] serial: ns16550: add setconfig support

2018-11-16 Thread Simon Goldschmidt
Am Sa., 3. Nov. 2018, 08:56 hat Simon Goldschmidt < simon.k.r.goldschm...@gmail.com> geschrieben: > On 03.11.2018 07:08, Simon Glass wrote: > > On 2 November 2018 at 14:28, Simon Goldschmidt > > wrote: > >> Add possibility to update the serial parity used. > >> > >> Signed-off-by: Simon

[U-Boot] [PATCH v7 07/11] dts: dra7x: make ocp2scp@4a080000 compatible with simple-bus

2018-11-16 Thread Jean-Jacques Hiblot
This is required when DM_USB is used, to bind the USB phys. Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - split dts changes in 2 commits: one for binding the children of

[U-Boot] [PATCH v7 08/11] configs: enable DM_USB and DM_USB_DEV for all DRA7 platforms

2018-11-16 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: - Fix build issue "multiple definition of `usb_gadget_handle_interrupts'" Changes in v6: - DRA7 configs: enable DM_USB and DM_USB_DEV. Use DWC3_GENERIC in place of DWC3_OF_SIMPLE. disable non DM USB options Changes in v5: None Changes in

Re: [U-Boot] [PATCH v5 05/18] arm: MediaTek: add basic support for MT7623 boards

2018-11-16 Thread Simon Glass
Hi Weijie, On 15 November 2018 at 23:08, Weijie Gao wrote: > On Thu, 2018-11-15 at 11:21 -0800, Simon Glass wrote: >> Hi, >> >> On 14 November 2018 at 18:07, Ryder Lee wrote: >> > From: Weijie Gao >> > >> > This adds a general board file based on MT7623 SoCs from MediaTek. >> > >> > As this

Re: [U-Boot] Please pull u-boot-dm

2018-11-16 Thread Simon Glass
Hi Tom, On 16 November 2018 at 05:45, Tom Rini wrote: > On Thu, Nov 15, 2018 at 06:05:05PM -0800, Simon Glass wrote: >> Hi Tom, >> >> On 11 October 2018 at 07:10, Tom Rini wrote: >> > On Tue, Oct 09, 2018 at 06:24:13PM -0600, Simon Glass wrote: >> > >> >> Hi Tom, >> >> >> >> Here is my attempt

[U-Boot] [PATCH v7 10/11] board: ti: dra7-evm: remove USB platform code

2018-11-16 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/ti/dra7xx/evm.c | 105 -- 1 file changed, 105 deletions(-) diff --git

Re: [U-Boot] [PATCH v2 1/2] mtd/spi: Add JEDEC SFDP support in SPI framework

2018-11-16 Thread Vignesh R
On 16-Nov-18 6:29 PM, Rajat Srivastava wrote: >> On Fri, Nov 16, 2018 at 11:19 AM Vignesh R wrote: >>> On 16/11/18 3:10 PM, Rajat Srivastava wrote: > Hi Rajat, > > On 13/11/18 5:30 PM, Rajat Srivastava wrote: >> Add support for JESD216 rev B standard JEDEC Serial Flash >>

[U-Boot] [PATCH v1 6/6] configs: k2g_evm: Enable DFU on K2G EVM

2018-11-16 Thread Jean-Jacques Hiblot
The K2G evm uses the generic DWC3 driver. DFU can thus be enabled. Enabling DFU for easier firmware update. Signed-off-by: Jean-Jacques Hiblot --- configs/k2g_evm_defconfig| 6 ++ configs/k2g_hs_evm_defconfig | 6 ++ include/configs/ti_armv7_keystone2.h | 12

Re: [U-Boot] [PATCH] serial: ns16550: add setconfig support

2018-11-16 Thread Tom Rini
On Fri, Nov 16, 2018 at 06:04:40PM +0100, Simon Goldschmidt wrote: > Am Sa., 3. Nov. 2018, 08:56 hat Simon Goldschmidt < > simon.k.r.goldschm...@gmail.com> geschrieben: > > > On 03.11.2018 07:08, Simon Glass wrote: > > > On 2 November 2018 at 14:28, Simon Goldschmidt > > > wrote: > > >> Add

[U-Boot] [PATCH v7 04/11] dwc3-generic: Add support for the TI DWC3 glue

2018-11-16 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- 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/usb/dwc3/dwc3-generic.c | 85 + 1 file changed, 85 insertions(+) diff --git

[U-Boot] [PATCH v7 05/11] board: ti: dra7xx-evm: turn on USB clocks in late init stage

2018-11-16 Thread Jean-Jacques Hiblot
For USB ports that use the Driver Model, turn on the clocks during the late init stage. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/ti/dra7xx/evm.c |

[U-Boot] [PATCH v1 5/6] usb: host: replace xhci-keystone driver by the generic dwc3 driver

2018-11-16 Thread Jean-Jacques Hiblot
The keystone platforms can use the generic DC3 driver. Removing the keystone-spcecific xchi driver and add the configuration options to enable the generic DWC3 driver on all K2 platforms. Signed-off-by: Jean-Jacques Hiblot --- configs/k2e_evm_defconfig| 7 +

Re: [U-Boot] [PATCH] serial: ns16550: add setconfig support

2018-11-16 Thread Simon Goldschmidt
Am Fr., 16. Nov. 2018, 18:25 hat Simon Glass geschrieben: > Hi, > > On 16 November 2018 at 09:04, Simon Goldschmidt > wrote: > > > > > > Am Sa., 3. Nov. 2018, 08:56 hat Simon Goldschmidt > > geschrieben: > >> > >> On 03.11.2018 07:08, Simon Glass wrote: > >> > On 2 November 2018 at 14:28,

[U-Boot] [PATCH v7 06/11] board; ti: am57xx: turn on USB clocks

2018-11-16 Thread Jean-Jacques Hiblot
From: Vignesh R Enable USB clocks in late init stage to support ports under DM_USB. Signed-off-by: Vignesh R Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - am57xx boards: when DM_USB

[U-Boot] [PATCH v7 09/11] configs: am57xx_evm: Enable DM_USB and DM_USB_DEV

2018-11-16 Thread Jean-Jacques Hiblot
Enable DM_USB and DM_USB_DEV for AM57xx based boards. Signed-off-by: Vignesh R Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: - Fixed build issue "multiple definition of `usb_gadget_handle_interrupts'" Changes in v6: - AM57 configs: enable DM_USB and DM_USB_DEV. Use DWC3_GENERIC in

[U-Boot] [PATCH v7 11/11] board: ti: am57xx: remove USB platform code

2018-11-16 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: None Changes in v6: - Supports DM USB for peripherals - Removed DTS changes that disabled USB1 on DRA7 because DM_USB_DEV is now supported Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v1 0/6] Add support for DM_USB and DM_USB_DEV to TI's K2G platforms

2018-11-16 Thread Jean-Jacques Hiblot
The K2G platforms can use the generic DWC3 driver instead of relying on the keystone-xhci driver. Benefits are: - moving toward DM - brings USB gadget for free - allows us to remove some code Tested on: - K2G EVM Jean-Jacques Hiblot (6): usb: dwc3-generic: make it compatible with

Re: [U-Boot] [PATCH v1 0/6] Add support for DM_USB and DM_USB_DEV to TI's K2G platforms

2018-11-16 Thread Jean-Jacques Hiblot
I forgot to mention that this series applies on top of the series "[PATCH v7 00/11] [RESEND] Add support for DM_USB and DM_USB_DEV for TI's DRA7 EVMs and AM57 EVMs platforms." On 16/11/2018 16:33, Jean-Jacques Hiblot wrote: The K2G platforms can use the generic DWC3 driver instead of relying

Re: [U-Boot] U-Boot bring-up x86 Baytrail/ multiboot2 specification

2018-11-16 Thread Stefan Roese
Hi, On 16.11.18 16:46, Marek Vasut wrote: On 11/16/2018 10:00 AM, mathias.b...@sew-eurodrive.de wrote: Hi, Hi, I am just about to replace a BIOS based Intel Baytrail E3835 board with U-Boot due to ugly BIOS boottimes. Has anyone any experience with this and can give me some tips how to

Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-11-16 Thread Jean-Jacques Hiblot
On 01/11/2018 17:55, Lukasz Majewski wrote: Hi Tom, On Thu, Nov 01, 2018 at 04:56:46PM +0100, Lukasz Majewski wrote: Hi Michal, On 28. 10. 18 21:50, Lukasz Majewski wrote: Dear All, Andy, Kerver, Lin, could you give a try to this series on evb-rk3328 please ? This has been

[U-Boot] [PATCH v1 4/6] PHY: Add phy driver for the keystone USB PHY

2018-11-16 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- drivers/phy/Kconfig| 10 drivers/phy/Makefile | 1 + drivers/phy/keystone-usb-phy.c | 109 + 3 files changed, 120 insertions(+) create mode 100644 drivers/phy/keystone-usb-phy.c diff

[U-Boot] [PATCH v1 3/6] ARM: dts: k2g-evm: enable USB0 and USB1

2018-11-16 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- arch/arm/dts/keystone-k2g-evm.dts | 28 arch/arm/dts/keystone-k2g.dtsi| 56 +++ 2 files changed, 84 insertions(+) diff --git a/arch/arm/dts/keystone-k2g-evm.dts

Re: [U-Boot] U-Boot bring-up x86 Baytrail/ multiboot2 specification

2018-11-16 Thread Marek Vasut
On 11/16/2018 10:00 AM, mathias.b...@sew-eurodrive.de wrote: > Hi, Hi, > I am just about to replace a BIOS based Intel Baytrail E3835 board with > U-Boot due to ugly BIOS boottimes. > Has anyone any experience with this and can give me some tips how to do this? +CC Stefan Roese, IIRC he did

Re: [U-Boot] [PATCH 3/4] fs: prevent overwriting reserved memory

2018-11-16 Thread Heinrich Schuchardt
On 11/16/18 7:48 AM, Simon Goldschmidt wrote: > On 14.11.2018 00:03, Heinrich Schuchardt wrote: >> On 11/13/18 10:47 PM, Simon Goldschmidt wrote: >>> >>> Am Di., 13. Nov. 2018, 22:37 hat Heinrich Schuchardt >> > geschrieben: >>> >>> On 11/13/18 9:01 PM, Simon

Re: [U-Boot] [PATCH v2] dm: spi: prevent setting a speed of 0 Hz

2018-11-16 Thread Simon Goldschmidt
On 31.10.2018 07:42, Simon Goldschmidt wrote: On Wed, Oct 31, 2018 at 7:22 AM Jagan Teki wrote: On Wed, Oct 31, 2018 at 1:40 AM Simon Goldschmidt wrote: When the device tree is missing a correct spi slave description below the bus (compatible "spi-flash" or spi-max-frequency are missing),

Re: [U-Boot] [U-Boot, RFC] ARM: at91: lds: add test SPL binary size and bbs size

2018-11-16 Thread Tom Rini
On Tue, Oct 23, 2018 at 08:07:24AM +, eugen.hris...@microchip.com wrote: > From: Wenyou Yang > > Add the test for the SPL binary size and the bbs section size. > > Signed-off-by: Wenyou Yang So, this is a good idea. The problem is that, even aside from the patch I posted to enable

Re: [U-Boot] [PATCH v3 00/28] General fixes / cleanup for RISC-V and improvements to qemu-riscv

2018-11-16 Thread Auer, Lukas
Hi Rick, On Tue, 2018-11-13 at 14:52 +0800, Rick Chen wrote: > Bin Meng 於 2018年11月13日 週二 下午2:49寫道: > > > > Hi Rick, > > > > On Tue, Nov 13, 2018 at 2:41 PM Rick Chen > > wrote: > > > > > > > > This patch series includes general fixes and cleanup for > > > > > RISC-V. It also adds > > > > >

Re: [U-Boot] Getting rid of board_mtdparts_default()

2018-11-16 Thread Enric Balletbo Serra
Missatge de Boris Brezillon del dia dj., 15 de nov. 2018 a les 23:40: > > On Thu, 15 Nov 2018 23:18:46 +0100 > Enric Balletbo Serra wrote: > > > Hello Boris, > > > > Missatge de Boris Brezillon del dia dj., > > 15 de nov. 2018 a les 16:58: > > > > > > Hello Enric, > > > > > > Miquel and I

[U-Boot] [RFC PATCH 0/4] cmd: Simplify support for sub-commands

2018-11-16 Thread Boris Brezillon
Hello, This patch series aims at simplifying the command parsing logic done in pretty much all the cmd/foo.c files by adding a few macros that help defining sub-commands attach to the main entry point. When you use those macros you also get sub-command auto-completion for free (the rest of the

[U-Boot] [RFC PATCH 2/4] common: command: Expose a generic helper to auto-complete sub commands

2018-11-16 Thread Boris Brezillon
Some commands have a table of sub-commands. With a minor adjustments, complete_cmdv() is able to provide auto-completion for sub-commands (it's just about passing the table of commands instead of taking the global one). We rename this function into complete_subcmd() and implement complete_cmdv()

[U-Boot] [RFC PATCH 1/4] common: command: Fix command auto-completion

2018-11-16 Thread Boris Brezillon
When auto-completing command arguments, the last argument is not necessarily the one we need to auto-complete. When the last character is a space, a tab or '\0' what we want instead is list all possible values, or if there's only one possible value, place this value on the command line instead of

[U-Boot] [RFC PATCH 4/4] cmd: mtd: Use the subcmd infrastructure to declare mtd sub-commands

2018-11-16 Thread Boris Brezillon
It's way simpler this way, and we also gain auto-completion support for free (MTD name auto-completion has been added with do_mtd_name_complete()) Signed-off-by: Boris Brezillon --- cmd/mtd.c | 475 -- 1 file changed, 280 insertions(+), 195

[U-Boot] [RFC PATCH 3/4] command: commands: Add macros to declare commands with subcmds

2018-11-16 Thread Boris Brezillon
Most cmd/xxx.c source files expose several commands through a single entry point. Some of them are doing the sub-command parsing manually in their do_() function, others are declaring a table of sub-commands and then use find_cmd_tbl() to delegate the request to the sub command handler. In both

[U-Boot] [PATCH 1/1] MAINTAINERS: add EFI PAYLOAD reviewer

2018-11-16 Thread Heinrich Schuchardt
Alex suggested to add me as a reviewer for the EFI subsystem. The patch also adds a description for R: entries. Cc: Alexander Graf Signed-off-by: Heinrich Schuchardt --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index abdb6dcdb51..5c776cf5113

[U-Boot] [PATCH] mtd: Use get_mtdids() instead of env_get("mtdids") in mtd_search_alternate_name()

2018-11-16 Thread Boris Brezillon
The environment is not guaranteed to contain a valid mtdids variable when called from mtd_search_alternate_name(). Call get_mtdids() instead of env_get("mtdids"). Fixes: ff4afa8a981e ("mtd: uboot: search for an equivalent MTD name with the mtdids") Signed-off-by: Boris Brezillon ---

Re: [U-Boot] [U-Boot, v2, 1/6] ARM: vexpress-ca9x4_defconfig: Enable CMD_UBI support

2018-11-16 Thread Tom Rini
On Tue, Oct 23, 2018 at 10:35:51AM -0300, Otavio Salvador wrote: > This allow for convenient use of QEMU machine to test loading of UBI > filesystem. > > Acked-by: Linus Walleij > Signed-off-by: Otavio Salvador NAK: 09:59:16 +make O=/home/jenkins/u-boot/build-vexpress_ca9x4 -s

[U-Boot] [PATCH 2/2] enable EMAC for A64-OLinuXino

2018-11-16 Thread Alexander Weidinger
Add Ethernet nodes to OLinuXino DT to enable Gigabit Ethernet [ commit 21eac6f33e68ae778e9d1c910606452abf058d3d in Linux ] Set PHY TX delay of 600ps [ commit 679294497be31596e1c9c61507746d72b6b05f26 in Linux ] Signed-off-by: Alexander Weidinger --- arch/arm/dts/sun50i-a64-olinuxino.dts | 18

[U-Boot] U-Boot bring-up x86 Baytrail/ multiboot2 specification

2018-11-16 Thread Mathias.Boos
Hi, I am just about to replace a BIOS based Intel Baytrail E3835 board with U-Boot due to ugly BIOS boottimes. Has anyone any experience with this and can give me some tips how to do this? Additionally our system runs with an RTS Hypervisor to support 2 OS in parallel (WIN10, WEC2013). The

Re: [U-Boot] [U-Boot, v2, 1/6] ARM: vexpress-ca9x4_defconfig: Enable CMD_UBI support

2018-11-16 Thread Otavio Salvador
On Fri, Nov 16, 2018 at 1:03 PM Tom Rini wrote: > On Tue, Oct 23, 2018 at 10:35:51AM -0300, Otavio Salvador wrote: > > This allow for convenient use of QEMU machine to test loading of UBI > > filesystem. > > > > Acked-by: Linus Walleij > > Signed-off-by: Otavio Salvador > > NAK: > 09:59:16

Re: [U-Boot] efi_selftest_unicode_collation.c: build warning

2018-11-16 Thread Heinrich Schuchardt
On 11/16/18 4:13 PM, Bin Meng wrote: > Hi, > > Build qemu-riscv32_defconfig with CONFIG_CMD_BOOTEFI_SELFTEST=y, the > following build warnings were seen. > > In file included from lib/efi_selftest/efi_selftest_unicode_collation.c:10:0: > lib/efi_selftest/efi_selftest_unicode_collation.c: In

[U-Boot] [PATCH] configs: Enable THUMB2 on various ARM boards

2018-11-16 Thread Tom Rini
The clearfog, corvus, wb45n and picosam9g45 configs are close to exceeding their size limits, so enable THUMB2 builds on them to reclaim space. Signed-off-by: Tom Rini --- configs/clearfog_defconfig| 1 + configs/corvus_defconfig | 1 + configs/picosam9g45_defconfig | 1 +

Re: [U-Boot] [PATCH v2] dm: spi: prevent setting a speed of 0 Hz

2018-11-16 Thread Simon Glass
On Fri, 16 Nov 2018 at 12:40, Simon Goldschmidt wrote: > > On 31.10.2018 07:42, Simon Goldschmidt wrote: > > On Wed, Oct 31, 2018 at 7:22 AM Jagan Teki > > wrote: > >> On Wed, Oct 31, 2018 at 1:40 AM Simon Goldschmidt > >> wrote: > >>> When the device tree is missing a correct spi slave

Re: [U-Boot] [PATCH 1/2] core: ofnode: Fix ofnode_get_addr_size_index function

2018-11-16 Thread Simon Glass
On Tue, 13 Nov 2018 at 12:53, Simon Glass wrote: > > On 4 November 2018 at 22:47, Keerthy wrote: > > Currently the else part of ofnode_get_addr_size_index function > > does not fetch addresses based on the index but rather just > > returns the base address. Fix that. > > > > Signed-off-by:

Re: [U-Boot] [PATCH] fdt: Fix uncompress_blob() for U-Boot proper

2018-11-16 Thread Simon Glass
On Thu, 18 Oct 2018 at 12:38, Marek Vasut wrote: > > When U-Boot proper is compiled with CONFIG_MULTI_DTB_FIT and tries > to call uncompress_blob(), it fails with -ENOTSUPP. This is because > the full implementation of this function which includes compression > is available only in SPL. In U-Boot

Re: [U-Boot] [PATCH] cmd: fdt: Fix fdt address information after the movement

2018-11-16 Thread Simon Glass
On Thu, 18 Oct 2018 at 12:44, Marek Vasut wrote: > > From: Hiroyuki Yokoyama > > This patch fixes the address information of fdt. > > wrong case: > => fdt addr 0x4800 > => fdt move 0x4800 0x4100 0xa000 > => fdt addr > The address of the fdt is 4800 > > Active address in this

Re: [U-Boot] [PATCH 1/1] sandbox: README: use setenv ethrotate no

2018-11-16 Thread Simon Glass
On Sun, 14 Oct 2018 at 14:01, Heinrich Schuchardt wrote: > > If we want to control which network interface is actually used, we have to > issue 'setenv ethrotate no'. If ethrotate is not set any interface may be > used. > > Signed-off-by: Heinrich Schuchardt > --- > board/sandbox/README.sandbox

[U-Boot] [PATCH v7 02/11] phy: ti-pip3-phy: Add support for USB3 PHY

2018-11-16 Thread Jean-Jacques Hiblot
From: Vignesh R Add support to handle USB3 PHYs present on AM57xx/DRA7xx SoCs. This is needed to move AM57xx to DM_USB. Signed-off-by: Vignesh R Signed-off-by: Jean-Jacques Hiblot --- Changes in v7: None Changes in v6: - ti-pipe3-phy: take PLL out of IDLE in pipe3_init(). The PLL may have

[U-Boot] [PATCH v1 2/6] board: ks2_evm: Enable the USB clocks if DM_USB is used

2018-11-16 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- board/ti/ks2_evm/board.c | 12 1 file changed, 12 insertions(+) diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c index 72709c0..c888306 100644 --- a/board/ti/ks2_evm/board.c +++ b/board/ti/ks2_evm/board.c @@ -61,6 +61,18 @@

[U-Boot] [PATCH v1 1/6] usb: dwc3-generic: make it compatible with "ti, keystone-dwc3"

2018-11-16 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot --- drivers/usb/dwc3/dwc3-generic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index 1a2f342..d54a25c 100644 --- a/drivers/usb/dwc3/dwc3-generic.c +++ b/drivers/usb/dwc3/dwc3-generic.c

Re: [U-Boot] [PATCH] serial: ns16550: add setconfig support

2018-11-16 Thread Simon Goldschmidt
Am Fr., 16. Nov. 2018, 18:09 hat Tom Rini geschrieben: > On Fri, Nov 16, 2018 at 06:04:40PM +0100, Simon Goldschmidt wrote: > > Am Sa., 3. Nov. 2018, 08:56 hat Simon Goldschmidt < > > simon.k.r.goldschm...@gmail.com> geschrieben: > > > > > On 03.11.2018 07:08, Simon Glass wrote: > > > > On 2