Re: [PATCH 3/3] mmc: mmc_get_op_cond: Allow quiet detection of eMMC

2021-07-14 Thread Baruch Siach
Hi Pali, On Wed, Jul 14 2021, Pali Rohár wrote: > Add a new 'quiet' argument to mmc_get_op_cond() function which avoids > printing error message when SD/eMMC card is not detected. > > Espressobin and mx6cuboxi boards use this function for detecting presence > of eMMC and therefore it is expected

Re: [PATCH 1/5] efi_loader: increase eventlog buffer size

2021-07-14 Thread Masahisa Kojima
Hi Simon, Ilias, On Wed, 14 Jul 2021 at 23:50, Simon Glass wrote: > > Hi Masahisa, > > On Mon, 12 Jul 2021 at 02:40, Masahisa Kojima > wrote: > > > > Hi Simon, > > > > On Sun, 11 Jul 2021 at 09:01, Simon Glass wrote: > > > > > > Hi Masahisa, > > > > > > On Wed, 7 Jul 2021 at 20:21, Masahisa

[PATCH] configs: khadas-edge series: Enable SMBIOS

2021-07-14 Thread Artem Lapkin
Enable configs to support SMBIOS for all Khadas Edge* boards Signed-off-by: Artem Lapkin --- configs/khadas-edge-captain-rk3399_defconfig | 2 ++ configs/khadas-edge-rk3399_defconfig | 2 ++ configs/khadas-edge-v-rk3399_defconfig | 2 ++ 3 files changed, 6 insertions(+) diff

[PATCH] dts: khadas Edge: Use devicetree for SMBIOS settings

2021-07-14 Thread Artem Lapkin
Khadas Edge series: Use devicetree for SMBIOS settings Add settings and enable the default sysinfo driver so that these can come from the device tree. Signed-off-by: Artem Lapkin --- arch/arm/dts/rk3399-khadas-edge-u-boot.dtsi | 21 + 1 file changed, 21 insertions(+) diff

[PATCH] configs: khadas-vim*: Enable SMBIOS

2021-07-14 Thread Artem Lapkin
Enable configs to support SMBIOS for all Khadas vim* boards Signed-off-by: Artem Lapkin --- configs/khadas-vim2_defconfig | 2 ++ configs/khadas-vim3_defconfig | 2 ++ configs/khadas-vim3l_defconfig | 2 ++ configs/khadas-vim_defconfig | 2 ++ 4 files changed, 8 insertions(+) diff --git

[PATCH] dts: khadas vim series: Use devicetree for SMBIOS settings

2021-07-14 Thread Artem Lapkin
Khadas vim series: Use devicetree for SMBIOS settings Add settings and enable the default sysinfo driver so that these can come from the device tree. Signed-off-by: Artem Lapkin --- .../meson-g12b-a311d-khadas-vim3-u-boot.dtsi | 23 +++

[PATCH] command: Fix SMC and HVC maximum number of arguments

2021-07-14 Thread Siew Chin Lim
smc and hvc commands take upto 8 user input arguments, the maximum number of arguments of the U_BOOT_CMD macro should set to 9. Besides, fix the typo (arg7 -> arg6) in hvc command's help message. Signed-off-by: Siew Chin Lim --- cmd/smccc.c | 6 +++--- 1 file changed, 3 insertions(+), 3

Re: [PATCH V2 00/46] imx: add i.MX8ULP support

2021-07-14 Thread Peng Fan (OSS)
All, If no objection to this patchset, I'll send a PR to Stefano's repo in Friday this week. We will come out more update in rc[x] Thanks, Peng. On 2021/6/29 10:31, Peng Fan (OSS) wrote: From: Peng Fan V2: Rebased and test on new revision silicon with upower included. The i.MX 8ULP

[PATCH v2 2/2] arm: imx8m: add support for Advantech RSB-3720

2021-07-14 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add initial support for Advantech RSB-3720 board. The initial support includes: - MMC - eMMC - I2C - FEC - Serial console Signed-off-by: Darren Huang Signed-off-by: Kevin12.Chen Signed-off-by: Phill.Liu Signed-off-by: Tim Liang Signed-off-by: wei.zeng

Re: [PATCH] scripts/get_default_envs.sh: Update for thin archive support

2021-07-14 Thread Tom Rini
On Mon, Jun 21, 2021 at 04:14:18PM -0400, Tom Rini wrote: > This script was broken by the change to default archives for linking. > This is due to objcopy specifically disallowing copying of thin > archives. To fix this and re-support external users of this script, > switch to using the same

Re: [PATCH] Makefile: Conditionally add defaultenv_h to envtools target

2021-07-14 Thread Tom Rini
On Fri, Jun 18, 2021 at 11:35:59AM +0930, Joel Stanley wrote: > When building the envtools target with CONFIG_USE_DEFAULT_ENV_FILE=y, > the tools require generated/defaultenv_autogenerated.h. > > In file included from tools/env/fw_env.c:126: > include/env_default.h:115:10: fatal error: >

Re: [PATCH] kconfig / kbuild: Re-sync with Linux 4.20

2021-07-14 Thread Tom Rini
On Thu, Jun 17, 2021 at 06:07:25PM -0400, Tom Rini wrote: > Align Kconfig and Kbuild logic to Linux 4.20 release with minimal impact > on files outside of this scope. > > Our previous Kconfig sync was done by commit 587e4a429698 ("kconfig / > kbuild: Re-sync with Linux 4.19"). > > As part of

Re: [PATCH] get_maintainer.pl: update from Linux kernel v5.13-rc6

2021-07-14 Thread Tom Rini
On Tue, Jun 15, 2021 at 03:30:29AM -0400, Trevor Woerner wrote: > Update U-Boot's version of scripts/get_maintainer.pl to sync it up with the > latest changes to the Linux kernel's version of the same script. > > The last sync was with Linux kernel version v4.16. The commits to the kernel's >

Re: [PATCH v2 1/1] lib: move rtc-lib.c to lib

2021-07-14 Thread Tom Rini
On Sat, Jun 12, 2021 at 01:20:07PM +0200, Heinrich Schuchardt wrote: > Function rtc_to_tm() is needed for FAT file system support even if we don't > have a real time clock. So move it from drivers/ to lib/. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Bin Meng Applied to

Re: [[PATCH] tools: image-host: fix wrong return value

2021-07-14 Thread Tom Rini
On Mon, May 31, 2021 at 09:04:51AM +0200, liu.min...@gmail.com wrote: > From: Ming Liu > > The return value '-ENOSPC' of fit_set_timestamp function does not match > the caller fit_image_write_sig's expection which is '-FDT_ERR_NOSPACE'. > > Fix it by not calling fit_set_timestamp, but call

Re: [PATCH] fixdep: remove leftover handling of IS_BUILTIN/IS_MODULE

2021-07-14 Thread Tom Rini
On Thu, May 20, 2021 at 12:32:17PM +0200, Rasmus Villemoes wrote: > I removed CONFIG_IS_BUILTIN and CONFIG_IS_MODULE in commit > 7d78a4547d ("linux/kconfig.h: remove unused helper macros"), but > fixdep.c still looks for those. It's harmless, but also pointless and > possibly confusing to a

Re: [PATCH] tools/fitimage: add missing linebreak for some messages

2021-07-14 Thread Tom Rini
On Tue, May 25, 2021 at 11:15:27PM +0200, Sven Roederer wrote: > Add a linebreak to two messages and fix punctuation. > > Signed-off-by: Sven Roederer Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] mkimage: allow -l to work on block devices on Linux

2021-07-14 Thread Tom Rini
On Tue, May 18, 2021 at 10:59:04AM +0200, yann.dir...@blade-group.com wrote: > From: Yann Dirson > > When "mkimage -l" was run on a block device it would fail with > erroneous message, because fstat reports a size of zero for those: > > mkimage: Bad size: "/dev/sdb4" is not valid image > >

Re: [PATCH v3 3/4] NSA310S : Use Ethernet PHY name from device tree

2021-07-14 Thread Tony Dinh
Hi Stefan, I will need to resend this patch (V3 3/4). Thanks, Tony On Wed, Jul 7, 2021 at 2:07 AM Tony Dinh wrote: > In DM Ethernet, the old "egiga0" name is no longer valid, so replace it > with Ethernet PHY name from device tree. Also, Ethernet PHY address > is available so read it from

[PATCH v2 1/2] arm: dts: add imx8mp-rsb3720-a1 dts file

2021-07-14 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add board dts for imx8mm-cl-iot-gate Signed-off-by: Darren Huang Signed-off-by: Kevin12.Chen Signed-off-by: Phill.Liu Signed-off-by: Tim Liang Signed-off-by: wei.zeng Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: uboot-imx --- v2: update dts ---

[PATCH v2 0/2] arm: imx8m: add support for Advantech RSB-3720

2021-07-14 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add initial support for Advantech RSB-3720 board. The initial support includes: - MMC - eMMC - I2C - FEC - Serial console Ying-Chun Liu (PaulLiu) (2): arm: dts: add imx8mp-rsb3720-a1 dts file arm: imx8m: add support for Advantech RSB-3720 v2: update dts

[PATCH RESEND u-boot-spi 8/8] mtd: mtdpart: Make mtdpart's _erase method sane

2021-07-14 Thread Marek Behún
The _erase() method of the mtdpart driver, part_erase(), currently implements offset shifting (for given mtdpart partition) in a weird way: 1. part_erase() adds partition offset to block address 2. parent driver's _erase() method is called 3. parent driver's _erase() method calls

[PATCH RESEND u-boot-spi 7/8] mtd: spi-nor-core: Check for ctrlc() in spi_nor_erase()

2021-07-14 Thread Marek Behún
May it possible to interrupt the spi_nor_erase() function. Signed-off-by: Marek Behún Tested-by: Masami Hiramatsu --- drivers/mtd/spi/spi-nor-core.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index

[PATCH RESEND u-boot-spi 6/8] mtd: spi-nor-core: Call mtd_erase_callback() from spi_nor_erase()

2021-07-14 Thread Marek Behún
The spi_nor_erase() function does not call mtd_erase_callback() as it should. The mtdpart code currently implements the subtraction of partition offset in mtd_erase_callback(). This results in partition offset being added prior calling spi_nor_erase(), but not subtracted back on return. The

[PATCH RESEND u-boot-spi 5/8] mtd: spi-nor-core: Don't check for zero length in spi_nor_erase()

2021-07-14 Thread Marek Behún
This check is already done in mtdcore's mtd_erase(), no reason to do this here as well. Signed-off-by: Marek Behún Tested-by: Masami Hiramatsu --- drivers/mtd/spi/spi-nor-core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mtd/spi/spi-nor-core.c

[PATCH RESEND u-boot-spi 3/8] mtd: spi-nor-core: Don't overwrite return value if it is non-zero

2021-07-14 Thread Marek Behún
The cleanup code of the spi_nor_erase() function overwrites the ret variable with return value of clean_bar(), even if the ret variable is already set. Fix this. Signed-off-by: Marek Behún Tested-by: Masami Hiramatsu --- drivers/mtd/spi/spi-nor-core.c | 6 -- 1 file changed, 4

[PATCH RESEND u-boot-spi 4/8] mtd: spi-nor-core: Check return value of write_disable() in spi_nor_erase()

2021-07-14 Thread Marek Behún
The cleanup code of spi_nor_erase() function calls write_disable(), but does not return it's return value even in case of failure. Fix this. Signed-off-by: Marek Behún Tested-by: Masami Hiramatsu --- drivers/mtd/spi/spi-nor-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[PATCH RESEND u-boot-spi 1/8] mtd: spi-nor-core: Try cleaning up in case writing BAR failed

2021-07-14 Thread Marek Behún
Use the cleanup codepath of spi_nor_erase() also in the event of failure of writing the BAR register. Signed-off-by: Marek Behún Tested-by: Masami Hiramatsu --- drivers/mtd/spi/spi-nor-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi/spi-nor-core.c

[PATCH RESEND u-boot-spi 0/8] Fix `mtd erase` when used with mtdpart

2021-07-14 Thread Marek Behún
Hello, I accidentally forgot to send this series to U-Boot's mailing list last time, meaning it did not end up in patchwork, so now I am resending it. Sorry for this mess. The original cover letter said: this patch series fixes the `mtd erase` command when used with mtdpart with a partition of

[PATCH RESEND u-boot-spi 2/8] mtd: spi-nor-core: Check return value of write_enable() in spi_nor_erase()

2021-07-14 Thread Marek Behún
The spi_nor_erase() function does not check return value of the write_enable() call. Fix this. Signed-off-by: Marek Behún Tested-by: Masami Hiramatsu --- drivers/mtd/spi/spi-nor-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi/spi-nor-core.c

Re: [PATCH] drivers: watchdog: wdt-uclass: Use IS_ENABLED for WATCHDOG_AUTOSTART

2021-07-14 Thread Tim Harvey
On Fri, Jun 18, 2021 at 4:14 AM Teresa Remmet wrote: > > There is no separate SPL/TPL config for WATCHDOG_AUTOSTART. > So use IS_ENABLED instead of CONFIG_IS_ENABLED to make watchdog > working in spl again. > > Signed-off-by: Teresa Remmet > --- > drivers/watchdog/wdt-uclass.c | 2 +- > 1 file

Re: [PATCH 0/9] tpm: Enhance sandbox tpm2 emulation

2021-07-14 Thread Simon Glass
Hi Ilias, On Wed, 14 Jul 2021 at 15:08, Ilias Apalodimas wrote: > > Hi Simon, > > Unfortunately i had no time to look into this. I'll have a look tomorrow OK thanks. - Simon > > Cheers > /Ilias > > On Wed, 14 Jul 2021 at 22:51, Simon Glass wrote: > > > > Hi Ilias, > > > > On Mon, 5 Jul 2021

Re: zynqmpbif - sample

2021-07-14 Thread Jorge Ramirez-Ortiz, Foundries
On 14/07/21, Michal Simek wrote: > Hi, > > On 7/14/21 9:37 AM, Jorge Ramirez-Ortiz, Foundries wrote: > > On 13/07/21, Jorge Ramirez-Ortiz, Foundries wrote: > >> On 13/07/21, Jorge Ramirez-Ortiz, Foundries wrote: > >>> On 13/07/21, Jorge Ramirez-Ortiz, Foundries wrote: > On 13/07/21, Michal

[PATCH v3 18/19] image: Add support for relocating crypto_algos in linker lists

2021-07-14 Thread Alexandru Gagniuc
Function pointers from crypto_algos array are relocated, when NEEDS_MANUAL_RELOC is set. This relocation doesn't happen if the algo is placed in a linker list. Implement this relocation. Signed-off-by: Alexandru Gagniuc Reviewed-by: Simon Glass Acked-by: Michal Simek --- common/image-sig.c |

[PATCH v3 19/19] tools: Use a single target-independent config to enable OpenSSL

2021-07-14 Thread Alexandru Gagniuc
Host tool features, such as mkimage's ability to sign FIT images were enabled or disabled based on the target configuration. However, this misses the point of a target-agnostic host tool. A target's ability to verify FIT signatures is independent of mkimage's ability to create those signatures.

[PATCH v3 16/19] image: Eliminate IMAGE_ENABLE_VERIFY macro

2021-07-14 Thread Alexandru Gagniuc
This macro is no longer needed for code flow or #ifdefs. Remove it. Signed-off-by: Alexandru Gagniuc Reviewed-by: Simon Glass --- include/image.h | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/image.h b/include/image.h index d4c453428c..64663c591b 100644 ---

[PATCH v3 17/19] image: Eliminate IMAGE_ENABLE_VERIFY_ECDSA macro

2021-07-14 Thread Alexandru Gagniuc
This macro is no longer needed for code flow or #ifdefs. Remove it. Signed-off-by: Alexandru Gagniuc Reviewed-by: Simon Glass --- include/image.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/image.h b/include/image.h index 64663c591b..e20f0b69d5 100644 --- a/include/image.h

[PATCH v3 15/19] lib: rsa: Remove #ifdefs from rsa.h

2021-07-14 Thread Alexandru Gagniuc
It is no longer necessary to implement rsa_() functions as no-ops depending on config options. It is merely sufficient to provide the prototypes, as the rsa code is no longer linked when unused. Signed-off-by: Alexandru Gagniuc Reviewed-by: Simon Glass --- include/u-boot/rsa.h | 47

[PATCH v3 13/19] image: image-sig.c: Remove crypto_algos array

2021-07-14 Thread Alexandru Gagniuc
Crytographic algorithms (currently RSA), are stored in linker lists. The crypto_algos array is unused, so remove it, and any logic associated with it. Signed-off-by: Alexandru Gagniuc Reviewed-by: Simon Glass --- common/image-sig.c | 22 -- 1 file changed, 22 deletions(-)

[PATCH v3 09/19] common: Move host-only logic in image-sig.c to separate file

2021-07-14 Thread Alexandru Gagniuc
image-sig.c is used to map a hash or crypto algorithm name to a handler of that algorithm. There is some similarity between the host and target variants, with the differences worked out by #ifdefs. The purpose of this change is to remove those ifdefs. First, copy the file to a host-only version,

[PATCH v3 14/19] lib: ecdsa: Remove #ifdefs from ecdsa.h

2021-07-14 Thread Alexandru Gagniuc
It is no longer necessary to implement ecdsa_() functions as no-ops depending on config options. It is merely sufficient to provide the prototypes, as the ecdsa code is no longer linked when unused. Signed-off-by: Alexandru Gagniuc Reviewed-by: Simon Glass --- include/u-boot/ecdsa.h | 25

[PATCH v3 11/19] image: Add support for placing crypto_algo in linker lists

2021-07-14 Thread Alexandru Gagniuc
The purpose of this change is to enable crypto algorithms to be placed in linker lists, rather than be declared as a static array. The goal is to remove the crypto_algos array in a subsequent patch. Create a new linker list named "cryptos", and search it when image_get_crypto_algo() is invoked.

[PATCH v3 06/19] image: Drop IMAGE_ENABLE_SHA1

2021-07-14 Thread Alexandru Gagniuc
From: Simon Glass We already have a host Kconfig for SHA1. Use CONFIG_IS_ENABLED(SHA1) directly in the code shared with the host build, so we can drop the unnecessary indirection. Signed-off-by: Simon Glass Reviewed-by: Alexandru Gagniuc Signed-off-by: Alexandru Gagniuc ---

[PATCH v3 03/19] image: Rename CONFIG_FIT_ENABLE_RSASSA_PSS_SUPPORT

2021-07-14 Thread Alexandru Gagniuc
From: Simon Glass Drop the ENABLE and SUPPORT parts of this, which are redundant. Signed-off-by: Simon Glass Reviewed-by: Alexandru Gagniuc Signed-off-by: Alexandru Gagniuc --- common/Kconfig.boot | 2 +- common/image-sig.c | 4 ++-- configs/bcm963158_ram_defconfig

[PATCH v3 10/19] common: image-sig.c: Remove host-specific logic and #ifdefs

2021-07-14 Thread Alexandru Gagniuc
Remove any ifdefs in image-sig.c that were previously used to differentiate from the host code. Note that all code dedicated to relocating ->sign() and ->add_verify_data)_ can be safely removed, as signing is not supported target-side. NOTE that although it appears we are removing ecdsa256

[PATCH v3 07/19] image: Drop IMAGE_ENABLE_SHAxxx

2021-07-14 Thread Alexandru Gagniuc
From: Simon Glass We already have a host Kconfig for these SHA options. Use CONFIG_IS_ENABLED(SHAxxx) directly in the code shared with the host build, so we can drop the unnecessary indirections. Signed-off-by: Simon Glass Reviewed-by: Alexandru Gagniuc Signed-off-by: Alexandru Gagniuc ---

[PATCH v3 12/19] image: rsa: Move verification algorithm to a linker list

2021-07-14 Thread Alexandru Gagniuc
Move the RSA verification crytpo_algo structure out of the crypto_algos array, and into a linker list. Although it appears we are adding an #ifdef to rsa-verify.c, the gains outweigh this small inconvenience. This is because rsa_verify() is defined differently based on #ifdefs. This change allows

[PATCH v3 08/19] image: Drop IMAGE_ENABLE_BEST_MATCH

2021-07-14 Thread Alexandru Gagniuc
From: Simon Glass This is not needed with Kconfig, since we can use IS_ENABLED() easily enough. Drop it. Signed-off-by: Simon Glass Reviewed-by: Alexandru Gagniuc Signed-off-by: Alexandru Gagniuc --- common/image-fit.c | 2 +- include/image.h| 5 - 2 files changed, 1 insertion(+), 6

[PATCH v3 05/19] Kconfig: Rename SPL_MD5_SUPPORT to SPL_MD5

2021-07-14 Thread Alexandru Gagniuc
From: Simon Glass Drop the _SUPPORT suffix so we can use CONFIG_IS_ENABLED() with this option. Signed-off-by: Simon Glass Reviewed-by: Alexandru Gagniuc Signed-off-by: Alexandru Gagniuc --- common/spl/Kconfig | 2 +- include/image.h| 2 +- 2 files changed, 2 insertions(+), 2

[PATCH v3 04/19] Kconfig: Rename SPL_CRC32_SUPPORT to SPL_CRC32

2021-07-14 Thread Alexandru Gagniuc
From: Simon Glass Drop the _SUPPORT suffix so we can use CONFIG_IS_ENABLED() with this option. Signed-off-by: Simon Glass Reviewed-by: Alexandru Gagniuc Signed-off-by: Alexandru Gagniuc --- common/spl/Kconfig| 4 ++-- configs/axm_defconfig | 2 +-

[PATCH v3 02/19] image: Rename SPL_SHAxxx_SUPPORT to SPL_FIT_SHAxxx

2021-07-14 Thread Alexandru Gagniuc
From: Simon Glass These option are named inconsistently with other SPL options, thus making them incompatible with the CONFIG_IS_ENABLED() macro. Rename them. Signed-off-by: Simon Glass Reviewed-by: Alexandru Gagniuc Signed-off-by: Alexandru Gagniuc --- common/spl/Kconfig | 8

[PATCH v3 01/19] image: Shorten FIT_ENABLE_SHAxxx_SUPPORT

2021-07-14 Thread Alexandru Gagniuc
From: Simon Glass The ENABLE part of this name is redundant, since all boolean Kconfig options serve to enable something. The SUPPORT part is also redundant since Kconfigs can be assumed to enable support for something. Together they just serve to make these options overly long and inconsistent

[PATCH v3 00/19] tools: Use a single config for Host OpenSSL (plus dependent patches)

2021-07-14 Thread Alexandru Gagniuc
This series combines [PATCH v2] tools: Use a single target-independent config to enable OpenSSL and its dependencies. Changes since v2: * Replace FIT_OBJS-$(CONFIG_...) with FIT_OBJS-y to resolve rpi buld issue Alexandru Gagniuc (11): common: Move host-only logic in image-sig.c to separate

Re: [PATCH v2] tools: Use a single target-independent config to enable OpenSSL

2021-07-14 Thread Tom Rini
On Tue, Jul 06, 2021 at 10:03:26AM -0500, Alexandru Gagniuc wrote: > Host tool features, such as mkimage's ability to sign FIT images were > enabled or disabled based on the target configuration. However, this > misses the point of a target-agnostic host tool. > > A target's ability to verify

Re: [PATCH 0/9] tpm: Enhance sandbox tpm2 emulation

2021-07-14 Thread Ilias Apalodimas
Hi Simon, Unfortunately i had no time to look into this. I'll have a look tomorrow Cheers /Ilias On Wed, 14 Jul 2021 at 22:51, Simon Glass wrote: > > Hi Ilias, > > On Mon, 5 Jul 2021 at 09:48, Simon Glass wrote: > > > > At present the TPM2 emulator lacks the ability to load and save the > >

Re: [PATCH v2 3/3] usb: musb-new: Add glue driver for ST-Ericsson Ux500

2021-07-14 Thread Tom Rini
On Thu, Jul 08, 2021 at 08:33:50PM +0200, Stephan Gerhold wrote: > The ST-Ericsson DB8500 SoC contains a MUSB OTG controller which > supports both host and gadget mode. For some reason there is > nothing special about it - add a simple glue driver for Ux500 > that literally just sets up MUSB

Re: [PATCH v2 2/3] phy: Add driver for ST-Ericsson AB8500 USB PHY

2021-07-14 Thread Tom Rini
On Thu, Jul 08, 2021 at 08:33:49PM +0200, Stephan Gerhold wrote: > The AB8500 PMIC contains an USB PHY that needs to be set up in > device or host mode to make USB work properly. Add a simple driver > for the generic PHY uclass that allows enabling it. > > The if

Re: [PATCH v2 1/3] power: pmic: Add driver for ST-Ericsson AB8500 via PRCMU

2021-07-14 Thread Tom Rini
On Thu, Jul 08, 2021 at 08:33:48PM +0200, Stephan Gerhold wrote: > All devices based on ST-Ericsson Ux500 use a PMIC similar to AB8500 > (Analog Baseband). There is AB8500, AB8505, AB9540 and AB8540 > although in practice only AB8500 and AB8505 are relevant since the > platforms with AB9540 and

Re: [PATCH 2/2] board: stemmy: Copy atags for booting downstream/vendor kernel

2021-07-14 Thread Tom Rini
On Wed, Jul 07, 2021 at 12:58:55PM +0200, Stephan Gerhold wrote: > The U-Boot "stemmy" board is mainly intended to simplify booting > mainline Linux on various smartphones from Samsung based on ST-Ericsson > Ux500. While the mainline kernel is working great, there are still some > features

[PATCH v3 4/5] arm/dts: k3-j7200-r5-common: Hook buck1_reg to vtm supply

2021-07-14 Thread Gowtham Tammana
Hook buck1_reg to vtm avs supply. Signed-off-by: Gowtham Tammana --- arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts b/arch/arm/dts/k3-j7200-r5-common-proc-board.dts index

Re: [PATCH 6/6] ARM: dts: uniphier: Add support for Akebi96

2021-07-14 Thread Tom Rini
On Tue, Jul 06, 2021 at 07:01:11PM +0900, Kunihiko Hayashi wrote: > Add the device tree for Akebi96. Akebi96 is a 96boards certified > development board based on UniPhier LD20. > ( https://www.96boards.org/product/akebi96/ ) > > Signed-off-by: Masami Hiramatsu > Signed-off-by: Kunihiko Hayashi

Re: [PATCH 1/2] board: stemmy: Parse atags to get available memory

2021-07-14 Thread Tom Rini
On Wed, Jul 07, 2021 at 12:58:54PM +0200, Stephan Gerhold wrote: > At the moment the "stemmy" board attempts to detect the RAM size with > a simple memory test (get_ram_size()). Unfortunately, this does not work > correctly for devices with 768 MiB RAM (e.g. Samsung Galaxy Ace 2 > (GT-I8160),

Re: [PATCH 5/6] configs: uniphier: Enable CONFIG_SYS_PCI_64BIT

2021-07-14 Thread Tom Rini
On Tue, Jul 06, 2021 at 07:01:10PM +0900, Kunihiko Hayashi wrote: > Enable CONFIG_SYS_PCI_64BIT to allow 64bit access to PCI space. > > Signed-off-by: Kunihiko Hayashi Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[PATCH v3 3/5] arm/dts: k3-j7200-r5-common: Add VTM node

2021-07-14 Thread Gowtham Tammana
Add voltage and thermal management (VTM) node. The efuse values for the OPPs are stored under the VTM, and is needed for AVS class 0 support. Signed-off-by: Gowtham Tammana --- v3: resolved merge conflicts arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 7 +++ 1 file changed, 7

[PATCH v3 5/5] configs: j7200_evm_r5_defconfig: Enable AVS, PMIC and dependent configs

2021-07-14 Thread Gowtham Tammana
Enable AVS, PMIC and dependent configs. Signed-off-by: Gowtham Tammana --- v3: resolved merge conflicts configs/j7200_evm_r5_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/j7200_evm_r5_defconfig b/configs/j7200_evm_r5_defconfig index b449bdb3b8..862061e5b2 100644

[PATCH v3 2/5] arm/dts: k3-j7200-r5-common: Add pmic lp876441 node

2021-07-14 Thread Gowtham Tammana
Add pmic lp876411 node needed for CPU AVS support. Signed-off-by: Gowtham Tammana --- .../arm/dts/k3-j7200-r5-common-proc-board.dts | 26 +++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts

[PATCH v3 0/5] Add PMIC node for J7200

2021-07-14 Thread Gowtham Tammana
The J7200 EVM has PMIC LP876441 for supporting CPU AVS. This patchset adds dt nodes, compatible string, and configs to enable the corresponding driver. v3: - rebased to resolve minor conflicts against master v2: - rebased the changes are reordered patches 3/4 -

[PATCH v3 1/5] power: pmic: tps65941: Add compatible for LP876441

2021-07-14 Thread Gowtham Tammana
TI J7200 EVM has lp876441 pmic that is similar to tps65941. Add support for same with existing driver with new compatible. Acked-by: Jaehoon Chung Signed-off-by: Gowtham Tammana --- v3: - Added Acked by https://lore.kernel.org/u-boot/e366d12e-8302-4d4e-9fda-d22451b08...@samsung.com/

Re: [PATCH 4/6] pci: uniphier: Add UniPhier PCIe controller driver

2021-07-14 Thread Tom Rini
On Tue, Jul 06, 2021 at 07:01:09PM +0900, Kunihiko Hayashi wrote: > Add PCIe driver for UniPhier SoCs. This PCIe controller is based on > Synopsys DesignWare Core IP. > > This version doesn't apply common DW functions because supported > controller doesn't have unroll version of iATU. > >

Re: [PATCH 3/6] phy: socionext: Add UniPhier PCIe PHY driver

2021-07-14 Thread Tom Rini
On Tue, Jul 06, 2021 at 07:01:08PM +0900, Kunihiko Hayashi wrote: > Add PCIe PHY driver support for Pro5, LD20 and PXs3 SoCs. > > Signed-off-by: Kunihiko Hayashi Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 2/6] reset: uniphier: Add PCIe reset entry

2021-07-14 Thread Tom Rini
On Tue, Jul 06, 2021 at 07:01:07PM +0900, Kunihiko Hayashi wrote: > Add reset control for PCIe controller on each SoC. > > Signed-off-by: Kunihiko Hayashi Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/6] clk: uniphier: Add PCIe clock entry

2021-07-14 Thread Tom Rini
On Tue, Jul 06, 2021 at 07:01:06PM +0900, Kunihiko Hayashi wrote: > Add clock control for PCIe controller on each SoC. > > Signed-off-by: Kunihiko Hayashi Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2] MAINTAINERS, git-mailrc: socfpga: Change co-maintainer to Tien Fong Chee

2021-07-14 Thread Tom Rini
On Tue, Jul 06, 2021 at 10:20:27AM +0800, Ley Foon Tan wrote: > I'm no longer work in Intel, change Intel SoCFPGA co-maintainer to > Tien Fong Chee. > > Signed-off-by: Ley Foon Tan > Acked-by: Marek Vasut Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] arm: mach-snapdragon: pinctrl: Place pin_name in .data section

2021-07-14 Thread Tom Rini
On Mon, Jul 05, 2021 at 02:18:47PM +0200, Stephan Gerhold wrote: > According to arch/arm/lib/crt0_64.S, the BSS section is "UNAVAILABLE" > and uninitialized before relocation. Also, it overlaps with the > appended DTB before relocation, so writing data into a variable > in the BSS section might

Re: [PATCH 2/2] board-info: Call sysinfo_detect() before sysinfo_get_str()

2021-07-14 Thread Tom Rini
On Sun, Jul 04, 2021 at 09:32:05PM +0200, Marek Vasut wrote: > The sysinfo_get_str() implementation checks whether the sysinfo was even > detected. In U-Boot proper, sysinfo_detect() is not called anywhere but > on one specific board. Call sysinfo_detect() before sysinfo_get_str() to > make sure

Re: [RFC 1/7] ARM: mvebu: a38x: Correct mismatched bound warnings

2021-07-14 Thread Pali Rohár
On Monday 03 May 2021 16:48:53 Tom Rini wrote: > With gcc-11 we see: > drivers/ddr/marvell/a38x/ddr3_debug.c:672:47: error: argument 2 of type > 'u32[5]' {aka 'unsigned int[5]'} with mismatched bound > [-Werror=array-parameter=] > 672 | int ddr3_tip_read_adll_value(u32 dev_num, u32 >

Re: [PATCH 1/2] board-info: Use sysinfo_get()

2021-07-14 Thread Tom Rini
On Sun, Jul 04, 2021 at 09:32:04PM +0200, Marek Vasut wrote: > Replace uclass_first_device_err(UCLASS_SYSINFO, ) with sysinfo_get(). > The board_info code may use sysinfo to print board information, so use the > sysinfo functions consistently. The sysinfo_get() is internally implemented > as

Re: [PATCH] misc: i2c_eeprom: Add atmel,24c01 to the list

2021-07-14 Thread Tom Rini
On Sun, Jul 04, 2021 at 09:31:18PM +0200, Marek Vasut wrote: > Linux kernel binding is using atmel,24c01 compatible string. On the > other hand there is atmel,24c01a which is not listed in the kernel. > Add compatible string without "a" suffix to be compatible with Linux > kernel binding. > >

Re: [PATCH] timer: nomadik-mtu: Use dev_read_addr_ptr()

2021-07-14 Thread Tom Rini
On Fri, Jul 02, 2021 at 06:00:13PM +0200, Stephan Gerhold wrote: > Simplify the code a bit by using dev_read_addr_ptr() instead of > dev_read_addr(). This avoids having to cast explicitly to the > struct nomadik_mtu_regs. > > Signed-off-by: Stephan Gerhold > Reviewed-by: Linus Walleij Applied

Re: [PATCH 2/2] gpio: Add driver for Nomadik GPIO

2021-07-14 Thread Tom Rini
On Fri, Jul 02, 2021 at 05:06:18PM +0200, Stephan Gerhold wrote: > Nomadik GPIO is a fairly simple GPIO module used in the ST-Ericsson > Ux500 SoCs (and some older Nomadik SoCs). It uses registers where > each GPIO is represented as a single bit, plus "set" and "clear" > registers that allow

Re: [PATCH 1/2] gpio: Drop long unused DB8500 GPIO driver

2021-07-14 Thread Tom Rini
On Fri, Jul 02, 2021 at 05:06:17PM +0200, Stephan Gerhold wrote: > The original U-Boot port for the ST-Ericsson U8500 SoC was dropped > in commit 68282f55b846 ("arm: Remove unused ST-Ericsson u8500 arch"). > Most of the drivers related to the old port were removed, but the > db8500_gpio.c driver

Re: [PATCH] board: armltd: Remove bootargs from Total Compute configuration

2021-07-14 Thread Tom Rini
On Tue, Jun 15, 2021 at 11:28:48AM +0100, Anders Dellien wrote: > This information will be maintained in the device tree instead. > > Signed-off-by: Anders Dellien > Change-Id: I279399d4a0ea1a3330de5b58e8c9af78e48ba04c Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

[PATCH v3 9/9] board: freescale: ls2088a: Update I2C mux config

2021-07-14 Thread Stephen Carlson
Updates the board configuration to enable use of the PCA9547 I2C mux. Signed-off-by: Stephen Carlson --- configs/ls2088aqds_tfa_defconfig | 1 + configs/ls2088ardb_qspi_SECURE_BOOT_defconfig | 1 + configs/ls2088ardb_qspi_defconfig | 1 +

Re: [PATCH] net: remove CONFIG_NET_MULTI (again)

2021-07-14 Thread Chris Packham
On 14/07/21 7:12 pm, Michal Simek wrote: > CONFIG_NET_MULTI has been removed long time ago by commit 795428fc679f > ("net: remove CONFIG_NET_MULTI") but 4 boards were added later which wasn't > found. The patch is removing this reference from 4 boards. > > Signed-off-by: Michal Simek For my

[PATCH v3 8/9] board: freescale: t2080qds: Update I2C mux config

2021-07-14 Thread Stephen Carlson
Updates the board configuration to enable use of the PCA9547 I2C mux. Signed-off-by: Stephen Carlson --- board/freescale/t208xqds/t208xqds.c | 26 +-- configs/T2080QDS_NAND_defconfig | 1 + configs/T2080QDS_SDCARD_defconfig | 1 +

[PATCH v3 7/9] board: freescale: lx2160a: Update I2C mux config

2021-07-14 Thread Stephen Carlson
Updates the board configuration to enable use of the PCA9547 I2C mux. Signed-off-by: Stephen Carlson --- board/freescale/lx2160a/lx2160a.c | 31 --- configs/lx2160aqds_tfa_SECURE_BOOT_defconfig | 1 + configs/lx2160aqds_tfa_defconfig | 1 +

[PATCH v3 6/9] board: freescale: ls2080: Update I2C mux config

2021-07-14 Thread Stephen Carlson
Updates the board configuration to enable use of the PCA9547 I2C mux. Signed-off-by: Stephen Carlson --- board/freescale/ls2080aqds/ls2080aqds.c | 25 ++ board/freescale/ls2080ardb/ls2080ardb.c | 27 +++- configs/ls2080aqds_SECURE_BOOT_defconfig | 1 +

[PATCH v3 5/9] board: freescale: ls1088a: Update I2C mux config

2021-07-14 Thread Stephen Carlson
Updates the board configuration to enable use of the PCA9547 I2C mux. Signed-off-by: Stephen Carlson --- board/freescale/ls1088a/ls1088a.c | 32 --- configs/ls1088aqds_defconfig | 1 + configs/ls1088aqds_qspi_SECURE_BOOT_defconfig | 1 +

[PATCH v3 4/9] board: freescale: ls1046a: Update I2C mux config

2021-07-14 Thread Stephen Carlson
Updates the board configuration to enable use of the PCA9547 I2C mux. Signed-off-by: Stephen Carlson --- board/freescale/ls1046afrwy/ls1046afrwy.c | 27 +-- board/freescale/ls1046aqds/ls1046aqds.c | 26 +- configs/ls1046afrwy_tfa_SECURE_BOOT_defconfig

[PATCH v3 3/9] board: freescale: ls1043aqds: Update I2C mux config

2021-07-14 Thread Stephen Carlson
Updates the board configuration to enable use of the PCA9547 I2C mux. Signed-off-by: Stephen Carlson --- board/freescale/ls1043aqds/ls1043aqds.c | 27 +--- configs/ls1043aqds_defconfig | 1 + configs/ls1043aqds_lpuart_defconfig | 1 +

[PATCH v3 2/9] board: freescale: ls1021aqds: Update I2C mux config

2021-07-14 Thread Stephen Carlson
Updates the board configuration to enable use of the PCA9547 I2C mux. Signed-off-by: Stephen Carlson --- board/freescale/ls1021aqds/dcu.c | 26 +--- board/freescale/ls1021aqds/ls1021aqds.c | 26 +--- configs/ls1021aqds_ddr4_nor_defconfig

[PATCH v3 1/9] board: freescale: Refactor NXP common mux code

2021-07-14 Thread Stephen Carlson
Refactors similar mux code from multiple NXP boards into a common location, and allows it to be disabled in config. New config: CONFIG_FSL_USE_PCA9547_MUX to enable PCA9547 mux functionality. Signed-off-by: Stephen Carlson --- board/freescale/common/Kconfig | 6 +++

[PATCH v3 0/9] board: freescale: common: Refactor I2C mux driver

2021-07-14 Thread Stephen Carlson
This patch set unifies code from multiple Freescale boards for the PCA9547 I2C mux into one location, and adds a Kconfig to disable the mux for new Freescale boards which do not include it. This patch set has been tested on the following boards: LX2160ARDB LX2160AQDS LX2162AQDS LS1046AFRWY

Re: [PATCH 3/3] serial: serial_msm: Delay initialization to let pins stabilize

2021-07-14 Thread Ramon Fried
On Wed, Jul 14, 2021 at 11:56 AM Stephan Gerhold wrote: > > For some reason, the DragonBoard 410c aborts autoboot immediately if > U-Boot is started without LK. It looks like it picks up a single broken > character via serial and therefore believes a key was pressed to abort > autoboot. > > After

Re: [PATCH 1/3] board: dragonboard410c: Fix PHYS_SDRAM_1_SIZE

2021-07-14 Thread Ramon Fried
On Wed, Jul 14, 2021 at 11:56 AM Stephan Gerhold wrote: > > The DragonBoard 410c has proprietary firmware from Qualcomm that > reserves 8 MiB of memory for tz/smem/hyp/rmtfs/rfsa from 0x8600 > to 0x8680. I'm not aware of any ATF (ARM Trusted Firmware) port > for DB410c that would reserve

Re: [PATCH 2/3] board: dragonboard410c: Fix fastboot

2021-07-14 Thread Ramon Fried
On Wed, Jul 14, 2021 at 11:56 AM Stephan Gerhold wrote: > > At the moment pressing the volume down key does not actually launch > fastboot. This is because setting "bootdelay" to "-1" actually > disables autoboot and drops to the U-Boot console. It does not execute > the "bootcmd". > > The

Re: [PATCH 0/9] tpm: Enhance sandbox tpm2 emulation

2021-07-14 Thread Simon Glass
Hi Ilias, On Mon, 5 Jul 2021 at 09:48, Simon Glass wrote: > > At present the TPM2 emulator lacks the ability to load and save the > state. This means it cannot be used for verify-boot flow that includes > multiple phases (e.g. VPL and SPL). It also lacks support for > non-volatile data storage.

Re: [PATCH 2/2] tpm2: Add a TPMv2 MMIO TIS driver

2021-07-14 Thread Simon Glass
Hi Ilias, On Tue, 13 Jul 2021 at 23:23, Ilias Apalodimas wrote: > > On Tue, Jul 13, 2021 at 08:49:21PM -0600, Simon Glass wrote: > > Hi Ilias, > > > > On Tue, 13 Jul 2021 at 14:11, Ilias Apalodimas > > wrote: > > > > > > > > > [...] > > > > > > Should be a uclass interface. > > > > > > > > > >

[PATCH] ARM: at91: Add chip ID of SAMA5D29

2021-07-14 Thread Hari Prasath
Add SAMA5D29 SoC for identification during the boot up. Signed-off-by: Hari Prasath --- arch/arm/mach-at91/armv7/sama5d2_devices.c | 2 ++ arch/arm/mach-at91/include/mach/sama5d2.h | 1 + 2 files changed, 3 insertions(+) diff --git a/arch/arm/mach-at91/armv7/sama5d2_devices.c

Re: [PATCH v3 00/16] misc: Some more misc patches

2021-07-14 Thread Simon Glass
Hi Bin, On Sun, 27 Jun 2021 at 17:51, Simon Glass wrote: > > Various issues were discovered in getting Chromium OS verified boot > running on top of coreboot, booting into U-Boot. > > Improvements include: > - enable serial console if even coreboot doesn't > - enable cache always > - show the

  1   2   >