Re: [PATCH] riscv: sifive: Fix OF_BOARD boot failure

2022-01-04 Thread Ilias Apalodimas
Hi Bin, On Wed, 5 Jan 2022 at 03:08, Bin Meng wrote: > > When using QEMU to have a quick test of booting U-Boot S-mode payload > directly without the needs of preparing the SPI flash or SD card images > for SiFive Unleashed board, as per the instructions [1], it currently > does not boot any

[PATCH v2] rockchip: timer: add OF_PLATDATA support for dw-apb-timer

2022-01-04 Thread Johan Jonker
The Rockchip rk3066 SoC has 3 dw-apb-timer nodes. U-boot is compiled with OF_PLATDATA TPL/SPL options, so add OF_PLATDATA support for the dw-apb-timer. Also change driver name to be able to compile with U-boot scripts. No reset OF_PLATDATA support was added, because the rk3066 nodes don't

Re: [PATCH] usb: xhci: reset endpoint on USB stall

2022-01-04 Thread Bin Meng
Hi Stefan, On Wed, Jan 5, 2022 at 3:48 AM Stefan Agner wrote: > > Bin Meng, > > On 2021-09-27 17:14, Marek Vasut wrote: > > On 9/27/21 2:42 PM, Stefan Agner wrote: > >> There are devices which cause a USB stall when trying to read strings. > >> Specifically Arduino Mega R3 stalls when trying to

[PATCH] riscv: sifive: Fix OF_BOARD boot failure

2022-01-04 Thread Bin Meng
When using QEMU to have a quick test of booting U-Boot S-mode payload directly without the needs of preparing the SPI flash or SD card images for SiFive Unleashed board, as per the instructions [1], it currently does not boot any more. This was caused by the OF_PRIOR_STAGE removal, as

[PATCH 11/11] configs: sunxi: Add support for Lichee Pi Nano

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng The Lichee Pi Nano is a board based on the F1C100s. Add defconfigs for it. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- configs/licheepi_nano_defconfig | 13 configs/licheepi_nano_spiflash_defconfig | 25 2

[PATCH 10/11] ARM: dts: suniv: Add device tree files for F1C100s

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng Add device tree files for suniv and Lichee Pi Nano it is a board based on F1C100s. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- arch/arm/dts/Makefile| 2 + arch/arm/dts/suniv-f1c100s-licheepi-nano.dts | 64 ++

[PATCH 09/11] sunxi: Add support for SUNIV architecture

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng Add support for the suniv architecture, which is newer ARM9 SoCs by Allwinner. The design of it seems to be a mixture of sun3i, sun4i and sun6i. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- arch/arm/mach-sunxi/Kconfig | 16 +--

[PATCH 08/11] configs: sunxi: Add common SUNIV header

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng Adds support for SUNIV and the F1C100s. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- include/configs/suniv.h| 14 +++ include/configs/sunxi-common.h | 67 -- 2 files changed, 62 insertions(+), 19 deletions(-)

[PATCH 06/11] sunxi: Add F1C100s DRAM initial support

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng Add support for F1C100s internal dram controller. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- arch/arm/include/asm/arch-sunxi/dram.h | 2 + arch/arm/include/asm/arch-sunxi/dram_suniv.h | 46 ++ arch/arm/mach-sunxi/Makefile | 2 +

[PATCH 07/11] sunxi: board: Add support for SUNIV

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng Generic Timer Extension is not available on SUNIV. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- board/sunxi/board.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index

[PATCH 05/11] ARM: sunxi: Add support for F1C100s

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng This patch aims to add header files for the F1C100s. The header files included add support for gpio, dram and clocks. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- arch/arm/include/asm/arch-sunxi/clock.h | 2 +-

[PATCH 04/11] dt-bindings: reset: Add initial suniv headers

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng This commit introduces suniv dt-bindings headers needed for device tree files. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- include/dt-bindings/reset/suniv-ccu.h | 36 +++ 1 file changed, 36 insertions(+) create mode 100644

[PATCH 03/11] dt-bindings: clock: Add initial suniv headers

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng This commit introduces suniv dt-bindings headers needed for device tree files. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- include/dt-bindings/clock/suniv-ccu.h | 68 +++ 1 file changed, 68 insertions(+) create mode 100644

[PATCH 02/11] arm: arm926ej-s: add sunxi code

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng Some Allwinner SoCs use ARM926EJ-S core. Add Allwinner/sunXi specific code to ARM926EJ-S CPU dircetory. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- arch/arm/cpu/arm926ejs/Makefile | 1 + arch/arm/cpu/arm926ejs/sunxi/Makefile| 15

[PATCH 01/11] arm: arm926ej-s: start.S: port save_boot_params support from armv7 code

2022-01-04 Thread Jesse Taube
From: Icenowy Zheng The ARMv7 start code has support for saving some boot params at the entry point, which is used by some SoCs to return to BROM. Port this to ARM926EJ-S start code. Signed-off-by: Icenowy Zheng Signed-off-by: Jesse Taube --- arch/arm/cpu/arm926ejs/start.S | 19

[PATCH 00/11] Add support for SUNIV and F1C100s.

2022-01-04 Thread Jesse Taube
This patch set aims to add suport for the SUNIV and F1C100s. Suport has been in linux for a while now, but not in u-boot. This patchset contains: - CPU specific initialization code - SUNIV dram driver - SUNIV clock driver adaption - SUNIV gpio driver adaption - SUNIV uart driver adaption -

Re: mkimage_fit_atf.sh: not found

2022-01-04 Thread Fabio Estevam
HI Tim, On Tue, Jan 4, 2022 at 7:48 PM Tim Harvey wrote: > > Stefano and Fabio, > > I'm seeing the imx8mm_venice_defconfig target failing to build on > master due to mkimage_fit_atf.sh not found: > ./"arch/arm/mach-imx/mkimage_fit_atf.sh" \ > arch/arm/dts/imx8mm-venice-gw71xx-0x.dtb >

mkimage_fit_atf.sh: not found

2022-01-04 Thread Tim Harvey
Stefano and Fabio, I'm seeing the imx8mm_venice_defconfig target failing to build on master due to mkimage_fit_atf.sh not found: ./"arch/arm/mach-imx/mkimage_fit_atf.sh" \ arch/arm/dts/imx8mm-venice-gw71xx-0x.dtb arch/arm/dts/imx8mm-venice-gw72xx-0x.dtb arch/arm/dts/imx8mm-venice-gw73xx-0x.dtb

Re: [PATCH u-boot-marvell] ddr: marvell: a38x: Fix Synchronous vs Asynchronous mode determination

2022-01-04 Thread Chris Packham
On Wed, Jan 5, 2022 at 3:57 AM Marek Behún wrote: > > From: Marek Behún > > Before commit 4c289425752f ("mv_ddr: a38x: add support for ddr async > mode"), Asynchornous Mode was only used when the CPU Subsystem Clock > Options[4:0] field in the SAR1 register was set to value 0x13: CPU at > 2 GHz

Re: [PATCH u-boot-marvell] PLEASE TEST ddr: marvell: a38x: fix SPLIT_OUT_MIX state decision

2022-01-04 Thread Chris Packham
Hi Marek, On Wed, Jan 5, 2022 at 9:28 AM Marek Behún wrote: > > From: Marek Behún > > Hello, > > continuing my last discussion with Chris [1] about this, could you > please test this change? (For Chris, mainly on your x530, since last > time you said it hanged your board in SPL.) I still get

Re: [PATCH u-boot-marvell 0/9] mvebu: Move PCIe code from serdes to PCIe driver

2022-01-04 Thread Pali Rohár
Mario: Could you please look at this patch series? It touches gdsys board and for future gdsys board should be converted to use u-boot driver model API... On Tuesday 21 December 2021 12:20:10 Pali Rohár wrote: > This patch series removes gdsys's board_pex_config() function by > converting it to

[PATCH u-boot-marvell] PLEASE TEST ddr: marvell: a38x: fix SPLIT_OUT_MIX state decision

2022-01-04 Thread Marek Behún
From: Marek Behún Hello, continuing my last discussion with Chris [1] about this, could you please test this change? (For Chris, mainly on your x530, since last time you said it hanged your board in SPL.) It should fix DDR3 training issues. [1]

Re: [PATCH] usb: xhci: reset endpoint on USB stall

2022-01-04 Thread Stefan Agner
Bin Meng, On 2021-09-27 17:14, Marek Vasut wrote: > On 9/27/21 2:42 PM, Stefan Agner wrote: >> There are devices which cause a USB stall when trying to read strings. >> Specifically Arduino Mega R3 stalls when trying to read the product >> string. >> >> The stall currently remains unhandled, and

[PATCH] patman: expand user home when looking for the alias file

2022-01-04 Thread Otavio Salvador
This allows the use of git aliases files relative to the user home, without using the full path to the file. Signed-off-by: Otavio Salvador --- tools/patman/gitutil.py | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/patman/gitutil.py b/tools/patman/gitutil.py

Re: [PATCH v2 1/1] fastboot: fb_getvar: Add getvar_logical_blocksize for NXP mfgtool

2022-01-04 Thread Sean Anderson
On 1/3/22 8:27 AM, Angus Ainslie wrote: Hi Sean, On 2021-12-30 08:21, Sean Anderson wrote: On 12/29/21 8:35 AM, Angus Ainslie wrote: Hi Sean, On 2021-12-28 08:59, Sean Anderson wrote: Hi Angus, NXP's mfgtool queies the mmc blocksize and splits a sparse image into blocksize size pieces

[RESEND PATCH v3 01/12] mmc: fsl_esdhc_imx: make BLK as hard requirement of DM_MMC

2022-01-04 Thread Sean Anderson
[ fsl_esdhc commit 41dec2fe99512e941261594f522b2e7d485c314b ] U-boot prefers DM_MMC + BLK for MMC. Now eSDHC driver has already support it, so let's force to use it. - Drop non-BLK support for DM_MMC introduced by below patch. 66fa035 mmc: fsl_esdhc: fix probe issue without CONFIG_BLK enabled

[PATCH v2] net: fsl_mdio: Fix busy flag polling register

2022-01-04 Thread Markus Koch
NXP's mEMAC reference manual, Chapter 6.5.5 "MDIO Ethernet Management Interface usage", specifies to poll the BSY (0) bit in the CFG/STAT register to wait until a transaction has finished, not bit 31 in the data register. In the Linux kernel, this has already been fixed in commit 26eee0210ad7

Re: [PATCH u-boot-marvell] ddr: marvell: a38x: Fix Synchronous vs Asynchronous mode determination

2022-01-04 Thread Marek Behún
On Tue, 4 Jan 2022 15:57:49 +0100 Marek Behún wrote: > From: Marek Behún > > Before commit 4c289425752f ("mv_ddr: a38x: add support for ddr async > mode"), Asynchornous Mode was only used when the CPU Subsystem Clock > Options[4:0] field in the SAR1 register was set to value 0x13: CPU at > 2

[PATCH u-boot-marvell] board: gdsys: Drop Dirk Eibach from MAINTAINERS

2022-01-04 Thread Marek Behún
From: Marek Behún I got an : host mxlb.ispgateway.de[80.67.18.126] said: 554 Sorry, no mailbox here by that name. (in reply to RCPT TO command) when sending e-mail to dirk.eib...@gdsys.cc. Drop Dirk Eibach from MAINTAINERS of board/gdsys/a38x and board/gdsys/mpc8308. The latter would be

[PATCH u-boot-marvell] ddr: marvell: a38x: Fix Synchronous vs Asynchronous mode determination

2022-01-04 Thread Marek Behún
From: Marek Behún Before commit 4c289425752f ("mv_ddr: a38x: add support for ddr async mode"), Asynchornous Mode was only used when the CPU Subsystem Clock Options[4:0] field in the SAR1 register was set to value 0x13: CPU at 2 GHz and DDR at 933 MHz. Then commit 4c289425752f ("mv_ddr: a38x:

Re: [PATCH] net: fsl_mdio: Fix busy flag polling register

2022-01-04 Thread Ioana Ciornei
On Sun, Jan 02, 2022 at 06:34:18PM +0100, Markus Koch wrote: > NXP's mEMAC reference manual, Chapter 6.5.5 "MDIO Ethernet Management > Interface usage", specifies to poll the BSY (0) bit in the CFG (we call > it CTL) register to wait until a transaction has finished, not bit 31 in > the data

Re: [RFC Patch v2] binman: add support for creating dummy files for external blobs

2022-01-04 Thread Heiko Thiery
Hi Simon, Am So., 2. Jan. 2022 um 18:15 Uhr schrieb Simon Glass : > > Hi Heiko, > > On Thu, 2 Dec 2021 at 19:53, Simon Glass wrote: > > > > Hi Heiko, > > > > On Mon, 29 Nov 2021 at 02:48, Heiko Thiery wrote: > > > > > > While converting to binman for an imx8mq board, it has been found that > >

Re: [PATCH v2 2/7] common: remove bedbug debugger support

2022-01-04 Thread Simon Glass
On Sat, 1 Jan 2022 at 10:14, Ovidiu Panait wrote: > > Commit 98f705c9cefd ("powerpc: remove 4xx support") removed (in 2017) the > last code that made use of bedbug debugger support. Since there aren't > any boards left that define either CONFIG_CMD_BEDBUG or a real > bedbug_init(), drop this

Re: [PATCH v6 0/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2022-01-04 Thread Ariel D'Alessandro
Hi Tom, On 1/4/22 10:56, Tom Rini wrote: On Mon, Jan 03, 2022 at 05:55:21PM -0300, Ariel D'Alessandro wrote: Gentle ping. Can we get this merged? Does this need to be in for the v2022.01 release or can it wait for v2022.04? Thanks. No, there's no real rush for this to be in v2022.01.

Re: [PATCH v6 0/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2022-01-04 Thread Tom Rini
On Mon, Jan 03, 2022 at 05:55:21PM -0300, Ariel D'Alessandro wrote: > Gentle ping. Can we get this merged? Does this need to be in for the v2022.01 release or can it wait for v2022.04? Thanks. > > On 11/23/21 13:33, Ariel D'Alessandro wrote: > > Changes in v6: > > * Fixed typo in

[PATCH v1 4/5] configs: Migrate CONFIG_SYS_MAX_FLASH_BANKS to Kconfig

2022-01-04 Thread Patrick Delaunay
Use moveconfig.py script to convert define CONFIG_SYS_MAX_FLASH_BANKS and CONFIG_SYS_MAX_FLASH_BANKS_DETECT to Kconfig and move these entries to defconfigs. Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- README | 3 ---

[PATCH v1 0/5] configs: Migrate CONFIG_SYS_MAX_FLASH_BANKS to Kconfig

2022-01-04 Thread Patrick Delaunay
Proposal after Marek comment in [1], move CONFIG_SYS_MAX_FLASH_BANKS and CONFIG_SYS_MAX_FLASH_BANKS_DETECT in Kconfig. Series based on the previous RFC [2], rebased on top of the next branch and added reviewed-by. I wasn't not sure of the solution when I introduced the CFI_FLASH_BANKS to

[PATCH v2] arm: dts: Aspeed: add Bletchley dts

2022-01-04 Thread Potin Lai
Initial introduction of Bletchley equipped with Aspeed 2600 BMC SoC. Signed-off-by: Potin Lai --- Change since v1: - Disable mdio0, mdio1, mdio2 - Remove mac0, mac1, mac3 (keep disabled) - Enable mac2, and set to fixed-link --- arch/arm/dts/Makefile | 3 +-

Re: [PATCH] LynxOS is no longer supported

2022-01-04 Thread Thomas Huth
On 13/11/2021 18.13, Thomas Huth wrote: LynxOS needed the do_bootm_lynxkdi() function that got removed in 7e713067ee ("Remove LYNX KDI remainders") - and that function needed a lynxkdi_boot() function, where the last implementation had been removed in 98f705c9ce ("powerpc: remove 4xx support")

Re: [PATCH v2 2/7] common: remove bedbug debugger support

2022-01-04 Thread Thomas Huth
On 01/01/2022 18.13, Ovidiu Panait wrote: Commit 98f705c9cefd ("powerpc: remove 4xx support") removed (in 2017) the last code that made use of bedbug debugger support. Since there aren't any boards left that define either CONFIG_CMD_BEDBUG or a real bedbug_init(), drop this feature from u-boot.

[PATCH v1 3/5] mtd: cfi: change CONFIG_SYS_MAX_FLASH_BANKS_DETECT as boolean

2022-01-04 Thread Patrick Delaunay
Prepare migration to Kconfig. CONFIG_SYS_MAX_FLASH_BANKS_DETECT becomes boolean and CONFIG_SYS_MAX_FLASH_BANKS define the MAX size, also used for detection when CONFIG_SYS_MAX_FLASH_BANKS_DETECT=y (CFI_MAX_FLASH_BANKS = CONFIG_SYS_MAX_FLASH_BANKS). CONFIG_SYS_MAX_FLASH_BANKS become mandatory

[PATCH v1 2/5] mtd: cfi: introduce CFI_FLASH_BANKS

2022-01-04 Thread Patrick Delaunay
Replace CONFIG_SYS_MAX_FLASH_BANKS by CFI_FLASH_BANKS to prepare Kconfig migration and avoid to redefine CONFIG_SYS_MAX_FLASH_BANKS in cfi_flash.h. After this patch CONFIG_SYS_MAX_FLASH_BANKS should be never used in the cfi code: use CFI_MAX_FLASH_BANKS for struct size or CFI_FLASH_BANKS for

[PATCH v1 5/5] Convert CONFIG_AT91_EFLASH to Kconfig

2022-01-04 Thread Patrick Delaunay
This converts the following to Kconfig: CONFIG_AT91_EFLASH Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- arch/arm/mach-at91/Kconfig | 8 configs/ethernut5_defconfig | 2 +- include/configs/ethernut5.h | 1 - scripts/config_whitelist.txt | 1 - 4 files changed, 9

[PATCH v1 1/5] cmd: Fix up warnings in flash.c

2022-01-04 Thread Patrick Delaunay
Tidy up the warnings reported by checkpatch.pl to prepare next patches Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- cmd/flash.c | 239 +--- 1 file changed, 117 insertions(+), 122 deletions(-) diff --git a/cmd/flash.c

Re: [RFC PATCH v3 1/5] imx8m: drop env_get_location for imx8mn and imx8mp

2022-01-04 Thread Teresa Remmet
Hello Michael, Am Dienstag, dem 04.01.2022 um 12:06 +0100 schrieb Michael Nazzareno Trimarchi: > Hi Teresa > > On Tue, Jan 4, 2022 at 12:04 PM Teresa Remmet > wrote: > > Hello Tommaso, > > > > Am Samstag, dem 25.12.2021 um 21:25 +0100 schrieb Tommaso Merciai: > > > This function defined for

Re: [RFC PATCH v3 1/5] imx8m: drop env_get_location for imx8mn and imx8mp

2022-01-04 Thread Michael Nazzareno Trimarchi
Hi Teresa On Tue, Jan 4, 2022 at 12:04 PM Teresa Remmet wrote: > > Hello Tommaso, > > Am Samstag, dem 25.12.2021 um 21:25 +0100 schrieb Tommaso Merciai: > > This function defined for two architecture is not really generic > > and can generate problem when people add a new board. > > > >

Re: [RFC PATCH v3 1/5] imx8m: drop env_get_location for imx8mn and imx8mp

2022-01-04 Thread Teresa Remmet
Hello Tommaso, Am Samstag, dem 25.12.2021 um 21:25 +0100 schrieb Tommaso Merciai: > This function defined for two architecture is not really generic > and can generate problem when people add a new board. > > Signed-off-by: Tommaso Merciai > --- > arch/arm/mach-imx/imx8m/soc.c | 39

Re: [RFC PATCH v3 5/5] phytec: phycore_imx8mp: override env_get_location in phycore-imx8mp.c

2022-01-04 Thread Teresa Remmet
Hello Tommaso, thank you for working on this. Am Samstag, dem 25.12.2021 um 21:25 +0100 schrieb Tommaso Merciai: > Override env_get_location function at board level, previously dropped > down from arch/arm/mach-imx/imx8m/soc.c > > References: > - commit 37d3e3bb95d7532e2503f115dd6c6762fd3b0262

Re: [PATCH v8 16/25] efi: Allow easy selection of serial-only operation

2022-01-04 Thread Simon Glass
Hi Heinrich, On Thu, 30 Dec 2021 at 23:18, Heinrich Schuchardt wrote: > > On 12/29/21 19:57, Simon Glass wrote: > > Add info about how to select vidconsole or serial. > > > > Also set up a demo boot command. > > > > Signed-off-by: Simon Glass > > --- > > > > (no changes since v2) > > > >

Re: [PATCH v8 19/25] x86: efi: Show the system-table revision

2022-01-04 Thread Simon Glass
Hi Heinrich, On Thu, 30 Dec 2021 at 23:46, Heinrich Schuchardt wrote: > > On 12/29/21 19:57, Simon Glass wrote: > > Show the revision of this table as it can be important. > > > > Also update the 'efi table' entry to show the actual address of the EFI > > table rather than our table that points

Re: [PATCH v8 12/25] efi: Move exit_boot_services into a function

2022-01-04 Thread Simon Glass
Hi Heinrich, On Thu, 30 Dec 2021 at 22:41, Heinrich Schuchardt wrote: > > On 12/29/21 19:57, Simon Glass wrote: > > At present this code is inline in the app and stub. But they do the same > > thing. The difference is that the stub does it immediately and the app > > doesn't want to do it until

[PATCH v9 9/9] efi: Tidy up some comments in efi header

2022-01-04 Thread Simon Glass
Document the return value in efi_init(). Fix up @sizep in efi_info_get(). Use Return: instead of @return Signed-off-by: Simon Glass --- (no changes since v8) Changes in v8: - Add new patch to tidy up header comments include/efi.h | 17 + 1 file changed, 9 insertions(+), 8

[PATCH v9 8/9] efi: Build the 64-bit app properly

2022-01-04 Thread Simon Glass
Now that the linker crash is resolved, build the 64-bit EFI app, including all the required code. Signed-off-by: Simon Glass --- Changes in v9: - Drop changes previously applied Changes in v7: - Rebase on -master instead of -next Changes in v5: - Add new patch to build the 64-bit app properly

[PATCH v9 7/9] x86: efi: Set the correct link flags for the 64-bit EFI app

2022-01-04 Thread Simon Glass
At present some 32-bit settings are used with the 64-bit app. Fix this by separating out the two cases. Be careful not to break the 64-bit payload, which needs to build a 64-bit EFI stub with a 32-bit U-Boot. Signed-off-by: Christian Melki Signed-off-by: Simon Glass --- (no changes since v5)

[PATCH v9 6/9] x86: efi: Don't use the 64-bit link script for the EFI app

2022-01-04 Thread Simon Glass
That script is not intended for use with EFI, so update the logic to avoid using it. Signed-off-by: Simon Glass Signed-off-by: Christian Melki --- (no changes since v5) Changes in v5: - Add new patch to avoid using the 64-bit link script for the EFI app arch/x86/cpu/config.mk | 2 +- 1 file

[PATCH v9 5/9] x86: efi: Round out the link script for 64-bit EFI

2022-01-04 Thread Simon Glass
Make sure the linker lists are in the right place and drop the eh_frame section, which is not needed. Signed-off-by: Simon Glass --- (no changes since v5) Changes in v5: - Add new patch to round out the link script for 64-bit EFI arch/x86/lib/elf_x86_64_efi.lds | 5 - 1 file changed, 4

[PATCH v9 3/9] efi: Support the efi command in the app

2022-01-04 Thread Simon Glass
At present the 'efi' command only works in the EFI payload. Update it to work in the app too, so the memory map can be examined. Signed-off-by: Simon Glass --- (no changes since v1) cmd/Makefile | 2 +- cmd/efi.c | 48 ---

[PATCH v9 4/9] x86: efi: Tweak the code used for the 64-bit EFI app

2022-01-04 Thread Simon Glass
Add an empty CPU init function to avoid fiddling with low-level CPU features in the app. Set up the C runtime correctly for 64-bit use and avoid clearing BSS, since this is done by EFI when U-Boot is loaded. Signed-off-by: Simon Glass --- (no changes since v5) Changes in v5: - Add new patch to

[PATCH v9 2/9] x86: efi: Update efi_get_next_mem_desc() to avoid needing a map

2022-01-04 Thread Simon Glass
At present this function requires a pointer to struct efi_entry_memmap but the only field used in there is the desc_size. We want to be able to use it from the app, so update it to use desc_size directly. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/cpu/efi/payload.c | 8

[PATCH v9 1/9] efi: Move exit_boot_services into a function

2022-01-04 Thread Simon Glass
At present this code is inline in the app and stub. But they do the same thing. The difference is that the stub does it immediately and the app doesn't want to do it until the end (when it boots a kernel) or not at all, if returning to UEFI. Move it into a function so it can be called as needed.

[PATCH v9 0/9] efi: Improvements to U-Boot running on top of UEFI

2022-01-04 Thread Simon Glass
At present U-Boot can be built as an EFI app, but it is really just for testing, with very few features. Instead, the payload build is used for booting on top of UEFI, where U-Boot takes over the machine immediately and supplies its own drivers. But the app could be made more useful. This series

Re: [PATCH V2] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-01-04 Thread Michael Walle
Hi, > The imx8mm and imx8mn appear compatible with imx7d-usb > flags in the OTG driver. If the dr_mode is defined as > host or peripheral, the device appears to operate correctly, > however the auto host/peripheral detection results in an error. > > The solution isn't just adding checks for