Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-24 Thread Simon Goldschmidt
On 25.07.2018 08:40, Michal Simek wrote: On 25.7.2018 08:26, Simon Goldschmidt wrote: On 24.07.2018 15:07, Michal Simek wrote: There is no reason to limit gzip usage only for OS_BOOT and kernel image type. > Signed-off-by: Michal Simek ---   common/spl/spl_fit.c | 5 +   1 file changed

Re: [U-Boot] [PATCH] Fix LibreSSL before v2.7.0

2018-07-24 Thread Jonathan Gray
On Tue, Jul 24, 2018 at 07:47:48PM -0400, nom...@palism.com wrote: > From: Nomble > > Signed-off-by: Nomble > Signed-off-by: Caliph Nomble > --- > lib/rsa/rsa-sign.c | 13 +++-- > 1 file changed, 7 insertions(+), 6 deletions(-) > > diff --git a/lib/rsa/rsa-sign.c b/lib/rsa/rsa-sign.c

Re: [U-Boot] i.MX6Q SPL won't boot U-Boot from NAND

2018-07-24 Thread Jagan Teki
On Wed, Jul 25, 2018 at 12:55 AM, Adam Ford wrote: > I am trying to boot an i.MX6Q via SPL to U-Boot and eventually, use > Falcon mode to start the kernel. I can boot via SPL over USB. I have > enabled the NAND and SPL NAND, and i can confirm that mxs_nand_spl.c > is being built in. The board i

Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-24 Thread Michal Simek
On 25.7.2018 08:26, Simon Goldschmidt wrote: > > > On 24.07.2018 15:07, Michal Simek wrote: >> There is no reason to limit gzip usage only for OS_BOOT and kernel image >> type. > >> Signed-off-by: Michal Simek >> --- >> >>   common/spl/spl_fit.c | 5 + >>   1 file changed, 1 insertion(+), 4 d

Re: [U-Boot] [PATCH 3/4] gpio: xilinx: Not read output values via regs

2018-07-24 Thread Michal Simek
On 24.7.2018 21:56, Stefan Herbrechtsmeier wrote: > Am 24.07.2018 um 12:31 schrieb Michal Simek: >> On 23.7.2018 20:42, Stefan Herbrechtsmeier wrote: >>> Am 23.07.2018 um 13:43 schrieb Michal Simek: Reading registers for finding out output value is not working because input value is read

Re: [U-Boot] [PATCH v4 6/6] common: Generic loader for file system

2018-07-24 Thread Chee, Tien Fong
On Wed, 2018-07-18 at 16:48 +0200, Michal Simek wrote: > On 6.7.2018 10:28, tien.fong.c...@intel.com wrote: > > > > 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 wo

Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-24 Thread Simon Goldschmidt
On 24.07.2018 15:07, Michal Simek wrote: There is no reason to limit gzip usage only for OS_BOOT and kernel image type. > Signed-off-by: Michal Simek --- common/spl/spl_fit.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c

Re: [U-Boot] [RFC PATCH] gpio: zynq: Setup bank_name to dev->name

2018-07-24 Thread Michal Simek
On 24.7.2018 21:39, Stefan Herbrechtsmeier wrote: > Am 24.07.2018 um 10:37 schrieb Michal Simek: >> On 23.7.2018 20:29, Stefan Herbrechtsmeier wrote: >>> Am 23.07.2018 um 11:08 schrieb Michal Simek: On 20.7.2018 21:31, Stefan Herbrechtsmeier wrote: > Am 12.07.2018 um 16:04 schrieb Michal S

Re: [U-Boot] [PATCH] arm64: zynqmp: Add support for Avnet Ultra96

2018-07-24 Thread Michal Simek
On 24.7.2018 21:54, Marek Vasut wrote: > On 07/24/2018 04:38 PM, Michal Simek wrote: >> Avnet Ultra96 is rebranded Xilinx zcu100 revC/D. Add new defconfig files >> and point to origin internal board name. >> >> Signed-off-by: Michal Simek >> --- > > [...] > >> diff --git a/arch/arm/dts/avnet-ult

Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-24 Thread Michal Simek
On 24.7.2018 18:26, York Sun wrote: > On 07/24/2018 06:07 AM, Michal Simek wrote: >> There is no reason to limit gzip usage only for OS_BOOT and kernel image >> type. >> >> Signed-off-by: Michal Simek >> --- >> >> common/spl/spl_fit.c | 5 + >> 1 file changed, 1 insertion(+), 4 deletions(-) >

Re: [U-Boot] [PATCH] ddr: altera: Add ECC DRAM scrubbing support for Stratix 10

2018-07-24 Thread Chee, Tien Fong
On Tue, 2018-07-24 at 12:52 +0200, Marek Vasut wrote: > On 07/24/2018 10:10 AM, Chee, Tien Fong wrote: > > > > On Mon, 2018-07-23 at 11:46 +0200, Marek Vasut wrote: > > > > > > On 07/23/2018 10:20 AM, tien.fong.c...@intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee > > > > > > > >

[U-Boot] [PATCH v2 2/4] arm: odroid: Increase default env size in preparation for distro_bootcmd.

2018-07-24 Thread Vagrant Cascadian
Adding distro_bootcmd support bumps the default environment size over 4500. Increase to SZ_16K to allow for room to grow in the future. Acked-by: Lukasz Majewski Signed-off-by: Vagrant Cascadian --- Changes in v2: - Change from 16384 to SZ_16K, as suggested by Minkyu Kang. include/configs/od

[U-Boot] [PATCH v2 4/4] arm: odroid: Inherit default value for bootdelay from distro_bootcmd.

2018-07-24 Thread Vagrant Cascadian
The default value with distro_bootcmd is 2 seconds, which is reasonably fast, and provides a consistent experience across platforms supporting distro_bootcmd. The current bootdelay value of 0 seconds is a bit challenging to interrupt when desired. Acked-by: Lukasz Majewski Signed-off-by: Vagran

[U-Boot] [PATCH v2 3/4] arm: odroid: Enable distro_bootcmd support.

2018-07-24 Thread Vagrant Cascadian
Enable distro_bootcmd for a standardized boot process across multiple platforms. Acked-by: Lukasz Majewski Signed-off-by: Vagrant Cascadian --- Changes in v2: None include/configs/odroid.h | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/configs/odroid.h

[U-Boot] [PATCH v2 1/4] arm: odroid: Use standard environment variable names kernel_addr_r, ramdisk_addr_r and fdt_addr_r.

2018-07-24 Thread Vagrant Cascadian
Replace non-standard variable names kerneladdr, initrdaddr and fdtaddr with kernel_addr_r, ramdisk_addr_r and fdt_addr_r, as documented in u-boot README. Acked-by: Lukasz Majewski Signed-off-by: Vagrant Cascadian --- Changes in v2: None include/configs/odroid.h | 24 +++-

[U-Boot] [PATCH v2 0/4] arm: odroid: Convert to distro_bootcmd.

2018-07-24 Thread Vagrant Cascadian
Switch odroid platform to use distro_bootcmd, adjusting to use standardized environment variable names, and use the default bootdelay. The additional environment variables from distro_bootcmd requires increasing the default environment size, which would break backwards compatibility with saved en

Re: [U-Boot] [PATCH] tools: genboardscfg: move buildman path to first

2018-07-24 Thread Simon Glass
Hi Peng, On 24 July 2018 at 19:51, Peng Fan wrote: > Hi Simon, > >> -Original Message- >> From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass >> Sent: 2018年7月25日 10:45 >> To: Peng Fan >> Cc: U-Boot Mailing List ; dl-linux-imx >> ; Masahiro Yamada ; >> Tom Rini >> Sub

Re: [U-Boot] [PULL] efi patch queue 2018-07-10

2018-07-24 Thread Simon Glass
Hi Alex, On 10 July 2018 at 14:06, Alexander Graf wrote: > > > > On 10.07.18 23:04, Alexander Graf wrote: > > > > > > On 10.07.18 22:55, Tom Rini wrote: > >> On Tue, Jul 10, 2018 at 06:06:56PM +0200, Alexander Graf wrote: > >> > >>> Hi Tom, > >>> > >>> This is my current patch queue for efi. Ple

Re: [U-Boot] [PATCH V2] drivers: regulator: fixed: add u-boot, off-on-delay-us

2018-07-24 Thread Fabio Estevam
Hi Peng, On Wed, Jul 25, 2018 at 12:02 AM, Peng Fan wrote: > I was not aware of this place. I am not sure, because there is also a > Documentation/devicetree/bindings/ directory. Yes, currently we have only a few bindings inside Documentation/devicetree/bindings/. Most of the bindings are ins

Re: [U-Boot] [PATCH 0/6] driver: net: fsl-mc: Add support of multiple phys for dpmac

2018-07-24 Thread Pankaj Bansal
Hi Joe, Can you please review these changes ? Regards, Pankaj Bansal > -Original Message- > From: Prabhakar Kushwaha > Sent: Thursday, July 19, 2018 9:06 AM > To: Pankaj Bansal ; u-boot@lists.denx.de > Cc: Priyanka Jain ; Varun Sethi > ; York Sun ; > joe.hershber...@ni.com > Subject: RE:

Re: [U-Boot] [PATCH V2] drivers: regulator: fixed: add u-boot, off-on-delay-us

2018-07-24 Thread Peng Fan
Hi Fabio, > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2018年7月25日 10:59 > To: Peng Fan > Cc: Simon Glass ; U-Boot-Denx ; > dl-linux-imx ; Breno Matheus Lima > Subject: Re: [U-Boot] [PATCH V2] drivers: regulator: fixed: add u-boot, > off-on-delay-us > >

Re: [U-Boot] [PATCH V2] drivers: regulator: fixed: add u-boot, off-on-delay-us

2018-07-24 Thread Fabio Estevam
Hi Peng, On Tue, Jul 24, 2018 at 5:11 AM, Peng Fan wrote: > .../devicetree/bindings/regulator/fixed-regulator.txt| 16 > > drivers/power/regulator/fixed.c | 6 ++ > 2 files changed, 22 insertions(+) > create mode 100644 > Documentation/devic

Re: [U-Boot] [PATCH 1/4] configs: opos6uldev: undef CONFIG_POWER_DOMAIN when SPL_BUILD

2018-07-24 Thread Peng Fan
Hi Simon, > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: 2018年7月25日 10:46 > To: Peng Fan > Cc: U-Boot Mailing List ; dl-linux-imx > ; Sébastien Szymanski > ; Stefano Babic > Subject: Re: [PATCH 1/4] configs: opos6uldev: undef CONFIG

Re: [U-Boot] [PATCH] tools: genboardscfg: move buildman path to first

2018-07-24 Thread Peng Fan
Hi Simon, > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: 2018年7月25日 10:45 > To: Peng Fan > Cc: U-Boot Mailing List ; dl-linux-imx > ; Masahiro Yamada ; > Tom Rini > Subject: Re: [PATCH] tools: genboardscfg: move buildman path to fir

Re: [U-Boot] [PATCH v2 6/6] ARM: dts: stm32mp157: Add ADC DT node

2018-07-24 Thread Simon Glass
On 24 July 2018 at 08:31, Fabrice Gasnier wrote: > Add ADC device tree node. This allows to get analog conversions on > stm32mp157. > > Signed-off-by: Fabrice Gasnier > --- > > Changes in v2: None > > --- > arch/arm/dts/stm32mp157.dtsi | 32 > 1 file changed, 32

Re: [U-Boot] [PATCH 4/4] dm: power-domain: query power domain after get device

2018-07-24 Thread Simon Glass
On 24 July 2018 at 01:45, Peng Fan wrote: > This is to test power_domain_on in device_probe. > If the device has a power-domain property, enable it > when probe the device. So add the test to check > whether it is powered on or not. > > Signed-off-by: Peng Fan > Cc: Simon Glass > --- > test/dm/

Re: [U-Boot] [PATCH 3/4] dm: core: device: enable power domain in probe

2018-07-24 Thread Simon Glass
On 24 July 2018 at 01:45, Peng Fan wrote: > Enable power domain associated with the device when probe. > > Signed-off-by: Peng Fan > Cc: Simon Glass > --- > drivers/core/device.c | 7 +++ > 1 file changed, 7 insertions(+) Reviewed-by: Simon Glass __

Re: [U-Boot] [PATCH 11/17] fs: add mkdir interface

2018-07-24 Thread Simon Glass
Hi, On 23 July 2018 at 19:45, AKASHI Takahiro wrote: > On Mon, Jul 23, 2018 at 07:56:58PM -0400, Tom Rini wrote: >> On Mon, Jul 23, 2018 at 05:48:13PM -0600, Simon Glass wrote: >> > Hi, >> > >> > On 20 July 2018 at 11:35, Heinrich Schuchardt wrote: >> > > On 07/20/2018 04:57 AM, AKASHI Takahiro

Re: [U-Boot] [PATCH V2] drivers: regulator: fixed: add u-boot, off-on-delay-us

2018-07-24 Thread Simon Glass
On 24 July 2018 at 02:11, Peng Fan wrote: > Add u-boot,off-on-delay-us for fixed regulator. > > Depends on board design, the gpio regulator sometimes > connects with a big capacitance. When need to off, then > on the regulator, if there is no enough delay, > the voltage does not drop to 0, so intr

Re: [U-Boot] [PATCH 1/4] configs: opos6uldev: undef CONFIG_POWER_DOMAIN when SPL_BUILD

2018-07-24 Thread Simon Glass
Hi Peng, On 24 July 2018 at 01:45, Peng Fan wrote: > Because CONFIG_POWER_DOMAIN is enabled in defconfig, > however driver/power/domain is not built for SPL, there is build > failure when power_domain_on added to device_probe. > Because power domain is not needed in SPL, let's undef it. > > Signe

Re: [U-Boot] [PATCH 2/4] power-domain: add dummy functions when CONFIG_POWER_DOMAIN not defined

2018-07-24 Thread Simon Glass
Hi Peng, On 24 July 2018 at 01:45, Peng Fan wrote: > Add dummy functions when CONFIG_POWER_DOMAIN not defined. > > Signed-off-by: Peng Fan > Reviewed-by: Simon Glass > --- > include/power-domain.h | 28 > 1 file changed, 28 insertions(+) > > diff --git a/include/po

Re: [U-Boot] [PATCH v2 1/6] clk: add clk_valid()

2018-07-24 Thread Simon Glass
On 24 July 2018 at 08:31, Fabrice Gasnier wrote: > Add clk_valid() to check for optional clocks are valid. > Call clk_valid() in test/dm/clk.c and add relevant test routine to > sandbox clk tests. > > Signed-off-by: Fabrice Gasnier > --- > > Changes in v2: > - add test case for 'clk_valid()', e.g

Re: [U-Boot] [PATCH v2 2/6] dm: adc: uclass: get reference regulator once

2018-07-24 Thread Simon Glass
On 24 July 2018 at 08:31, Fabrice Gasnier wrote: > device_get_supply_regulator() only needs to be called once. > But each time there's call to adc_vxx_value() for instance, it calls > adc_vxx_platdata_update() -> device_get_supply_regulator(). > > So, move device_get_supply_regulator() to pre_prob

Re: [U-Boot] [PATCH] tools: genboardscfg: move buildman path to first

2018-07-24 Thread Simon Glass
Hi Peng, On 24 July 2018 at 00:27, Peng Fan wrote: > To system which has kconfiglib installed, genboardscfg will > use system kconfiglib, we need it use U-Boot owned version, > so move the buildman path to first. > > Signed-off-by: Peng Fan > Cc: Masahiro Yamada > Cc: Simon Glass > Cc: Tom Rin

Re: [U-Boot] [PATCH v3 2/5] Revert "dm: led: auto probe() LEDs with "default-state""

2018-07-24 Thread Simon Glass
On 24 July 2018 at 02:58, Patrick Delaunay wrote: > > This reverts commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7. > because this patch adds the probe of LED driver during the > binding phasis. It is not allowed in driver model because > the drivers (clock, pincontrol) needed by the LED driver ca

Re: [U-Boot] ext4: massive corruption with ext4write

2018-07-24 Thread Aaron Williams
On Tuesday, July 24, 2018 2:45:42 AM PDT Marek Vasut wrote: > External Email > > On 07/24/2018 08:25 AM, Aaron Williams wrote: > > On Monday, July 23, 2018 11:15:59 PM PDT Aaron Williams wrote: > >> External Email > >> > >> Hi all, > >> > >> It looks like after a certain amount of data has been

Re: [U-Boot] [RFC 1/1] efi_loader: check parameters of efi_file_open()

2018-07-24 Thread AKASHI, Takahiro
On Sun, Jul 22, 2018 at 01:34:13PM +0200, Heinrich Schuchardt wrote: > Check the parameters of efi_file_open(). > > Signed-off-by: Heinrich Schuchardt > --- > Hello Takahiro, > > this patch is necessary to become more UEFI compliant. But it interferes > with your FAT patch series. > > You might

Re: [U-Boot] [PATCH V2 29/32] fsl_esdhc: Update usdhc driver to support i.MX8

2018-07-24 Thread Peng Fan
Hi Troy, > -Original Message- > From: Troy Kisky [mailto:troy.ki...@boundarydevices.com] > Sent: 2018年7月25日 2:27 > To: Fabio Estevam ; Peng Fan > Cc: Fabio Estevam ; U-Boot-Denx > ; dl-linux-imx > Subject: Re: [U-Boot] [PATCH V2 29/32] fsl_esdhc: Update usdhc driver to > support i.MX8 >

[U-Boot] [PATCH] sunxi: A64: fix default DRAM_ODT_EN symbol

2018-07-24 Thread Andre Przywara
"default" lines in Kconfig are processed in order, the first hit will stop considering subsequent lines. In the case of the DRAM_ODT_EN symbol that means that everything following the first two lines will never be checked: config DRAM_ODT_EN bool "sunxi dram odt enable"

[U-Boot] [PATCH 2/2] armv8: make SPL exception vectors optional

2018-07-24 Thread Andre Przywara
Even though the exception vector table is a fundamental part of the ARM architecture, U-Boot mostly does not make real use of it, except when crash dumping. But having it in takes up quite some space, partly due to the architectural alignment requirement of 2KB. Since we don't take special care of

[U-Boot] [PATCH 0/2] armv8: reduce exception handling code size

2018-07-24 Thread Andre Przywara
These two patches try to address the issue that the default ARMv8 exception vectors take up quite some code space, but don't provide much benefit apart from a crash dump. Since the overhead might not be justified for some very size-restricted SPLs, we try to reduce the code size: - Patch 1/2 stuffs

[U-Boot] [PATCH 1/2] armv8: Reduce exception handling code

2018-07-24 Thread Andre Przywara
The arm64 exception handling code is quite big, mostly due to architectural alignment requirements. Each exception entry spans 32 instructions, which sounds generous, but is too small to fit all of the save/branch/restore code in there. So at the moment we use only four instructions, branching into

[U-Boot] [GIT PULL] u-boot-uniphier/master

2018-07-24 Thread Masahiro Yamada
Hi Tom, Please pull UniPhier updates + Kconfig warning fix. Thanks. The following changes since commit 323a73adc9a1bf2de43fe03bdd9c3038ce7c2784: mtd: nand: add new enum for storing ECC algorithm (2018-07-23 14:33:21 -0400) are available in the git repository at: git://git.denx.de/u-boot

[U-Boot] [PATCH] Fix LibreSSL before v2.7.0

2018-07-24 Thread nomble
From: Nomble Signed-off-by: Nomble Signed-off-by: Caliph Nomble --- lib/rsa/rsa-sign.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/rsa/rsa-sign.c b/lib/rsa/rsa-sign.c index cfe09cc94c..ab8572894d 100644 --- a/lib/rsa/rsa-sign.c +++ b/lib/rsa/rsa-sign.c

Re: [U-Boot] [PATCH] kconfig: Avoid format overflow warning from GCC 8.1

2018-07-24 Thread Masahiro Yamada
2018-07-06 5:55 GMT+09:00 Luis Araneda : > cherry-pick kernel commit 2ae89c7 (2018-06-05) > to avoid warnings when compiling with GCC 8.1 > > In file included from scripts/kconfig/zconf.tab.c:2486: > scripts/kconfig/confdata.c: In function ‘conf_write’: > scripts/kconfig/confdata.c:771:22: warning:

Re: [U-Boot] [PATCH] ARM: uniphier: enable distro boot

2018-07-24 Thread Masahiro Yamada
2018-07-20 21:47 GMT+09:00 Masahiro Yamada : > Switch to the distro boot for UniPhier platform. > > - Remove the environment vairalbes used to load images from raw >block devices. > > - Keep the command to download images via tftp. This will be >useful to boot the kernel when no valid ke

Re: [U-Boot] [PATCH] mtd: nand: denali: correct buffer alignment for DMA transfer

2018-07-24 Thread Masahiro Yamada
2018-07-19 10:13 GMT+09:00 Masahiro Yamada : > The NAND framework makes sure to pass in the buffer with at least > chip->buf_align alignment. Currently, the Denali NAND driver only > requests 16 byte alignment. This causes unaligned cache operations > for the DMA transfer. > > [Error Example] > >

Re: [U-Boot] [PATCH 1/6] fdt_support: make fdt_fixup_mtdparts() prototype more specific

2018-07-24 Thread Masahiro Yamada
2018-07-19 16:28 GMT+09:00 Masahiro Yamada : > The second argument of fdt_fixup_mtdparts() is an opaque pointer, > 'void *node_info', hence callers can pass any pointer. > > Obviously, fdt_fixup_mtdparts() expects 'struct node_info *' > otherwise, it crashes run-time. > > Change the prototype so th

Re: [U-Boot] [PATCH] tools: genboardscfg: move buildman path to first

2018-07-24 Thread Masahiro Yamada
2018-07-24 15:27 GMT+09:00 Peng Fan : > To system which has kconfiglib installed, genboardscfg will > use system kconfiglib, we need it use U-Boot owned version, > so move the buildman path to first. > > Signed-off-by: Peng Fan > Cc: Masahiro Yamada > Cc: Simon Glass > Cc: Tom Rini > --- Acke

[U-Boot] [PATCH V2] ti_omap3_common: Add CONFIG_SYS_NS16550_COMx entries

2018-07-24 Thread Adam Ford
Several boards do not use the default UART3, so they do a check for ifdef CONFIG_SPL_BUILD and enable the pointer for CONFIG_SYS_NS16550_COMx to point to OMAP34XX_UARTx. Let's consoldate this all into one place, and remove them from the individual boards. Signed-off-by: Adam Ford --- V2: Reba

Re: [U-Boot] [PATCH] arm64: zynqmp: Add support for Avnet Ultra96

2018-07-24 Thread Marek Vasut
On 07/24/2018 04:38 PM, Michal Simek wrote: > Avnet Ultra96 is rebranded Xilinx zcu100 revC/D. Add new defconfig files > and point to origin internal board name. > > Signed-off-by: Michal Simek > --- [...] > diff --git a/arch/arm/dts/avnet-ultra96-rev1.dts > b/arch/arm/dts/avnet-ultra96-rev1.d

[U-Boot] [PATCH 06/10] net: Add an accessor to know if waiting for ARP

2018-07-24 Thread Joe Hershberger
This single-sources the state of the ARP. Signed-off-by: Joe Hershberger --- include/net.h | 1 + net/arp.c | 11 --- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/net.h b/include/net.h index f9984ae86c..63718a47f2 100644 --- a/include/net.h +++ b/include/n

[U-Boot] [PATCH 07/10] net: sandbox: Add a priv ptr for tests to use

2018-07-24 Thread Joe Hershberger
Signed-off-by: Joe Hershberger --- arch/sandbox/include/asm/eth.h | 9 + drivers/net/sandbox.c | 20 2 files changed, 29 insertions(+) diff --git a/arch/sandbox/include/asm/eth.h b/arch/sandbox/include/asm/eth.h index 6dabbf00ab..6bb3f1bbfd 100644 --- a/ar

[U-Boot] [PATCH 00/10] net: Fix packet corruption issue when handling asynch replies

2018-07-24 Thread Joe Hershberger
The issue [1] was reported by (Peter) Tran Tien Dat. Unfortunately his fix for the issue broke notmal operation and I don't feel is a good way to address the issue. Also, the situation was not covered in the unit tests, so we'll add them now. First we refactor the unit test capability of the sandb

[U-Boot] [PATCH 03/10] net: sandbox: Make the fake eth driver response configurable

2018-07-24 Thread Joe Hershberger
Make the send handler registerable so tests can check for different things. Signed-off-by: Joe Hershberger --- arch/sandbox/include/asm/eth.h | 17 ++ drivers/net/sandbox.c | 53 ++ 2 files changed, 66 insertions(+), 4 deletions(-) d

[U-Boot] [PATCH 10/10] net: Don't overwrite waiting packets with asynchronous replies

2018-07-24 Thread Joe Hershberger
Peter originally sent a fix, but it breaks a number of other things. This addresses the original reported issue in a different way. That report was: > U-Boot has 1 common buffer to send Ethernet frames, pointed to by > net_tx_packet. When sending to an IP address without knowing the MAC > addres

[U-Boot] [PATCH 02/10] net: sandbox: Refactor sandbox send function

2018-07-24 Thread Joe Hershberger
Make the behavior of the send function reusable. Signed-off-by: Joe Hershberger --- arch/sandbox/include/asm/eth.h | 20 + drivers/net/sandbox.c | 176 - 2 files changed, 124 insertions(+), 72 deletions(-) diff --git a/arch/sandbox/include/

[U-Boot] [PATCH 08/10] test: eth: Add a test for ARP requests

2018-07-24 Thread Joe Hershberger
This tests that ARP requests made to this target's IP address are responded-to by the target when it is doing other networking operations. This currently corrupts the ongoing operation of the device if it happens to be awaiting an ARP reply of its own to whatever serverip it is attempting to commu

[U-Boot] [PATCH 09/10] test: eth: Add a test for the target being pinged

2018-07-24 Thread Joe Hershberger
The target will respond to pings while doing other network handling. Make sure that the response happens and is correct. This currently corrupts the ongoing operation of the device if it happens to be awaiting an ARP reply of its own to whatever serverip it is attempting to communicate with. In th

[U-Boot] [PATCH 04/10] net: sandbox: Share the priv structure with tests

2018-07-24 Thread Joe Hershberger
If tests want to implement tx handlers, they will likely need access to the details in the priv structure. Signed-off-by: Joe Hershberger --- arch/sandbox/include/asm/eth.h | 19 +++ drivers/net/sandbox.c | 19 --- 2 files changed, 19 insertions(+), 19 d

[U-Boot] [PATCH 05/10] net: sandbox: Allow fake eth to handle more than 1 packet response

2018-07-24 Thread Joe Hershberger
Use up to the max allocated receive buffers so be able to test more complex situations. Signed-off-by: Joe Hershberger --- arch/sandbox/include/asm/eth.h | 10 +--- drivers/net/sandbox.c | 57 ++ 2 files changed, 52 insertions(+), 15 deletion

[U-Boot] [PATCH 01/10] net: sandbox: Move disabled flag into priv struct

2018-07-24 Thread Joe Hershberger
Store the per-device data with the device. Signed-off-by: Joe Hershberger --- drivers/net/sandbox.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c index b71c8f88d9..60fe065ee5 100644 --- a/drivers/net/sandbox

Re: [U-Boot] [PATCH v2] cmd: fastboot: Validate user input

2018-07-24 Thread Lukasz Majewski
Hi Sam, > On Sat, Jun 30, 2018 at 7:20 AM, Simon Glass wrote: > > On 29 June 2018 at 11:59, Sam Protsenko > > wrote: > >> In case when user provides '-' as USB controller index, like this: > >> > >> => fastboot - > >> > >> data abort occurs in strcmp() function in do_fastboot(), here:

Re: [U-Boot] [PATCH v2 1/3] dfu: Fix data abort in dfu_free_entities()

2018-07-24 Thread Lukasz Majewski
Hi Sam, > On Fri, Jul 13, 2018 at 4:35 PM, Sam Protsenko > wrote: > > Commit 5d8fae79163e ("dfu: avoid memory leak") brings a regression > > which described below. This patch is effectively reverting that > > commit, adding corresponding comment to avoid such regressions in > > future. > > > > In

[U-Boot] [PATCH v2 0/6] Add support for STM32 ADC

2018-07-24 Thread Fabrice Gasnier
This series adds support for STM32 Analog to Digital Converter. STM32 ADC support is originally based on Linux kernel v4.18-rcs: - First two patches brings some changes in clk and adc uclass - Next two patches add STM32 ADC dt-bindings and driver for STM32MP1 and STM32H7 - Last patches add confi

[U-Boot] [PATCH 1/1] arm: socfpga: Add support for the ReflexCES R329 board

2018-07-24 Thread Xavier Ruppen
The ReflexCES PCIe carrier board Arria 10 SoC SoM (R329) provides access to all the features of the Arria 10 SoC SoM (R315) (Ethernet, OTG USB, Transceivers, UART) and adds further functions, including SFP+ connectors, PCIe x8 Gen3, USB3.0 and a wifi interface. No fpga portion is provided in fit_s

Re: [U-Boot] [PATCH 2/6] dm: adc: uclass: get reference regulator once

2018-07-24 Thread Fabrice Gasnier
On 07/24/2018 01:48 AM, Simon Glass wrote: > Hi Fabrice, > > On 23 July 2018 at 06:35, Fabrice Gasnier wrote: >> device_get_supply_regulator() only needs to be called once. >> But each time there's call to adc_vxx_value() for instance, it calls >> adc_vxx_platdata_update() -> device_get_supply_re

[U-Boot] [PATCH v2 6/6] ARM: dts: stm32mp157: Add ADC DT node

2018-07-24 Thread Fabrice Gasnier
Add ADC device tree node. This allows to get analog conversions on stm32mp157. Signed-off-by: Fabrice Gasnier --- Changes in v2: None --- arch/arm/dts/stm32mp157.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/dts/stm32mp157.dtsi b/arch/arm/d

[U-Boot] [PATCH v2 4/6] adc: Add driver for STM32 ADC

2018-07-24 Thread Fabrice Gasnier
This patch adds support for STMicroelectronics STM32 ADC (analog to digital converter). It's originally based on Linux kernel v4.18-rcs drivers/iio/adc/stm32-adc*. It's composed of: - core driver (UCLASS_SIMPLE_BUS) manages common resources (clk, regu). - child drivers (UCLASS_ADC) declare each ADC

[U-Boot] [PATCH v2 5/6] configs: stm32mp15: enable ADC

2018-07-24 Thread Fabrice Gasnier
Enable ADC on stm32mp15. - CONFIG_CMD_ADC - CONFIG_STM32_ADC Signed-off-by: Fabrice Gasnier Reviewed-by: Simon Glass --- Changes in v2: None configs/stm32mp15_basic_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/stm32mp15_basic_defconfig b/configs/stm

[U-Boot] [PATCH v2 1/6] clk: add clk_valid()

2018-07-24 Thread Fabrice Gasnier
Add clk_valid() to check for optional clocks are valid. Call clk_valid() in test/dm/clk.c and add relevant test routine to sandbox clk tests. Signed-off-by: Fabrice Gasnier --- Changes in v2: - add test case for 'clk_valid()', e.g. in test/dm/clk.c and sandbox. - Update TRUE/FALSE comments to lo

[U-Boot] [PATCH v2 3/6] dt-bindings: Document STM32 ADC DT bindings

2018-07-24 Thread Fabrice Gasnier
This patch adds documentation of device tree bindings for the STM32 ADC. It's based on linux-v4.18-rc* dt-bindings, at the time of writing: - Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt Signed-off-by: Fabrice Gasnier Reviewed-by: Simon Glass --- Changes in v2: None doc/device-t

[U-Boot] [PATCH v2 2/6] dm: adc: uclass: get reference regulator once

2018-07-24 Thread Fabrice Gasnier
device_get_supply_regulator() only needs to be called once. But each time there's call to adc_vxx_value() for instance, it calls adc_vxx_platdata_update() -> device_get_supply_regulator(). So, move device_get_supply_regulator() to pre_probe() routine. This also allows vdd_supply/vss_supply to be

Re: [U-Boot] [PATCH 3/4] gpio: xilinx: Not read output values via regs

2018-07-24 Thread Stefan Herbrechtsmeier
Am 24.07.2018 um 12:31 schrieb Michal Simek: On 23.7.2018 20:42, Stefan Herbrechtsmeier wrote: Am 23.07.2018 um 13:43 schrieb Michal Simek: Reading registers for finding out output value is not working because input value is read instead in case of tristate. Reported-by: Stefan Herbrechtsmeier

Re: [U-Boot] Ethernet sandox driver issue

2018-07-24 Thread Joe Hershberger
Hi Steven, On Mon, Jul 23, 2018 at 6:26 AM, Steven Stoner wrote: > Hello there, > > Sorry about this but I could use some assistance. I am trying to get the > ethernet to work under the sandbox and am having issues. I saw and applied > the patch from Joe Hershberger-2 that seemed to be releva

Re: [U-Boot] [RFC PATCH] gpio: zynq: Setup bank_name to dev->name

2018-07-24 Thread Stefan Herbrechtsmeier
Am 24.07.2018 um 10:37 schrieb Michal Simek: On 23.7.2018 20:29, Stefan Herbrechtsmeier wrote: Am 23.07.2018 um 11:08 schrieb Michal Simek: On 20.7.2018 21:31, Stefan Herbrechtsmeier wrote: Am 12.07.2018 um 16:04 schrieb Michal Simek: There should be proper bank name setup to distiguish betwe

[U-Boot] i.MX6Q SPL won't boot U-Boot from NAND

2018-07-24 Thread Adam Ford
I am trying to boot an i.MX6Q via SPL to U-Boot and eventually, use Falcon mode to start the kernel. I can boot via SPL over USB. I have enabled the NAND and SPL NAND, and i can confirm that mxs_nand_spl.c is being built in. The board is imx6q_logic Unfortunately, I have run into two issues. 1

Re: [U-Boot] [PATCH V2 29/32] fsl_esdhc: Update usdhc driver to support i.MX8

2018-07-24 Thread Fabio Estevam
On Tue, Jul 24, 2018 at 3:27 PM, Troy Kisky wrote: > Didn't we already discuss this and decide to be consistent with CONFIG_MX6 /7 > and the rest ? Good point. Peng, please use CONFIG_MX8 instead. Thanks ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH V2 29/32] fsl_esdhc: Update usdhc driver to support i.MX8

2018-07-24 Thread Troy Kisky
On 7/23/2018 5:51 PM, Fabio Estevam wrote: > Hi Peng, > > On Mon, Jul 23, 2018 at 9:45 PM, Peng Fan wrote: > >> In V1, I use CONFIG_IMX8, but I think there is no need to use it, because >> CONFIG_ARCH_IMX8 could do same thing. > > Yes, I prefer to drop "ARCH" for consistency. > >> I could reve

Re: [U-Boot] [PATCH v2 0/2] env: Make environment loading log more clear

2018-07-24 Thread Sam Protsenko
On Fri, Jul 20, 2018 at 6:18 PM, Sam Protsenko wrote: > This patch series intended to make boot log better. Basically here we > just remove unwanted error messages, relying on the message from most > deep API to be printed (like mmc subsystem). At the moment this looks > like most clean solution t

Re: [U-Boot] [PATCH v2 1/3] dfu: Fix data abort in dfu_free_entities()

2018-07-24 Thread Sam Protsenko
On Fri, Jul 13, 2018 at 4:35 PM, Sam Protsenko wrote: > Commit 5d8fae79163e ("dfu: avoid memory leak") brings a regression which > described below. This patch is effectively reverting that commit, adding > corresponding comment to avoid such regressions in future. > > In case of error in dfu_confi

Re: [U-Boot] [PATCH v2] cmd: fastboot: Validate user input

2018-07-24 Thread Sam Protsenko
On Sat, Jun 30, 2018 at 7:20 AM, Simon Glass wrote: > On 29 June 2018 at 11:59, Sam Protsenko wrote: >> In case when user provides '-' as USB controller index, like this: >> >> => fastboot - >> >> data abort occurs in strcmp() function in do_fastboot(), here: >> >> if (!strcmp(argv[1], "u

Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-24 Thread York Sun
On 07/24/2018 06:07 AM, Michal Simek wrote: > There is no reason to limit gzip usage only for OS_BOOT and kernel image > type. > > Signed-off-by: Michal Simek > --- > > common/spl/spl_fit.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/common/spl/spl_fit.c b/comm

Re: [U-Boot] [PATCH] armv8: layerscape: Enable EHCI access for LS1012A

2018-07-24 Thread York Sun
On 07/10/2018 07:11 PM, Ran Wang wrote: > Hi York, > >> -Original Message- >> From: York Sun >> Sent: Wednesday, July 11, 2018 05:06 >> To: Ran Wang ; Albert Aribaud >> >> Cc: u-boot@lists.denx.de >> Subject: Re: [PATCH] armv8: layerscape: Enable EHCI access for LS1012A >> >> On 07/02/201

[U-Boot] [PATCH v3] arm: zynq: add support for the zybo z7 board

2018-07-24 Thread Luis Araneda
The board is manufactured by Digilent Main features: - Soc: XC7Z010 (Z7-10) or XC7Z020 (Z7-20) - RAM: 1 GB DDR3L - FLASH: 16 MB QSPI - 1 Gbps Ethernet - USB 2.0 - microSD slot - Pcam camera connector - HDMI Tx and Rx - Audio codec: stereo out, stereo in, mic - 5 (Z7-10) or 6 (Z7-20) Pmod ports - 6

Re: [U-Boot] [PATCH 11/20] w1: enumerate sandbox driver if configured

2018-07-24 Thread Simon Glass
Hi Maxime, On 24 July 2018 at 00:58, Maxime Ripard wrote: > On Mon, Jul 23, 2018 at 05:48:25PM -0600, Simon Glass wrote: >> Hi, >> >> On 20 July 2018 at 08:01, Lukasz Majewski wrote: >> > Hi Eugen, >> > >> > Thanks for (re-)bringing the One wire support to u-boot. >> > >> >> Add a sandbox eeprom

Re: [U-Boot] [PATCH v2] arm: zynq: add support for the zybo z7 board

2018-07-24 Thread Luis Araneda
Hi Michal, On Tue, Jul 24, 2018 at 8:39 AM Michal Simek wrote: > [...] > This should be tuned more. That file is long because you support all > silicon version which is not needed at all. z7 is quite new product > where 3_0 tables are used. It means just manually remove that > PCW_SILICON_VERSION

[U-Boot] [PATCH] arm64: zynqmp: Add support for Avnet Ultra96

2018-07-24 Thread Michal Simek
Avnet Ultra96 is rebranded Xilinx zcu100 revC/D. Add new defconfig files and point to origin internal board name. Signed-off-by: Michal Simek --- MAINTAINERS| 1 + arch/arm/dts/Makefile | 1 + arch/arm/dts/avnet-ultra96-rev1.dts| 19 +++ bo

[U-Boot] [PATCH v4 4/8] armv8: fsl-layerscape: add missing debug stream ID

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor Add a define with a value for the missing debug stream ID. Signed-off-by: Laurentiu Tudor --- arch/arm/include/asm/arch-fsl-layerscape/stream_id_lsch2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-fsl-layerscape/stream_id_lsch2.h b/arch/

[U-Boot] [PATCH v4 3/8] misc: fsl_portals: setup QMAN_BAR{E} also on ARM platforms

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor QMAN_BAR{E} register setup was disabled on ARM platforms, however the register does need to be set. Enable the code also on ARMs and fix the CONFIG_SYS_QMAN_MEM_PHYS define to the correct value so that the newly enabled code works. Signed-off-by: Laurentiu Tudor --- arch/

[U-Boot] [PATCH v4 5/8] armv8: ls1046a: initial icid setup support

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor Add infrastructure for ICID setup and device tree fixup on ARM platforms. This include basic ICID setup for several devices. Signed-off-by: Laurentiu Tudor --- arch/arm/cpu/armv8/fsl-layerscape/Makefile| 1 + arch/arm/cpu/armv8/fsl-layerscape/icid.c | 110 +

[U-Boot] [PATCH v4 6/8] armv8: ls1046a: add icid setup for qman portals

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor Add support for ICID setting of qman portals and the required device tree fixups. Also fix an endiness issue in portal setup code. Signed-off-by: Laurentiu Tudor --- .../arm/cpu/armv8/fsl-layerscape/ls1046_ids.c | 16 +++ .../asm/arch-fsl-layerscape/fsl_portals.h

[U-Boot] [PATCH v4 7/8] armv8: ls1046a: setup fman ports ICIDs and device tree

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor Add support for ICID setting of fman ports and the required device tree fixups. Signed-off-by: Laurentiu Tudor --- arch/arm/cpu/armv8/fsl-layerscape/icid.c | 82 +++ .../arm/cpu/armv8/fsl-layerscape/ls1046_ids.c | 30 +++ .../asm/arch-fsl-layersca

[U-Boot] [PATCH v4 8/8] armv8: ls1046a: setup SEC ICIDs and fix up device tree

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor Add support for SEC ICID configuration and apply it for ls1046a. Also add code to make the necessary device tree fixups. Also included in this patch, while adding the new required JR defines sanitize the preexisting ones by dropping the CONFIG_ prefixes. Signed-off-by: Laur

[U-Boot] [PATCH v4 1/8] armv8: fsl-layerscape: add missing register blocks base address defines

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor Add defines for the edma and qdma register block base addresses. Signed-off-by: Laurentiu Tudor --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h b/arc

[U-Boot] [PATCH v4 2/8] armv8: ls1046a: advertise QMan v3 in configuration

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor The QMan IP block in this SoC is version 3.2 so advertise this in the SoC configuration header. Signed-off-by: Laurentiu Tudor --- arch/arm/include/asm/arch-fsl-layerscape/config.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-fsl-layerscap

[U-Boot] [PATCH v4 0/8] LS1046A SMMU enabling patches

2018-07-24 Thread laurentiu . tudor
From: Laurentiu Tudor This patch series adds the required devices setup and device tree fixups for SMMU enablement on LS1046A chips. The approach taken tries to mimic the implementation of PAMU LIODN setup on booke powerpc. First 4 patches contain some fixes and add some missing bits & pieces. L

Re: [U-Boot] [RFC PATCH 0/4] arm: zynq: implement FPGA load from SPL

2018-07-24 Thread Michal Simek
Hi, On 20.7.2018 18:17, Luis Araneda wrote: > Hi Michal, > > On Fri, Jul 20, 2018 at 6:38 AM Michal Simek wrote: >> On 20.7.2018 01:37, Luis Araneda wrote: >>> Hi Michal, >>> >>> On Thu, Jul 19, 2018 at 2:23 AM Michal Simek >>> wrote: >> We need that functionality first but then enable it for

Re: [U-Boot] [PATCH] ARM: mx6ul: Apply ERR011115 errata workaround

2018-07-24 Thread Marcin Niestroj
Hi Stefano, On 23.07.2018 10:09, Stefano Babic wrote: Hi Marcin, On 19/07/2018 13:37, Marcin Niestroj wrote: ERR05 in IMX6UL errata says to use OCRAM memory above 0x908000 (instead of 0x907000) for silicon revision 1.2 shipped prior date code 1740. As we cannot check affected targets in r

[U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-24 Thread Michal Simek
There is no reason to limit gzip usage only for OS_BOOT and kernel image type. Signed-off-by: Michal Simek --- common/spl/spl_fit.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index 9eabb1c1058b..dbf5ac33a845 100644 --- a/c

  1   2   >