Re: [U-Boot] [PATCH] mmc: Avoid HS400 mode when accessing boot partitions

2019-06-04 Thread Faiz Abbas
Hi Marek, Peng, On 03/06/19 12:04 PM, Peng Fan wrote: > >> Subject: [PATCH] mmc: Avoid HS400 mode when accessing boot partitions >> >> According to JEDEC JESD84-B51.pdf section 6.3.3 Boot operation , >> HS200 & HS400 mode is not supported during boot operation. The U-Boot >> code currently only

Re: [U-Boot] [PATCH v3] gpio: add gpio-hog support

2019-06-04 Thread Patrick DELAUNAY
Hi Heiko, > > add gpio-hog support. GPIO hogging is a mechanism providing automatic GPIO > request and configuration as part of the gpio-controller's driver probe > function. > > for more infos see: > doc/device-tree-bindings/gpio/gpio.txt > > Signed-off-by: Heiko Schocher It seens the hog

Re: [U-Boot] [PATCH v3 5/6] rockchip: rk3328: add rock64-rk3328_defconfig

2019-06-04 Thread Matwey V. Kornilov
Hi Kever, Should I add myself as contact person? вт, 4 июн. 2019 г. в 10:42, Kever Yang : > > Hi Matwey, > > You will need to add MAINTAINER info for configs/rock64-rk3328_defconfig, > > or else Travis build fail in case " Check for configs without MAINTAINERS > entry": > >

Re: [U-Boot] Pull request for UEFI sub-system for v2019.07-rc4

2019-06-04 Thread Tom Rini
On Sun, Jun 02, 2019 at 05:47:00PM +0200, Heinrich Schuchardt wrote: > The following changes since commit 8a802a2eefd36865eaa3d927d1db7af63bb2d922: > > Merge tag 'rockchip-for-v2019.07-rc3' of > git://git.denx.de/u-boot-rockchip (2019-05-31 07:17:09 -0400) > > are available in the Git

[U-Boot] [PATCH] km/spi: port SPI flash of KM Kirkwood boards to driver model

2019-06-04 Thread pascal . linder
From: Pascal Linder The required configurations were activated in the default configuration files of the board series and the SPI interface setting is added to the common device tree file. Some adaptions were necessary in the driver (kirkwood_spi.c) in order to support the driver model on the

[U-Boot] [PATCH v6 02/15] mmc: am654_sdhci: Remove quirks

2019-06-04 Thread Faiz Abbas
The host controller works perfectly well without having to add any quirks. Remove them. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/am654_sdhci.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index

[U-Boot] [PATCH v6 04/15] mmc: sdhci: Add support for sdhci-caps-mask

2019-06-04 Thread Faiz Abbas
Add Support for masking some bits in the capabilities register of a host controller. Also remove the redundant readl() into caps1. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/sdhci.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git

[U-Boot] [PATCH v6 07/15] mmc: sdhci: Make set_ios_post() return int

2019-06-04 Thread Faiz Abbas
Make set_ios_post() return int to faciliate error handling in platform drivers. Signed-off-by: Faiz Abbas --- drivers/mmc/sdhci.c | 2 +- drivers/mmc/xenon_sdhci.c | 4 +++- include/sdhci.h | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH] board/km: update maintainer e-mail

2019-06-04 Thread holger . brunck
From: Holger Brunck Signed-off-by: Holger Brunck --- board/keymile/km83xx/MAINTAINERS | 2 +- board/keymile/km_arm/MAINTAINERS | 2 +- board/keymile/kmp204x/MAINTAINERS | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/board/keymile/km83xx/MAINTAINERS

[U-Boot] [PATCH 2/4 v2] drivers: pci: add map_bar support for Enhanced Allocation

2019-06-04 Thread Alex Marginean
Makes dm_pci_map_bar API available for integrated PCI devices that support Enhanced Allocation instead of the original PCI BAR mechanism. Signed-off-by: Alex Marginean --- Changes in v2: - fixed parsing for BAR1+ - fixed an issue with EA entry size - don't look up EA

Re: [U-Boot] [PATCH v5 01/15] arm64: dts: k3: Sync sdhci0 node from kernel and change driver name

2019-06-04 Thread Faiz Abbas
Hi Lokesh, On 04/06/19 10:58 AM, Lokesh Vutla wrote: > > > On 29/05/19 3:15 PM, Faiz Abbas wrote: >> Sync the sdhci0 node from kernel. This changes the compatible that is >> required to be there in the driver. Change the same for the SD card node >> which is not yet supported in kernel. This

[U-Boot] [PATCH v6 06/15] arm: dts: k3: Add phy specific properties to SD card node

2019-06-04 Thread Faiz Abbas
With changes in the driver requiring phy related properties, add the same for the SD card node to prevent breaking boot with the driver update. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 3 +++ arch/arm/dts/k3-am654-r5-base-board.dts

Re: [U-Boot] [EXT] Re: [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-06-04 Thread Marek Vasut
On 6/4/19 5:27 AM, Peng Fan wrote: >> Subject: Re: [EXT] Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX >> container format file >> >> On 5/30/19 9:06 AM, Ye Li wrote: >>> On 2019/5/27 19:31, Marek Vasut wrote: Caution: EXT Email On 5/27/19 11:49 AM, Peng Fan wrote: >

Re: [U-Boot] [PATCH v3 0/3] Add 'bcb' command to read/modify/write Android BCB

2019-06-04 Thread Sam Protsenko
Hi Tom, Simon, This one has been hanging here for a while. If there is no concerns, can we please merge it? It's really wanted feature for Android boot... Thanks! On Mon, May 27, 2019 at 6:26 PM Eugeniu Rosca wrote: > > Hi Sam, > > On Fri, May 24, 2019 at 01:58:18AM +0300, Sam Protsenko wrote:

[U-Boot] [PATCH v6 10/15] mmc: am654_sdhci: Use f_max in mmc_config

2019-06-04 Thread Faiz Abbas
Use f_max provided in mmc_config and remove it from the platform specific data. Signed-off-by: Faiz Abbas --- drivers/mmc/am654_sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index cd7ad03479..b9a7924d4e 100644

[U-Boot] [PATCH v6 03/15] regmap: Add API regmap_init_mem_index()

2019-06-04 Thread Faiz Abbas
In device nodes with more than one entry in the reg property, it is sometimes useful to regmap only of the entries. Add an API regmap_init_mem_index() to facilitate this. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/core/regmap.c | 42 ++

[U-Boot] [PATCH 1/1] efi_loader: avoid lost network packages

2019-06-04 Thread Heinrich Schuchardt
Prior to the patch booting an OrangePi PC via iPXE failed due to poor network connection. After receiving a packet immediately check if another packet is available. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_net.c | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH 0/3] Add drive-strength-microamp in Meson pinctrl driver

2019-06-04 Thread Guillaume La Roque
The purpose of this patchset is to add drive-strength-microamp support in meson pinconf driver. This is a new feature that was added on the g12a. It is critical for us to support this since many functions are failing with default pad drive-strength. The value achievable by the SoC are 500uA,

[U-Boot] [PATCH v6 08/15] mmc: am654_sdhci: Add Support for PHY

2019-06-04 Thread Faiz Abbas
Add support in the driver for handling phy specific registers. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/Kconfig | 1 + drivers/mmc/am654_sdhci.c | 223 +- 2 files changed, 218 insertions(+), 6 deletions(-) diff --git

[U-Boot] [PATCH v6 15/15] configs: am65x_evm_a53: Add Support for creating GPT partitions

2019-06-04 Thread Faiz Abbas
Add Support for creating GPT partitions in U-boot. Signed-off-by: Faiz Abbas --- configs/am65x_evm_a53_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index 5fd9aacd68..43d2ccc5ed 100644 ---

[U-Boot] [PATCH v6 13/15] configs: am65x: Add configs to support environment in eMMC

2019-06-04 Thread Faiz Abbas
Add configs such that U-boot environment is in eMMC by default. Signed-off-by: Faiz Abbas --- configs/am65x_evm_a53_defconfig | 5 ++--- include/configs/am65x_evm.h | 10 ++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/configs/am65x_evm_a53_defconfig

[U-Boot] [PATCH v6 09/15] configs: am65x_evm: Enable CONFIG_REGMAP

2019-06-04 Thread Faiz Abbas
Add Support for CONFIG_REGMAP. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- configs/am65x_evm_a53_defconfig | 2 ++ configs/am65x_evm_r5_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index

[U-Boot] [PATCH v6 12/15] mmc: am654_sdhci: Add a platform specific set_control_reg() callback

2019-06-04 Thread Faiz Abbas
Add a platform specific set_control_reg() callback to help switch to UHS speed modes. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/am654_sdhci.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/am654_sdhci.c

[U-Boot] [PATCH v6 11/15] mmc: sdhci: Add support for HOST_CONTROL2 and setting UHS timings

2019-06-04 Thread Faiz Abbas
The HOST_CONTROL2 register is a part of SDHC v3.00 and not just specific to arasan/zynq controllers. Add the same to sdhci.h. Also create a common API to set UHS timings in HOST_CONTROL2. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/sdhci.c | 28

Re: [U-Boot] [EXT] Re: [PATCH 1/2] dm: i2c: Add a flag that not call i2c_setup_offset

2019-06-04 Thread Chuanhua Han
> -Original Message- > From: Lukasz Majewski > Sent: 2019年6月4日 6:08 > To: Chuanhua Han > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li > Subject: [EXT] Re: [U-Boot] [PATCH 1/2] dm: i2c: Add a flag that not call > i2c_setup_offset > > On Thu, 30 May 2019 18:31:48 +0800 > Chuanhua

[U-Boot] [PATCH 3/3] pinctrl: meson: g12a: add DS bank value

2019-06-04 Thread Guillaume La Roque
add drive-strength bank regiter and bit value for G12A SoC Signed-off-by: Guillaume La Roque --- drivers/pinctrl/meson/pinctrl-meson-g12a.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/pinctrl/meson/pinctrl-meson-g12a.c

[U-Boot] [PATCH 2/3] pinctrl: meson: add support of drive-strength-microamp

2019-06-04 Thread Guillaume La Roque
drive-strength-microamp is a new feature needed for G12A SoC. the default DS setting after boot is usually 500uA and it is not enough for many functions. We need to be able to set the drive strength to reliably enable things like MMC, I2C, etc ... Signed-off-by: Guillaume La Roque ---

[U-Boot] [PATCH 1/3] dm: pinctrl: Add driver-strength-microamp property

2019-06-04 Thread Guillaume La Roque
Add drive-strength-microamp property support to allow drive strength in uA Signed-off-by: Guillaume La Roque --- include/dm/pinctrl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dm/pinctrl.h b/include/dm/pinctrl.h index e7b8ad9078..3eca34fbf7 100644 --- a/include/dm/pinctrl.h

[U-Boot] [PATCH 1/4 v2] pci: fixed dm_pci_map_bar comment

2019-06-04 Thread Alex Marginean
The comment now indicates that the input argument bar is a register offset, not a BAR index. It also mentions which BARs are supported for type 0/1 and that the function can return 0 on error. Signed-off-by: Alex Marginean --- Changes in v2: - new patch include/pci.h | 8 +--- 1

[U-Boot] [PATCH 3/4 v2] test: dm: Add a test for PCI Enhanced Allocation

2019-06-04 Thread Alex Marginean
This test is built on top of the existing swap_case driver. It adds EA capability structure support to swap_case and uses that to map BARs. BAR1 works as it used to, swapping upper/lower case. BARs 2,4 map to a couple of magic values. Signed-off-by: Alex Marginean --- Changes in v2: -

[U-Boot] [PATCH 4/4 v2] drivers: pci: add API to issue FLR on a PCI function if supported

2019-06-04 Thread Alex Marginean
Adds dm_pci_flr API that issues a Function Level reset on a PCI-e function, if FLR is supported. Signed-off-by: Alex Marginean --- Changes in v2: - Use kernel PCI_EXP macros for register offsets drivers/pci/pci-uclass.c | 24 include/pci.h| 14

[U-Boot] [PATCH v6 01/15] arm64: dts: k3: Sync sdhci0 node from kernel and change driver name

2019-06-04 Thread Faiz Abbas
Sync the sdhci0 node from kernel. This changes the compatible that is required to be there in the driver. Change the same for the SD card node which is not yet supported in kernel. This also syncs the main_pmx0 node as a side effect. Also change the name of the driver to match the compatible in

Re: [U-Boot] [EXT] Re: [PATCH 1/2] dm: i2c: Add a flag that not call i2c_setup_offset

2019-06-04 Thread Chuanhua Han
> -Original Message- > From: Lukasz Majewski > Sent: 2019年6月4日 14:46 > To: Chuanhua Han > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li > Subject: Re: [EXT] Re: [U-Boot] [PATCH 1/2] dm: i2c: Add a flag that not call > i2c_setup_offset > > On Tue, 4 Jun 2019 02:20:49 + >

[U-Boot] [PATCH 2/3] armv8: ls2088aqds: Fix MC firmware loading during SD boot

2019-06-04 Thread Wasim Khan
During SD boot, MC firmware and DPC are copied from SD card to DDR. Size reserved between MC and DPC firmware on DDR is 1MB. If the size of MC firmware(load address 0x8000) is more than 1 MB then part of MC firmware will be overwritten by DPC firmware (load address 0x8010). Fix: Update

[U-Boot] [PATCH 1/3] armv8: ls2088aqds: Add bootcmd for TFA boot

2019-06-04 Thread Wasim Khan
Add bootcmd for IFC NOR boot and SD boot. Signed-off-by: Wasim Khan --- include/configs/ls2080aqds.h | 45 ++-- 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/include/configs/ls2080aqds.h b/include/configs/ls2080aqds.h index

[U-Boot] [PATCH 3/3] armv8: ls2088ardb: Fix MC firmware loading during SD boot

2019-06-04 Thread Wasim Khan
During SD boot, MC firmware and DPC are copied from SD card to DDR. Size reserved between MC and DPC firmware on DDR is 1MB. If the size of MC firmware(load address 0x8000) is more than 1 MB then part of MC firmware will be overwritten by DPC firmware (load address 0x8010). Fix: Update

[U-Boot] sf probe failed on Intel DNV-NS platform

2019-06-04 Thread 杜睿哲_Pegatron
Hi, I got following error message when using U-Boot as payload of Coreboot on Intel DNV-NS platform. I am checking if my dts file was incorrect configured for SPI flash device. Can anyone help? Thanks. Errors: Invalid bus 0 (err=-19) Failed to initialize SPI flash at 0:0 (error -19)

Re: [U-Boot] [EXT] Re: [PATCH 1/2] dm: i2c: Add a flag that not call i2c_setup_offset

2019-06-04 Thread Chuanhua Han
> -Original Message- > From: Lukasz Majewski > Sent: 2019年6月4日 16:19 > To: Chuanhua Han > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li > Subject: Re: [EXT] Re: [U-Boot] [PATCH 1/2] dm: i2c: Add a flag that not call > i2c_setup_offset > > On Tue, 4 Jun 2019 07:59:44 + >

Re: [U-Boot] [EXT] Re: [PATCH 1/2] dm: i2c: Add a flag that not call i2c_setup_offset

2019-06-04 Thread Chuanhua Han
> -Original Message- > From: Lukasz Majewski > Sent: 2019年6月4日 15:56 > To: Chuanhua Han > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li > Subject: Re: [EXT] Re: [U-Boot] [PATCH 1/2] dm: i2c: Add a flag that not call > i2c_setup_offset > > On Tue, 4 Jun 2019 06:48:59 + >

[U-Boot] [PATCH v6 14/15] am65x_evm: Add Support for creating a filesystem GPT partition in eMMC

2019-06-04 Thread Faiz Abbas
Add Support for creating a GPT partition for the filesystem in eMMC. The filesystem is created in the user partition (partition 0). Signed-off-by: Faiz Abbas --- include/configs/am65x_evm.h | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/configs/am65x_evm.h

[U-Boot] [PATCH v6 05/15] mmc: sdhci: Make sdhci_set_clock() non static

2019-06-04 Thread Faiz Abbas
The am654_sdhci driver needs to switch the clock off before disabling its phy dll and needs to re-enable the clock before enabling the phy again. Therefore, make the sdhci_set_clock() function accessible in the am654_sdhci driver. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini ---

Re: [U-Boot] Hart lottery and CONFIG_XIP

2019-06-04 Thread Auer, Lukas
On Tue, 2019-06-04 at 09:42 +0800, Rick Chen wrote: > Hi Troy > > Bin Meng 於 2019年6月3日 週一 下午10:56寫道: > > Hi Troy, > > > > On Mon, Jun 3, 2019 at 10:53 PM Troy Benjegerdes > > wrote: > > > > > > > > > > On Jun 3, 2019, at 9:19 AM, Bin Meng wrote: > > > > > > > > +Anup > > > > > > > > Hi

[U-Boot] pre_probe under struct driver

2019-06-04 Thread Keerthy
Hi Simon/Tom, I am looking at the device_probe function in drivers/core/device.c ret = uclass_pre_probe_device(dev); if (ret) goto fail; if (dev->parent && dev->parent->driver->child_pre_probe) { ret = dev->parent->driver->child_pre_probe(dev);

[U-Boot] [PATCH v6 00/15] Add Support for eMMC in Am65x-evm

2019-06-04 Thread Faiz Abbas
Add Support for eMMC in TI's AM65x-evm. The series starts by syncing the sdhci0 node from the kernel. Then it adds APIs and changes to the driver required for handling the driver's integrated phy. The current maximum supported speed is DDR52. Higher speeds and tuning support will be added in a

Re: [U-Boot] [PATCH 4/5] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-06-04 Thread Fabio Estevam
Hi Frieder, On Tue, Jun 4, 2019 at 4:09 AM Schrempf Frieder wrote: > Signed-off-by: Frieder Schrempf > > Thanks a lot for preparing the patch and sending it! As I reported yesterday to Sjoerd, this patch needs some adjustment as it breaks mx6sabresd_defconfig. Thanks

Re: [U-Boot] [PATCH v6 00/15] Add Support for eMMC in Am65x-evm

2019-06-04 Thread Lokesh Vutla
On 04/06/19 6:46 PM, Faiz Abbas wrote: > Add Support for eMMC in TI's AM65x-evm. The series starts > by syncing the sdhci0 node from the kernel. Then it adds APIs and > changes to the driver required for handling the driver's integrated > phy. The current maximum supported speed is DDR52. Higher

Re: [U-Boot] [PATCH] arm: ls1028a: define the integrated PCI bus (ECAM)

2019-06-04 Thread Alex Marginean
Hi Bin, On 6/2/2019 5:22 PM, Bin Meng wrote: Hi Alex, On Fri, May 31, 2019 at 12:27 AM Alex Marginean wrote: LS1028A includes an integrated PCI bus with 8M of ECAM space plus register space for the integrated devices. This integrated PCI bus is driven using the generic ECAM driver.

Re: [U-Boot] [PATCH 0/3] Add drive-strength-microamp in Meson pinctrl driver

2019-06-04 Thread Neil Armstrong
Hi Guillaume, On 04/06/2019 13:53, Guillaume La Roque wrote: > The purpose of this patchset is to add drive-strength-microamp support in > meson pinconf > driver. This is a new feature that was added on the g12a. It is critical for > us > to support this since many functions are failing with

Re: [U-Boot] [PATCH v3] gpio: add gpio-hog support

2019-06-04 Thread Heiko Schocher
Hello Patrick, Am 04.06.2019 um 13:49 schrieb Patrick DELAUNAY: Hi Heiko, add gpio-hog support. GPIO hogging is a mechanism providing automatic GPIO request and configuration as part of the gpio-controller's driver probe function. for more infos see: doc/device-tree-bindings/gpio/gpio.txt

Re: [U-Boot] [PATCH v3 0/3] Add 'bcb' command to read/modify/write Android BCB

2019-06-04 Thread Tom Rini
On Tue, Jun 04, 2019 at 03:36:21PM +0300, Sam Protsenko wrote: > Hi Tom, Simon, > > This one has been hanging here for a while. If there is no concerns, > can we please merge it? It's really wanted feature for Android boot... I'd appreciate it if you can confirm the patchwork state of the

Re: [U-Boot] [PATCH] mmc: Avoid HS400 mode when accessing boot partitions

2019-06-04 Thread Faiz Abbas
Hi Marek, On 04/06/19 6:56 PM, Marek Vasut wrote: > On 6/4/19 1:22 PM, Faiz Abbas wrote: >> Hi Marek, Peng, > > Hi, > >> On 03/06/19 12:04 PM, Peng Fan wrote: >>> Subject: [PATCH] mmc: Avoid HS400 mode when accessing boot partitions According to JEDEC JESD84-B51.pdf section 6.3.3

[U-Boot] [PATCH 2/3] mx6sabreauto: set SYS_MALLOC_F for video

2019-06-04 Thread Sjoerd Simons
Sabre Auto boards currently hang with: ``` U-Boot 2019.07-rc3-00057-gc41940c406 (Jun 03 2019 - 14:42:41 +0200) CPU: Freescale i.MX6QP rev1.0 996 MHz (running at 792 MHz) CPU: Automotive temperature grade (-40C to 125C)Reset cause: WDOG Model: Freescale i.MX6 Quad Plus SABRE Automotive Board

[U-Boot] [PATCH 3/3] arm: dts: imx6qdl-u-boot: Alias usb0 to usbotg

2019-06-04 Thread Sjoerd Simons
All i.mx6 boards seems to have moved to DM_USB, however gadget support for mx6 is still pre-DM as CI_UDC isn't converted yet. To make this work the usb otg controller used for gadgets needs to be usb number 0. Add an alias for this directly in the main u-boot mx6qdl dtsi so it doesn't need to be

Re: [U-Boot] [PATCH 2/5] mx6sabreauto: Select pinctrl driver

2019-06-04 Thread Fabio Estevam
Hi Sjoerd, On Mon, Jun 3, 2019 at 4:01 PM Sjoerd Simons wrote: > > With the conversion to DM we should select the pinctrl driver. > > Signed-off-by: Sjoerd Simons I did the same for mx6sabresd initially, but then later I realized that it would be better to fix this globally like this:

[U-Boot] [PATCH] IMX: serial: dm: Set DM_FLAG_PRE_RELOC in the IMX uart driver

2019-06-04 Thread Lukasz Majewski
The DM_FLAG_PRE_RELOC shall be set unconditionally as this driver is going to be re-used in both early SPL and U-Boot proper's pre-reloc. For i.MX based devices it is crucial to have available the serial console before relocation (otherwise the board may hand). The device definition may be

[U-Boot] [PATCH 0/3] i.mx6 (sabre auto) fixes for 2019.07

2019-06-04 Thread Sjoerd Simons
To make things easier i've split the `Enable usage of SDP for i.MX6 Sabre Auto Boards` patchset i sent yesterday up so it'll be hopefully easier to merge. The first two are the same as yesterday (Thanks Peng for the review). The last one is new and fixes regressions in usb gadget usage of various

Re: [U-Boot] [PATCH] mmc: Avoid HS400 mode when accessing boot partitions

2019-06-04 Thread Marek Vasut
On 6/4/19 1:22 PM, Faiz Abbas wrote: > Hi Marek, Peng, Hi, > On 03/06/19 12:04 PM, Peng Fan wrote: >> >>> Subject: [PATCH] mmc: Avoid HS400 mode when accessing boot partitions >>> >>> According to JEDEC JESD84-B51.pdf section 6.3.3 Boot operation , >>> HS200 & HS400 mode is not supported during

Re: [U-Boot] [PATCH] mmc: Avoid HS400 mode when accessing boot partitions

2019-06-04 Thread Marek Vasut
On 6/4/19 3:34 PM, Faiz Abbas wrote: > Hi Marek, > > On 04/06/19 6:56 PM, Marek Vasut wrote: >> On 6/4/19 1:22 PM, Faiz Abbas wrote: >>> Hi Marek, Peng, >> >> Hi, >> >>> On 03/06/19 12:04 PM, Peng Fan wrote: > Subject: [PATCH] mmc: Avoid HS400 mode when accessing boot partitions >

[U-Boot] [PATCH 1/3] mx6sabreauto: Select pinctrl driver

2019-06-04 Thread Sjoerd Simons
With the conversion to DM we should select the pinctrl driver. Signed-off-by: Sjoerd Simons Reviewed-by: Peng Fan --- configs/mx6sabreauto_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index

Re: [U-Boot] [PATCH v2 2/2] ARM: socfpga: stratix10: Remove CONFIG_OF_EMBED

2019-06-04 Thread Dalon L Westergreen
On Tue, 2019-06-04 at 08:12 +0200, Simon Goldschmidt wrote: > On Tue, Jun 4, 2019 at 7:58 AM See, Chin Liang > wrote: > > On Tue, 2019-06-04 at 07:13 +0200, Simon Goldschmidt wrote: > > > On Tue, Jun 4, 2019 at 1:57 AM Dalon Westergreen< > > > dalon.westergr...@linux.intel.com> wrote: > > > >

Re: [U-Boot] [PATCH v2 1/2] Makefile: Add target to generate hex output for combined spl and dtb

2019-06-04 Thread Marek Vasut
On 6/4/19 5:12 AM, Dalon L Westergreen wrote: > On Tue, 2019-06-04 at 02:00 +0200, Marek Vasut wrote: >> On 6/4/19 1:57 AM, Dalon Westergreen wrote: >>> From: Dalon Westergreen < >>> dalon.westergr...@intel.com >>> >>> Some architectures, Stratix10, require a hex formatted spl that combines

Re: [U-Boot] [PATCH v6 00/15] Add Support for eMMC in Am65x-evm

2019-06-04 Thread Andreas Dannenberg
On Tue, Jun 04, 2019 at 09:32:21PM +0530, Lokesh Vutla wrote: > > > On 04/06/19 6:46 PM, Faiz Abbas wrote: > > Add Support for eMMC in TI's AM65x-evm. The series starts > > by syncing the sdhci0 node from the kernel. Then it adds APIs and > > changes to the driver required for handling the

[U-Boot] [PATCH v2 2/3] mx6sabreauto: Enable SPL SDP support

2019-06-04 Thread Sjoerd Simons
To allow loading u-boot over USB enable SDP support in the SPL. Signed-off-by: Sjoerd Simons --- Changes in v2: None configs/mx6sabreauto_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index

[U-Boot] [PATCH v2 1/3] mx6sabreauto: Remove CONFIG_SPL_DM to decrease the SPL size

2019-06-04 Thread Sjoerd Simons
The i.mx6 SPL binary cannot be bigger then 68K, while with the current defconfig for sabreauto it's only about 56K as soon as USB support gets added the size will overflows. Signed-off-by: Sjoerd Simons --- Changes in v2: None configs/mx6sabreauto_defconfig | 1 - 1 file changed, 1

[U-Boot] [PATCH v2 0/3] Enable usage of SDP for i.MX6 Sabre Auto Boards

2019-06-04 Thread Sjoerd Simons
Being able to upload u-boot over USB is rather useful, so ideally this functionality should be enabled by the default config for these boards. Currently however no USB support is built into the SPL nor is SDP enabled for i.MX6 Sabre Auto boards. This round only has the patches needed for SDP

[U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-06-04 Thread Sjoerd Simons
From: Frieder Schrempf Add support for loading u-boot FIT images over the USB SDP protocol in the SPL Signed-off-by: Frieder Schrempf [Various build fixes] Signed-off-by: Sjoerd Simons --- Changes in v2: - Fix build with CMD_USB_SDP - Add SoB from Frieder Schrempf common/spl/spl_sdp.c

Re: [U-Boot] [PATCH v2 1/3] mx6sabreauto: Remove CONFIG_SPL_DM to decrease the SPL size

2019-06-04 Thread Fabio Estevam
On Tue, Jun 4, 2019 at 4:57 PM Sjoerd Simons wrote: > > The i.mx6 SPL binary cannot be bigger then 68K, while with the current > defconfig for sabreauto it's only about 56K as soon as USB support gets > added the size will overflows. > > Signed-off-by: Sjoerd Simons Reviewed-by: Fabio Estevam

[U-Boot] [PATCH v3 2/2] ARM: socfpga: stratix10: Remove CONFIG_OF_EMBED

2019-06-04 Thread Dalon Westergreen
From: Dalon Westergreen CONFIG_OF_EMBED was primarily enabled to support the stratix10 spl hex file requirements. Since this option now produces a warning during build, and the spl hex can be created using alternate methods, CONFIG_OF_EMBED is no longer needed. Signed-off-by: Dalon Westergreen

[U-Boot] [PATCH v3 1/2] Makefile: Add target to generate hex output for combined spl and dtb

2019-06-04 Thread Dalon Westergreen
From: Dalon Westergreen Stratix10 requires a hex image of the spl plus spl devicetree offset to the Stratix10 onchip memory located at SPL_TEXT_BASE. This patch adds a target to generate a hex file from the u-boot-spl binary including the dtb offset at SPL_TEST_BASE. Objcopy is used to convert

Re: [U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-06-04 Thread Sjoerd Simons
On Tue, 2019-06-04 at 17:19 -0300, Fabio Estevam wrote: > Hi Sjoerd, > > On Tue, Jun 4, 2019 at 4:58 PM Sjoerd Simons > wrote: > > From: Frieder Schrempf > > > > Add support for loading u-boot FIT images over the USB SDP protocol > > in > > the SPL > > > > Signed-off-by: Frieder Schrempf > >

Re: [U-Boot] [PATCH 2/5] mx6sabreauto: Select pinctrl driver

2019-06-04 Thread Sjoerd Simons
On Tue, 2019-06-04 at 11:15 -0300, Fabio Estevam wrote: > Hi Sjoerd, > > On Mon, Jun 3, 2019 at 4:01 PM Sjoerd Simons > wrote: > > With the conversion to DM we should select the pinctrl driver. > > > > Signed-off-by: Sjoerd Simons > > I did the same for mx6sabresd initially, but then later I

Re: [U-Boot] [PATCH] imx: Select the pinctrl drivers when DM is used

2019-06-04 Thread Sjoerd Simons
On Fri, 2019-05-24 at 09:50 -0300, Fabio Estevam wrote: > When using device model it is required to select the pinctrl > drivers so that the pins can be properly configured via > devicetree. > > mx6sabreauto board is an example of a target that uses DM and does > not select the pinctrl drivers. >

Re: [U-Boot] [PATCH v2 2/3] mx6sabreauto: Enable SPL SDP support

2019-06-04 Thread Fabio Estevam
On Tue, Jun 4, 2019 at 4:56 PM Sjoerd Simons wrote: > > To allow loading u-boot over USB enable SDP support in the SPL. > > Signed-off-by: Sjoerd Simons Reviewed-by: Fabio Estevam ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH] usb: gadget: error out if g_dnl registration fails

2019-06-04 Thread Sjoerd Simons
If g_dnl_register fails return an error rather then stubornly continuing onwards. Signed-off-by: Sjoerd Simons --- cmd/usb_gadget_sdp.c | 11 --- common/spl/spl_sdp.c | 6 +- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/cmd/usb_gadget_sdp.c

[U-Boot] [PATCHv3] ARM: zynq: Add configuration for Z-turn board

2019-06-04 Thread Anton Gerasimov
From: Anton Gerasimov Basic (PS-only) configuration based on Vivado board files by Sergiusz Bazanski Signed-off-by: Anton Gerasimov --- board/xilinx/zynq/zynq-zturn/ps7_init_gpl.c | 281 1 file changed, 281 insertions(+) create mode 100644

[U-Boot] [PATCH v2 1/2] lib: time: export usec_to_tick()

2019-06-04 Thread Heinrich Schuchardt
In the UEFI Stall() boottime service we need access to usec_to_tick(). Export the function. Remove redundant implementation in arch/arm/mach-rockchip/rk_timer.c. Signed-off-by: Heinrich Schuchardt --- v2 no change --- arch/arm/mach-rockchip/rk_timer.c | 7 --- include/time.h

[U-Boot] [PATCH v2 2/2] efi_loader: check timer events in Stall()

2019-06-04 Thread Heinrich Schuchardt
During a call to Stall() we should periodically check for timer events. Signed-off-by: Heinrich Schuchardt --- v2 Remove redundant implementation of usec_to_tick() in arch/arm/mach-rockchip/rk_timer.c --- lib/efi_loader/efi_boottime.c | 8 +++- 1 file changed, 7

[U-Boot] [PATCH] pinctrl: meson-gxbb: add hdmi related pins

2019-06-04 Thread Maxime Jourdan
The GXBB pinctrl is missing pins related to HDMI, namely hot plug detection (hpd) and I2C (sda + scl). This fixes HDMI support for GXBB in u-boot. Reported-by: Mohammad Rasim Signed-off-by: Maxime Jourdan --- drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 19 +++ 1 file changed,

[U-Boot] [PATCH] video: meson: hdmi-supply regulator should be optional

2019-06-04 Thread Maxime Jourdan
Some boards don't have such a regulator, and don't need one to enable HDMI display. Make it optional, fixing hdmi display for those boards. Also surround the regulator code with a config check on DM_REGULATOR. Reported-by: Mohammad Rasim Signed-off-by: Maxime Jourdan ---

Re: [U-Boot] [PATCH v2 2/2] ARM: socfpga: stratix10: Remove CONFIG_OF_EMBED

2019-06-04 Thread Tom Rini
On Tue, Jun 04, 2019 at 09:10:27AM -0700, Dalon L Westergreen wrote: > On Tue, 2019-06-04 at 08:12 +0200, Simon Goldschmidt wrote: > > On Tue, Jun 4, 2019 at 7:58 AM See, Chin Liang > > wrote: > > > On Tue, 2019-06-04 at 07:13 +0200, Simon Goldschmidt wrote: > > > > On Tue, Jun 4, 2019 at 1:57 AM

Re: [U-Boot] [PATCH v2 2/2] ARM: socfpga: stratix10: Remove CONFIG_OF_EMBED

2019-06-04 Thread Simon Goldschmidt
Am 04.06.2019 um 20:15 schrieb Tom Rini: On Tue, Jun 04, 2019 at 09:10:27AM -0700, Dalon L Westergreen wrote: On Tue, 2019-06-04 at 08:12 +0200, Simon Goldschmidt wrote: On Tue, Jun 4, 2019 at 7:58 AM See, Chin Liang wrote: On Tue, 2019-06-04 at 07:13 +0200, Simon Goldschmidt wrote: On Tue,

[U-Boot] [PATCH v0 2/2] efi_loader: check timer events in Stall()

2019-06-04 Thread Heinrich Schuchardt
During a call to Stall() we should periodically check for timer events. This requires exporting function usec_to_tick() which further allows to remove redundant implementation of usec_to_tick() in rk_timer.c. v2 Remove redundant implementation of usec_to_tick() in rk_timer.c. Heinrich

Re: [U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-06-04 Thread Fabio Estevam
Hi Sjoerd, On Tue, Jun 4, 2019 at 4:58 PM Sjoerd Simons wrote: > > From: Frieder Schrempf > > Add support for loading u-boot FIT images over the USB SDP protocol in > the SPL > > Signed-off-by: Frieder Schrempf > [Various build fixes] > Signed-off-by: Sjoerd Simons Unfortunately, it still

[U-Boot] [PATCH v2 1/1] efi_loader: close protocols in UnloadImage()

2019-06-04 Thread Heinrich Schuchardt
When UnloadImage() is called all protocols opened by the image have to be closed. Signed-off-by: Heinrich Schuchardt --- v2 Closing a protocol may have side effects. So restart looping after each closed protocol. --- lib/efi_loader/efi_boottime.c | 38

[U-Boot] [PATCH] ARM: socfpga: update CONFIG_SPL_FS_LOAD_PAYLOAD_NAME to u-boot.img

2019-06-04 Thread Dalon Westergreen
From: Dalon Westergreen Bring cyclone5 / arria5 / arria10 in line with convention and use u-boot.img as CONFIG_SPL_FS_LOAD_PAYLOAD_NAME. Signed-off-by: Dalon Westergreen --- include/configs/socfpga_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH v3 6/7] cmd: efidebug: make some boot variables non-volatile

2019-06-04 Thread Heinrich Schuchardt
On 6/4/19 8:52 AM, AKASHI Takahiro wrote: Boot, BootOrder and BootNext should be non-volatile. Signed-off-by: AKASHI Takahiro Reviewed-by: Heinrich Schuchardt --- cmd/efidebug.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/efidebug.c b/cmd/efidebug.c index

[U-Boot] [PATCH v2 12/12] am65x: README: Add eMMC layout and flash instructions

2019-06-04 Thread Andreas Dannenberg
From: Faiz Abbas Add instructions for flashing boot images to the eMMC with a layout of the address where each image needs to be flashed. Also add instructions to flash filesystem partition in user partition and boot kernel from the rootfs. Signed-off-by: Faiz Abbas --- board/ti/am65x/README

[U-Boot] [PATCH v2 01/12] mmc: am654_sdhci: Allow driver to probe without PDs specified

2019-06-04 Thread Andreas Dannenberg
We would like to use the driver even without power domains being specified for cases such as during early boot when the required power domains have already gotten enabled by the SoC's boot ROM and such explicit initialization is not needed and possible. Signed-off-by: Andreas Dannenberg

[U-Boot] [PATCH v2 04/12] arm: K3: Introduce System Firmware loader framework

2019-06-04 Thread Andreas Dannenberg
Introduce a framework that allows loading the System Firmware (SYSFW) binary as well as the associated configuration data from an image tree blob named "sysfw.itb" from an FS-based MMC boot media or from an MMC RAW mode partition or sector. To simplify the handling of and loading from the

[U-Boot] [PATCH v2 05/12] armV7R: K3: am654: Allow using SPL BSS pre-relocation

2019-06-04 Thread Andreas Dannenberg
In order to be able to use more advanced driver functionality which often relies on having BSS initialized during early boot prior to relocation several things need to be in place: 1) Memory needs to be available for BSS to use. For this, we locate BSS at the top of the MCU SRAM area, with the

Re: [U-Boot] [PATCH v3 4/7] efi_loader: load saved non-volatile variables at init

2019-06-04 Thread AKASHI Takahiro
On Tue, Jun 04, 2019 at 11:38:27PM +0200, Heinrich Schuchardt wrote: > On 6/4/19 8:52 AM, AKASHI Takahiro wrote: > >Data cache will be read in from persistent storage after (re)boot > >to restore UEFI non-volatile variables. > > > >Signed-off-by: AKASHI Takahiro > >--- > >

Re: [U-Boot] [EXT] Re: [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-06-04 Thread Marek Vasut
On 6/5/19 3:18 AM, Peng Fan wrote: >> Subject: Re: [EXT] Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX >> container format file >> >> On 6/4/19 5:27 AM, Peng Fan wrote: Subject: Re: [EXT] Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file On

Re: [U-Boot] [PATCH v3 1/7] env: save UEFI non-volatile variables in dedicated storage

2019-06-04 Thread Heinrich Schuchardt
On 6/4/19 8:52 AM, AKASHI Takahiro wrote: We need a variant of env_save()/env_load() to handle dedicated storage for UEFI variables. It is assumed that env_efi_load() will be called only ince at init and that env_efi_save() will be called at every SetVariable. In this patch, new parameters will

Re: [U-Boot] [PATCH 1/1] splash: display splash in DM_VIDEO configurations

2019-06-04 Thread Anatolij Gustschin
On Wed, 29 May 2019 09:01:43 + Igor Opaniuk igor.opan...@toradex.com wrote: > Currently for CONFIG_DM_VIDEO=y setting splashimage env variable doesn't > have any effect. Introduce a common function for both dm-video/lcd stacks, > that checks env("splashimage") and invokes bmp_display()

Re: [U-Boot] [PATCH v3 4/7] efi_loader: load saved non-volatile variables at init

2019-06-04 Thread Heinrich Schuchardt
On 6/4/19 8:52 AM, AKASHI Takahiro wrote: Data cache will be read in from persistent storage after (re)boot to restore UEFI non-volatile variables. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_setup.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[U-Boot] [PATCH v3 14/18] ti: common: am6: Add support for board description EEPROM

2019-06-04 Thread Andreas Dannenberg
The AM654x EVM based on the TI K3 family of SoCs have an updated board detection EEPROM structure, now comprising variable-sized TLV-type records, containing a superset of what is already being provided on earlier platforms such as DRA7. Add basic support for parsing the new data structures

[U-Boot] [PATCH v3 08/18] arm64: dts: k3-am654-base-board: Add I2C GPIO expander @ 0x38

2019-06-04 Thread Andreas Dannenberg
The AM654 base board has a TCA9554/PCA9554-type GPIO expander on the wkup_i2c0 bus at address 0x38 that is used to detect the presence of daughter cards. Add a respective DTS description of this expander to enable its use. Signed-off-by: Andreas Dannenberg Reviewed-by: Lokesh Vutla ---

[U-Boot] [PATCH v3 07/18] configs: am65x_hs_evm_defconfig: Enable I2C support

2019-06-04 Thread Andreas Dannenberg
Enable I2C via driver model as well as the associated set of U-Boot commands to allow us interacting with various I2C slave devices. Signed-off-by: Andreas Dannenberg Reviewed-by: Lokesh Vutla Acked-by: Andrew F. Davis --- configs/am65x_hs_evm_a53_defconfig | 4

[U-Boot] [PATCH v3 10/18] configs: am65x_hs_evm_a53: Enable PCA953X-type GPIO driver

2019-06-04 Thread Andreas Dannenberg
Enable GPIO driver for PCA953X-compatible I2C-based I/O expander which includes support for the TCA9554/PCA9554-type expander found on the AM654 EVM base board. Signed-off-by: Andreas Dannenberg Reviewed-by: Lokesh Vutla Acked-by: Andrew F. Davis --- configs/am65x_hs_evm_a53_defconfig | 2 ++

[U-Boot] [PATCH v3 17/18] configs: am65x_evm: Add support for applying overlays

2019-06-04 Thread Andreas Dannenberg
This will allow for downloading and applying overlays from an MMC/SD boot media based on the overlay_files ENV variable containing a list of overlay files. Signed-off-by: Andreas Dannenberg Reviewed-by: Lokesh Vutla --- configs/am65x_evm_a53_defconfig | 3 ++- include/configs/am65x_evm.h |

  1   2   >