Re: [U-Boot] [U-Boot, BUG] snow: mmc: SD card access broken: unable to select a mode

2018-05-16 Thread Guillaume Gardet
Hi Jaehoon, Le 26/04/2018 à 15:15, Guillaume Gardet a écrit : Le 26/04/2018 à 12:31, Jaehoon Chung a écrit : Hi, On 04/09/2018 09:02 PM, Guillaume Gardet wrote: Hi Jaehoon, There are problems with SD card access on Samsung Chromebook (snow) with latest master (and also 2018.05-rc1 and

Re: [U-Boot] [RESEND][PATCH] cmd: nvedit: add whitelist option for env import

2018-05-16 Thread Quentin Schulz
Hi Joe, On Tue, May 15, 2018 at 01:25:09PM -0500, Joe Hershberger wrote: > On Tue, May 15, 2018 at 5:03 AM, Quentin Schulz > wrote: > > While the `env export` can take as parameters variables to be exported, > > `env import` does not have such a mechanism of variable

[U-Boot] [PATCH v6 2/7] sunxi: DT: A64: update board .dts files from Linux

2018-05-16 Thread Andre Przywara
Update the .dts files for the various boards with an Allwinner A64 SoC. This is as of v4.17-rc5, exactly Linux commit: commit b75cb68d83fd55584b96380a2274de59bb1e6406 Author: Tuomas Tynkkynen Date: Fri Dec 22 22:57:38 2017 +0200 arm64: dts: sunxi: Switch MMC nodes away

[U-Boot] [PATCH v6 1/7] sunxi: DT: A64: update device tree file for Allwinner A64 SoC

2018-05-16 Thread Andre Przywara
Updates the device tree file from the the Linux tree as of v4.17-rc5, exactly Linux commit: commit c1cff65f9b16b31e731e2e75bbe06638c86e1996 Author: Harald Geyer Date: Thu Mar 15 16:25:08 2018 + arm64: dts: allwinner: a64: add simplefb for A64 SoC This also pulls in

Re: [U-Boot] [PATCH 4/8] cmd: avb2.0: avb command for performing verification

2018-05-16 Thread Igor Opaniuk
Hi Simon, > If there is no need for operations and indirection through function > pointers, why not just call the functions directly? This is the way how libavb is integrated into bootloader. libavb interfaces with the bootloader through the supplied AvbOps struct. This includes operations to

Re: [U-Boot] [PATCH v5 4/9] board: ti: dra7xx-evm: turn on USB clocks in late init stage

2018-05-16 Thread Jean-Jacques Hiblot
On 16/05/2018 00:13, Marek Vasut wrote: On 05/15/2018 06:10 PM, Jean-Jacques Hiblot wrote: Hi Marek, On 04/05/2018 21:06, Marek Vasut wrote: Shouldnt the driver turn this on? AFAIK there is no clock driver for the OMAP. So we have to do it before the driver is probed. Maybe it's time to

[U-Boot] [PATCH v2 7/7] serial: serial_msm: added pinmux & config

2018-05-16 Thread Ramon Fried
Serial port configuration was missing from previous implementation. It only worked because it was preconfigured by LK. This patch configures the uart for 115200 8N1. It also configures the pin mux for uart pins using DT bindings. Signed-off-by: Ramon Fried ---

[U-Boot] [PATCH 3/3] common: Generic loader for file system

2018-05-16 Thread tien . fong . chee
From: Tien Fong Chee This is file system generic loader which can be used to load the file image from the storage into target such as memory. The consumer driver would then use this loader to program whatever, ie. the FPGA device. Signed-off-by: Tien Fong Chee

Re: [U-Boot] [PATCH 02/12] ARM: socfpga: Sort the DT Makefile

2018-05-16 Thread Ley Foon Tan
On Sun, May 13, 2018 at 4:30 AM, Marek Vasut wrote: > Sort the Makefile entries, no functional change. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > --- > arch/arm/dts/Makefile | 8

[U-Boot] [PATCH 2/2] test: Fix test_vboot to call openssl without redirection

2018-05-16 Thread Simon Glass
The redirection seems to cause this test to fail now. It isn't needed, so drop it. Signed-off-by: Simon Glass --- test/py/tests/test_vboot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py

[U-Boot] [PATCH 1/2] test: Fix sandbox_spl test filter

2018-05-16 Thread Simon Glass
This filter does not match the test it is intended to anymore. Update it so that it works again. Signed-off-by: Simon Glass --- test/run | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/run b/test/run index b2d24e3f8ed..eb1563d13ed 100755 ---

[U-Boot] [PATCH v6 4/7] sunxi: DT: H5: update board .dts files from Linux

2018-05-16 Thread Andre Przywara
Update the .dts file for the various boards with an Allwinner H5 SoC. This is as of v4.17-rc5, exactly Linux commit: commit 2282197547d5373644e702f7f49c2aa92ef15817 Author: Jernej Skrabec Date: Thu Mar 1 22:34:42 2018 +0100 ARM64: dts: sun50i: h5: Enable HDMI

[U-Boot] [PATCH v6 6/7] sunxi: DT: A64: add proper SoPine baseboard device tree

2018-05-16 Thread Andre Przywara
When the defconfig for the SoPine baseboard was added, there wasn't any proper DT for the board yet, so we used the Pine64 DT as a placeholder. Copy the DT file(s) meanwhile added in Linux over to U-Boot, and use them in our defconfig. Signed-off-by: Andre Przywara

Re: [U-Boot] [PATCH] ARM: socfpga: Convert to DM serial

2018-05-16 Thread Ley Foon Tan
On Sun, May 13, 2018 at 4:28 AM, Marek Vasut wrote: > Pull the serial port configuration from DT and use DM serial instead > of having the serial configuration in two places, DT and board config. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See

[U-Boot] [PATCH v6 3/7] sunxi: DT: update device tree files for Allwinner H3 and H5 SoCs

2018-05-16 Thread Andre Przywara
Update the device tree files from the Linux tree as of v4.17-rc5, exactly Linux commit: commit c235edcb34651023c9eb1c5c4a7cdcaf7250d02c Author: Giulio Benetti Date: Tue Mar 13 11:16:45 2018 +0100 ARM: dts: sun8i-h3: Add Mali node Since the H3 and H5 are

[U-Boot] [PATCH v6 5/7] sunxi: DT: H3: update board .dts files from Linux

2018-05-16 Thread Andre Przywara
Update the .dts file for the various boards with an Allwinner H3 SoC. This is as of v4.17-rc5, exactly Linux commit: commit f0842bc5637c45dec92b0c911d586279267559bf Author: Jernej Skrabec Date: Thu Mar 1 22:34:41 2018 +0100 ARM: dts: sun8i: h3: Enable HDMI output

[U-Boot] [PATCH] ARM: re-enable MVGBE for edminiv2

2018-05-16 Thread Chris Packham
This was unintentionally disabled when moving MVGBE to Kconfig. Fixes: commit ed52ea507f12 ("net: add Kconfig for MVGBE") Signed-off-by: Chris Packham --- configs/edminiv2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/edminiv2_defconfig

[U-Boot] [PATCH v2 1/7] db820c: set clk node to be probed before relocation

2018-05-16 Thread Ramon Fried
The clock and serial nodes are needed before relocation. This patch ensures that the msm-serial driver will probe and provide uart output before relocation. Signed-off-by: Ramon Fried --- v2: fixed alignment arch/arm/dts/dragonboard820c-uboot.dtsi | 14 ++ 1

[U-Boot] [PATCH v2 2/7] serial: serial_msm: fail probe if settings clocks fails

2018-05-16 Thread Ramon Fried
Failure to set the clocks will causes data abort exception when trying to write to AHB uart registers. This patch ensures that we don't touch these registers if clock setting failed. Signed-off-by: Ramon Fried --- v2: on failure, return actual return code from

Re: [U-Boot] [PATCH] ARM: socfpga: Clean up Kconfig entries

2018-05-16 Thread Ley Foon Tan
On Sun, May 13, 2018 at 4:27 AM, Marek Vasut wrote: > Shuffle the default Kconfig entries around so it is not such a mess. > No functional change. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen

[U-Boot] [PATCH v5] tpm2: tis_spi: add the possibility to reset the chip with a gpio

2018-05-16 Thread Miquel Raynal
On some designs, the reset line could not be connected to the SoC reset line, in this case, request the GPIO and ensure the chip gets reset. Signed-off-by: Miquel Raynal --- Changes since v4: = * This patch was part of a bigger series, sending it alone

Re: [U-Boot] [RESEND][PATCH] cmd: nvedit: add whitelist option for env import

2018-05-16 Thread Quentin Schulz
Hi Simon, On Tue, May 15, 2018 at 12:28:14PM -0600, Simon Glass wrote: > Hi Quentin, > > On 15 May 2018 at 20:03, Quentin Schulz wrote: > > While the `env export` can take as parameters variables to be exported, > > `env import` does not have such a mechanism of

[U-Boot] [PATCH 1/3] doc: Add new doc for file system firmware loader driver model

2018-05-16 Thread tien . fong . chee
From: Tien Fong Chee Provide information about - overview of file system firmware loader driver model - describe default storage device in device tree source - describe fie system firmware loader API Signed-off-by: Tien Fong Chee ---

[U-Boot] [PATCH 0/3] Generic file system firmware loader DM

2018-05-16 Thread tien . fong . chee
From: Tien Fong Chee This patchset contains generic file system loader DM which is very close to Linux firmware loader but for U-Boot framework. Generic file system firmware loader can be used load whatever into target location, and then consumer driver would use it to

[U-Boot] [PATCH 2/3] doc: dtbinding: Add file system firmware loader binding document

2018-05-16 Thread tien . fong . chee
From: Tien Fong Chee Add a document to describe file system firmware loader binding information. Signed-off-by: Tien Fong Chee --- doc/device-tree-bindings/misc/fs_loader.txt | 48 +++ 1 files changed, 48

Re: [U-Boot] [PATCH] ARM: socfpga: Zap CONFIG_SOCFPGA_VIRTUAL_TARGET

2018-05-16 Thread Ley Foon Tan
On Sun, May 13, 2018 at 4:27 AM, Marek Vasut wrote: > This was never used, is not used anywhere and is just in the way > by adding annoying ifdeffery. Get rid of it. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen

[U-Boot] [PATCH v6 0/7] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-05-16 Thread Andre Przywara
This is an updated version of the series which brings the exact mainline Linux device tree files for various Allwinner boards into U-Boot. Apart from using the usually more correct reference DT files, this offers the big benefit of being able to use U-Boot's DT copy for directly passing it to the

[U-Boot] [PATCH] patman: Fix unit tests for SPDX

2018-05-16 Thread Simon Glass
The format of this line has changed. Update the patman test to suit. Signed-off-by: Simon Glass --- tools/patman/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/patman/test.py b/tools/patman/test.py index 343efc99bd8..c7ba4e6bb47 100644 ---

Re: [U-Boot] [PATCH V6 0/2] Update sabrelite and nitrogen6x boards to use distro boot support

2018-05-16 Thread Guillaume Gardet
Hi, just a friendly reminder for those 2 patches. Guillaume Le 18/04/2018 à 17:04, Guillaume GARDET a écrit : This patch serie updates sabrelite and nitrogen6x boards to use distro boot support. Sabrelite has been boot tested with boot.scr script and EFI/Grub2 on mmc0 and mmc1 slots.

Re: [U-Boot] [PATCH] stm32f429-disco: ram: Adds stm32f429-disco fixes for HardFault at booting

2018-05-16 Thread Patrice CHOTARD
Hi Radoslaw Some minor remarks On 05/15/2018 05:29 PM, Radoslaw Pietrzyk wrote: > - adds reading FMC swap setting from DTB to SDRAM driver > - sets FMC swap for stm32f429-disco board > - changes ram start address to 0x9000 > > Signed-off-by: Radoslaw Pietrzyk >

Re: [U-Boot] [PATCH v2 1/6] kconfig: re-sync with Linux 4.17-rc4

2018-05-16 Thread Eugeniu Rosca
Hi Petr, On Wed, May 16, 2018 at 07:09:05AM +0200, Petr Vorel wrote: > Hi Eugeniu, > > > 2018-05-13 2:13 GMT+09:00 Eugeniu Rosca : > > > Align Kconfig to Linux 4.17-rc4 with minimal impact on non-kconfig files. > > > > Previous Kconfig sync was done by commit

[U-Boot] [PATCH] Remove CONFIG_MVGBE from config_whitelist.txt

2018-05-16 Thread Chris Packham
Now that there are more boards defining this it can be removed from the whitelist. Signed-off-by: Chris Packham --- scripts/config_whitelist.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index

[U-Boot] [PATCH v2 3/7] serial: serial_msm: initialize uart only before relocation

2018-05-16 Thread Ramon Fried
The uart is already initialized prior to relocation, reinitialization after relocation is unnecessary. Signed-off-by: Ramon Fried --- v2: removed extra parenthesis drivers/serial/serial_msm.c | 4 1 file changed, 4 insertions(+) diff --git

[U-Boot] spi(u-boot)+MMC(Kernel)

2018-05-16 Thread Mehmet Ali İPİN
Dear Fabio, Thank you for your all helps very much. I had our mx6dl board boot from SPI flash. Now I wish to boot kernel from eMMC flash. I am studying warp board's config parameters. Do you now a (i.mx6) product which has similar (SPI+eMMC) boot configuration, which I can modify my u-boot

[U-Boot] [PATCH v6 7/7] sunxi: DT: A64: add Pine64-LTS support

2018-05-16 Thread Andre Przywara
The Pine64-LTS board is a new board version of the Pine64, though actually it's a non-SoM version of the SoPine and its baseboard. In contrast to the original Pine64 it features LPDDR3 DRAM, an eMMC socket and a SPI flash chip for storing firmware (like U-Boot). Add it as a variant to the existing

Re: [U-Boot] [PATCH 09/12] ARM: kirkwood: Add device-tree for nsa310s

2018-05-16 Thread Chris Packham
(adding back list and cc, my bad replied from a mobile device) On Wed, May 16, 2018 at 8:10 PM Stefan Roese wrote: > Hi Chris, > On 16.05.2018 09:58, Chris Packham wrote: > > Hi Stefan, > > > > On Wed, 16 May 2018, 12:09 AM Stefan Roese, > >

Re: [U-Boot] [PATCH 8/8] doc: avb2.0: add README about AVB2.0 integration

2018-05-16 Thread Igor Opaniuk
Hi Sam, Thanks, will include this notice in the v2 patchset Regards, Igor On 2 May 2018 at 22:12, Sam Protsenko wrote: > On 25 April 2018 at 16:18, Igor Opaniuk wrote: >> Contains: >> 1. Overview of Android Verified Boot 2.0 >> 2.

Re: [U-Boot] [PATCH] fdt: Add another Altera Arria10 clock init compatible

2018-05-16 Thread Ley Foon Tan
On Sun, May 13, 2018 at 4:25 AM, Marek Vasut wrote: > The DT bindings for the Arria10 clock init have changed, add another > compatible to make them work with U-Boot until a proper clock driver > gets written. > > Signed-off-by: Marek Vasut > Cc: Tom Rini

Re: [U-Boot] [PATCH v2 0/2] sunxi: fix eMMC stability issues on A64

2018-05-16 Thread Jagan Teki
On Mon, May 14, 2018 at 8:57 PM, Vasily Khoruzhick wrote: > eMMC seems to require new clocking mode and calibration on A64, > otherwise it is pretty unstable on some boards (e.g. Pinebook) > with some eMMCs. > > v2: - improve comment about calibration for eMMC on A64 > -

Re: [U-Boot] [PATCH] Revert "sunxi: binman: Add U-Boot binary size check"

2018-05-16 Thread Jagan Teki
On Mon, May 14, 2018 at 7:52 PM, Maxime Ripard wrote: > This reverts commit 819f1e081c527d2d02cdaeec0027384688cf5de0. > > This check was introduced in order to cope with the size limitation we had > when we were still using the raw environment in MMC. However, this >

[U-Boot] [PATCH 6/6] usb: xhci: zynqmp: Remove support for !DM_USB

2018-05-16 Thread Michal Simek
Switch to DM_USB was done and there is no need to keep !DM_USB code in tree. Signed-off-by: Michal Simek --- drivers/usb/host/Kconfig | 1 + drivers/usb/host/xhci-zynqmp.c | 46 -- scripts/config_whitelist.txt | 1 - 3 files

Re: [U-Boot] [PATCH 1/6] usb: dwc3: Add dwc3_init/remove with DM_USB

2018-05-16 Thread Marek Vasut
On 05/16/2018 04:26 PM, Michal Simek wrote: > From: Mugunthan V N > > The patch is preparing dwc3 core for enabling DM_USB with peripheral > driver with using driver model support. > The driver will be bound by the DWC3 wrapper driver based on the > dr_mode device tree

Re: [U-Boot] [PATCH v2] phy: add support for STM32 usb phy controller

2018-05-16 Thread Patrice CHOTARD
Hi Marek On 05/16/2018 11:37 AM, Marek Vasut wrote: > On 05/15/2018 03:27 PM, Patrice CHOTARD wrote: >> Hi Marek >> >> On 04/27/2018 11:18 AM, Marek Vasut wrote: >>> On 04/27/2018 11:01 AM, Patrice Chotard wrote: This patch adds phy tranceiver driver for STM32 USB PHY Controller

Re: [U-Boot] help on DM

2018-05-16 Thread Simon Glass
Hi Andy, On 8 May 2018 at 19:48, Andy Tang wrote: > Hi Simon, > > > > I am working on enabling DM for sata driver. Previously sata was initialized > by calling > > the functions ahci_init() and scsi_scan(). Now I plan to use > driver/ata/sata_ceva.c as our sata driver. > > In

Re: [U-Boot] [PATCH 2/2] sandbox: Rename 'num-gpios' property to avoid dtc warning

2018-05-16 Thread Simon Glass
On 4 February 2018 at 04:36, Simon Glass wrote: > At present dtc produces these warnings when compiling sandbox: > > arch/sandbox/dts/test.dtb: Warning (gpios_property): > Could not get phandle node for /base-gpios:num-gpios(cell 0) > arch/sandbox/dts/test.dtb: Warning

[U-Boot] [PATCH v4 08/16] Define board_quiesce_devices() in a shared location

2018-05-16 Thread Simon Glass
This undocumented function relies on arch-specific code to declare a nop weak version. Add the weak function in common code instead to avoid having to duplicate the same function in each arch. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in

Re: [U-Boot] [PATCH v5 4/9] board: ti: dra7xx-evm: turn on USB clocks in late init stage

2018-05-16 Thread Tom Rini
On Wed, May 16, 2018 at 11:04:18AM +0200, Marek Vasut wrote: > On 05/16/2018 11:00 AM, Jean-Jacques Hiblot wrote: > > > > > > On 16/05/2018 00:13, Marek Vasut wrote: > >> On 05/15/2018 06:10 PM, Jean-Jacques Hiblot wrote: > >>> Hi Marek, > >>> > >>> > >>> On 04/05/2018 21:06, Marek Vasut wrote:

Re: [U-Boot] [PATCH v3 18/21] efi: sandbox: Add a simple 'bootefi test' command

2018-05-16 Thread Simon Glass
Hi Heinrich, On 19 February 2018 at 12:40, Heinrich Schuchardt wrote: > On 02/19/2018 04:48 PM, Simon Glass wrote: >> >> This jumps to test code which can call directly into the EFI support. It >> does not need a separate image so it is easy to write tests with it. >> >> This

Re: [U-Boot] [PATCH v4 13/14] mmc: Separate "mmc swrite" from fastboot

2018-05-16 Thread Joe Hershberger
On Wed, May 16, 2018 at 12:00 AM, Alex Kiernan wrote: > On Wed, May 16, 2018 at 12:20 AM Joe Hershberger > wrote: > >> On Tue, May 15, 2018 at 9:48 AM, Alex Kiernan > wrote: >> > Introduce CONFIG_IMAGE_SPARSE and

Re: [U-Boot] [PATCH 1/1] spi: fsl_qspi: remove superfluous assignment

2018-05-16 Thread Jagan Teki
On Sun, Mar 18, 2018 at 5:17 PM, Heinrich Schuchardt wrote: > In > > void *rx_addr = NULL; > rx_add = A; > > the first assignment has no effect. Remove it. > > Signed-off-by: Heinrich Schuchardt > --- Applied to u-boot-spi/master

Re: [U-Boot] [PATCH 1/1] spi: lpc32xx: simplify logical expression

2018-05-16 Thread Jagan Teki
On Sun, Mar 18, 2018 at 5:23 PM, Heinrich Schuchardt wrote: > A & A & B == A & B > > Signed-off-by: Heinrich Schuchardt > --- Applied to u-boot-spi/master ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH 4/6] usb: xhci: zynqmp: Add support for DM_USB

2018-05-16 Thread Michal Simek
The patch is adding support for DM_USB for xhci driver. Signed-off-by: Michal Simek --- drivers/usb/host/xhci-zynqmp.c | 69 ++ 1 file changed, 69 insertions(+) diff --git a/drivers/usb/host/xhci-zynqmp.c

[U-Boot] [PATCH 5/6] arm64: zynqmp: Use DWC3 generic driver and DM_USB

2018-05-16 Thread Michal Simek
Remove harcoded XHCI lists and detect mode, speed based on DT. Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp.c | 46 --- .../xilinx_zynqmp_zc1751_xm015_dc1_defconfig | 1 + .../xilinx_zynqmp_zc1751_xm016_dc2_defconfig |

Re: [U-Boot] [PATCH v1 16/21] display5: net: Add function to read ethaddr from iMX6 fuses

2018-05-16 Thread Lukasz Majewski
Hi Joe, > Hi Lukasz, > > On Fri, May 11, 2018 at 9:51 AM, Lukasz Majewski > wrote: > > Signed-off-by: Lukasz Majewski > > --- > > > > board/liebherr/display5/display5.c | 21 + > > 1 file changed, 21 insertions(+) > > > > diff --git

[U-Boot] [PATCH 0/4] Updates for Turris Mox

2018-05-16 Thread Marek Behún
Here are some updates for Turris Mox board. The first patch updates Marvell's comphy driver to call function board_update_comphy_map. The comphy driver contains a weak definition of this function, which does nothing. Board file can then define this function to update the serdes map before comphy

[U-Boot] [PATCH] sf: Add Macronix MX25U25645G ID

2018-05-16 Thread Marek Vasut
Add ID for the Macronix MX25U25645G flash. Signed-off-by: Marek Vasut Cc: Jagan Teki --- drivers/mtd/spi/spi_flash_ids.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/spi_flash_ids.c b/drivers/mtd/spi/spi_flash_ids.c index

Re: [U-Boot] [PATCH] usb: xhci: zynqmp: Fix header location

2018-05-16 Thread Marek Vasut
On 05/16/2018 04:55 PM, Michal Simek wrote: > There is no reason to specify header with full soc name. > Symlink is setup automatically (arch -> arch-zynqmp) > > Signed-off-by: Michal Simek Applied, thanks > --- > > drivers/usb/host/xhci-zynqmp.c | 2 +- > 1 file

Re: [U-Boot] [PATCH] ARM: re-enable MVGBE for edminiv2

2018-05-16 Thread Tom Rini
On Wed, May 16, 2018 at 08:31:43PM +1200, Chris Packham wrote: > This was unintentionally disabled when moving MVGBE to Kconfig. > > Fixes: commit ed52ea507f12 ("net: add Kconfig for MVGBE") > Signed-off-by: Chris Packham Applied to u-boot/master, thanks! -- Tom

[U-Boot] [PATCH v4 13/16] efi: Split out test init/uninit into functions

2018-05-16 Thread Simon Glass
We plan to run more than one EFI test. In order to avoid duplicating code, create functions which handle preparing for running the test and cleaning up afterwards. Also shorten the awfully long variable names here. Signed-off-by: Simon Glass --- Changes in v4: None Changes

[U-Boot] [PATCH v4 12/16] efi: sandbox: Enable EFI loader builder for sandbox

2018-05-16 Thread Simon Glass
This allows this feature to build within sandbox. This is for testing purposes only since it is not possible for sandbox to load native code. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: - Init the 'rows' and 'cols' vars to avoid a compiler error (gcc

[U-Boot] [PATCH v4 11/16] efi: Add a comment about duplicated ELF constants

2018-05-16 Thread Simon Glass
These constants are defined in arch-specific code but redefined here. Add a TODO to clean this up. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None lib/efi_loader/efi_runtime.c | 4 1 file changed, 4 insertions(+) diff --git

Re: [U-Boot] [PATCH 2/2] test: Fix test_vboot to call openssl without redirection

2018-05-16 Thread Stephen Warren
On 05/16/2018 01:10 AM, Simon Glass wrote: The redirection seems to cause this test to fail now. It isn't needed, so drop it. I guess I have no particular objection to this, but I will point out that the test is working just fine as-is right now, so it might be worth investigating more re:

[U-Boot] [PATCH] sf: Add Winbond W25Q256 ID

2018-05-16 Thread Marek Vasut
Add ID for the Winbond W25Q256 flash. Signed-off-by: Marek Vasut Cc: Jagan Teki --- drivers/mtd/spi/spi_flash_ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi_flash_ids.c b/drivers/mtd/spi/spi_flash_ids.c index

Re: [U-Boot] [PATCH] common: image-fit: add FIT data-position & data-offset property support

2018-05-16 Thread Simon Glass
Hi Kevin, On 16 May 2018 at 15:35, Kelvin Cheung wrote: > Add FIT data-position & data-offset property support for bootm, > which are already supported in SPL. > > Signed-off-by: Kelvin Cheung > --- > > common/image-fit.c | 82 >

[U-Boot] [PATCH v4 05/16] sandbox: Add a setjmp() implementation

2018-05-16 Thread Simon Glass
Add an implementation of setjmp() and longjmp() which rely on the underlying host C library. Since we cannot know how large the jump buffer needs to be, pick something that should be suitable and check it at runtime. At present we need access to the underlying struct as well. Signed-off-by: Simon

[U-Boot] [PATCH v4 03/16] efi: sandbox: Adjust memory usage for sandbox

2018-05-16 Thread Simon Glass
With sandbox the U-Boot code is not mapped into the sandbox memory range so does not need to be excluded when allocating EFI memory. Update the EFI memory init code to take account of that. Also use mapmem instead of a cast to convert a memory address to a pointer. Signed-off-by: Simon Glass

[U-Boot] [PATCH v4 14/16] efi: sandbox: Add a simple 'bootefi test' command

2018-05-16 Thread Simon Glass
This jumps to test code which can call directly into the EFI support. It does not need a separate image so it is easy to write tests with it. This test can be executed without causing problems to the run-time environemnt (e.g. U-Boot does not need to reboot afterwards). For now the test just

Re: [U-Boot] [PATCH v1 16/21] display5: net: Add function to read ethaddr from iMX6 fuses

2018-05-16 Thread Joe Hershberger
On Wed, May 16, 2018 at 9:46 AM, Lukasz Majewski wrote: > Hi Joe, > >> Hi Lukasz, >> >> On Fri, May 11, 2018 at 9:51 AM, Lukasz Majewski >> wrote: >> > Signed-off-by: Lukasz Majewski >> > --- >> > >> > board/liebherr/display5/display5.c | 21

Re: [U-Boot] [PATCH v5 4/9] board: ti: dra7xx-evm: turn on USB clocks in late init stage

2018-05-16 Thread Jean-Jacques Hiblot
On 16/05/2018 11:04, Marek Vasut wrote: On 05/16/2018 11:00 AM, Jean-Jacques Hiblot wrote: On 16/05/2018 00:13, Marek Vasut wrote: On 05/15/2018 06:10 PM, Jean-Jacques Hiblot wrote: Hi Marek, On 04/05/2018 21:06, Marek Vasut wrote: Shouldnt the driver turn this on? AFAIK there is no

[U-Boot] [PATCH 0/6] Convert Xilinx ZynqMP to DM_USB with generic DWC3 glue logic driver

2018-05-16 Thread Michal Simek
Hi, this patchset is based on unfinished series send to ML 06/13/2017 by Vignesh "[U-Boot] [PATCH v2 00/13] driver model bring-up of dwc3 usb peripheral" We have taken some part of this to Xilinx tree and use it for a while but it is time to review it and upstream it. The patchset has 2 patches

Re: [U-Boot] [PATCH 3/6] usb: dwc3: Add generic DWC3 glue logic driver

2018-05-16 Thread Marek Vasut
On 05/16/2018 04:26 PM, Michal Simek wrote: > By enabling BLK by default this is the next driver which needs to get > support for DM_USB. Adding generic DWC3 glue logic which only > parse nodes and read device mode. Based on it probe proper > host/peripheral DWC3 drivers for it. > >

[U-Boot] [PATCH] usb: xhci: zynqmp: Fix header location

2018-05-16 Thread Michal Simek
There is no reason to specify header with full soc name. Symlink is setup automatically (arch -> arch-zynqmp) Signed-off-by: Michal Simek --- drivers/usb/host/xhci-zynqmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] How to usage eMMC in pSLC mode with LS1012ARDB

2018-05-16 Thread tarkashi
Hello, We would like to ask about uses eMMC in pSLC mode with LS1012ARDB. We want to try to set up pSLC. However, once we set it, we can not reverse it, so please let us ask the procedure. Our LS1012ARDB's eMMC is as follows. - => mmc dev 1 switch to partitions #0, OK

[U-Boot] [PATCH v2] ram: stm32_sdram: Adds stm32f429-disco fixes for HardFault at booting

2018-05-16 Thread Radoslaw Pietrzyk
- adds reading FMC swap setting from DTB to SDRAM driver - sets FMC swap for stm32f429-disco board - changes ram start address to 0x9000 Signed-off-by: Radoslaw Pietrzyk --- arch/arm/dts/stm32f429-disco-u-boot.dtsi | 2 ++ drivers/ram/stm32_sdram.c

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

2018-05-16 Thread Tom Rini
On Wed, May 16, 2018 at 02:05:03PM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the Kirkwood DT patches from Chris. > > Thanks, > Stefan > > The following changes since commit 0315d6959fdd9d2a4d89016c311e9c8c8d239a10: > > ARM: mvebu: a38x: Add missing SPDX license identfier

Re: [U-Boot] [PATCH v3 13/13] net: fastboot: Merge AOSP UDP fastboot

2018-05-16 Thread Alex Kiernan
On Tue, May 15, 2018 at 5:05 PM Simon Glass wrote: > Hi Alex, > On 15 May 2018 at 07:11, Alex Kiernan wrote: > > On Mon, May 14, 2018 at 8:53 PM Simon Glass wrote: > > > >> Hi Alex, > > > >> On 14 May 2018 at 03:09, Alex Kiernan

Re: [U-Boot] [PATCH v3 07/21] efi: sandbox: Adjust memory usage for sandbox

2018-05-16 Thread Simon Glass
Hi Heinrich, On 20 February 2018 at 10:12, Heinrich Schuchardt wrote: > On 02/19/2018 04:48 PM, Simon Glass wrote: >> >> With sandbox the U-Boot code is not mapped into the sandbox memory range >> so does not need to be excluded when allocating EFI memory. Update the EFI >>

[U-Boot] [PATCH v4 00/16] efi: Enable basic sandbox support for EFI loader

2018-05-16 Thread Simon Glass
A limitation of the EFI loader at present is that it does not build with sandbox. This makes it hard to write tests, since sandbox is used for most testing in U-Boot. This series enables the EFI loader feature. It allows sandbox to build and run a trivial function which calls the EFI API to

[U-Boot] [PATCH v4 04/16] sandbox: smbios: Update to support sandbox

2018-05-16 Thread Simon Glass
At present this code casts addresses to pointers so cannot be used with sandbox. Update it to use mapmem instead. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: - Drop incorrect map_sysmem() in write_smbios_table() Changes in v2: None lib/smbios.c | 32

[U-Boot] [PATCH v4 01/16] efi: Init the 'rows' and 'cols' variables

2018-05-16 Thread Simon Glass
The current code causes a compiler error on gcc 4.8.4 as used by sandbox on Ubuntu 14.04, which is fairly recent. Init these variables to fix the problem. Signed-off-by: Simon Glass --- Changes in v4: - Move the fix to query_console_serial() Changes in v3: - Add new patch to

Re: [U-Boot] [PATCH] drivers: usb: dwc3: remove devm_zalloc from linux_compact

2018-05-16 Thread Marek Vasut
On 05/16/2018 03:17 PM, Michal Simek wrote: > From: Mugunthan V N > > devm_zalloc() is already defined in dm/device.h header, so > devm_zalloc can be removed from linux_compact.h beader file. > > Signed-off-by: Mugunthan V N > Signed-off-by: Michal

Re: [U-Boot] [PATCH v2] phy: add support for STM32 usb phy controller

2018-05-16 Thread Marek Vasut
On 05/15/2018 03:27 PM, Patrice CHOTARD wrote: > Hi Marek > > On 04/27/2018 11:18 AM, Marek Vasut wrote: >> On 04/27/2018 11:01 AM, Patrice Chotard wrote: >>> This patch adds phy tranceiver driver for STM32 USB PHY >>> Controller (usbphyc) that provides dual port High-Speed >>> phy for OTG

[U-Boot] [PATCH 1/6] usb: dwc3: Add dwc3_init/remove with DM_USB

2018-05-16 Thread Michal Simek
From: Mugunthan V N The patch is preparing dwc3 core for enabling DM_USB with peripheral driver with using driver model support. The driver will be bound by the DWC3 wrapper driver based on the dr_mode device tree entry. Signed-off-by: Mugunthan V N

[U-Boot] [PATCH 2/6] usb: common: add support to get maximum speed from dt

2018-05-16 Thread Michal Simek
From: Mugunthan V N Add support to get maximum speed from dt so that usb drivers makes use of it for DT parsing. Signed-off-by: Mugunthan V N Signed-off-by: Michal Simek (rebase and fix errors) ---

[U-Boot] [PATCH 1/4] phy: marvell: Support changing SERDES map in board file

2018-05-16 Thread Marek Behún
This adds a weak definition of board_update_comphy_map to comphy_core, which does nothing. If this function is defined elsewhere, for example in board file, the board file can change some parameters of SERDES configuration. This is needed on Turris Mox, where the SERDES speed on lane 1 has to be

Re: [U-Boot] [PATCH v5] tpm2: tis_spi: add the possibility to reset the chip with a gpio

2018-05-16 Thread Simon Glass
On 16 May 2018 at 16:59, Miquel Raynal wrote: > > On some designs, the reset line could not be connected to the SoC reset > line, in this case, request the GPIO and ensure the chip gets reset. > > Signed-off-by: Miquel Raynal > --- > >

Re: [U-Boot] [PATCH 4/8] cmd: avb2.0: avb command for performing verification

2018-05-16 Thread Simon Glass
Hi Igor, On 16 May 2018 at 02:20, Igor Opaniuk wrote: > Hi Simon, > >> If there is no need for operations and indirection through function >> pointers, why not just call the functions directly? > > This is the way how libavb is integrated into bootloader. libavb

[U-Boot] [PATCH v4 02/16] efi: Update some comments related to smbios tables

2018-05-16 Thread Simon Glass
Clarify the operation of this code with some additional comments. Signed-off-by: Simon Glass --- Changes in v4: - Remove code already applied - Update subject Changes in v3: - Add comments on aligment - Return error value of efi_allocate_pages() - Update function comment for

[U-Boot] [PATCH v4 16/16] efi: Rename bootefi_test_finish() to bootefi_run_finish()

2018-05-16 Thread Simon Glass
This function can be used from do_bootefi_exec() so that we use mostly the same code for a normal EFI application and an EFI test. Rename the function and use it in both places. Signed-off-by: Simon Glass --- Changes in v4: - Rebase to master Changes in v3: - Add new patch

[U-Boot] [PATCH v4 15/16] efi: Create a function to set up for running EFI code

2018-05-16 Thread Simon Glass
Add a new bootefi_run_prepare() function which holds common code used to set up U-Boot to run EFI code. Make use of this from the existing bootefi_test_prepare() function, as well as do_bootefi_exec(). Also shorten a few variable names. Signed-off-by: Simon Glass --- Changes

[U-Boot] [PATCH v4 06/16] efi: sandbox: Add required linker sections

2018-05-16 Thread Simon Glass
The EFI loader code requires certain linker sections to exist. Add these for sandbox so that the EFI loader code will link. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None arch/sandbox/cpu/u-boot.lds | 29

Re: [U-Boot] [cosmetic PATCH v1] ARM: socfpga: Fix Documentation errors in scu_registers

2018-05-16 Thread Marek Vasut
On 05/15/2018 06:45 PM, Ben Kalo wrote: > According to ARM Cortex-A9 MPCore TRM section 2.2 - SCU registers > Access Control register offset is 0x50. > > Signed-off-by: Ben Kalo > Cc: Marek Vasut > Cc: Albert Aribaud > --- > >

Re: [U-Boot] [PATCH v5 4/9] board: ti: dra7xx-evm: turn on USB clocks in late init stage

2018-05-16 Thread Marek Vasut
On 05/16/2018 11:00 AM, Jean-Jacques Hiblot wrote: > > > On 16/05/2018 00:13, Marek Vasut wrote: >> On 05/15/2018 06:10 PM, Jean-Jacques Hiblot wrote: >>> Hi Marek, >>> >>> >>> On 04/05/2018 21:06, Marek Vasut wrote: Shouldnt the driver turn this on? >>> AFAIK there is no clock

Re: [U-Boot] [PATCH 1/1] spi: atcspi200: avoid NULL dereference

2018-05-16 Thread Jagan Teki
On Sun, Mar 18, 2018 at 5:11 PM, Heinrich Schuchardt wrote: > For SPI_XFER_BEGIN | SPI_XFER_END the code sets data_out = NULL. > In the debug statement we should not dereference this value. > As we do not transfer any data the debug statement is not needed in this > case

[U-Boot] [PATCH 3/6] usb: dwc3: Add generic DWC3 glue logic driver

2018-05-16 Thread Michal Simek
By enabling BLK by default this is the next driver which needs to get support for DM_USB. Adding generic DWC3 glue logic which only parse nodes and read device mode. Based on it probe proper host/peripheral DWC3 drivers for it. Signed-off-by: Michal Simek ---

[U-Boot] [PATCH 2/4] board: turris_mox: Change SERDES map depending on module topology

2018-05-16 Thread Marek Behún
When SFP module is present, the SGMII lane speed should be 1.25 Gbps, otherwise SFP won't work. Topaz still needs 3.125 Gbps. Signed-off-by: Marek Behun diff --git a/board/CZ.NIC/turris_mox/turris_mox.c b/board/CZ.NIC/turris_mox/turris_mox.c index 130d4c606d..f7fb2c2955

[U-Boot] [PATCH 4/4] board: turris_mox: Add gpio command to defconfig

2018-05-16 Thread Marek Behún
This can be used to detect whether the button is pressed or light the LED diode. Signed-off-by: Marek Behun diff --git a/configs/turris_mox_defconfig b/configs/turris_mox_defconfig index 7dea7157dc..9538903bd3 100644 --- a/configs/turris_mox_defconfig +++

[U-Boot] [PATCH 3/4] board: turris_mox: Support differentiating SD version from eMMC

2018-05-16 Thread Marek Behún
The first byte of the string read from SPI bus from which Mox module toplogy is detected contains ID of the CPU module. This ID can differentiate between the version with SD card slot and the one with eMMC card. Signed-off-by: Marek Behun diff --git

Re: [U-Boot] [PATCH v2 2/7] serial: serial_msm: fail probe if settings clocks fails

2018-05-16 Thread Simon Glass
On 16 May 2018 at 03:13, Ramon Fried wrote: > Failure to set the clocks will causes data abort exception when > trying to write to AHB uart registers. > This patch ensures that we don't touch these registers if clock > setting failed. > > Signed-off-by: Ramon Fried

Re: [U-Boot] [PATCH] Remove CONFIG_MVGBE from config_whitelist.txt

2018-05-16 Thread Simon Glass
On 16 May 2018 at 02:34, Chris Packham wrote: > Now that there are more boards defining this it can be removed from the > whitelist. > > Signed-off-by: Chris Packham > --- > > scripts/config_whitelist.txt | 1 - > 1 file changed, 1 deletion(-)

  1   2   >