[PATCH 1/1] efi_selftest: simplify Makefile

2020-08-27 Thread Heinrich Schuchardt
CONFIG_EFI_LOADER cannot be selected for ARMv7-M CPUs. So don't check it in the Makefile. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/Makefile | 6 -- 1 file changed, 6 deletions(-) diff --git a/lib/efi_selftest/Makefile b/lib/efi_selftest/Makefile index 85fe8e1216..06d66cfdd1 1

RE: [PATCH v2] mmc: fsl_esdhc_imx: check the clock stable status after config the clock rate.

2020-08-27 Thread Peng Fan
> Subject: [PATCH v2] mmc: fsl_esdhc_imx: check the clock stable status after > config the clock rate. > > From: Haibo Chen > > Currently, after config the clock rate, delay 10ms, this is quite a rough > method. > Check the clock stable status in the present status register is enough. > > Test

RE: [PATCH v2 4/6] mmc: atmel-sdhci: do not check clk_set_rate return value

2020-08-27 Thread Peng Fan
> Subject: [PATCH v2 4/6] mmc: atmel-sdhci: do not check clk_set_rate return > value > > clk_set_rate will return rate in case of success and zero in case of error, > however it can also return -ev, but it's an ulong function. > To avoid any issues, disregard the return value of this call. > In ca

RE: [PATCH v2 5/6] mmc: atmel-sdhci: enable the required generic clock

2020-08-27 Thread Peng Fan
> Subject: [PATCH v2 5/6] mmc: atmel-sdhci: enable the required generic clock > > The second clock of the IP block (the generic clock), must be explicitly > enabled. > > Signed-off-by: Eugen Hristev > --- > drivers/mmc/atmel_sdhci.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/

Re: [PATCH v5 17/17] test/py: add a test for uefi firmware update capsule of raw image

2020-08-27 Thread Heinrich Schuchardt
On 8/3/20 7:43 AM, AKASHI Takahiro wrote: > The test can run on sandbox build and it attempts to execute a firmware > update via a capsule-on-disk, using a raw image capsule, > CONFIG_EFI_CAPSULE_RAW. > > To run this test successfully, you need configure U-Boot specifically; > See test_capsule_firm

Re: [PATCH v5 15/17] tools: add mkeficapsule command for UEFI capsule update

2020-08-27 Thread Heinrich Schuchardt
On 8/3/20 7:43 AM, AKASHI Takahiro wrote: > This is a utility mainly for test purpose. > mkeficapsule -f: create a test capsule file for FIT image firmware > > Having said that, you will be able to customize the code to fit > your specific requirements for your platform. > > Signed-off-by: AKASHI

Re: [PATCH v2 1/1] dfu: remove UPDATE_TFTP

2020-08-27 Thread Heinrich Schuchardt
On 7/21/20 8:02 PM, Heinrich Schuchardt wrote: > Using UPDATE_TFTP the firmware can be updated from TFTP by writing to NOR > flash. The same is possible by defining a dfu command in CONFIG_PREBOOT. > > The dfu command cannot only write to NOR but also to other devices. In > README.dfutfp UPDATE_TFT

Re: Aw: [PATCH RESEND v2 01/11] usb: xhci: add a member hci_version in xhci_ctrl struct

2020-08-27 Thread Chunfeng Yun
On Thu, 2020-08-27 at 20:05 +0200, Marek Vasut wrote: > On 8/27/20 3:31 PM, Frank Wunderlich wrote: > > Hi, > > Hi, > > > any change to get this series into 2020-10? > > We're already at rc3, so no. > > > i'm asking because tom write that merge window for next will be opened > > soon. imho tha

Re: [PATCH 1/1] efi_loader: check for image truncation

2020-08-27 Thread AKASHI Takahiro
On Thu, Aug 27, 2020 at 06:24:35PM +0200, Heinrich Schuchardt wrote: > Check in efi_load_pe() that the image size parameter is at least as large > as the image size indicated in the optional PE header. > > Signed-off-by: Heinrich Schuchardt > --- > lib/efi_loader/efi_image_loader.c | 28

Re: [GIT] Pull request: u-boot-dfu (27.08.2019)

2020-08-27 Thread Marek Vasut
On 8/27/20 11:10 PM, Lukasz Majewski wrote: > Dear Marek, Hi, > Please find a set of DFU/Gadget/sdp/fastboot related fixes and > enhancements: > > https://gitlab.denx.de/u-boot/custodians/u-boot-dfu/-/commits/master > > The git tag with detailed changes description in this PR can be found > her

Re: [PATCH 2/2] board: tbs2910: Disable CONFIG_ENV_VARS_UBOOT_CONFIG in defconfig

2020-08-27 Thread Fabio Estevam
On Thu, Aug 27, 2020 at 4:53 PM Soeren Moch wrote: > > This is not required for sysboot (we defined fdtfile), let's save a few > bytes in the binary image without these variables. > > Signed-off-by: Soeren Moch Reviewed-by: Fabio Estevam

Re: [PATCH 1/2] board: tbs2910: Use recommended distroboot addresses

2020-08-27 Thread Fabio Estevam
Hi Soeren, On Thu, Aug 27, 2020 at 4:53 PM Soeren Moch wrote: > > According to doc/README.distro fdt_addr must not be set when DTB is not > available from hardware. So remove this entry. > > Use address 32MB above the start of DRAM for kernel_addr_r. This way > we likely can avoid the self-reloca

[GIT] Pull request: u-boot-dfu (27.08.2019)

2020-08-27 Thread Lukasz Majewski
Dear Marek, Please find a set of DFU/Gadget/sdp/fastboot related fixes and enhancements: https://gitlab.denx.de/u-boot/custodians/u-boot-dfu/-/commits/master The git tag with detailed changes description in this PR can be found here: https://gitlab.denx.de/u-boot/custodians/u-boot-dfu/-/tags/u-

[PATCH 2/2] board: tbs2910: Disable CONFIG_ENV_VARS_UBOOT_CONFIG in defconfig

2020-08-27 Thread Soeren Moch
This is not required for sysboot (we defined fdtfile), let's save a few bytes in the binary image without these variables. Signed-off-by: Soeren Moch --- Cc: Stefano Babic Cc: Fabio Estevam Cc: Denis 'GNUtoo' Carikli Cc: u-boot@lists.denx.de --- configs/tbs2910_defconfig | 1 - 1 file changed

[PATCH 1/2] board: tbs2910: Use recommended distroboot addresses

2020-08-27 Thread Soeren Moch
According to doc/README.distro fdt_addr must not be set when DTB is not available from hardware. So remove this entry. Use address 32MB above the start of DRAM for kernel_addr_r. This way we likely can avoid the self-relocation of the compressed kernel image before it decompresses to offset 0x8000

Re: [PATCH 4/5] usb: xhci: Add Qualcomm DWC3 xHCI driver

2020-08-27 Thread Marek Vasut
On 8/27/20 9:08 PM, Robert Marko wrote: > I don't think that this has anything to do with Qualcomm HW. > I find it weird that hooking into the non-DM DWC3 driver and simply > calling core init has both ports working while DM version only has > USB2.0 one working. > > On Thu, Aug 27, 2020 at 8:06 P

Re: [PATCH 4/5] usb: xhci: Add Qualcomm DWC3 xHCI driver

2020-08-27 Thread Robert Marko
I don't think that this has anything to do with Qualcomm HW. I find it weird that hooking into the non-DM DWC3 driver and simply calling core init has both ports working while DM version only has USB2.0 one working. On Thu, Aug 27, 2020 at 8:06 PM Marek Vasut wrote: > > On 8/27/20 5:01 PM, Robert

Re: [PATCH 4/5] usb: xhci: Add Qualcomm DWC3 xHCI driver

2020-08-27 Thread Marek Vasut
On 8/27/20 5:01 PM, Robert Marko wrote: > On Wed, Aug 19, 2020 at 9:34 PM Marek Vasut wrote: >> >> On 8/19/20 8:22 PM, Tom Rini wrote: >> [...] +#include +#include +#include +#include +#include +#include +#include +#include >> >> Please keep the list

Re: Aw: [PATCH RESEND v2 01/11] usb: xhci: add a member hci_version in xhci_ctrl struct

2020-08-27 Thread Marek Vasut
On 8/27/20 3:31 PM, Frank Wunderlich wrote: > Hi, Hi, > any change to get this series into 2020-10? We're already at rc3, so no. > i'm asking because tom write that merge window for next will be opened soon. > imho that means that current release cycle allows only fixes, right? It is mostly f

Re: [PATCH 2/2] arm: mvebu: Espressobin: Setup MTD partitions when booting kernel

2020-08-27 Thread Andre Heider
On 19/08/2020 16:24, Pali Rohár wrote: Due to different partition layouts in different U-Boot versions, DTS for Espressobin in Linux does not contain any definition of MTD partitions. See commit https://git.kernel.org/stable/c/00954566464a4 for more details. This patch via ft_board_setup() hook

Re: [PATCH 1/2] arm: mvebu: Espressobin: Make SPI env offset compatible with Marvell's U-Boot

2020-08-27 Thread Andre Heider
On 19/08/2020 16:24, Pali Rohár wrote: Espressobin board comes with Marvell's U-Boot version where U-Boot env is stored in SPI at offset 0x3F. This patch changes env offset in Espressobin defconfig file to match Marvell's U-Boot version. Users who want to use previous or different env offset

Re: [PATCH 1/2] mmc: xenon: set signal voltage and max base clock

2020-08-27 Thread Andre Heider
On 19/08/2020 16:19, Pali Rohár wrote: From: Evan Wang - The SDIO signal voltage and max base clock frequency setting are missing in driver, which causes SDIO not working. - The patch adds SDIO signal voltage switch support, which is based on regulator-gpio of vqmmc-supply, and sets

Re: [PATCH 2/2] arm: dts: a37x0: enable sd card support on espressobin

2020-08-27 Thread Andre Heider
On 19/08/2020 16:19, Pali Rohár wrote: From: Wilson Ding Enabled SDIO slot 0 (south bridge) for SD card on Espressobin board. Change-Id: I51a2debf9fba276b9c4a2bc6da91328d47f443e3 Signed-off-by: Wilson Ding Signed-off-by: Konstantin Porotchkin Reviewed-on: http://vgitil04.il.marvell.com:8080/

Re: [PATCH] arm64: a37xx: pci: Depends on DM_GPIO

2020-08-27 Thread Andre Heider
On 25/08/2020 10:45, Pali Rohár wrote: For proper initialization of aardvark pci driver it is required to de-assert reset GPIO. So depeneds on DM_GPIO option. Signed-off-by: Pali Rohár Tested-by: Andre Heider

Re: [PATCH 2/2] arm64: a37xx: pci: Assert PERST# signal when unloading driver

2020-08-27 Thread Andre Heider
On 19/08/2020 15:57, Pali Rohár wrote: This change ensures that PCIe card is put into reset state when U-Boot stops using it. DM_FLAG_OS_PREPARE ensures that U-Boot executes driver's remove callback prior booting Linux kernel. Linux kernel pci-aardvark driver needs to reset PCIe card via PERST#

Re: [PATCH 1/2] arm64: a37xx: pci: Make PCIe Reset GPIO DT compatible with Linux kernel DT

2020-08-27 Thread Andre Heider
On 19/08/2020 15:57, Pali Rohár wrote: Change active-high to active-low and change DT property name from reset-gpio to reset-gpios. This format of gpio reset is used by pci-aardvark driver in Linux kernel. Signed-off-by: Pali Rohár Tested-by: Andre Heider

[PATCH 1/1] efi_loader: remove duplicate image size check

2020-08-27 Thread Heinrich Schuchardt
The image size is checked in efi_load_pe(). Avoid checking it twice. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 4 1 file changed, 4 deletions(-) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index d49145fc76..dcd3eec894 100644 --- a

[PATCH 1/1] efi_loader: check for image truncation

2020-08-27 Thread Heinrich Schuchardt
Check in efi_load_pe() that the image size parameter is at least as large as the image size indicated in the optional PE header. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_image_loader.c | 28 +++- 1 file changed, 23 insertions(+), 5 deletions(-) diff --gi

Re: [PATCH] arm: mvebu: Espressobin: Disallow forwarding packets between wan and lan ports

2020-08-27 Thread Andre Heider
On 17/08/2020 16:36, Pali Rohár wrote: By default Topaz switch on Espressobin board forwards packets between all ethernet ports, including CPU (port 0), wan (port 1) and lan (ports 2,3). This default U-Boot setup is unsuitable for using Espressobin as router as it opens security hole in forwardi

Re: [PATCH] arm: mvebu: Espressobin: Enable CONFIG_MVNETA

2020-08-27 Thread Andre Heider
On 17/08/2020 17:13, Pali Rohár wrote: Espressobin uses mvneta ethernet driver. Signed-off-by: Pali Rohár Tested-by: Andre Heider

[PATCH 1/1] efi_loader: error message if image not authenticated

2020-08-27 Thread Heinrich Schuchardt
Currently if the bootefi command fails due to missing authentication, the user gets no feedback. Write a log message 'Image not authenticated' if LoadImage() fails due to missing authentication. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_image_loader.c | 6 -- 1 file changed,

Re: [PATCH] Revert "env: Warn on force access if ENV_ACCESS_IGNORE_FORCE set"

2020-08-27 Thread Alex Kiernan
On Thu, Aug 27, 2020 at 2:03 PM Tom Rini wrote: > > On Thu, Aug 27, 2020 at 11:49:25AM +0200, Marek Vasut wrote: > > On 8/27/20 11:43 AM, Alex Kiernan wrote: > > > This reverts commit 0f036bf4b87e6416f5c4d23865a62a62d9073c20. > > > > > > With this change applied and CONFIG_ENV_ACCESS_IGNORE_FORCE

[PATCH 1/1] efi: clean up efi command

2020-08-27 Thread Heinrich Schuchardt
* Eliminate superfluous enum value EFI_TABLE_END. * Use correct variable type for the memory type. * Check validity of memory type. * Make efi_build_mem_table static. Signed-off-by: Heinrich Schuchardt --- to be merged after efi_loader: consider no-map property of reserved memory https://lists.d

[PATCH] efi_loader: consider no-map property of reserved memory

2020-08-27 Thread Heinrich Schuchardt
If a reserved memory node in the device tree has the property no-map, remove it from the UEFI memory map provided by GetMemoryMap(). Signed-off-by: Heinrich Schuchardt --- cmd/bootefi.c | 34 -- include/efi.h | 3 +++ lib/efi_loader/ef

Re: [PATCH v2 3/4] arm: mvebu: Espressobin: Define fdt_addr and kernel_addr env aliases

2020-08-27 Thread Andre Heider
On 27/08/2020 15:01, Pali Rohár wrote: Boot scripts for existing Espressobin Linux distributions, like OpenWRT, expect that U-Boot set fdt_addr and kernel_addr envs. So add env aliases from fdt_addr_r and kernel_addr_r values. Signed-off-by: Pali Rohár Tested-by: Andre Heider

Re: [PATCH v2 2/4] arm: mvebu: Espressobin: Change default loadaddr

2020-08-27 Thread Andre Heider
On 27/08/2020 15:01, Pali Rohár wrote: Current loadaddr is not writable on Espressobin and 'loadb' command cause rebooting board. Marvell's U-Boot already set default loadaddr to value 0x0600 [1] and after this change 'loadb' is working fine. [1] - https://github.com/MarvellEmbeddedProcesso

[PATCH v2] common: Kconfig: Add dependency for default variables strings

2020-08-27 Thread Michal Simek
Kconfig provides several config options for setting up default variables but these are unused when variables are passed to U-Boot via file. That's why cover this dependency in Kconfig. Signed-off-by: Michal Simek --- Changes in v2: - remove autoboot - reported by Tom There are likely other Kcon

Re: RISCV64 - u-boot FDT control address unset on qemu-riscv64_defconfig ?

2020-08-27 Thread Alexander von Gluck IV
August 27, 2020 9:40 AM, "Alexander von Gluck IV" wrote: > Good morning! > > I was looking at booting Haiku's riscv64 EFI bootloader under qemu, and > noticed several FDT errors: > . > . > Shouldn't ${fdtcontroladdr} be the default fdt address on bootup? > > Here's my qemu command: > > qemu-sy

Re: [PATCH v2 1/4] arm: mvebu: Espressobin: Move env load addresses

2020-08-27 Thread Stefan Roese
Hi Andre, On 27.08.20 16:31, Andre Heider wrote: On 27/08/2020 15:01, Pali Rohár wrote: According to Marvell's U-Boot description [1] current env load addresses overlaps with ATF RT services region and TEE. Because the ATF RT service and TEE region is going to be marked as secure and can't be o

Re: [PATCH v2 4/4] arm: mvebu: Espressobin: Update README.marvell file

2020-08-27 Thread Stefan Roese
On 27.08.20 15:01, Pali Rohár wrote: Include information about permanent ethernet MAC address and add link how to build ATF as U-Boot on Espressobin cannot be flashed without ATF. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- doc/README.marvell | 40

Re: [PATCH v2 3/4] arm: mvebu: Espressobin: Define fdt_addr and kernel_addr env aliases

2020-08-27 Thread Stefan Roese
On 27.08.20 15:01, Pali Rohár wrote: Boot scripts for existing Espressobin Linux distributions, like OpenWRT, expect that U-Boot set fdt_addr and kernel_addr envs. So add env aliases from fdt_addr_r and kernel_addr_r values. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan

Re: [PATCH v2 2/4] arm: mvebu: Espressobin: Change default loadaddr

2020-08-27 Thread Stefan Roese
On 27.08.20 15:01, Pali Rohár wrote: Current loadaddr is not writable on Espressobin and 'loadb' command cause rebooting board. Marvell's U-Boot already set default loadaddr to value 0x0600 [1] and after this change 'loadb' is working fine. [1] - https://github.com/MarvellEmbeddedProcessors

Re: [PATCH v2 1/4] arm: mvebu: Espressobin: Move env load addresses

2020-08-27 Thread Stefan Roese
On 27.08.20 15:01, Pali Rohár wrote: According to Marvell's U-Boot description [1] current env load addresses overlaps with ATF RT services region and TEE. Because the ATF RT service and TEE region is going to be marked as secure and can't be overwritten, use different different addresses for env

Re: [PATCH] common: Kconfig: Add dependency for default variables strings

2020-08-27 Thread Tom Rini
On Wed, Aug 12, 2020 at 09:28:24AM +0200, Michal Simek wrote: > Kconfig provides several config options for setting up default variables > but these are unused when variables are passed to U-Boot via file. > That's why cover this dependency in Kconfig. > > Signed-off-by: Michal Simek > --- > >

Re: [PATCH 4/5] usb: xhci: Add Qualcomm DWC3 xHCI driver

2020-08-27 Thread Robert Marko
On Wed, Aug 19, 2020 at 9:34 PM Marek Vasut wrote: > > On 8/19/20 8:22 PM, Tom Rini wrote: > [...] > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > > Please keep the list sorted. > > >> +/* Declare global data pointer

RISCV64 - u-boot FDT control address unset on qemu-riscv64_defconfig ?

2020-08-27 Thread Alexander von Gluck IV
Good morning! I was looking at booting Haiku's riscv64 EFI bootloader under qemu, and noticed several FDT errors: Device 0: QEMU VirtIO Block Device Type: Hard Disk Capacity: 428.0 MB = 0.4 GB (876544 x 512) ... is now current device Scanning virtio 0:1... ** Unable to read file / ** Failed to l

Re: [PATCH 4/5] arm: mvebu: Espressobin: Define console env

2020-08-27 Thread Andre Heider
On 27/08/2020 12:29, Pali Rohár wrote: On Thursday 27 August 2020 06:51:57 Andre Heider wrote: On the other hand, check "git grep 'console='". So why not just add the earlycon to bootargs directly so it works everywhere? The only useful thing about CONFIG_DEFAULT_CONSOLE and ${console} env is

Re: [PATCH v2 1/4] arm: mvebu: Espressobin: Move env load addresses

2020-08-27 Thread Andre Heider
On 27/08/2020 15:01, Pali Rohár wrote: According to Marvell's U-Boot description [1] current env load addresses overlaps with ATF RT services region and TEE. Because the ATF RT service and TEE region is going to be marked as secure and can't be overwritten, use different different addresses for e

[PATCH v2] configs: Enable NVME support for Layerscape platforms

2020-08-27 Thread Wasim Khan
Enable CONFIG_NVME and CONFIG_CMD_NVME for Layerscape platforms Signed-off-by: Wasim Khan --- Changes in v2: - Updated commit subject and description configs/ls1012afrdm_qspi_defconfig | 2 ++ configs/ls1012afrdm_tfa_defconfig| 2 ++ configs/ls1012afrwy_qsp

[PATCH v2] board: freescale: emc2305: Pass chip_addr to set_fan_speed

2020-08-27 Thread Wasim Khan
emc2305 is a common driver. It should not use platform specific i2c address for slave device. Pass chip_addr as agrument to emc2305_init() and set_fan_speed() so that emc2305 driver can be used with different platforms. Signed-off-by: Wasim Khan --- Changes in v2: - Update commit subject board/

[PATCH] ti: common: Remove additional i2c read for board detection

2020-08-27 Thread Michal Simek
There shouldn't be a need to call additional i2c read if above failed already. Based on comment it should be enough to try to detect legacy boards which are mentioned in the comment. Fixes: 2463f6728e82 ("ti: common: board_detect: Allow DM I2C without CONFIG_DM_I2C_COMPAT") Fixes: 0bea813d0018 ("

[PATCH] xilinx: kconfig: Move sourcing of board Kconfig to mach folders

2020-08-27 Thread Michal Simek
Do not source xilinx board Kconfig by other boards. These configs should be available only when Xilinx platforms are selected. Signed-off-by: Michal Simek --- arch/arm/Kconfig | 4 arch/arm/mach-versal/Kconfig | 3 +++ arch/arm/mach-zynq/Kconfig | 3 +++ arch/arm/mach-zynqmp/

[PATCH v2 4/6] mmc: atmel-sdhci: do not check clk_set_rate return value

2020-08-27 Thread Eugen Hristev
clk_set_rate will return rate in case of success and zero in case of error, however it can also return -ev, but it's an ulong function. To avoid any issues, disregard the return value of this call. In case this call actually fails, nothing much we can do anyway, but we can at least try with the pre

[PATCH v2 5/6] mmc: atmel-sdhci: enable the required generic clock

2020-08-27 Thread Eugen Hristev
The second clock of the IP block (the generic clock), must be explicitly enabled. Signed-off-by: Eugen Hristev --- drivers/mmc/atmel_sdhci.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c index 54b660c34a..c67b065061 100644 --- a/dri

Aw: [PATCH RESEND v2 01/11] usb: xhci: add a member hci_version in xhci_ctrl struct

2020-08-27 Thread Frank Wunderlich
Hi, any change to get this series into 2020-10? i'm asking because tom write that merge window for next will be opened soon. imho that means that current release cycle allows only fixes, right? usb for mt7622/23 needs these patches to work properly (currently only controller is detected with m

[PATCH v2 6/6] mmc: atmel-sdhci: use mmc_of_parse to get the DT properties

2020-08-27 Thread Eugen Hristev
Call mmc_of_parse at probe time to fetch all the host properties from the DT. Signed-off-by: Eugen Hristev --- drivers/mmc/atmel_sdhci.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c index c67b065061..f56ae63bc2 100644 --- a/drivers

[PATCH v2 4/6] mmc: atmel-sdhci: do not check clk_set_rate return value

2020-08-27 Thread Eugen Hristev
clk_set_rate will return rate in case of success and zero in case of error, however it can also return -ev, but it's an ulong function. To avoid any issues, disregard the return value of this call. In case this call actually fails, nothing much we can do anyway, but we can at least try with the pre

[PATCH v2 3/6] mmc: atmel-sdhci: add sama7g5-sdhci compatibility string

2020-08-27 Thread Eugen Hristev
Add new compatibility string for matching sama7g5 product. Signed-off-by: Eugen Hristev --- drivers/mmc/atmel_sdhci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c index 0c53caf448..f03c0457e1 100644 --- a/drivers/mmc/atmel_sdhci.c +++

Re: Espressobin booting (Was: Re: [PATCH 1/5] arm: mvebu: Espressobin: Move env load addresses)

2020-08-27 Thread Pali Rohár
On Wednesday 26 August 2020 15:22:37 Andre Heider wrote: > Hi, > > On 26/08/2020 13:40, Pali Rohár wrote: > > On Wednesday 26 August 2020 12:51:18 Pali Rohár wrote: > > > On Wednesday 26 August 2020 11:57:01 Andre Heider wrote: > > > > Hi, > > > > > > > > On 26/08/2020 10:31, Pali Rohár wrote: >

[PATCH v2 2/6] pinctrl: at91-pio4: add compatible for sama7g5 pinctrl block

2020-08-27 Thread Eugen Hristev
Add new compatible to microchip,sama7g5 new SoC. Signed-off-by: Eugen Hristev --- drivers/pinctrl/pinctrl-at91-pio4.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c index fdb7920b55..bf85cc916a 100644 --- a/drivers/p

Re: [PATCH] Revert "env: Warn on force access if ENV_ACCESS_IGNORE_FORCE set"

2020-08-27 Thread Tom Rini
On Thu, Aug 27, 2020 at 11:49:25AM +0200, Marek Vasut wrote: > On 8/27/20 11:43 AM, Alex Kiernan wrote: > > This reverts commit 0f036bf4b87e6416f5c4d23865a62a62d9073c20. > > > > With this change applied and CONFIG_ENV_ACCESS_IGNORE_FORCE disabled, > > the warning appears on every force overwrite,

[PATCH v2 1/4] arm: mvebu: Espressobin: Move env load addresses

2020-08-27 Thread Pali Rohár
According to Marvell's U-Boot description [1] current env load addresses overlaps with ATF RT services region and TEE. Because the ATF RT service and TEE region is going to be marked as secure and can't be overwritten, use different different addresses for envs. [1] - https://github.com/MarvellEm

[PATCH v2 4/4] arm: mvebu: Espressobin: Update README.marvell file

2020-08-27 Thread Pali Rohár
Include information about permanent ethernet MAC address and add link how to build ATF as U-Boot on Espressobin cannot be flashed without ATF. Signed-off-by: Pali Rohár --- doc/README.marvell | 40 +--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --

[PATCH v2 3/4] arm: mvebu: Espressobin: Define fdt_addr and kernel_addr env aliases

2020-08-27 Thread Pali Rohár
Boot scripts for existing Espressobin Linux distributions, like OpenWRT, expect that U-Boot set fdt_addr and kernel_addr envs. So add env aliases from fdt_addr_r and kernel_addr_r values. Signed-off-by: Pali Rohár --- include/configs/mvebu_armada-37xx.h | 3 +++ 1 file changed, 3 insertions(+)

[PATCH v2 2/4] arm: mvebu: Espressobin: Change default loadaddr

2020-08-27 Thread Pali Rohár
Current loadaddr is not writable on Espressobin and 'loadb' command cause rebooting board. Marvell's U-Boot already set default loadaddr to value 0x0600 [1] and after this change 'loadb' is working fine. [1] - https://github.com/MarvellEmbeddedProcessors/u-boot-marvell/commit/0a5b159806baa074

[PATCH v2 1/6] ARM: mach-at91: add support for new SoC sama7g5

2020-08-27 Thread Eugen Hristev
Add support for new SoC sama7g5 Signed-off-by: Eugen Hristev --- Changes in v2: - removed line that was causing CI failure, related to sama7g5ek board, which is not yet added . arch/arm/dts/sama7g5-pinfunc.h | 924 + arch/arm/mach-at91/Kconfig |

[PATCH] arm64: zynqmp: Add device tree node for 2nd mux on I2C1 bus

2020-08-27 Thread Michal Simek
From: Saeed Nowshadi There is 2nd pca9548 mux on I2C1 bus that controls SFP0, SFP1, and QSFP1 ports. Channel 0 and 1 are connected to J287 connector for SFP0 & SFP1, and channel 2 is connected to J288 connector for QSFP1. Signed-off-by: Saeed Nowshadi Signed-off-by: Michal Simek --- arch/arm

[PATCH] arm64: zynqmp: Correct value of shunt resistor for VCCINT and VCC_SOC

2020-08-27 Thread Michal Simek
From: Saeed Nowshadi Value of shunt resistor for INA226s that monitor VCCINT and VCC_SOC power rails are incorrect. This patch corrects those values. Signed-off-by: Saeed Nowshadi Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-e-a2197-00-revA.dts | 8 1 file changed, 4 inserti

[PATCH] serial: uartlite: Add support to work with any endianness

2020-08-27 Thread Michal Simek
From: T Karthik Reddy This endinness changes are taken from linux uartlite driver. Reset TX fifo in control register and check TX fifo empty flag in lower byte of the status register to detect if it is a little endian system. Based on this check, program the registers with le32 or be32 through ou

[PATCH] xilinx: Enable uartlite driver for Versal/ZynqMP

2020-08-27 Thread Michal Simek
From: T Karthik Reddy Add CONFIG_XILINX_UARTLITE config to versal/zynqmp defconfig to enable uartlite driver support by default. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- configs/xilinx_versal_virt_defconfig | 1 + configs/xilinx_zynqmp_virt_defconfig | 1 + 2 files chan

[PATCH] configs: xilinx: Enable configs required for ubifs

2020-08-27 Thread Michal Simek
From: Ashok Reddy Soma Enable required configs for using ubifs in uboot. UBIFS testing procedure from u-boot: Let's say we have two partitions in dt as below and want to format partition1 "images" with ubifs. partition@0 { label = "boot"; reg = <0x0 0x100

[PATCH] board: xilinx: Enable changing default DTB pick up address

2020-08-27 Thread Michal Simek
U-Boot on xilinx boards is checking one address where DTB can be placed as the first location for DTB. Originally this code was developed for Versal where QEMU was putting generated DTB for U-Boot to use. The patch enables changing this address which is necessary for cases where default address is

[PATCH] microblaze: Add support for little/big endian in/out api's

2020-08-27 Thread Michal Simek
From: T Karthik Reddy Add read/write memory utilities for 16 and 32 bits. Add these api's for both little and big endian systems similar to arm architecture. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma Signed-off-by: Michal Simek --- arch/microblaze/include/asm/io.h | 22

Re: [PATCH v4 1/2] arch: arm: use dt and UCLASS_IRQ to get gic details

2020-08-27 Thread Stefan Roese
Hi Rayagonda, On 26.07.20 19:07, Rayagonda Kokatanur wrote: Use device tree and UCLASS_IRQ driver to get following Generic Interrupt Controller (GIC) details, -GIC Distributor interface (GICD) base address and -GIC Redistributors (GICR) base address. Signed-off-by: Rayagonda Kokatanur Reviewe

Re: [PATCH 4/5] arm: mvebu: Espressobin: Define console env

2020-08-27 Thread Pali Rohár
On Thursday 27 August 2020 06:51:57 Andre Heider wrote: > On the other hand, check "git grep 'console='". So why not just add the > earlycon to bootargs directly so it works everywhere? The only useful thing about CONFIG_DEFAULT_CONSOLE and ${console} env is to propagate earlycon argument to kerne

[PATCH v2] mmc: fsl_esdhc_imx: check the clock stable status after config the clock rate.

2020-08-27 Thread haibo . chen
From: Haibo Chen Currently, after config the clock rate, delay 10ms, this is quite a rough method. Check the clock stable status in the present status register is enough. Tested-by: Ji Luo Signed-off-by: Haibo Chen --- drivers/mmc/fsl_esdhc_imx.c | 7 ++- 1 file changed, 6 insertions(+),

Re: [PATCH] Revert "env: Warn on force access if ENV_ACCESS_IGNORE_FORCE set"

2020-08-27 Thread Marek Vasut
On 8/27/20 11:43 AM, Alex Kiernan wrote: > This reverts commit 0f036bf4b87e6416f5c4d23865a62a62d9073c20. > > With this change applied and CONFIG_ENV_ACCESS_IGNORE_FORCE disabled, > the warning appears on every force overwrite, but the variable is then > written to: > > => env print ethaddr >

[PATCH] Revert "env: Warn on force access if ENV_ACCESS_IGNORE_FORCE set"

2020-08-27 Thread Alex Kiernan
This reverts commit 0f036bf4b87e6416f5c4d23865a62a62d9073c20. With this change applied and CONFIG_ENV_ACCESS_IGNORE_FORCE disabled, the warning appears on every force overwrite, but the variable is then written to: => env print ethaddr ethaddr=00:1C:2B:08:AF:65 => env set ethaddr 00:00:00:0

RE: [PATCH v2 3/6] mmc: atmel-sdhci: add sama7g5-sdhci compatibility string

2020-08-27 Thread Peng Fan
> Subject: [PATCH v2 3/6] mmc: atmel-sdhci: add sama7g5-sdhci compatibility > string > > Add new compatibility string for matching sama7g5 product. > > Signed-off-by: Eugen Hristev > --- > drivers/mmc/atmel_sdhci.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mmc/atmel_sdhc

RE: [PATCH v2 6/6] mmc: atmel-sdhci: use mmc_of_parse to get the DT properties

2020-08-27 Thread Peng Fan
> Subject: [PATCH v2 6/6] mmc: atmel-sdhci: use mmc_of_parse to get the DT > properties > > Call mmc_of_parse at probe time to fetch all the host properties from the DT. > > Signed-off-by: Eugen Hristev > --- Please add a changelog for future new version patches. > drivers/mmc/atmel_sdhci.c |

[PATCH] mmc: fsl_esdhc_imx: check the clock stable status after config the clock rate.

2020-08-27 Thread haibo . chen
From: Haibo Chen Currently, after config the clock rate, delay 10ms, this is quite a rough method. Check the clock stable status in the present status register is enough. Tested-by: Ji Luo Signed-off-by: Haibo Chen --- drivers/mmc/fsl_esdhc_imx.c | 10 +- 1 file changed, 9 insertions(

[PATCH v2] fastboot: getvar: fix partition-size return value

2020-08-27 Thread Gary Bisson
The size returned by 'getvar partition-size' should be in bytes, not in blocks as fastboot uses that value to generate empty partition when running format [1]. Note that the function was already returning the proper size in bytes for NAND devices (see struct part_info details). [1] https://androi

Re: [PATCH] fastboot: getvar: fix partition-size return value

2020-08-27 Thread Gary Bisson
Hi Lukasz, On Thu, Aug 27, 2020 at 08:25:51AM +0200, Lukasz Majewski wrote: > Hi Gary, > > > Hi Lukasz, > > > > On Wed, Aug 26, 2020 at 11:36:51AM +0200, Lukasz Majewski wrote: > > > Hi Gary, > > > > > > > Hi, > > > > > > > > Gentle ping on this patch. Hopefully Sam's email won't bounce this