Re: [U-Boot] [PATCH v2] cmd: clk: Handle ENODEV from clk_get_rate

2019-02-22 Thread Matthias Brugger
On 22/02/2019 14:37, Ismael Luceno Cortes wrote: > clk_get_rate may return -ENODEV if the clock isn't valid. > > Also, make all the error cases go through a single path. > Not sure if that is applied systematically to u-boot, but might be good to mention the commit you fix with that, as printin

Re: [U-Boot] [PATCH 5/9] sunxi: allow FIT image for 32-bit builds as well

2019-02-22 Thread André Przywara
On 22/02/2019 08:06, Alexander Graf wrote: > > > On 21.02.19 02:30, Andre Przywara wrote: >> Even though we introduced FIT image support for the SPL to cover the >> 64-bit SoCs, there is no technical limitation to those parts. >> >> Change the Makefile stanza to always create a FIT image if the >

Re: [U-Boot] [PATCH 1/4] arm: exynos: arndale: Replace Chander Kashyap inactive maintainer

2019-02-22 Thread Lukasz Majewski
On Fri, 22 Feb 2019 19:36:40 +0100 Krzysztof Kozlowski wrote: > Last activity from Arndale (Exynos5250) board maintainer Chander > Kashyap was in January 2014 (Signed-off). Recently his samsung.com > email bounces with 550 (5.1.1 Recipient address rejected: User > unknown). > > Add Krzysztof Ko

Re: [U-Boot] [PATCH v2 2/8] arm: socfpga: gen5: add reset & sdr node to SPL devicetrees

2019-02-22 Thread Marek Vasut
On 2/22/19 8:39 PM, Simon Goldschmidt wrote: > > > Am Fr., 22. Feb. 2019, 20:36 hat Marek Vasut > geschrieben: > > On 2/22/19 8:12 PM, Simon Goldschmidt wrote: > > > > > > Am Fr., 22. Feb. 2019, 18:34 hat Marek Vasut > >

Re: [U-Boot] [PATCH v2 8/8] arm: socfpga: implement proper peripheral reset

2019-02-22 Thread Marek Vasut
On 2/22/19 8:55 PM, Simon Goldschmidt wrote: > > > Am Fr., 22. Feb. 2019, 20:47 hat Marek Vasut > geschrieben: > > On 2/22/19 8:42 PM, Simon Goldschmidt wrote: > > > > > > Am Fr., 22. Feb. 2019, 20:37 hat Marek Vasut > >

Re: [U-Boot] [PATCH v2 8/8] arm: socfpga: implement proper peripheral reset

2019-02-22 Thread Simon Goldschmidt
Am Fr., 22. Feb. 2019, 20:47 hat Marek Vasut geschrieben: > On 2/22/19 8:42 PM, Simon Goldschmidt wrote: > > > > > > Am Fr., 22. Feb. 2019, 20:37 hat Marek Vasut > > geschrieben: > > > > On 2/22/19 8:10 PM, Simon Goldschmidt wrote: > > > > > > > > > Am Fr.,

Re: [U-Boot] [PATCH v2 8/8] arm: socfpga: implement proper peripheral reset

2019-02-22 Thread Marek Vasut
On 2/22/19 8:42 PM, Simon Goldschmidt wrote: > > > Am Fr., 22. Feb. 2019, 20:37 hat Marek Vasut > geschrieben: > > On 2/22/19 8:10 PM, Simon Goldschmidt wrote: > > > > > > Am Fr., 22. Feb. 2019, 18:34 hat Marek Vasut > >

Re: [U-Boot] [PATCH v2 8/8] arm: socfpga: implement proper peripheral reset

2019-02-22 Thread Simon Goldschmidt
Am Fr., 22. Feb. 2019, 20:37 hat Marek Vasut geschrieben: > On 2/22/19 8:10 PM, Simon Goldschmidt wrote: > > > > > > Am Fr., 22. Feb. 2019, 18:34 hat Marek Vasut > > geschrieben: > > > > On 2/22/19 7:35 AM, Simon Goldschmidt wrote: > > > On Thu, Feb 21, 2019 at 10:5

Re: [U-Boot] [PATCH v2 2/8] arm: socfpga: gen5: add reset & sdr node to SPL devicetrees

2019-02-22 Thread Simon Goldschmidt
Am Fr., 22. Feb. 2019, 20:36 hat Marek Vasut geschrieben: > On 2/22/19 8:12 PM, Simon Goldschmidt wrote: > > > > > > Am Fr., 22. Feb. 2019, 18:34 hat Marek Vasut > > geschrieben: > > > > On 2/22/19 7:20 AM, Simon Goldschmidt wrote: > > > On Thu, Feb 21, 2019 at 11:1

Re: [U-Boot] [PATCH v2 2/8] arm: socfpga: gen5: add reset & sdr node to SPL devicetrees

2019-02-22 Thread Marek Vasut
On 2/22/19 8:12 PM, Simon Goldschmidt wrote: > > > Am Fr., 22. Feb. 2019, 18:34 hat Marek Vasut > geschrieben: > > On 2/22/19 7:20 AM, Simon Goldschmidt wrote: > > On Thu, Feb 21, 2019 at 11:13 PM Marek Vasut > wrote: > >> > >> On

Re: [U-Boot] [PATCH v2 8/8] arm: socfpga: implement proper peripheral reset

2019-02-22 Thread Marek Vasut
On 2/22/19 8:10 PM, Simon Goldschmidt wrote: > > > Am Fr., 22. Feb. 2019, 18:34 hat Marek Vasut > geschrieben: > > On 2/22/19 7:35 AM, Simon Goldschmidt wrote: > > On Thu, Feb 21, 2019 at 10:56 PM Marek Vasut > wrote: > >> > >> On

Re: [U-Boot] [PATCH] imx: mx6qsabrelite: Update the SabreLite README

2019-02-22 Thread Troy Kisky
On 2/22/2019 11:05 AM, Martyn Welch wrote: > The information in the SabreLite README is inaccurate and sparse. The > upstream U-Boot can boot the SabreLite from SPI-NOR. Additionally, the > freely available imx_loader tool can be easily used to boot a board with a > corrupted SPI, the official Free

Re: [U-Boot] Pincontroller not getting initialized on imx6 in SPL with SPL_PINCTRL and OF_CONTROL

2019-02-22 Thread Adam Ford
On Wed, Feb 20, 2019 at 11:38 AM Adam Ford wrote: > > On Wed, Feb 20, 2019 at 10:09 AM Lokesh Vutla wrote: > > > > > > > > On 2/20/2019 8:46 PM, Adam Ford wrote: > > > On Wed, Feb 20, 2019 at 7:49 AM Lokesh Vutla wrote: > > >> > > >> Hi Adam, > > >> > > >> On 20/02/19 7:01 PM, Adam Ford wrote: >

Re: [U-Boot] [PATCH v2 2/8] arm: socfpga: gen5: add reset & sdr node to SPL devicetrees

2019-02-22 Thread Simon Goldschmidt
Am Fr., 22. Feb. 2019, 18:34 hat Marek Vasut geschrieben: > On 2/22/19 7:20 AM, Simon Goldschmidt wrote: > > On Thu, Feb 21, 2019 at 11:13 PM Marek Vasut wrote: > >> > >> On 2/21/19 11:11 PM, Simon Goldschmidt wrote: > >>> > >>> > >>> Am Do., 21. Feb. 2019, 23:05 hat Marek Vasut >>>

Re: [U-Boot] [PATCH v2 8/8] arm: socfpga: implement proper peripheral reset

2019-02-22 Thread Simon Goldschmidt
Am Fr., 22. Feb. 2019, 18:34 hat Marek Vasut geschrieben: > On 2/22/19 7:35 AM, Simon Goldschmidt wrote: > > On Thu, Feb 21, 2019 at 10:56 PM Marek Vasut wrote: > >> > >> On 2/21/19 10:43 PM, Simon Goldschmidt wrote: > >>> This commit removes ad-hoc reset handling for peripheral resets from > SP

[U-Boot] [PATCH] imx: mx6qsabrelite: Update the SabreLite README

2019-02-22 Thread Martyn Welch
The information in the SabreLite README is inaccurate and sparse. The upstream U-Boot can boot the SabreLite from SPI-NOR. Additionally, the freely available imx_loader tool can be easily used to boot a board with a corrupted SPI, the official Freescale/NXP manufacturing tools are not required. Re

Re: [U-Boot] [PATCH v2 3/3] am335x, guardian: Add support for the bosch guardian board

2019-02-22 Thread Tom Rini
On Fri, Feb 22, 2019 at 05:52:54PM +, Martyn Welch wrote: > From: Sjoerd Simons > > Add support for the Bosch Guardian board. > > CPU : AM335X-GP rev 2.1 > Model: Bosch AM335x Guardian > I2C: ready > DRAM: 256 MiB > NAND: 512 MiB > MMC: OMAP SD/MMC: 0 > > Signed-off-by: Sjoerd Simon

Re: [U-Boot] [RFC PATCH 1/1] spi: Kconfig: change dependency order

2019-02-22 Thread Tom Rini
On Wed, Jan 30, 2019 at 08:17:03PM +0200, Oskari Lemmela wrote: > SPI Kconfig logic is changed to reverse dependencies. > Dependencies are not needed to be defined in the defconfig. > > Signed-off-by: Oskari Lemmela > --- > drivers/mtd/spi/Kconfig | 28 -- > drivers/spi/Kconfig

Re: [U-Boot] [PATCH v2 2/3] env: Don't check CONFIG_ENV_OFFSET_REDUND for SPL build

2019-02-22 Thread Tom Rini
On Fri, Feb 22, 2019 at 05:52:53PM +, Martyn Welch wrote: > When booting using an SPL on am335x, if we want to support booting with > the boot ROM loader via USB (which uses RNDIS, making bootp and tftp > calls) we need to enable gadget eth in the SPL to load the main U-Boot > image. To enable

[U-Boot] [PATCH 1/4] arm: exynos: arndale: Replace Chander Kashyap inactive maintainer

2019-02-22 Thread Krzysztof Kozlowski
Last activity from Arndale (Exynos5250) board maintainer Chander Kashyap was in January 2014 (Signed-off). Recently his samsung.com email bounces with 550 (5.1.1 Recipient address rejected: User unknown). Add Krzysztof Kozlowski as odd fixer for this board. Signed-off-by: Krzysztof Kozlowski -

[U-Boot] [PATCH 4/4] arm: exynos: Remove duplicated "boardname" env setting

2019-02-22 Thread Krzysztof Kozlowski
Various places in the code set "boardname" env property. It was used for booting from ITB images and choosing proper DTB file name. Instead of duplicating it, use existing U-Boot wide - "board_name". Signed-off-by: Krzysztof Kozlowski --- Tested only on Odroid XU3. Tests on other boards appre

[U-Boot] [PATCH 2/4] configs: odroid_xu3: Use consistent syntax for #include

2019-02-22 Thread Krzysztof Kozlowski
When including other header from configs, use consistent <> syntax. Signed-off-by: Krzysztof Kozlowski --- include/configs/odroid_xu3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/odroid_xu3.h b/include/configs/odroid_xu3.h index f178549a7223..7f4cff186151

[U-Boot] [PATCH 3/4] configs: odroid_xu3: Unify indentation

2019-02-22 Thread Krzysztof Kozlowski
File mixed space and tab indentation. Unify it. Signed-off-by: Krzysztof Kozlowski --- include/configs/odroid_xu3.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/configs/odroid_xu3.h b/include/configs/odroid_xu3.h index 7f4cff186151..5e765a2b2b02 100644

[U-Boot] [RFC 20/22] thunderx_81xx: add AHCI support

2019-02-22 Thread Tim Harvey
Signed-off-by: Tim Harvey --- include/configs/thunderx_81xx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/thunderx_81xx.h b/include/configs/thunderx_81xx.h index dbca775699..c32aa7844c 100644 --- a/include/configs/thunderx_81xx.h +++ b/include/configs/thu

[U-Boot] [RFC 18/22] ahci: set n_ports from host caps

2019-02-22 Thread Tim Harvey
Instead of assuming 2 devices, get the max from the host controller. Signed-off-by: Tim Harvey --- drivers/ata/ahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 81d16925dd..e7d590f69a 100644 --- a/drivers/ata/ahci.c +++ b/dri

[U-Boot] [RFC 17/22] ahci: support 64bit systems

2019-02-22 Thread Tim Harvey
Signed-off-by: Tim Harvey --- drivers/ata/ahci.c | 26 +- include/ahci.h | 3 +++ 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index d6753f140d..81d16925dd 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahc

[U-Boot] [RFC 16/22] thunderx_81xx: enable usb mass storage and usb ethernet

2019-02-22 Thread Tim Harvey
--- configs/thunderx_81xx_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/thunderx_81xx_defconfig b/configs/thunderx_81xx_defconfig index 8538f63181..bb374b741a 100644 --- a/configs/thunderx_81xx_defconfig +++ b/configs/thunderx_81xx_defconfig @@ -48,3 +48,6 @@ CONFIG_USB=

[U-Boot] [RFC 10/22] arm: include 64bit io accessors

2019-02-22 Thread Tim Harvey
Signed-off-by: Tim Harvey --- arch/arm/include/asm/io.h | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index 5df74728de..5699e6f23a 100644 --- a/arch/arm/include/asm/io.h +++ b/arch/arm/include/asm/io.h @@ -172,6 +172,14 @@ static

[U-Boot] [RFC 08/22] pci: add thunderx pci/ecam driver

2019-02-22 Thread Tim Harvey
Signed-off-by: Tim Harvey --- board/cavium/thunderx/Kconfig| 4 + board/cavium/thunderx/thunderx.c | 16 ++-- configs/thunderx_81xx_defconfig | 6 ++ configs/thunderx_88xx_defconfig | 6 ++ drivers/pci/Kconfig | 9 ++ drivers/pci/Makefile | 1 + drivers/p

[U-Boot] [RFC 15/22] thunderx_81xx: add support for XHCI

2019-02-22 Thread Tim Harvey
Signed-off-by: Tim Harvey --- configs/thunderx_81xx_defconfig | 5 + include/configs/thunderx_81xx.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configs/thunderx_81xx_defconfig b/configs/thunderx_81xx_defconfig index 48f57ecf1b..8538f63181 100644 --- a/configs/thund

[U-Boot] [RFC 11/22] gpio: add thunderx gpio driver

2019-02-22 Thread Tim Harvey
Signed-off-by: Tim Harvey --- configs/thunderx_81xx_defconfig | 4 + drivers/gpio/Kconfig| 7 ++ drivers/gpio/Makefile | 1 + drivers/gpio/thunderx_gpio.c| 189 4 files changed, 201 insertions(+) create mode 100644 drivers/gpio/thu

[U-Boot] [RFC 13/22] spi: add thunderx SPI driver

2019-02-22 Thread Tim Harvey
Signed-off-by: Tim Harvey --- configs/thunderx_81xx_defconfig | 4 + drivers/spi/Kconfig | 6 + drivers/spi/Makefile| 1 + drivers/spi/thunderx_spi.c | 448 4 files changed, 459 insertions(+) create mode 100755 drivers/spi/thund

[U-Boot] [RFC 05/22] thunderx: move DRAM prints to debug

2019-02-22 Thread Tim Harvey
Signed-off-by: Tim Harvey --- board/cavium/thunderx/thunderx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/cavium/thunderx/thunderx.c b/board/cavium/thunderx/thunderx.c index 57dce5aee0..0cc03a463f 100644 --- a/board/cavium/thunderx/thunderx.c +++ b/board/cavium/

[U-Boot] [RFC 12/22] i2c: add thunderx I2C driver

2019-02-22 Thread Tim Harvey
Signed-off-by: Tim Harvey --- configs/thunderx_81xx_defconfig | 2 + drivers/i2c/Kconfig | 7 + drivers/i2c/Makefile| 1 + drivers/i2c/thunderx_i2c.c | 878 include/configs/thunderx_81xx.h | 2 + 5 files changed, 890 insertions

[U-Boot] [RFC 14/22] xhci: add support for cavium thunderx XHCI

2019-02-22 Thread Tim Harvey
Signed-off-by: Tim Harvey --- drivers/usb/host/xhci-pci.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index d42f06bc32..3605357d33 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @

[U-Boot] [RFC 22/22] pci: auto probe thunderx NIC devices

2019-02-22 Thread Tim Harvey
For boards with soc peripherals via the pci devices some devices require probing during config to be available (ie VNIC on ThunderX SoCs). Signed-off-by: Tim Harvey --- drivers/pci/pci_auto.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/pci/pci_auto.c b/drivers

[U-Boot] [RFC 19/22] ahci: add support for ThunderX AHCI

2019-02-22 Thread Tim Harvey
Signed-off-by: Tim Harvey --- configs/thunderx_81xx_defconfig | 7 +++ drivers/ata/ahci.c | 12 +--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/configs/thunderx_81xx_defconfig b/configs/thunderx_81xx_defconfig index bb374b741a..dbdadde5fc 100644 ---

[U-Boot] [RFC 09/22] pci: fix pce enumeration on thunderx

2019-02-22 Thread Tim Harvey
TODO: - determine proper workaround for disabling found_multi - determine proper workaround for decode_regions Signed-off-by: Tim Harvey --- drivers/pci/pci-uclass.c | 12 include/pci.h| 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/pci/

[U-Boot] [RFC 07/22] fdt: add fdtdec_get_pci_bus_range

2019-02-22 Thread Tim Harvey
Signed-off-by: Tim Harvey --- include/fdtdec.h | 11 +++ lib/fdtdec.c | 13 + 2 files changed, 24 insertions(+) diff --git a/include/fdtdec.h b/include/fdtdec.h index c26df50543..b56be097eb 100644 --- a/include/fdtdec.h +++ b/include/fdtdec.h @@ -460,6 +460,17 @@ int fdtd

[U-Boot] [RFC 06/22] dm: pci: add PCI SR-IOV EA support

2019-02-22 Thread Tim Harvey
Add Single Root I/O Virtualization (SR-IOV) and Enhanced Allocation support Signed-off-by: Tim Harvey --- arch/x86/cpu/baytrail/cpu.c | 3 +- drivers/ata/ahci.c | 8 +- drivers/i2c/designware_i2c.c | 4 +- drivers/i2c/intel_i2c.c | 3 +- drivers/mmc/pci_mmc.c| 3

[U-Boot] [RFC 04/22] thunderx: add thunderx register definitions and misc functions

2019-02-22 Thread Tim Harvey
Add Cavium Thunderx common registers, structures, and helper functions Signed-off-by: Tim Harvey --- arch/arm/include/asm/arch-thunderx/thunderx.h | 300 ++ arch/arm/mach-thunderx/Makefile | 2 +- arch/arm/mach-thunderx/misc.c | 33 ++ 3 files cha

[U-Boot] [RFC 02/22] arm: add thunderx_81xx

2019-02-22 Thread Tim Harvey
The thunderx-81xx is a device-tree implementation supporting the Cavium Octeon-TX CN80xx/CN81xx SoC which combines 64bit ARM cores with thunderx peripherals. Signed-off-by: Tim Harvey --- arch/arm/dts/Makefile | 1 + arch/arm/dts/thunderx-81xx.dts | 36 +++ arch/arm/dts/thunderx-81

[U-Boot] [RFC 03/22] thunderx: add FDT support

2019-02-22 Thread Tim Harvey
The thunderx boards use the Cavium Bringup and Diagnostics Kit (BDK) as a secondary program loader (SPL). This initial boot firmware loads the device-tree and passes it to the next layer of software in X1. Signed-off-by: Tim Harvey --- arch/arm/mach-thunderx/Makefile| 2 +- arch/arm/mac

[U-Boot] [RFC 01/22] arm: introduce ARCH_THUNDERX

2019-02-22 Thread Tim Harvey
Signed-off-by: Tim Harvey --- arch/arm/Kconfig | 6 +++--- arch/arm/Makefile | 1 + arch/arm/dts/Makefile | 2 +- .../arm/include/asm/arch-thunderx}/atf.h | 2 +- .../arm/include/asm/arch-thu

[U-Boot] [RFC 00/22] Add support for Cavium Octeon-TX CN80XX/CN81XX

2019-02-22 Thread Tim Harvey
The Cavium Octeon-TX 64-bit ARM based SoCs include the CN80XX and CN81XX. These SoC's have peripheral drivers based on PCI ECAM. This series has been tested on the the following Gateworks SBC's: - GW6100 - CN8021 dual A53 800MHz - GW6104 - CN8031 quad A53 1500MHz - GW6300 - CN8020 dual A53 800M

[U-Boot] [PATCH v2 2/3] env: Don't check CONFIG_ENV_OFFSET_REDUND for SPL build

2019-02-22 Thread Martyn Welch
When booting using an SPL on am335x, if we want to support booting with the boot ROM loader via USB (which uses RNDIS, making bootp and tftp calls) we need to enable gadget eth in the SPL to load the main U-Boot image. To enable CONFIG_SPL_ETH_SUPPORT, we must enable CONFIG_SPL_ENV_SUPPORT as the e

[U-Boot] [PATCH v2 3/3] am335x, guardian: Add support for the bosch guardian board

2019-02-22 Thread Martyn Welch
From: Sjoerd Simons Add support for the Bosch Guardian board. CPU : AM335X-GP rev 2.1 Model: Bosch AM335x Guardian I2C: ready DRAM: 256 MiB NAND: 512 MiB MMC: OMAP SD/MMC: 0 Signed-off-by: Sjoerd Simons Signed-off-by: Martyn Welch --- Changes in v2: - Correct guard #ifdef naming in b

[U-Boot] [PATCH v2 1/3] Add support for the MT41K128M16JT125K memory modules

2019-02-22 Thread Martyn Welch
From: Sjoerd Simons Add configuration for the MT41K128M16JT125K memory modules as used on the Bosch Guardian device. Based on a patch by: Govindaraji Sivanantham Signed-off-by: Sjoerd Simons [checkpatch.pl cleanup by Martyn Welch] Signed-off-by: Martyn Welch --- Changes in v2: None ar

Re: [U-Boot] [PATCH v2 7/8] arm: socfpga: gen5: deassert peripheral reset by default

2019-02-22 Thread Marek Vasut
On 2/22/19 6:55 AM, Simon Goldschmidt wrote: > On Thu, Feb 21, 2019 at 11:17 PM Marek Vasut wrote: >> >> On 2/21/19 11:09 PM, Simon Goldschmidt wrote: >>> >>> >>> Am Do., 21. Feb. 2019, 22:56 hat Marek Vasut >> > geschrieben: >>> >>> On 2/21/19 10:43 PM, Simon Goldschmidt

Re: [U-Boot] [PATCH v2 8/8] arm: socfpga: implement proper peripheral reset

2019-02-22 Thread Marek Vasut
On 2/22/19 7:35 AM, Simon Goldschmidt wrote: > On Thu, Feb 21, 2019 at 10:56 PM Marek Vasut wrote: >> >> On 2/21/19 10:43 PM, Simon Goldschmidt wrote: >>> This commit removes ad-hoc reset handling for peripheral resets from SPL >>> for socfpga gen5. >>> >>> This is done because as U-Boot drivers s

Re: [U-Boot] [PATCH v2 5/8] spi: cadence_qspi: add reset handling

2019-02-22 Thread Marek Vasut
On 2/22/19 7:06 AM, Simon Goldschmidt wrote: > On Thu, Feb 21, 2019 at 11:14 PM Marek Vasut wrote: >> >> On 2/21/19 11:04 PM, Simon Goldschmidt wrote: >>> >>> >>> Am Do., 21. Feb. 2019, 22:56 hat Marek Vasut >> > geschrieben: >>> >>> On 2/21/19 10:43 PM, Simon Goldschmidt

Re: [U-Boot] [PATCH v2 2/8] arm: socfpga: gen5: add reset & sdr node to SPL devicetrees

2019-02-22 Thread Marek Vasut
On 2/22/19 7:20 AM, Simon Goldschmidt wrote: > On Thu, Feb 21, 2019 at 11:13 PM Marek Vasut wrote: >> >> On 2/21/19 11:11 PM, Simon Goldschmidt wrote: >>> >>> >>> Am Do., 21. Feb. 2019, 23:05 hat Marek Vasut >> > geschrieben: >>> >>> On 2/21/19 11:03 PM, Simon Goldschmidt

Re: [U-Boot] [PATCH v1] mmc: dwmmc: Enable small delay before returning error

2019-02-22 Thread Marek Vasut
On 2/22/19 4:19 PM, Ang, Chee Hong wrote: > On Thu, 2019-02-21 at 11:06 +0100, Marek Vasut wrote: >> On 2/20/19 2:57 PM, Ang, Chee Hong wrote: >>> >>> On Mon, 2019-02-18 at 21:38 +0100, Marek Vasut wrote: On 2/18/19 3:51 PM, Ang, Chee Hong wrote: > > > On Mon, 2019-02-18 at 12

Re: [U-Boot] IMX6 DM_USB / DM_MMC requires OF_CONTROL?

2019-02-22 Thread Tim Harvey
On Thu, Feb 21, 2019 at 6:48 AM Marcel Ziswiler wrote: > > Hi Fabio > > On Tue, 2019-02-19 at 19:32 +0100, Stefano Babic wrote: > > Hi Tim, > > > > On 19/02/19 19:24, Tim Harvey wrote: > > > Greetings, > > > > > > I'm seeing that I need to switch my IMX6 board support > > > (board/gateworks/gw_ven

Re: [U-Boot] [PATCH 2/3] env: Don't check CONFIG_ENV_OFFSET_REDUND for SPL build

2019-02-22 Thread Tom Rini
On Fri, Feb 22, 2019 at 05:38:44PM +0100, Philipp Tomsich wrote: > > > > On 21.02.2019, at 11:13, Martyn Welch wrote: > > > > Currently CONFIG_ENV_OFFSET_REDUND is checked regardless of the type of > > build being performed, but this doesn't seem to be needed in SPL builds. > > > > Don't check

Re: [U-Boot] [PATCH 2/3] env: Don't check CONFIG_ENV_OFFSET_REDUND for SPL build

2019-02-22 Thread Martyn Welch
On Fri, 2019-02-22 at 11:36 -0500, Tom Rini wrote: > On Fri, Feb 22, 2019 at 03:35:51PM +, Martyn Welch wrote: > > On Thu, 2019-02-21 at 22:33 -0500, Tom Rini wrote: > > > On Thu, Feb 21, 2019 at 10:13:42AM +, Martyn Welch wrote: > > > > > > > Currently CONFIG_ENV_OFFSET_REDUND is checked

Re: [U-Boot] [PATCH 2/3] env: Don't check CONFIG_ENV_OFFSET_REDUND for SPL build

2019-02-22 Thread Philipp Tomsich
> On 21.02.2019, at 11:13, Martyn Welch wrote: > > Currently CONFIG_ENV_OFFSET_REDUND is checked regardless of the type of > build being performed, but this doesn't seem to be needed in SPL builds. > > Don't check this configuration option for SPL builds. > > Signed-off-by: Martyn Welch > --

Re: [U-Boot] [PATCH v2 3/4] ARM: atmel: at91sam9x5ek: enable spl support

2019-02-22 Thread Stefan Roese
Hi Eugene, On 22.02.19 16:57, eugen.hris...@microchip.com wrote: On 21.02.2019 19:00, Stefan Roese wrote: Hi Eugene, On 19.02.19 15:56, Stefan Roese wrote: I did not test myself the SPL for any 9x5 board. The DDR2 init code should be executed inside the SPL. Once you build your board wit

Re: [U-Boot] [PATCH 2/3] env: Don't check CONFIG_ENV_OFFSET_REDUND for SPL build

2019-02-22 Thread Tom Rini
On Fri, Feb 22, 2019 at 03:35:51PM +, Martyn Welch wrote: > On Thu, 2019-02-21 at 22:33 -0500, Tom Rini wrote: > > On Thu, Feb 21, 2019 at 10:13:42AM +, Martyn Welch wrote: > > > > > Currently CONFIG_ENV_OFFSET_REDUND is checked regardless of the > > > type of > > > build being performed,

Re: [U-Boot] [PATCH v2 3/4] ARM: atmel: at91sam9x5ek: enable spl support

2019-02-22 Thread Eugen.Hristev
On 21.02.2019 19:00, Stefan Roese wrote: > Hi Eugene, > > On 19.02.19 15:56, Stefan Roese wrote: > > > >>> I did not test myself the SPL for any 9x5 board. The DDR2 init code >>> should be executed inside the SPL. Once you build your board with a >>> CONFIG_SPL enabled, you should get the spl

[U-Boot] [PATCH v3] cmd: clk: Handle ENODEV from clk_get_rate

2019-02-22 Thread Ismael Luceno Cortes
clk_get_rate may return -ENODEV if the clock isn't valid. Also, make the error cases go through a single path. Fixes: ff8eee0330a6 ("cmd: clk: Add trivial implementation of clock dump for DM") Signed-off-by: Ismael Luceno Reviewed-by: Matthias Brugger --- CC: Matthias Brugger Notes:

Re: [U-Boot] [PATCH 2/3] env: Don't check CONFIG_ENV_OFFSET_REDUND for SPL build

2019-02-22 Thread Martyn Welch
On Thu, 2019-02-21 at 22:33 -0500, Tom Rini wrote: > On Thu, Feb 21, 2019 at 10:13:42AM +, Martyn Welch wrote: > > > Currently CONFIG_ENV_OFFSET_REDUND is checked regardless of the > > type of > > build being performed, but this doesn't seem to be needed in SPL > > builds. > > > > Don't check

Re: [U-Boot] [PATCH v1] mmc: dwmmc: Enable small delay before returning error

2019-02-22 Thread Ang, Chee Hong
On Thu, 2019-02-21 at 11:06 +0100, Marek Vasut wrote: > On 2/20/19 2:57 PM, Ang, Chee Hong wrote: > > > > On Mon, 2019-02-18 at 21:38 +0100, Marek Vasut wrote: > > > > > > On 2/18/19 3:51 PM, Ang, Chee Hong wrote: > > > > > > > > > > > > On Mon, 2019-02-18 at 12:57 +0100, Marek Vasut wrote: > >

[U-Boot] [PATCH 1/2] configs: stm32f746-disco: Enable SPI_FLASH_MACRONIX

2019-02-22 Thread Patrice Chotard
This config file is shared between stm32f746-disco and stm32f769-disco. These 2 boards doesn't embed the same qspi flash (Micron n25q128a on f746-disco, Macronix mx66l51235l on f769-disco). To be able to use Macronix mx66l51235l on F769-disco, flags SPI_FLASH_MACRONIX must be enabled. Signed-off-

[U-Boot] [PATCH 2/2] board: stm32f746-disco: Get MII/RMII phy_mode from DT

2019-02-22 Thread Patrice Chotard
This is needed to make ethernet work on stm32f746-eval which uses MII mode. Signed-off-by: Patrice Chotard --- board/st/stm32f746-disco/stm32f746-disco.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/bo

[U-Boot] [PATCH v1 5/9] ARM: dts: Migrate U-boot nodes to U-boot DT files for stm32h7

2019-02-22 Thread Patrice Chotard
In order to prepare and ease future DT synchronization with kernel DT, migrate all U-boot specific nodes/properties/addons to U-boot DT files. As sdmmc is not yet supported on kernel side, sdmmc nodes are located in eval-u-boot and disco-u-boot DT files. Signed-off-by: Patrice Chotard --- arch

[U-Boot] [PATCH v1 8/9] pinctrl: stm32: Add st, stm32f769-pinctrl compatible string

2019-02-22 Thread Patrice Chotard
Due to DT kernel synchronisation, add new pinctrl compatible string for stm32f769. Signed-off-by: Patrice Chotard --- drivers/pinctrl/pinctrl_stm32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/pinctrl_stm32.c b/drivers/pinctrl/pinctrl_stm32.c index 24affe0414ce..43dbdd9

[U-Boot] [PATCH v1 9/9] mmc: arm_pl180_mmci: Sync compatible with kernel

2019-02-22 Thread Patrice Chotard
Initially the compatible string was wrongly set to "st,stm32f4xx-sdio". Use compatible string used by kernel instead and identify mmci variant using "arm,primecell-periphid" property. Currently, the DM part of mmci driver is only used by STM32 SoCs, that's why the switch case gets only one entry.

[U-Boot] [PATCH v1 6/9] ARM: dts: stm32: Sync DT with v4.20 kernel for stm32h7

2019-02-22 Thread Patrice Chotard
Synchronize stm32h7 device tree with kernel v4.20. U-boot DT files and pinctrl bindings are updated, useless nodes are removed and gpio compatible added. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32h7-u-boot.dtsi | 188 +-- arch/arm/dts/stm32h743-pinctrl.dtsi |

[U-Boot] [PATCH v1 3/9] ARM: dts: stm32: Migrate U-boot nodes to U-boot DT files for stm32f7

2019-02-22 Thread Patrice Chotard
In order to prepare and ease future DT synchronization with kernel DT, migrate all U-boot specific nodes/properties/addons to U-boot DT files. Migrate also DT nodes which are not yet available on kernel DT side as ethernet, ltdc and qspi nodes. Fix ethernet_mii pins and add missing qspi_pins for

[U-Boot] [PATCH v1 7/9] ARM: dts: stm32: Restore old usart1 clock bindings for stm32f7

2019-02-22 Thread Patrice Chotard
As U-boot stm32f clock driver doesn't support new bindings for auxiliary clocks (clocks = <&rcc 1 >), restore old bindings for usart1 to get console output. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32f7-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/s

[U-Boot] [PATCH v1 0/9] Synchronize DT with v4.20 kernel for STM32F4/F7 and H7 boards

2019-02-22 Thread Patrice Chotard
Due to this DT synchronization, some driver must be updated. This series : - Migrates all nodes/properties/addons specific to U-Boot in -u-boot DT files. - Synchronizes DT with v4.20 kernel for STM32F4/F7and H7 - Adds stm32f769-disco pinctrl compatible string - Updates arm_pl180_mmci driv

[U-Boot] [PATCH v1 2/9] ARM: dts: stm32: Sync DT files with v4.20 kernel for stm32f4

2019-02-22 Thread Patrice Chotard
Synchronize stm32f7 device tree with kernel v4.20. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32f4-pinctrl.dtsi | 27 +- arch/arm/dts/stm32f429-disco.dts | 4 +- arch/arm/dts/stm32f429-pinctrl.dtsi | 3 +- arch/arm/dts/stm32f429.dtsi | 33 +

[U-Boot] [PATCH v1 1/9] ARM:dts: stm32: sort nodes by alphabetical order in f4 u-boot files

2019-02-22 Thread Patrice Chotard
Sort nodes alphabetically to be coherent with all others STM32 DT files. Signed-off-by: Patrice Chotard --- arch/arm/dts/stm32f429-disco-u-boot.dtsi | 18 ++--- arch/arm/dts/stm32f469-disco-u-boot.dtsi | 46 2 files changed, 32 insertions(+), 32 deletion

Re: [U-Boot] [PATCH] Support boot Android image without address on bootm command

2019-02-22 Thread Tom Rini
On Fri, Feb 22, 2019 at 04:28:06PM +0800, Shawn Guo wrote: > It works perfectly fine to boot an Android boot.img with bootm command > followed by an explicit address argument that holds the image. But if > we have boot.img downloaded into default 'loadaddr', and then boot it > using bootm command

[U-Boot] [PATCH v2] cmd: clk: Handle ENODEV from clk_get_rate

2019-02-22 Thread Ismael Luceno Cortes
clk_get_rate may return -ENODEV if the clock isn't valid. Also, make all the error cases go through a single path. Signed-off-by: Ismael Luceno --- CC: Matthias Brugger Notes: Changes since v1: - Added further explanation to the commit message. cmd/clk.c | 23 +-

Re: [U-Boot] [PATCH] am57xx_evm_defconfig: Enable configs to support QSPI boot

2019-02-22 Thread Tom Rini
On Fri, Feb 22, 2019 at 11:01:52AM +0530, Vignesh R wrote: > AM57xx IDK EVMs can boot out of QSPI. Enable configs to support QSPI > boot. Also enable configs for updating QSPI boot images over DFU. > > Tested on AM572x IDK EVM. > > Signed-off-by: Vignesh R Reviewed-by: Tom Rini -- Tom sig

Re: [U-Boot] [PATCH] configs: dra7xx_evm: Remove ENV_IS_IN_FAT and SPL_ENV_*

2019-02-22 Thread Lokesh Vutla
On 22/02/19 5:46 PM, Faiz Abbas wrote: > Lokesh, > > On 22/02/19 5:33 PM, Lokesh Vutla wrote: >> >> >> On 22/02/19 5:21 PM, Faiz Abbas wrote: >>> Tom, >>> >>> On 22/02/19 5:00 AM, Tom Rini wrote: On Wed, Feb 20, 2019 at 01:33:50PM +0530, Faiz Abbas wrote: > Hi Tom, > > On 19/02/

[U-Boot] [PATCH 1/2] configs: stm32f746-disco: update EXTRA_ENV_SETTINGS

2019-02-22 Thread Patrice Chotard
Allows to boot linux distribution. As stm32f746-disco and stm32f769-disco are sharing the same defconfig file, in case of stm32f769-disco build, "fdtfile=..." must be updated with the correct stm32f769 DTB file name. Signed-off-by: Patrice Chotard --- include/configs/stm32f746-disco.h | 22 +++

[U-Boot] [PATCH 2/2] configs: stm32f746-disco: enable CONFIG_DISTRO_DEFAULTS

2019-02-22 Thread Patrice Chotard
Allows to boot linux distribution Signed-off-by: Patrice Chotard --- configs/stm32f746-disco_defconfig | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/configs/stm32f746-disco_defconfig b/configs/stm32f746-disco_defconfig index 121e96280895..e70039f8de94 10064

Re: [U-Boot] [PATCH] configs: dra7xx_evm: Remove ENV_IS_IN_FAT and SPL_ENV_*

2019-02-22 Thread Faiz Abbas
Lokesh, On 22/02/19 5:33 PM, Lokesh Vutla wrote: > > > On 22/02/19 5:21 PM, Faiz Abbas wrote: >> Tom, >> >> On 22/02/19 5:00 AM, Tom Rini wrote: >>> On Wed, Feb 20, 2019 at 01:33:50PM +0530, Faiz Abbas wrote: Hi Tom, On 19/02/19 8:45 PM, Tom Rini wrote: > On Tue, Feb 19, 2019

Re: [U-Boot] [PATCH] configs: dra7xx_evm: Remove ENV_IS_IN_FAT and SPL_ENV_*

2019-02-22 Thread Lokesh Vutla
On 22/02/19 5:21 PM, Faiz Abbas wrote: > Tom, > > On 22/02/19 5:00 AM, Tom Rini wrote: >> On Wed, Feb 20, 2019 at 01:33:50PM +0530, Faiz Abbas wrote: >>> Hi Tom, >>> >>> On 19/02/19 8:45 PM, Tom Rini wrote: On Tue, Feb 19, 2019 at 08:25:29PM +0530, Faiz Abbas wrote: > With U-boot s

Re: [U-Boot] [PATCH] configs: dra7xx_evm: Remove ENV_IS_IN_FAT and SPL_ENV_*

2019-02-22 Thread Faiz Abbas
Tom, On 22/02/19 5:00 AM, Tom Rini wrote: > On Wed, Feb 20, 2019 at 01:33:50PM +0530, Faiz Abbas wrote: >> Hi Tom, >> >> On 19/02/19 8:45 PM, Tom Rini wrote: >>> On Tue, Feb 19, 2019 at 08:25:29PM +0530, Faiz Abbas wrote: >>> With U-boot supporting environment in multiple places, enable only

Re: [U-Boot] [PATCH v7 1/7] cmd: env: add "-e" option for handling UEFI variables

2019-02-22 Thread Philipp Tomsich
Heinrich, > On 22.02.2019, at 01:21, AKASHI Takahiro wrote: > > On Thu, Feb 21, 2019 at 08:42:37PM +0100, Heinrich Schuchardt wrote: >> On 2/21/19 7:26 AM, AKASHI Takahiro wrote: >>> "env [print|set] -e" allows for handling uefi variables without >>> knowing details about mapping to correspondin

[U-Boot] [PATCH] dm: Also remove interrupts property from SPL DT

2019-02-22 Thread Michal Simek
interrupt-parent property is removed already that's why there is no reason to keep interrupts property if parent doesn't exist. Signed-off-by: Michal Simek --- dts/Kconfig | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dts/Kconfig b/dts/Kconfig index 3e85914d1153..b

Re: [U-Boot] [U-Boot, v3, 1/2] fs: fat: dynamically allocate memory for temporary buffer

2019-02-22 Thread Michal Simek
On 22. 02. 19 4:49, Chee, Tien Fong wrote: > On Thu, 2019-02-21 at 22:22 -0500, Tom Rini wrote: >> On Thu, Feb 21, 2019 at 08:45:37AM +0100, Michal Simek wrote: >>> >>> Hi Tom, >>> >>> On 20. 02. 19 2:58, Tom Rini wrote: On Mon, Feb 11, 2019 at 02:56:19PM +0800, tien.fong.c...@intel.co >>

[U-Boot] [PATCH] Support boot Android image without address on bootm command

2019-02-22 Thread Shawn Guo
It works perfectly fine to boot an Android boot.img with bootm command followed by an explicit address argument that holds the image. But if we have boot.img downloaded into default 'loadaddr', and then boot it using bootm command without the address argument, we will run into problem, because U-B

Re: [U-Boot] [PATCH 3/9] SPL: read and store arch property from U-Boot image

2019-02-22 Thread Alexander Graf
On 21.02.19 14:22, Philipp Tomsich wrote: > > >> On 21.02.2019, at 13:00, Andre Przywara wrote: >> >> On Thu, 21 Feb 2019 12:47:04 +0100 >> Alexander Graf wrote: >> >> Hi Alex, >> >>> On 02/21/2019 02:30 AM, Andre Przywara wrote: Read the specified "arch" value from a legacy or FIT U-Boo

Re: [U-Boot] [PATCH 6/9] sunxi: allow 32-bit builds for 64-bit SoCs

2019-02-22 Thread Alexander Graf
On 21.02.19 02:30, Andre Przywara wrote: > At the moment we build the SPL and U-Boot proper for the 64-bit AArch64 > instruction set. But since the cores provide an AArch32 compatibility mode > and in fact the BootROM runs in 32-bit mode, it can be useful to have at > least the SPL run in AArch32

[U-Boot] [PATCH v8 8/8] cmd: efidebug: add memmap command

2019-02-22 Thread AKASHI Takahiro
"memmap" command prints uefi-specific memory map information. => efi memmap Type StartEnd Attributes == CONVENTIONAL 4000-7de27000 WB RUNTIME DATA 7de27000-7de

[U-Boot] [PATCH v8 6/8] cmd: efidebug: add dh command

2019-02-22 Thread AKASHI Takahiro
"dh" command prints all the uefi handles used in the system. => efi dh 7ef3bfa0: Device Path, Device Path To Text, Device Path Utilities, Unicode Collation 2 7ef31d30: Driver Binding 7ef31da0: Simple Text Output 7ef31e10: Simple Text Input, Simple

[U-Boot] [PATCH v8 7/8] cmd: efidebug: add images command

2019-02-22 Thread AKASHI Takahiro
"images" command prints loaded images-related information. Signed-off-by: AKASHI Takahiro Reviewed-by: Heinrich Schuchardt --- cmd/efidebug.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/cmd/efidebug.c b/cmd/efidebug.c index 172d639dd409..3ff4ab

[U-Boot] [PATCH v8 3/8] cmd: add efidebug command

2019-02-22 Thread AKASHI Takahiro
Currently, there is no easy way to add or modify UEFI variables. In particular, bootmgr supports BootOrder/Boot variables, it is quite hard to define them as u-boot variables because they are represented in a complicated and encoded format. The new command, efidebug, helps address these issues

[U-Boot] [PATCH v8 2/8] efi_loader: define load option attributes

2019-02-22 Thread AKASHI Takahiro
See UEFI specification v2.7a, section 3.1.3, "Load Option Processing." Signed-off-by: AKASHI Takahiro --- include/efi_api.h| 9 + lib/efi_loader/efi_bootmgr.c | 4 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/include/efi_api.h b/include/efi_api.h index

[U-Boot] [PATCH v8 5/8] cmd: efidebug: add drivers command

2019-02-22 Thread AKASHI Takahiro
"drivers" command prints all the uefi drivers on the system. => efi drivers Driver Name Image Path 7ef003d0 Signed-off-by: AKASHI Takahiro --- cmd/efidebug.c | 95 +++

[U-Boot] [PATCH v8 4/8] cmd: efidebug: add devices command

2019-02-22 Thread AKASHI Takahiro
"devices" command prints all the uefi variables on the system. => efi devices Scanning disk ahci_scsi.id0lun0... Scanning disk ahci_scsi.id1lun0... Found 4 disks Device Device Path 7ef07ea0 /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b) 000

[U-Boot] [PATCH v8 1/8] cmd: env: add "-e" option for handling UEFI variables

2019-02-22 Thread AKASHI Takahiro
"env [print|set] -e" allows for handling uefi variables without knowing details about mapping to corresponding u-boot variables. Signed-off-by: AKASHI Takahiro --- MAINTAINERS | 1 + cmd/Kconfig | 10 ++ cmd/Makefile | 1 + cmd/nvedit.c | 28 +++- cmd/nvedit_efi.c |

[U-Boot] [PATCH v8 0/8] cmd: add efidebug for efi environment

2019-02-22 Thread AKASHI Takahiro
This patch set is a collection of patches to enhance efi user interfaces /commands. It will help improve user experience on efi boot and make it more usable *without* edk2's shell utility. Let's see how it works: => efidebug boot add 1 SHELL scsi 1:1 /Shell.efi "" => efidebug boot add 2 HELLO scsi

Re: [U-Boot] [PATCH 5/9] sunxi: allow FIT image for 32-bit builds as well

2019-02-22 Thread Alexander Graf
On 21.02.19 02:30, Andre Przywara wrote: > Even though we introduced FIT image support for the SPL to cover the > 64-bit SoCs, there is no technical limitation to those parts. > > Change the Makefile stanza to always create a FIT image if the > particular config either provided a script or an .i