Re: [U-Boot] [PATCH v3 00/18] Add EEPROM-based board detect support for TI K3 SoCs

2019-06-04 Thread Lokesh Vutla
On 05/06/19 4:38 AM, Andreas Dannenberg wrote: > This is an updated EEPROM-based board detection series that can applied > if staged with other patches in the sequence proposed earlier [1]. > > For completeness here is the proposed sequence again, avoiding merge > conflicts, but this time from t

Re: [U-Boot] [PATCH v2 00/12] System Firmware Loader for TI K3 family SoCs

2019-06-04 Thread Lokesh Vutla
On 05/06/19 4:25 AM, Andreas Dannenberg wrote: > Updated version of the SYSFW loader series for K3 family AM654x devices. > The fundamantal approach of tapping into the SPL loader framework has > been kept for reasons discussed already. The series also still uses > "early BSS" in SPL's board_init

Re: [U-Boot] [PATCH 1/2] riscv: qemu: Enable PCI host ECAM generic driver

2019-06-04 Thread Rick Chen
Hi Bin Bin Meng 於 2019年6月4日 週二 下午2:27寫道: > > Hi Rick, > > On Tue, Jun 4, 2019 at 1:35 PM Rick Chen wrote: > > > > > > > > Hi BIn > > > > > > > Hi Rick, > > > > > > > > On Mon, May 27, 2019 at 4:40 PM Auer, Lukas > > > > wrote: > > > > > > > > > > On Wed, 2019-05-15 at 08:42 -0700, Bin Meng wrot

Re: [U-Boot] RSA in U-Boot

2019-06-04 Thread AKASHI Takahiro
Tom, Wolfgang, On Wed, May 22, 2019 at 02:48:42PM +0900, AKASHI Takahiro wrote: > Wolfgang, > > Thank you for your comments. > > On Fri, May 17, 2019 at 10:47:56AM +0200, Wolfgang Denk wrote: > > Dear Akashi Takahiro, > > > > In message <20190517001206.gx11...@linaro.org> you wrote: > > > > > >

[U-Boot] [RFC 5/6] cmd: efidebug: add "boot exit" sub-command

2019-06-04 Thread AKASHI Takahiro
With "boot exit" sub-command, we will let the system to exit UEFI Boottime Services. This is mainly for testing. Signed-off-by: AKASHI Takahiro --- cmd/efidebug.c | 63 ++ 1 file changed, 63 insertions(+) diff --git a/cmd/efidebug.c b/cmd/efidebug

[U-Boot] [RFC 6/6] efi_loader: variable: support runtime variable access via cache

2019-06-04 Thread AKASHI Takahiro
With this patch, cache buffer for UEFI variables will be created so that we will still be able to access, at least retrieve, UEFI variables when we exit from boottime services, This feature is a "should" behavior described in EBBR v1.0 section 2.5.3. Signed-off-by: AKASHI Takahiro --- include/e

[U-Boot] [RFC 3/6] efi_loader: support convert_pointer at runtime

2019-06-04 Thread AKASHI Takahiro
With this patch, ConvertPointer runtime service is enabled. This function will be useful only after SetVirtualAddressMap is called and before it exits according to UEFI specification. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/Kconfig | 8 lib/efi_loader/efi_runtime.c | 81 +++

[U-Boot] [RFC 1/6] efi_loader: runtime: make SetVirtualAddressMap configurable

2019-06-04 Thread AKASHI Takahiro
OS does not always need to call SetVirtualAddressMap. (Ard confirmed this on arm64 linux.) So let this API configurable. If disabled, it will return EFI_UNSUPPORTED as UEFI specification requires. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/Kconfig | 7 +++ lib/efi_loader/efi_run

[U-Boot] [RFC 2/6] efi: add RuntimeServicesSupported variable

2019-06-04 Thread AKASHI Takahiro
This variable is defined in UEFI specification 2.8, section 8.1. Its value should be updated whenever we add any usable runtime services function. Signed-off-by: AKASHI Takahiro --- include/efi_api.h| 15 +++ include/efi_loader.h | 3 +++ lib/efi_loader/efi_runti

[U-Boot] [RFC 4/6] efi_loader: Patch non-runtime code out at ExitBootServices already

2019-06-04 Thread AKASHI Takahiro
From: Alexander Graf While discussing something completely different, Ard pointed out that it might be legal to omit calling SetVirtualAddressMap altogether. There is even a patch on the Linux Kernel Mailing List that implements such behavior by now: https://patchwork.kernel.org/patch/1078239

[U-Boot] [RFC 0/6] efi_loader: support runtime variable access via cache

2019-06-04 Thread AKASHI Takahiro
EBBR v1.0 section 2.5.3 says Even when SetVariable() is not supported during runtime services, firmware should cache variable names and values in EfiRuntimeServicesData memory so that GetVariable() and GetNextVeriableName() can behave as specified. This is an experimental patch set and the

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

2019-06-04 Thread Lokesh Vutla
On 04/06/19 11:57 PM, Andreas Dannenberg wrote: > 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 >>> c

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

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

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:59 AM, Peng Fan wrote: >> Subject: Re: [EXT] Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX >> container format file >> >> 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

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

2019-06-04 Thread Peng Fan
> Subject: Re: [EXT] Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX > container format file > > 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: >

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] [EXT] Re: [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-06-04 Thread Peng Fan
> 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 5/30/19 9:06 AM, Ye Li wrote: > >>> On

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

2019-06-04 Thread Bin Meng
Hi Alex, On Tue, Jun 4, 2019 at 9:59 PM Alex Marginean wrote: > > 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

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 > >--- > > lib/efi_loader/efi_setu

Re: [U-Boot] [PATCH v3 3/7] efi_loader: variable: split UEFI variables from U-Boot environment

2019-06-04 Thread AKASHI Takahiro
On Tue, Jun 04, 2019 at 11:31:24PM +0200, Heinrich Schuchardt wrote: > On 6/4/19 8:52 AM, AKASHI Takahiro wrote: > >UEFI volatile variables are managed in efi_var_htab while UEFI non-volatile > >variables are in efi_nv_var_htab. At every SetVariable API, env_efi_save() > >will also be called to sav

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

2019-06-04 Thread AKASHI Takahiro
On Tue, Jun 04, 2019 at 11:09:56PM +0200, Heinrich Schuchardt wrote: > 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

[U-Boot] [PATCH v3 15/18] ti: common: am6: Add support for setting MAC addresses

2019-06-04 Thread Andreas Dannenberg
The AM654x EVM based on the TI K3 family of SoCs has an updated board detection EEPROM structure that contains a TLV record of dedicated MAC addresses rather than a range of MAC addresses as it was used on earlier platforms such as DRA7. Add a basic function that allows us setting up Ethernet MAC a

[U-Boot] [PATCH v3 18/18] configs: am65x_hs_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_hs_evm_a53_defconfig | 3 ++- 1 file changed, 2 insertions(+)

[U-Boot] [PATCH v3 13/18] arm: K3: am654: Map common EEPROM data into SRAM scratch space

2019-06-04 Thread Andreas Dannenberg
The board detection scheme employed on various TI EVMs makes use of SRAM scratch space to share data read from an on-board EEPROM between the different bootloading stages. Map the associated definition that's used to locate this data into the SRAM scratch space we use on AM654x. Signed-off-by: And

[U-Boot] [PATCH v3 09/18] configs: am65x_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 --- configs/am65x_evm_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+

[U-Boot] [PATCH v3 06/18] configs: am65x_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 Signed-off-by: Vignesh R Reviewed-by: Lokesh Vutla --- configs/am65x_evm_a53_defconfig | 4 configs/am65x_evm_r5_defconfig

[U-Boot] [PATCH v3 16/18] board: ti: am654: Use EEPROM-based board detection

2019-06-04 Thread Andreas Dannenberg
The TI AM654x EVM base board and the associated daughtercards have on- board I2C-based EEPROMs containing board configuration data. Use the board detection infrastructure introduced earlier to do the following: 1) Parse the AM654x EVM base board EEPROM and populate items like board name and MAC

[U-Boot] [PATCH v3 02/18] arm: omap_i2c: Remove unwanted header file inclusion

2019-06-04 Thread Andreas Dannenberg
From: Vignesh R There is no need for to include this header here, so drop it. Signed-off-by: Vignesh R Reviewed-by: Heiko Schocher Reviewed-by: Lokesh Vutla --- arch/arm/include/asm/omap_i2c.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/include/asm/omap_i2c.h b/arch/arm/inc

[U-Boot] [PATCH v3 12/18] configs: am65x_hs_evm_a53: Increase malloc pool before relocation

2019-06-04 Thread Andreas Dannenberg
The malloc pool used before relocation is getting tight leading to out of memory errors doing certain DM-related calls. Since we are running the A53 SPL out of DDR let's just go ahead and bump its size as used in U-Boot proper as well as SPL (via Kconfig default value) from 8KB to 32KB. Signed-off

[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 |

[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 --- arch/ar

[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 configs/am65x_hs_evm_r5_de

[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 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 contain

[U-Boot] [PATCH v3 11/18] configs: am65x_evm_a53: Increase malloc pool before relocation

2019-06-04 Thread Andreas Dannenberg
The malloc pool used before relocation is getting tight leading to out of memory errors doing certain DM-related calls. Since we are running the A53 SPL out of DDR let's just go ahead and bump its size as used in U-Boot proper as well as SPL (via Kconfig default value) from 8KB to 32KB. Signed-off

[U-Boot] [PATCH v3 05/18] arm: dts: k3-am654-base-board: Enable wkup_i2c0 across all boot stages

2019-06-04 Thread Andreas Dannenberg
To enable the use of an EEPROM-based board detection scheme we need to be able to access the I2C bus associated with the EEPROMs across all 3 stages of U-Boot: R5 SPL, A53 SPL, and A53 U-Boot (proper). So go ahead and add/update the wkup_i2c0 peripheral module DTS definitions and its associated pin

[U-Boot] [PATCH v3 04/18] arm: dts: k3-am65: Add I2C nodes

2019-06-04 Thread Andreas Dannenberg
Add I2C DT nodes Signed-off-by: Vignesh R Reviewed-by: Lokesh Vutla --- arch/arm/dts/k3-am65-main.dtsi | 44 arch/arm/dts/k3-am65-mcu.dtsi| 11 arch/arm/dts/k3-am65-wakeup.dtsi | 11 arch/arm/dts/k3-am65.dtsi| 6 + 4 files ch

[U-Boot] [PATCH v3 03/18] arm: dts: k3-am65: Move pinctrl nodes out of U-Boot specific dtsi

2019-06-04 Thread Andreas Dannenberg
Only U-Boot specifc DT properties or overrides, must be in -u-boot.dtsi. Pinctrl nodes does not belong here. Now that pinctrl nodes are in kernel DT, there is no reason to be keep these in -u-boot.dtsi. Move them to proper places so that it would ease copying DT entries from kernel DT. Signed-off-

[U-Boot] [PATCH v3 00/18] Add EEPROM-based board detect support for TI K3 SoCs

2019-06-04 Thread Andreas Dannenberg
This is an updated EEPROM-based board detection series that can applied if staged with other patches in the sequence proposed earlier [1]. For completeness here is the proposed sequence again, avoiding merge conflicts, but this time from the perspective of this patch series. Step 1) Faiz' "Add Su

[U-Boot] [PATCH v3 01/18] i2c: omap24xx_i2c: Adapt driver to support K3 devices

2019-06-04 Thread Andreas Dannenberg
From: Vignesh R K3 devices have I2C IP that is same as OMAP2+ family. Allow driver to be compiled for ARCH_K3. Signed-off-by: Vignesh R Signed-off-by: Andreas Dannenberg Reviewed-by: Heiko Schocher Reviewed-by: Lokesh Vutla --- drivers/i2c/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 d

[U-Boot] [PATCH v2 02/12] spl: Allow performing BSS init early before board_init_f()

2019-06-04 Thread Andreas Dannenberg
On some platform we have sufficient memory available early on to allow setting up and using a basic BSS prior to entering board_init_f(). Doing so can for example be used to carry state over to board_init_r() without having to resort to extending U-Boot's global data structure. To support such sce

[U-Boot] [PATCH v2 08/12] configs: am65x_evm_r5: All sysfw to be loaded via MMC

2019-06-04 Thread Andreas Dannenberg
Enable all the relevant configs that enables support for loading sysfw via MMC. Signed-off-by: Andreas Dannenberg --- configs/am65x_evm_r5_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/am65x_evm_r5_defconfig b/configs/am65x_evm_r5_defconfig index 5abd68

[U-Boot] [PATCH v2 00/12] System Firmware Loader for TI K3 family SoCs

2019-06-04 Thread Andreas Dannenberg
Updated version of the SYSFW loader series for K3 family AM654x devices. The fundamantal approach of tapping into the SPL loader framework has been kept for reasons discussed already. The series also still uses "early BSS" in SPL's board_init_f(). I'm well aware of the concerns previously brought u

[U-Boot] [PATCH v2 11/12] configs: am65x_hs_evm: Add Support for eMMC boot

2019-06-04 Thread Andreas Dannenberg
Add configs to support RAW boot mode in eMMC. Signed-off-by: Andreas Dannenberg --- configs/am65x_hs_evm_a53_defconfig | 2 ++ configs/am65x_hs_evm_r5_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/am65x_hs_evm_a53_defconfig b/configs/am65x_hs_evm_a53_defconfig index

[U-Boot] [PATCH v2 09/12] configs: am65x_hs_evm_r5: All sysfw to be loaded via MMC

2019-06-04 Thread Andreas Dannenberg
Enable all the relevant configs that enables support for loading sysfw via MMC. Signed-off-by: Andreas Dannenberg Reviewed-by: Simon Glass --- configs/am65x_hs_evm_r5_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/am65x_hs_evm_r5_defconfig b/configs/am

[U-Boot] [PATCH v2 03/12] spl: Make image loader infrastructure more universal

2019-06-04 Thread Andreas Dannenberg
The current U-Boot SPL image loader infrastructure is very powerful, able to initialize and load from a variety of boot media however it is strongly geared towards loading specific types of images in a very specific way. To address the need being able to use this infrastructure to load arbitrary im

[U-Boot] [PATCH v2 07/12] armV7R: K3: am654: Load SYSFW binary and config from boot media

2019-06-04 Thread Andreas Dannenberg
Use the System Firmware (SYSFW) loader framework to load and start the SYSFW as part of the AM654 early initialization sequence. While at it also initialize the WKUP_UART0 pinmux as it is used by SYSFW to print diagnostic messages. Signed-off-by: Andreas Dannenberg --- arch/arm/mach-k3/am6_init.

[U-Boot] [PATCH v2 10/12] configs: am65x_evm: Add Support for eMMC boot

2019-06-04 Thread Andreas Dannenberg
From: Faiz Abbas Add configs to support RAW boot mode in eMMC. Signed-off-by: Faiz Abbas Signed-off-by: Andreas Dannenberg --- configs/am65x_evm_a53_defconfig | 2 ++ configs/am65x_evm_r5_defconfig | 2 ++ include/configs/am65x_evm.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a

[U-Boot] [PATCH v2 06/12] armv7R: K3: am654: Use full malloc implementation in SPL

2019-06-04 Thread Andreas Dannenberg
Switch to using the full malloc scheme in post-relocation SPL to allow better utilization of available memory for example by allowing memory to get freed. Initially allocate a 16MB-sized region in DDR starting at address 0x8400 for this purpose. Signed-off-by: Andreas Dannenberg --- configs/

[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 Reviewed-

[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 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

[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 differen

Re: [U-Boot] [RFC 5/6] ARM: dts: colibri_imx7: Add lcdif node

2019-06-04 Thread Fabio Estevam
Hi Igor, On Mon, Jun 3, 2019 at 6:06 PM Igor Opaniuk wrote: > +&lcdif { > + u-boot,dm-pre-reloc; > + status = "okay"; > + > + display-timings { > + native-mode = <&timing_vga>; > + > + /* Standard VGA timing */ > + timing_vga: 640x480 {

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
On Tue, Jun 4, 2019 at 5:41 PM Sjoerd Simons wrote: > Small steps right; Ooi what imx_usb_loader configuration/commands are > you using to test this? (I find its config rather tricky to grasp). I simply run: sudo ./imx_usb SPL and then sudo ./imx_usb u-boot-dtb.img I suggest you to try U-Boo

Re: [U-Boot] [PATCH v3 7/7] cmd: env: add -nv option for UEFI non-volatile variable

2019-06-04 Thread Heinrich Schuchardt
On 6/4/19 8:52 AM, AKASHI Takahiro wrote: With this option, -nv, at "setenv -e" command, a variable will be defined as non-volatile. Signed-off-by: AKASHI Takahiro Reviewed-by: Heinrich Schuchardt ___ U-Boot mailing list U-Boot@lists.denx.de htt

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 a/lib/efi_loader/efi_setup

Re: [U-Boot] [PATCH v3 5/7] efi_loader: bootmgr: make BootNext non-volatile

2019-06-04 Thread Heinrich Schuchardt
On 6/4/19 8:52 AM, AKASHI Takahiro wrote: Signed-off-by: AKASHI Takahiro Reviewed by: Heinrich Schuchardt --- lib/efi_loader/efi_bootmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c index 43791422c819.

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

2019-06-04 Thread Lukasz Majewski
Hi Fabio, > 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

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 c4ac9dd634e2.

Re: [U-Boot] [RFC 0/6] Convert mxsfb to DM_VIDEO

2019-06-04 Thread Anatolij Gustschin
On Tue, 4 Jun 2019 00:05:55 +0300 Igor Opaniuk igor.opan...@gmail.com wrote: ... > Igor Opaniuk (6): > video: mxsfb: change mxs_lcd_init signature > video: mxsfb: reorder includes > video: mxsfb: refactor video_hw_init() > video: mxsfb: add DM_VIDEO support > ARM: dts: colibri_imx7: Add

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() accordi

Re: [U-Boot] [PATCH v3 3/7] efi_loader: variable: split UEFI variables from U-Boot environment

2019-06-04 Thread Heinrich Schuchardt
On 6/4/19 8:52 AM, AKASHI Takahiro wrote: UEFI volatile variables are managed in efi_var_htab while UEFI non-volatile variables are in efi_nv_var_htab. At every SetVariable API, env_efi_save() will also be called to save data cache (hash table) to persistent storage. Signed-off-by: AKASHI Takahi

Re: [U-Boot] [PATCH 1/2] watchdog: Split WDT from SPL_WDT

2019-06-04 Thread Lukasz Majewski
On Sun, 12 May 2019 23:34:52 +0200 Marek Vasut wrote: > Use CONFIG_IS_ENABLED(WDT) to permit use of WDT in SPL without DM, > while the full U-Boot can use rich DM/DT WDT driver. > > Signed-off-by: Marek Vasut > Cc: Peng Fan > Cc: Stefano Babic > --- > common/board_r.c | 2 +-

Re: [U-Boot] [PATCH 2/2] watchdog: imx: Add DM support

2019-06-04 Thread Lukasz Majewski
On Sun, 12 May 2019 23:34:53 +0200 Marek Vasut wrote: > Add DM and DT probing support to iMX watchdog driver. This should > allow boards to move over to this driver, enable SYSRESET_WATCHDOG > to handle cpu_reset() if required. > > Signed-off-by: Marek Vasut > Cc: Peng Fan > Cc: Stefano Babic

Re: [U-Boot] [PATCH v3 2/7] efi_loader: variable: support non-volatile attribute

2019-06-04 Thread Heinrich Schuchardt
On 6/4/19 8:52 AM, AKASHI Takahiro wrote: The attribute, EFI_VARIABLE_NON_VOLATILE, should be encoded as "nv" flag in U-Boot variable if specified. Signed-off-by: AKASHI Takahiro Reviewed-by: Heinrich Schuchardt I will cherry-pick this patch. It is already showing relevant output: Warning:

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

[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 a/include/configs/soc

[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 > >

[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 --- drivers/video/meson/me

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 https://lists.denx.de/list

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 _

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 fai

[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

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 r

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. >

[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 board/xilinx/zynq/zynq-zturn/ps

[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

[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 deletion(-

[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 suppo

[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 f9c70c5189..558b1cd99

[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 Sc

[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 insertions(+)

[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] 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 b/cmd/usb_gadget_sdp.c

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,

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 driver

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 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: > > > > From

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 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 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 def

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: https://l

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. Signed-

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 _

[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 Bo

[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 do

  1   2   >