[PATCH V3] usb: ehci-omap: Add Support for DM_USB and OF_CONTROL

2020-05-15 Thread Adam Ford
The omap3.dtsi file shows the usbhshost node with two sub-nodes for ohci and ehci. This patch file creates the usbhshost, and pulls the portX-mode information. It then locates the EHCI sub-node, and initializes the EHCI controller with the info pulled from the usbhshost node. There is still more

RE: [PATCH v10 17/18] configs: fu540: Add config options for U-Boot SPL

2020-05-15 Thread Pragnesh Patel
Hi Jagan, >-Original Message- >From: Jagan Teki >Sent: 15 May 2020 23:05 >To: Pragnesh Patel >Cc: U-Boot-Denx ; Atish Patra >; Palmer Dabbelt ; Bin >Meng ; Paul Walmsley ; >Anup Patel ; Sagar Kadam >; Rick Chen ; Palmer >Dabbelt >Subject: Re: [PATCH v10 17/18] configs: fu540: Add config

Re: [PATCH] mmc: bcm283x: fix int to pointer cast

2020-05-15 Thread Seung-Woo Kim
Hi Jaehoon, On 2020년 05월 15일 20:07, Jaehoon Chung wrote: > On 5/15/20 7:14 PM, Seung-Woo Kim wrote: >> On build with 32 bit, there is a warning for int-to-pointer-cast. >> Fix the int to pointer cast by using uintptr_t. > > Could you share in more detail? I didn't see any warning with gcc 9.2 / 8

U-Boot custodian workflow

2020-05-15 Thread Remy Bohmer
Hi, Regarding the Custodian workflow I have a general question: why do we follow a rebase flow for the custodian trees? If custodians merge master frequently into their own branches and merge that back on pull requests would technically work too right? But there are downsides to it why this is not

Re: [PATCH 4/6] qemu_arm64_defconfig: Enable CONFIG_PCI_INIT_R

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:38:45PM +0300, Ovidiu Panait wrote: > Replace the "pci enum" preboot sequence with CONFIG_PCI_INIT_R=y. > > Signed-off-by: Ovidiu Panait Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 6/6] qemu-x86*_defconfig: Enable CONFIG_PCI_INIT_R

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:38:47PM +0300, Ovidiu Panait wrote: > Enable CONFIG_PCI_INIT_R for qemux86 and qemux86-64 pci enumeration during > boot in order to eliminate the custom preboot commands in > include/configs/qemu-x86.h. > > Signed-off-by: Ovidiu Panait Applied to u-boot/master, thanks

Re: [PATCH 3/6] board_r: Introduce CONFIG_PCI_INIT_R Kconfig option

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:38:44PM +0300, Ovidiu Panait wrote: > With CONFIG_DM_PCI enabled, PCI buses are not enumerated at boot, as they > are without that config option enabled. However, there are cases such as DM > PCI-based Ethernet devices that need the PCI bus enumerated so that they > can

Re: [PATCH 5/6] qemu_arm_defconfig: Enable CONFIG_PCI_INIT_R

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:38:46PM +0300, Ovidiu Panait wrote: > Replace the "pci enum" preboot sequence with CONFIG_PCI_INIT_R=y. > > Signed-off-by: Ovidiu Panait Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/6] env: Convert CONFIG_DELAY_ENVIRONMENT to Kconfig

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:38:42PM +0300, Ovidiu Panait wrote: > This converts ad-hoc CONFIG_DELAY_ENVIRONMENT to Kconfig. > > Signed-off-by: Ovidiu Panait Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 2/6] board_r: env: Use IS_ENABLED() instead of #ifdefs

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:38:43PM +0300, Ovidiu Panait wrote: > Use IS_ENABLED() instead of #ifdef in should_load_env and initr_env > functions. > > No functional change intended. > > Signed-off-by: Ovidiu Panait Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP sign

Re: [PATCH v3 00/22] common: Further reduce the size of common.h

2020-05-15 Thread Tom Rini
On Fri, May 15, 2020 at 03:02:48PM -0600, Simon Glass wrote: > Hi Tom, > > On Sun, 10 May 2020 at 11:40, Simon Glass wrote: > > > > This is yet another series to remove the contents of common.h so that > > individual files include the headers they need. > > > > With this series there are only 14

Re: [PATCH v3 1/1] cmd: gpt: add eMMC and GPT support

2020-05-15 Thread Simon Glass
Hi Rayagonda, On Wed, 13 May 2020 at 09:28, Rayagonda Kokatanur wrote: > > From: Corneliu Doban > > Add eMMC and GPT support. > - GPT partition list and command to create the GPT added to u-boot > environment > - eMMC boot commands added to u-boot environment > - new gpt commands (enumarate an

Re: [PATCH v3 00/22] common: Further reduce the size of common.h

2020-05-15 Thread Simon Glass
Hi Tom, On Sun, 10 May 2020 at 11:40, Simon Glass wrote: > > This is yet another series to remove the contents of common.h so that > individual files include the headers they need. > > With this series there are only 14 includes left. > > In order to get this far the commits include a number of s

Re: [PATCH v2 2/2] JFFS2: Add useful fields into lists

2020-05-15 Thread Tom Rini
On Thu, May 07, 2020 at 12:25:56PM +0200, Petr Borsodi wrote: > The inode list uses version and ino, the dirent list uses version and pino. > This information is collected during scanning, reducing accesses to flash > and significantly speeding up ls and read. > > Signed-off-by: Petr Borsodi Ap

Re: [PATCH] Makefile: add file 'defconfig' to clean target

2020-05-15 Thread Tom Rini
On Thu, May 07, 2020 at 06:09:22PM +0200, Heinrich Schuchardt wrote: > File 'defconfig' is a build artifact of 'make savedefconfig'. > Remove it when cleaning. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Descripti

Re: [PATCH v2 1/2] JFFS2: Process obsolete nodes as well as accurate ones

2020-05-15 Thread Tom Rini
On Thu, May 07, 2020 at 12:25:55PM +0200, Petr Borsodi wrote: > Obsolete nodes (ie. without the JFFS2_NODE_ACCURATE flag) were ignored > because they had seemingly invalid crc. This could lead to finding > the phantom node header in obsolete node data. > > Signed-off-by: Petr Borsodi Applied to

Re: [PATCH] rsa: don't use malloc.h in rsa-sign.c

2020-05-15 Thread Tom Rini
On Fri, May 15, 2020 at 10:20:34PM +1000, Jonathan Gray wrote: > stdlib.h is the header for malloc since at least c89/c90. > There is no system malloc.h on OpenBSD and trying to use malloc.h here > falls back to the U-Boot malloc.h breaking the build of qemu_arm64. > > Fixes: 336d4615f8 ("dm: cor

Re: [RESEND PATCH] configs: mt7629: support usb host and udisk

2020-05-15 Thread Tom Rini
On Thu, May 14, 2020 at 01:56:19PM +0800, Chunfeng Yun wrote: > Enable modules to support download image from usb > > Signed-off-by: Chunfeng Yun Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] lib: rsa: avoid overriding the object name when already specified

2020-05-15 Thread Tom Rini
On Wed, May 13, 2020 at 12:26:24PM +0200, Bastian Krause wrote: > From: Jan Luebbe > > If "object=" is specified in "keydir" when using the pkcs11 engine do > not append another "object=". This makes it possible to > use object names other than the key name hint. These two string > identifiers a

Re: [PATCH v6 2/2] pci: Fix typo in definition for PCI_DEV

2020-05-15 Thread Tom Rini
On Sun, May 10, 2020 at 10:26:54AM -0600, Simon Glass wrote: > Fix a typo in the comment. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] Makefile: remove m68k GCC 3.4 workaround

2020-05-15 Thread Tom Rini
On Thu, May 14, 2020 at 11:38:20AM +0900, Masahiro Yamada wrote: > This code dates back to 2006, commit 483a0cf804df ("Fixes for gcc 3.4 > based m68k toolchain,"). > > GCC 3.4 is so old. We do not support it. > > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom signa

Re: [PATCH] MAINTAINERS: POWERPC MPC8XX: Update email address

2020-05-15 Thread Tom Rini
On Wed, May 13, 2020 at 05:30:03AM +, Christophe Leroy wrote: > Our email addresses have changed from @c-s.fr to @csgroup.eu > > Update entry in MAINTAINERS > > Signed-off-by: Christophe Leroy Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] common/board_f: avoid -Wtype-limits warning

2020-05-15 Thread Tom Rini
On Sat, May 09, 2020 at 09:21:14PM +0200, Heinrich Schuchardt wrote: > CONFIG_SYS_SDRAM_BASE maybe zero. Avoid a build warning when compiling with > -Wtype-limits. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Descr

Re: [PATCH 1/1] tools: mkimage: use /* fallthrough */ as needed

2020-05-15 Thread Tom Rini
On Sat, May 09, 2020 at 05:10:41PM +0200, Heinrich Schuchardt wrote: > GCC recognizes /* fallthrough */ if -Wimplicit-fallthrough=3 is enabled. > Let's use it consistently. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signatu

Re: [PATCH 1/1] tools: ftdgrep: use /* fallthrough */ as needed

2020-05-15 Thread Tom Rini
On Sat, May 09, 2020 at 05:12:42PM +0200, Heinrich Schuchardt wrote: > GCC recognizes /* fallthrough */ if -Wimplicit-fallthrough=3 is enabled. > Let's use it consistently. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signatu

Re: [PATCH v6 1/2] usb: Update struct usb_device to indicate speed enum

2020-05-15 Thread Tom Rini
On Sun, May 10, 2020 at 10:26:53AM -0600, Simon Glass wrote: > The speed member actually uses an enum, so add this to the comment. > > Signed-off-by: Simon Glass > Reviewed-by: Marek Vasut Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] lib: rsa: Also check for presence of r-squared property

2020-05-15 Thread Tom Rini
On Thu, May 07, 2020 at 08:36:13PM +0200, Jan Kiszka wrote: > From: Jan Kiszka > > Better than crashing later if it is missing. > > Signed-off-by: Jan Kiszka Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] spl: Always define preloader_console_init

2020-05-15 Thread Tom Rini
On Thu, May 07, 2020 at 06:08:10PM -0500, Samuel Holland wrote: > A large number of boards call preloader_console_init unconditionally. > Currently, they fail to build with CONFIG_SPL_SERIAL=n, because the > function is undefined in that case. To fix the build, always define > preloader_console_in

Re: [PATCH 2/3] lib: Allow MD5 to be enabled in SPL

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:03:56AM -0600, Simon Glass wrote: > At present the MD5 option cannot be enabled by board configs since it has > no Kconfig name. It is generally enabled, so long as FIT support is > present. But not all boards use FIT, particularly in SPL > > Fix this and add an option

Re: [PATCH v4 6/8] rename symbol: CONFIG_TEGRA -> CONFIG_ARCH_TEGRA

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:02:41AM -0400, Trevor Woerner wrote: > Have this symbol follow the pattern of all other such symbols. > > Signed-off-by: Trevor Woerner Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v4 8/8] drivers/reset/Kconfig: fix typo

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:02:43AM -0400, Trevor Woerner wrote: > Signed-off-by: Trevor Woerner Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v4 7/8] rename symbol: CONFIG_STM32 -> CONFIG_ARCH_STM32

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:02:42AM -0400, Trevor Woerner wrote: > Have this symbol follow the pattern of all other such symbols. > > Signed-off-by: Trevor Woerner Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v4 3/8] rename symbol: CONFIG_ORION5X -> CONFIG_ARCH_ORION5X

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:02:38AM -0400, Trevor Woerner wrote: > Have this symbol follow the pattern of all other such symbols. > This patch removes a TODO from the code. > > Signed-off-by: Trevor Woerner Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v4 5/8] rename symbol: CONFIG_KIRKWOOD -> CONFIG_ARCH_KIRKWOOD

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:02:40AM -0400, Trevor Woerner wrote: > Have this symbol follow the pattern of all other such symbols. > This patch also removes a TODO from the code. > > Reviewed-by: Chris Packham > Signed-off-by: Trevor Woerner Applied to u-boot/master, thanks! -- Tom signature

Re: [PATCH v4 4/8] arm: orion5x: finish moving SoC to mach-orion5x

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:02:39AM -0400, Trevor Woerner wrote: > The SPL linker script had been left in arch/$(ARCH)/cpu/$(CPU)/$(SOC); > therefore move it to the already-established arch/$(ARCH)/mach-$(SOC) > location. > > Signed-off-by: Trevor Woerner Applied to u-boot/master, thanks! -- T

Re: [PATCH v4 2/8] arch/arm/Makefile: sort machine names

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:02:37AM -0400, Trevor Woerner wrote: > The comment immediately above the block of machine directory names implored > users to keep the macro names sorted, but, alas, this is no longer the case. > > Put the list of machine directory names back in alphanumerical order by

Re: [PATCH v4 1/8] arm: lpc32xx: move SoC to mach-lpc32xx

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:02:36AM -0400, Trevor Woerner wrote: > Following the example of most other SoCs in arch/$(ARCH)/cpu/$(CPU)/$(SOC) > move the lpc32xx code from arch/arm/cpu/arm926ejs/lpc32xx to > arch/arm/mach-lpc32xx. > > Following the checklist from > commit 01f14456306c ("ARM: prepar

[PATCH 5/6 v3] doc: uefi.rst: Add OP-TEE variable storage config options

2020-05-15 Thread Ilias Apalodimas
If OP-TEE is compiled with an EDK2 application running in secure world it can process and store UEFI variables in an RPMB. Add documentation for the config options enabling this. Signed-off-by: Ilias Apalodimas Reviewed-by: Heinrich Schuchardt --- doc/uefi/uefi.rst | 17 + 1 fil

[PATCH 6/6 v3] configs: lx2160a: Add default config for lx2160a using StMM in OP-TEE

2020-05-15 Thread Ilias Apalodimas
Previous patches allow UEFI secure variables to be stored in an RPMB device using OPTEE. Add a config for the lx2160a hardware so the feature gets at least compiled. Signed-off-by: Ilias Apalodimas --- configs/lx2160ardb_tfa_stmm_defconfig | 78 +++ 1 file changed, 78 ins

[PATCH 2/6 v3] efi_loader: Implement EFI variable handling via OP-TEE

2020-05-15 Thread Ilias Apalodimas
In OP-TEE we can run EDK2's StandAloneMM on a secure partition. StandAloneMM is responsible for the UEFI variable support. In combination with OP-TEE and it's U-Boot supplicant, variables are authenticated/validated in secure world and stored on an RPMB partition. So let's add a new config option

[PATCH 4/6 v3] MAINTAINERS: Add maintainer for EFI variables via OP-TEE

2020-05-15 Thread Ilias Apalodimas
Add myself as maintainer for the OP-TEE related UEFI variable storage. Signed-off-by: Ilias Apalodimas Reviewed-by: Heinrich Schuchardt --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ec59ce8b8802..0c38890be09c 100644 --- a/MAINTAINERS +

[PATCH 0/6 v3] EFI variable support via OP-TEE

2020-05-15 Thread Ilias Apalodimas
Hi! This is the v3 of the patchset adding EFI variable support via OP-TEE originally posted here [1] [2] Changes since v2: * patch 1: - Fixed typos and c/p mistakes on struct documentation * patch 2: - Depend on OPTEE instead of SUPPORT_EMMC_RPMB, since a Secure World storage can

[PATCH 3/6 v3] cmd: efidebug: Add support for querying UEFI variable storage

2020-05-15 Thread Ilias Apalodimas
With the previous patches that use OP-TEE and StandAloneMM for UEFI variable storage we've added functionality for efi_query_variable_info. So let's add the relevant command to efidebug and retrieve information about the container used to store UEFI variables Signed-off-by: Ilias Apalodimas Revie

[PATCH 1/6 v3] efi_loader: Add headers for EDK2 StandAloneMM communication

2020-05-15 Thread Ilias Apalodimas
From: Sughosh Ganu In Arm devices OP-TEE has the ability to run StandAloneMM (from EDK2) in a separate partition and handle UEFI variables. A following patch introduces this functionality. Add the headers needed for OP-TEE <--> StandAloneMM communication Signed-off-by: Sughosh Ganu Signed-off-

RE: [PATCH v5 1/3] gpio-uclass.c: save the GPIOD flags also in the gpio descriptor

2020-05-15 Thread Patrick DELAUNAY
Hi Heiko > From: Heiko Schocher > Sent: vendredi 15 mai 2020 16:01 > > save the GPIOD_ flags also in the gpio descriptor. > > Signed-off-by: Heiko Schocher > > > --- > > Changes in v5: > - add comment from patrick, update the descriptor flags > in _dm_gpio_set_dir_flags() if setting direc

Re: [PATCH 1/3] log: Allow LOG_DEBUG to always enable log output

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:03:55AM -0600, Simon Glass wrote: > At present if CONFIG_LOG enabled, putting LOG_DEBUG at the top of a file > (before log.h inclusion) causes _log() to be executed for every log() > call, regardless of the build- or run-time logging level. > > However there is no guara

Re: [PATCH v2] Nokia RX-51: Add automated test for running RX-51 build in qemu

2020-05-15 Thread Tom Rini
On Fri, May 15, 2020 at 07:40:25PM +0200, Pali Rohár wrote: > On Friday 15 May 2020 10:16:16 Tom Rini wrote: > > On Fri, May 15, 2020 at 03:58:20PM +0200, Pali Rohár wrote: > > > On Friday 15 May 2020 09:53:23 Tom Rini wrote: > > > > On Fri, May 15, 2020 at 03:51:22PM +0200, Pali Rohár wrote: > > >

Re: [PATCH 3/3] lib: Allow hexdump to be used in SPL

2020-05-15 Thread Tom Rini
On Wed, May 06, 2020 at 08:03:57AM -0600, Simon Glass wrote: > It is sometimes useful to output hex dumps in SPL. Add a config option to > allow this. > > Signed-off-by: Simon Glass > Reviewed-by: Stefan Roese > --- > > lib/Kconfig | 6 ++ > lib/Makefile | 2 +- > 2 files changed, 7 inse

Re: [PATCH v2] Nokia RX-51: Add automated test for running RX-51 build in qemu

2020-05-15 Thread Pali Rohár
On Friday 15 May 2020 10:16:16 Tom Rini wrote: > On Fri, May 15, 2020 at 03:58:20PM +0200, Pali Rohár wrote: > > On Friday 15 May 2020 09:53:23 Tom Rini wrote: > > > On Fri, May 15, 2020 at 03:51:22PM +0200, Pali Rohár wrote: > > > > On Friday 15 May 2020 09:48:48 Tom Rini wrote: > > > > > On Fri,

Re: [PATCH v10 17/18] configs: fu540: Add config options for U-Boot SPL

2020-05-15 Thread Jagan Teki
On Thu, May 14, 2020 at 5:24 PM Pragnesh Patel wrote: > > With sifive_fu540_defconfig: > > User can use FSBL or u-boot-spl.bin anyone at a time. > > For FSBL, > fsbl->fw_payload.bin (opensbi + U-Boot) > > For u-boot-spl.bin, > u-boot-spl.bin->FIT image (opensbi + U-Boot proper + dtb) > > U-Boot SP

rockpro64: Enable HDMI output

2020-05-15 Thread Marcin Juszkiewicz
Enable config options and console setting like on other rk3399 boards. --- configs/rockpro64-rk3399_defconfig | 4 include/configs/rockpro64_rk3399.h | 5 + 2 files changed, 9 insertions(+) diff --git configs/rockpro64-rk3399_defconfig configs/rockpro64-rk3399_defconfig index 8074e4665a

Re: [PATCH 1/2] test/py: efi_secboot should not assume sbin is in the path

2020-05-15 Thread Heinrich Schuchardt
On 22.04.20 17:52, Heinrich Schuchardt wrote: > For non-root users /sbin is typically not in the path. So use absolute > paths to mkfs.vfat and sgdisk. Ilias pointed me to virt-make-fs (Debian package libguestfs-tools). With this command the creation of file systems would become much easier. Best

Re: [PATCH v2] Nokia RX-51: Add automated test for running RX-51 build in qemu

2020-05-15 Thread Tom Rini
On Fri, May 15, 2020 at 03:58:20PM +0200, Pali Rohár wrote: > On Friday 15 May 2020 09:53:23 Tom Rini wrote: > > On Fri, May 15, 2020 at 03:51:22PM +0200, Pali Rohár wrote: > > > On Friday 15 May 2020 09:48:48 Tom Rini wrote: > > > > On Fri, May 15, 2020 at 03:46:02PM +0200, Pali Rohár wrote: > > >

[PATCH v5 3/3] gpio: search for gpio label if gpio is not found through bank name

2020-05-15 Thread Heiko Schocher
dm_gpio_lookup_name() searches for a gpio through the bank name. But we have also gpio labels, and it makes sense to search for a gpio also in the labels we have defined, if no gpio is found through the bank name definition. This is useful for example if you have a wp pin on different gpios on dif

[PATCH v5 1/3] gpio-uclass.c: save the GPIOD flags also in the gpio descriptor

2020-05-15 Thread Heiko Schocher
save the GPIOD_ flags also in the gpio descriptor. Signed-off-by: Heiko Schocher --- Changes in v5: - add comment from patrick, update the descriptor flags in _dm_gpio_set_dir_flags() if setting direction was OK. Changes in v4: - new in version 4 Changes in v3: None Changes in v2: None d

[PATCH v5 0/3] gpio: add possibility to search for gpio label name

2020-05-15 Thread Heiko Schocher
search for gpio label if gpio name from bankname is not found. This makes sense on boards with different hardware verions. You can now search for the gpio label name, and can give the gpio a unique name. The real gpio pin number is not needed in board code anymore. while at it add basic gpio hog

[PATCH v5 2/3] sandbox, test: add test for GPIO_HOG function

2020-05-15 Thread Heiko Schocher
currently gpio hog function is not tested with "ut dm gpio" so add some basic tests for gpio hog functionality. For this enable GPIO_HOG in sandbox_defconfig, add in DTS some gpio hog entries, and add testcase in "ut dm gpio" command. Signed-off-by: Heiko Schocher --- Changes in v5: None Chang

Re: [PATCH v2] Nokia RX-51: Add automated test for running RX-51 build in qemu

2020-05-15 Thread Pali Rohár
On Friday 15 May 2020 09:53:23 Tom Rini wrote: > On Fri, May 15, 2020 at 03:51:22PM +0200, Pali Rohár wrote: > > On Friday 15 May 2020 09:48:48 Tom Rini wrote: > > > On Fri, May 15, 2020 at 03:46:02PM +0200, Pali Rohár wrote: > > > > On Friday 15 May 2020 09:20:20 Tom Rini wrote: > > > > > On Fri,

Re: [PATCH v2] Nokia RX-51: Add automated test for running RX-51 build in qemu

2020-05-15 Thread Tom Rini
On Fri, May 15, 2020 at 03:51:22PM +0200, Pali Rohár wrote: > On Friday 15 May 2020 09:48:48 Tom Rini wrote: > > On Fri, May 15, 2020 at 03:46:02PM +0200, Pali Rohár wrote: > > > On Friday 15 May 2020 09:20:20 Tom Rini wrote: > > > > On Fri, May 15, 2020 at 09:33:47AM +0200, Pali Rohár wrote: > > >

Re: [PATCH v2] Nokia RX-51: Add automated test for running RX-51 build in qemu

2020-05-15 Thread Pali Rohár
On Friday 15 May 2020 09:48:48 Tom Rini wrote: > On Fri, May 15, 2020 at 03:46:02PM +0200, Pali Rohár wrote: > > On Friday 15 May 2020 09:20:20 Tom Rini wrote: > > > On Fri, May 15, 2020 at 09:33:47AM +0200, Pali Rohár wrote: > > > > On Thursday 14 May 2020 20:01:19 Tom Rini wrote: > > > > > On Fri

Re: [PATCH v2] Nokia RX-51: Add automated test for running RX-51 build in qemu

2020-05-15 Thread Tom Rini
On Fri, May 15, 2020 at 03:46:02PM +0200, Pali Rohár wrote: > On Friday 15 May 2020 09:20:20 Tom Rini wrote: > > On Fri, May 15, 2020 at 09:33:47AM +0200, Pali Rohár wrote: > > > On Thursday 14 May 2020 20:01:19 Tom Rini wrote: > > > > On Fri, May 15, 2020 at 12:41:52AM +0200, Pali Rohár wrote: > >

Re: [PATCH v2] Nokia RX-51: Add automated test for running RX-51 build in qemu

2020-05-15 Thread Pali Rohár
On Friday 15 May 2020 09:20:20 Tom Rini wrote: > On Fri, May 15, 2020 at 09:33:47AM +0200, Pali Rohár wrote: > > On Thursday 14 May 2020 20:01:19 Tom Rini wrote: > > > On Fri, May 15, 2020 at 12:41:52AM +0200, Pali Rohár wrote: > > > > On Saturday 09 May 2020 16:56:10 Tom Rini wrote: > > > > > On S

Re: [PATCH v2] Nokia RX-51: Add automated test for running RX-51 build in qemu

2020-05-15 Thread Tom Rini
On Fri, May 15, 2020 at 09:33:47AM +0200, Pali Rohár wrote: > On Thursday 14 May 2020 20:01:19 Tom Rini wrote: > > On Fri, May 15, 2020 at 12:41:52AM +0200, Pali Rohár wrote: > > > On Saturday 09 May 2020 16:56:10 Tom Rini wrote: > > > > On Sat, May 09, 2020 at 06:35:40PM +0200, Pali Rohár wrote: >

[PATCH] imx: imx8qm_rom7720_a1: update README

2020-05-15 Thread Oliver Graute
Update README to extract firmware from scripts Signed-off-by: Oliver Graute --- board/advantech/imx8qm_rom7720_a1/README | 11 +++ 1 file changed, 11 insertions(+) diff --git a/board/advantech/imx8qm_rom7720_a1/README b/board/advantech/imx8qm_rom7720_a1/README index bff5712589..d3e3cec

[PATCH v2] configs: ls1088ardb: Add support for usb boot target

2020-05-15 Thread Era Tiwari
From: Era Tiwari  LS1088A-RDB has MMC, SCSI, DHCP as boot targets, but the USB support was missing. Add support for USB as Boot_targets_devices. Signed-off-by: Era Tiwari  Signed-off-by: Pramod Kumar --- Changes in v2: - incorporate review comments include/configs/ls1088ardb.h | 1 + 1

[PATCH] rsa: don't use malloc.h in rsa-sign.c

2020-05-15 Thread Jonathan Gray
stdlib.h is the header for malloc since at least c89/c90. There is no system malloc.h on OpenBSD and trying to use malloc.h here falls back to the U-Boot malloc.h breaking the build of qemu_arm64. Fixes: 336d4615f8 ("dm: core: Create a new header file for 'compat' features") Signed-off-by: Jonatha

Re: [PATCH 2/5 v2] efi_loader: Implement EFI variable handling via OP-TEE

2020-05-15 Thread Ilias Apalodimas
On Fri, May 15, 2020 at 01:55:35PM +0200, Heinrich Schuchardt wrote: > On 11.05.20 20:14, Ilias Apalodimas wrote: > > In OP-TEE we can run EDK2's StandAloneMM on a secure partition. > > StandAloneMM is responsible for the UEFI variable support. In > > combination with OP-TEE and it's U-Boot supplic

Re: [U-Boot] [PATCH v3 06/21] efi: Correct header order in efi_memory

2020-05-15 Thread sheridanco.82...@gmail.com
Sent from my LG Phoenix 4, an AT&T 4G LTE smartphone

[PATCH v2] configs: ls1088ardb: Add support for usb boot target

2020-05-15 Thread Era Tiwari 
LS1088A-RDB has MMC, SCSI, DHCP as boot targets, but the USB support was missing. Add support for USB as Boot_targets_devices. Signed-off-by: Era Tiwari  Signed-off-by: Pramod Kumar --- include/configs/ls1088ardb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/ls1088ardb.h

[PATCH] mmc: retry CMD1 in mmc_send_op_cond() until the eMMC is ready

2020-05-15 Thread haibo . chen
From: Haibo Chen According to eMMC specification v5.1 section 6.4.3, we should issue CMD1 repeatedly in the idle state until the eMMC is ready even if mmc_send_op_cond() send CMD1 with argument = 0. Otherwise some eMMC devices seems to enter the inactive mode after mmc_complete_op_cond() issued C

Re: [PATCH 2/5 v2] efi_loader: Implement EFI variable handling via OP-TEE

2020-05-15 Thread Heinrich Schuchardt
On 11.05.20 20:14, Ilias Apalodimas wrote: > In OP-TEE we can run EDK2's StandAloneMM on a secure partition. > StandAloneMM is responsible for the UEFI variable support. In > combination with OP-TEE and it's U-Boot supplicant, variables are > authenticated/validated in secure world and stored on an

Re: [PATCH 1/4] efi_loader: aarch64: align runtime section to 64kb

2020-05-15 Thread Michael Walle
Am 2020-05-15 01:04, schrieb Heinrich Schuchardt: On 5/15/20 12:27 AM, Heinrich Schuchardt wrote: On 5/15/20 12:02 AM, Michael Walle wrote: Am 2020-05-14 23:03, schrieb Heinrich Schuchardt: On 5/14/20 9:04 PM, Michael Walle wrote: Am 2020-05-14 20:27, schrieb Heinrich Schuchardt: On 5/14/20

[RFC PATCH v2 2/2] rpi4: add a mapping for the PCIe XHCI controller MMIO registers (ARM 32bit)

2020-05-15 Thread Marek Szyprowski
Create a non-cacheable mapping for the 0x6 physical memory region, where MMIO registers for the PCIe XHCI controller are instantiated by the PCIe bridge. Due to 32bit limit in the CPU virtual address space in ARM 32bit mode, this region is mapped at 0xff80 CPU virtual address. Signed-o

[RFC PATCH v2 0/2] ARM: arbitrary virtual-physical mappings for RPi4 XHCI support

2020-05-15 Thread Marek Szyprowski
Hi All, This is a result of the following discussion: https://lists.denx.de/pipermail/u-boot/2020-May/411086.html Those 2 patches are replacement for the patch discussed there. V2 fixes ARM64 build. Best regards Marek Szyprowski Samsung R&D Institute Poland Marek Szyprowski (2): arm: provide

[RFC PATCH v2 1/2] arm: provide a function for boards init code to modify MMU virtual-physical map

2020-05-15 Thread Marek Szyprowski
Provide a function for setting arbitrary virtual-physical MMU mapping for the given region. Signed-off-by: Marek Szyprowski --- arch/arm/include/asm/mmu.h| 8 arch/arm/include/asm/system.h | 11 +++ arch/arm/lib/cache-cp15.c | 24 ++-- 3 files change

Re: [PATCH] mmc: bcm283x: fix int to pointer cast

2020-05-15 Thread Jaehoon Chung
On 5/15/20 7:14 PM, Seung-Woo Kim wrote: > On build with 32 bit, there is a warning for int-to-pointer-cast. > Fix the int to pointer cast by using uintptr_t. Could you share in more detail? I didn't see any warning with gcc 9.2 / 8.3 / 7.4 /6.5. Best Regards, Jaehoon Chung > > Signed-off-by

Re: [PATCH] net: tftp: Add client support for RFC 7440

2020-05-15 Thread Marek Vasut
On 5/15/20 12:00 PM, Ramon Fried wrote: > Add support for RFC 7440: "TFTP Windowsize Option". > > This optional feature allows the client and server > to negotiate a window size of consecutive blocks to send as an > alternative for replacing the single-block lockstep schema. > > windowsize can be

Re: [PATCH 1/2] rockchip: spl: do full dram_init instead of only probing

2020-05-15 Thread Heiko Stübner
Hi Kever, Am Freitag, 15. Mai 2020, 04:07:41 CEST schrieb Kever Yang: > > On 2020/5/12 下午6:34, Heiko Stuebner wrote: > > From: Heiko Stuebner > > > > Parts of later SPL may need RAM information as well, so do full > > dram_init() call, which includes the existing dram probing but also > > initia

[PATCH] mmc: bcm283x: fix int to pointer cast

2020-05-15 Thread Seung-Woo Kim
On build with 32 bit, there is a warning for int-to-pointer-cast. Fix the int to pointer cast by using uintptr_t. Signed-off-by: Seung-Woo Kim --- drivers/mmc/bcm2835_sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/bcm2835_sdhci.c b/drivers/mmc/bcm2835_sdh

[PATCH] net: tftp: Add client support for RFC 7440

2020-05-15 Thread Ramon Fried
Add support for RFC 7440: "TFTP Windowsize Option". This optional feature allows the client and server to negotiate a window size of consecutive blocks to send as an alternative for replacing the single-block lockstep schema. windowsize can be defined statically during compilation by setting CONF

Re: [PATCH V2] ARM: imx: pico-imx8mq: Add support for Technexion Pico-iMX8MQ

2020-05-15 Thread Marek Vasut
On 5/15/20 11:57 AM, Oliver Graute wrote: > On 29/04/20, Marek Vasut wrote: >> +Get the DDR and HDMI firmware >> += >> +$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-7.9.bin >> +$ chmod +x firmware-imx-7.9.bin >> +$ ./firmware-imx-7.9.bin >> +# Or use thi

Re: [PATCH V2] ARM: imx: pico-imx8mq: Add support for Technexion Pico-iMX8MQ

2020-05-15 Thread Oliver Graute
On 29/04/20, Marek Vasut wrote: > +Get the DDR and HDMI firmware > += > +$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-7.9.bin > +$ chmod +x firmware-imx-7.9.bin > +$ ./firmware-imx-7.9.bin > +# Or use this to avoid running random scripts from the interne

Re: [PATCH v7 1/8] mmc: ca_dw_mmc: Misc cleanup of driver

2020-05-15 Thread Jaehoon Chung
On 5/15/20 5:11 AM, Alex Nemirovsky wrote: > From: Arthur Li > > - Rename DT compatible name > - Remove uneccessary if-statement to support 8-bit buswidth > - Remove redundant error msg > - Use symbolic constants in switch statement > > Signed-off-by: Arthur Li > Signed-off-by: Alex Nemirovsky

Re: [PATCH v2] rpi_4_defconfig: add missing CONFIG_ARCH_FIXUP_FDT_MEMORY

2020-05-15 Thread Jaehoon Chung
On 5/13/20 5:07 PM, Corentin Labbe wrote: > As discussed at > https://lore.kernel.org/linux-arm-kernel/b726290c-1038-3771-5187-6ac370bc9...@arm.com/T/ > the defconfig for rpi4 miss CONFIG_ARCH_FIXUP_FDT_MEMORY. > Without it, booting with an initrd fail. > > Signed-off-by: Corentin Labbe Review

Re: [PATCH 2/3] power: pmic: rk8xx: bind rk808 RTC

2020-05-15 Thread Suniel Mahesh
On Fri, May 15, 2020 at 1:31 PM Kever Yang wrote: > Hi Suniel, > > Do you have plan to update this patch set?, > Hi Kever, Yes I do have plan to update this patch. Any timeline's you are looking at ? Please let me know. Thanks Suniel > > > Thanks, > > - Kever > > On 2020/4/23 上午12:11, su.

Re: [PATCH 3/5] env: sf: Preserve and free the previous flash

2020-05-15 Thread Pratyush Yadav
On 15/05/20 01:14PM, Jagan Teki wrote: > On Fri, May 15, 2020 at 12:54 PM Pratyush Yadav wrote: > > > > Hi Jagan, > > > > On 14/05/20 05:41PM, Jagan Teki wrote: > > > env_flash is a global flash pointer, and the probe would > > > happen only if env_flash is NULL, but there is no checking > > > and

Re: [PATCH 2/3] power: pmic: rk8xx: bind rk808 RTC

2020-05-15 Thread Kever Yang
Hi Suniel,     Do you have plan to update this patch set? Thanks, - Kever On 2020/4/23 上午12:11, su...@amarulasolutions.com wrote: From: Suniel Mahesh RK808 PMIC is a multi functional device with an RTC. In order to access RTC, bind to its parent device i.e. RK808 PMIC. Signed-off-by: Suni

Re: [PATCH 3/5] env: sf: Preserve and free the previous flash

2020-05-15 Thread Jagan Teki
On Fri, May 15, 2020 at 12:54 PM Pratyush Yadav wrote: > > Hi Jagan, > > On 14/05/20 05:41PM, Jagan Teki wrote: > > env_flash is a global flash pointer, and the probe would > > happen only if env_flash is NULL, but there is no checking > > and free the pointer if is not NULL. > > > > So, this patc

Re: [PATCH v3 15/17] mtd: spi-nor-core: Perform a Soft Reset on boot

2020-05-15 Thread Jagan Teki
On Wed, May 13, 2020 at 4:34 PM Pratyush Yadav wrote: > > On 13/05/20 03:26PM, Jagan Teki wrote: > > On Wed, May 13, 2020 at 2:24 PM Pratyush Yadav wrote: > > > > > > On 13/05/20 12:17PM, Jagan Teki wrote: > > > > On Mon, Mar 30, 2020 at 9:16 PM Pratyush Yadav wrote: > > > > > > > > > > When the

Re: [PATCH 5/5] mtd: spi: Use IS_ENABLED to prevent ifdef

2020-05-15 Thread Rasmus Villemoes
On 15/05/2020 09.22, Rasmus Villemoes wrote: > That should make it obvious why one needs a variant that doesn't want > the CONFIG_ included in the argument; the CONFIG_IS_ENABLED macro needs > to do token-pasting with either CONFIG_SPL_ or just CONFIG_. On that note, I think all hits from git

Re: [PATCH v2] Nokia RX-51: Add automated test for running RX-51 build in qemu

2020-05-15 Thread Pali Rohár
On Thursday 14 May 2020 20:01:19 Tom Rini wrote: > On Fri, May 15, 2020 at 12:41:52AM +0200, Pali Rohár wrote: > > On Saturday 09 May 2020 16:56:10 Tom Rini wrote: > > > On Sat, May 09, 2020 at 06:35:40PM +0200, Pali Rohár wrote: > > > > On Saturday 09 May 2020 21:58:19 Lokesh Vutla wrote: > > > >

Re: [PATCH 3/5] env: sf: Preserve and free the previous flash

2020-05-15 Thread Pratyush Yadav
Hi Jagan, On 14/05/20 05:41PM, Jagan Teki wrote: > env_flash is a global flash pointer, and the probe would > happen only if env_flash is NULL, but there is no checking > and free the pointer if is not NULL. > > So, this patch frees the env_flash if it's not NULL, and > get the probed flash in ne

Re: [PATCH 5/5] mtd: spi: Use IS_ENABLED to prevent ifdef

2020-05-15 Thread Rasmus Villemoes
On 15/05/2020 06.27, Stefan Roese wrote: > Hi Daniel, > > On 14.05.20 18:31, Daniel Schwierzeck wrote: >> >> >> Am 14.05.20 um 14:11 schrieb Jagan Teki: >>> Use IS_ENABLED to prevent ifdef in sf_probe.c >>> >>> Cc: Simon Glass >>> Cc: Vignesh R >>> Cc: Daniel Schwierzeck >>> Signed-off-by: Jaga

Re: [PATCH 4/5] mtd: sf: Drop plat from sf_probe

2020-05-15 Thread Pratyush Yadav
On 14/05/20 05:41PM, Jagan Teki wrote: > dm_spi_slave_platdata used in sf_probe for printing > plat->cs value and there is no relevant usage apart > from this. > > We have enouch debug messages available in SPI and SF s/enouch/enough/ > areas so drop this plat get and associated bug statement. >

RE: [PATCH v3 1/2] sandbox, test: add test for GPIO_HOG function

2020-05-15 Thread Patrick DELAUNAY
Hi Heiko, > From: Heiko Schocher > Sent: vendredi 15 mai 2020 08:01 > > Hello Patrick, > > Am 14.05.2020 um 15:47 schrieb Patrick DELAUNAY: > > Hi Heiko > > > >> From: Heiko Schocher > >> Sent: mardi 12 mai 2020 09:32 > >> > >> Hello tom, Patrick, > >> [...] > >>> > >>> It looks like the  plat