[PATCH 07/12] poweroff: Introduce poweroff uclass

2020-07-02 Thread Sebastian Reichel
This adds infrastructure for DM based poweroff drivers including a generic poweroff command, that is exposed via existing CONFIG_CMD_POWEROFF and uses the first registered poweroff driver. Signed-off-by: Sebastian Reichel --- drivers/power/Kconfig | 9 +++ drivers/power/Makefile

[PATCH 03/12] gpio: mxc_gpio: add support to read status of output gpios

2020-07-02 Thread Sebastian Reichel
This is supported by the hardware when the pinmux is configured correctly. Usually it is not, so this adds explicit code for this. This fixes all GPIO regulators being shown as disabled. Signed-off-by: Sebastian Reichel --- drivers/gpio/mxc_gpio.c | 10 +- 1 file changed, 9

[PATCH 02/12] bootcount: add a DM SPI flash backing store for bootcount

2020-07-02 Thread Sebastian Reichel
This driver allows to use SPI flash as backing store for boot counter values with DM enabled. Signed-off-by: Sebastian Reichel --- drivers/bootcount/Kconfig | 10 +++ drivers/bootcount/Makefile| 1 + drivers/bootcount/spi-flash.c | 125 ++ 3 files

[PATCH 00/12] Introduce B1x5v2 support

2020-07-02 Thread Sebastian Reichel
This series introduces support for a new i.MX6DL GE patient monitor series. Patch 1: Support using DM_SPI_FLASH with non-DM SPL code. Patch 2: Add support for storing bootcount in SPI-flash Patch 3: Fix reading the status of output GPIOs Patch 4+5: Improve M41T62 RTC driver's reset routine. PATCH

[PATCH 17/17] board: xen: De-initialize before jumping to Linux

2020-07-02 Thread Anastasiia Lukianenko
From: Oleksandr Andrushchenko Free resources used by Xen board before jumping to Linux kernel. Signed-off-by: Oleksandr Andrushchenko Signed-off-by: Anastasiia Lukianenko --- board/xen/xenguest_arm64/xenguest_arm64.c | 6 ++ drivers/xen/hypervisor.c | 8

[PATCH 16/17] xen: pvblock: Print found devices indices

2020-07-02 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Signed-off-by: Oleksandr Andrushchenko Signed-off-by: Anastasiia Lukianenko --- drivers/xen/pvblock.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/xen/pvblock.c b/drivers/xen/pvblock.c index a23afc2cb2..8b102b181d 100644 ---

Re: [PATCH 11/17] xen: Port Xen grant table driver from mini-os

2020-07-02 Thread Julien Grall
On 01/07/2020 17:29, Anastasiia Lukianenko wrote: From: Oleksandr Andrushchenko Make required updates to run on u-boot. Signed-off-by: Oleksandr Andrushchenko Signed-off-by: Anastasiia Lukianenko --- board/xen/xenguest_arm64/xenguest_arm64.c | 13 ++ drivers/xen/Makefile

[PATCH 15/17] xen: pvblock: Implement front-back protocol and do IO

2020-07-02 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Implement Xen para-virtual frontend to backend communication and actually read/write disk data. This is based on mini-os implementation of the para-virtual block frontend driver. Signed-off-by: Oleksandr Andrushchenko Signed-off-by: Anastasiia Lukianenko ---

[PATCH 04/17] xen: Add essential and required interface headers

2020-07-02 Thread Anastasiia Lukianenko
From: Oleksandr Andrushchenko Add essential and required Xen interface headers only taken from the stable Linux kernel stable/linux-5.7.y at commit 66dfe45221605e11f38a0bf5eb2ee808cea7cfe7. These are better suited for U-boot than the original headers from Xen as they are the stripped versions

[PATCH 13/17] xen: pvblock: Enumerate virtual block devices

2020-07-02 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Enumerate Xen virtual block devices found in XenStore and instantiate pvblock devices. Signed-off-by: Oleksandr Andrushchenko Signed-off-by: Anastasiia Lukianenko --- drivers/xen/pvblock.c | 112 +- 1 file changed, 110

[PATCH 12/17] xen: pvblock: Add initial support for para-virtualized block driver

2020-07-02 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Add initial infrastructure for Xen para-virtualized block device. This includes compile-time configuration and the skeleton for the future driver implementation. Add new class UCLASS_PVBLOCK which is going to be a parent for virtual block devices. Add new interface

[PATCH 14/17] xen: pvblock: Read XenStore configuration and initialize

2020-07-02 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Read essential virtual block device configuration data from XenStore, initialize front ring and event channel. Update block device description with actual block size. Use code for XenStore from mini-os. Signed-off-by: Oleksandr Andrushchenko Signed-off-by:

[PATCH 10/17] xen: Port Xen bus driver from mini-os

2020-07-02 Thread Anastasiia Lukianenko
From: Oleksandr Andrushchenko Make required updates to run on u-boot and strip test code. Signed-off-by: Anastasiia Lukianenko Signed-off-by: Oleksandr Andrushchenko --- arch/arm/Kconfig | 1 + board/xen/xenguest_arm64/xenguest_arm64.c | 16 +-

[PATCH 09/17] lib: sscanf: add sscanf implementation

2020-07-02 Thread Anastasiia Lukianenko
From: Andrii Anisov Port sscanf implementation from mini-os and introduce new Kconfig option to enable it: CONFIG_SSCANF. Disable by default. Signed-off-by: Andrii Anisov Signed-off-by: Anastasiia Lukianenko Signed-off-by: Oleksandr Andrushchenko --- include/vsprintf.h | 8 + lib/Kconfig

[PATCH 11/17] xen: Port Xen grant table driver from mini-os

2020-07-02 Thread Anastasiia Lukianenko
From: Oleksandr Andrushchenko Make required updates to run on u-boot. Signed-off-by: Oleksandr Andrushchenko Signed-off-by: Anastasiia Lukianenko --- board/xen/xenguest_arm64/xenguest_arm64.c | 13 ++ drivers/xen/Makefile | 1 + drivers/xen/gnttab.c

[PATCH 08/17] linux/compat.h: Add wait_event_timeout macro

2020-07-02 Thread Anastasiia Lukianenko
From: Oleksandr Andrushchenko Add wait_event_timeout - sleep until a condition gets true or a timeout elapses. This is a stripped version of the same from Linux kernel with the following u-boot specific modifications: - no wait queues supported - use u-boot timer to detect timeouts - check for

[PATCH 07/17] serial: serial_xen: Add Xen PV serial driver

2020-07-02 Thread Anastasiia Lukianenko
From: Peng Fan Add support for Xen para-virtualized serial driver. This driver fully supports serial console for the virtual machine. Please note that as the driver is initialized late, so no banner nor memory size is visible. Signed-off-by: Peng Fan Signed-off-by: Oleksandr Andrushchenko

[PATCH 06/17] xen: Port Xen event channel driver from mini-os

2020-07-02 Thread Anastasiia Lukianenko
From: Oleksandr Andrushchenko Make required updates to run on u-boot. Strip functionality not needed by U-boot. Signed-off-by: Oleksandr Andrushchenko Signed-off-by: Anastasiia Lukianenko --- drivers/xen/Makefile | 1 + drivers/xen/events.c | 177

[PATCH 05/17] xen: Port Xen hypervizor related code from mini-os

2020-07-02 Thread Anastasiia Lukianenko
From: Oleksandr Andrushchenko Port hypervizor related code from mini-os. Update essential arch code to support required bit operations, memory barriers etc. Copyright for the bits ported belong to at least the following authors, please see related files for details: Copyright (c) 2002-2003, K

[PATCH 02/17] Kconfig: Introduce CONFIG_XEN

2020-07-02 Thread Anastasiia Lukianenko
From: Peng Fan Introduce CONFIG_XEN to make U-Boot could be used as bootloader for a virtual machine. Without bootloader, we could successfully boot up android on XEN, but we need need bootloader to support A/B, dm verify and etc. Signed-off-by: Peng Fan Signed-off-by: Oleksandr Andrushchenko

[PATCH 03/17] board: Introduce xenguest_arm64 board

2020-07-02 Thread Anastasiia Lukianenko
From: Andrii Anisov Introduce a minimal Xen guest board running as a virtual machine under Xen Project's hypervisor [1], [2]. Part of the code is ported from Xen mini-os and also uses work initially done by different authors from NXP: please see relevant files for their copyrights. [1]

[PATCH 1/1] mvpp2: fix second cp110 initialization

2020-07-02 Thread Sven Auhagen
Since the mdio code got upstreamed it is not possible to activate network ports on CP110 Master and Slave. The problem is in mvpp2_base_probe which is called for each CP110 and it initializes the buffer area for descs and rx_buffers. This should only happen once though and the bd space is

[PATCH 00/17] Add new board: Xen guest for ARM64

2020-07-02 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko This work introduces Xen [1] guest ARM64 board support in U-Boot with para-virtualized (PV) [2] block and serial drivers: xenguest_arm64. This board is to be run as a virtual Xen guest with U-boot as its primary bootloader. The rationale behind introducing this board

[PATCH 01/17] armv8: Fix SMCC and ARM_PSCI_FW dependencies

2020-07-02 Thread Anastasiia Lukianenko
From: Oleksandr Andrushchenko Currently SMCC selects ARM_PSCI_FW if enabled which is not correct as there are cases that PSCI can function without firmware at all. ARM_PSCI_FW itself is built with driver model approach, so it cannot be enabled if DM is off. Fix this by making PSCI reset

[PATCH v3] ARM: dts: stm32: add seeed studio odyssey-stm32mp157c board

2020-07-02 Thread Marcin Sloniewski
This commit adds device tree files supporting SBC from Seeed Studio based on STM32MP157C. This works with generic stm32mp1 config. Right now only booting from SD card is supported. Signed-off-by: Marcin Sloniewski --- Changes in v3: - changed name of dts files from odyssey-stm32mp157c... to

[PATCH] watchdog: imx: Support set timeout by wdt command

2020-07-02 Thread Mo, Yuezhang
After "4b969deac0 watchdog: imx: Add DM support", the imx watchdog can be started by wdt command. But the imx watchdog driver only support start with the default timeout. This commit adds the support for setting the timeout which pass from the wdt command into the imx watchdog. If the timeout out

Re: [PATCH] pci: rockchip: Mark inline functions as static inline

2020-07-02 Thread Philipp Tomsich
> On 01.07.2020, at 17:47, Tom Rini wrote: > > Unless we mark the function as 'static inline' it may end up being > non-inlined by the compiled and result in duplicate functions. > > Cc: Jagan Teki > Cc: Kever Yang > Signed-off-by: Tom Rini Reviewed-by: Philipp Tomsich

[PATCH v1 2/4] usb: xhci: xhci_mem_init: Use cpu_to_le64() and not xhci_writeq()

2020-07-02 Thread Stefan Roese
xhci_writeq() makes the CPU->LE swapping only when addressing registers in the xHCI controller address range and not in the local memory (RAM). We need to use cpu_to_le64() here to ensure that the conversion is done correctly. Signed-off-by: Stefan Roese Cc: Bin Meng Cc: Marek Vasut ---

[PATCH] rockchip: rk3288: Add OF board setup

2020-07-02 Thread Jagan Teki
The new rk3288 revision rk3288w has some changes with respect to legacy rk3288 like hclk_vio and usb host0 ohci. In order to work these on the same in Linux kernel update the compatible the root compatible with rockchip,rk3288w before booting. So, this support during of board setup code of

[PATCH v1 4/4] usb: xhci: Add virt_to_phys() to support mapped platforms

2020-07-02 Thread Stefan Roese
Some platforms, like MIPS Octeon, use mapped addresses (virtual address != physical address). On these platforms we need to make sure, that the local virtual addresses are converted to physical (DMA) addresses for the xHCI controller. This patch adds the missing virt_to_phys() calls, so that the

[PATCH v1 3/4] usb: usb-uclass.c: Drop le16_to_cpu() as values are already swapped

2020-07-02 Thread Stefan Roese
These values are already swapped to CPU endianess, so swapping them again is a bug. Let's remove the swap here instead. Signed-off-by: Stefan Roese Cc: Bin Meng Cc: Marek Vasut --- drivers/usb/host/usb-uclass.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [PATCH 0/2] u-boot support for ODROID-C4

2020-07-02 Thread Anand Moon
Hi Neil, On Thu, 2 Jul 2020 at 13:29, Neil Armstrong wrote: > > On 01/07/2020 18:09, Anand Moon wrote: > > Hi Neil, > > > > On Wed, 1 Jul 2020 at 20:16, Neil Armstrong wrote: > >> > >> On 01/07/2020 16:43, Anand Moon wrote: > >>> Hi Neil, > >>> > >>> On Wed, 1 Jul 2020 at 18:38, Neil Armstrong

Re: [Uboot-stm32] [PATCH] ARM: dts: stm32mp: remove hnp-srp-disable for usbotg on dk1

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 7/1/20 1:10 PM, Patrick Delaunay wrote: > Remove hnp-srp-disable for usbotg node because this feature is only needed > for usbotg in HOST mode (in drivers/usb/host/dwc2.c) > and this feature is not activated in stm32mp15 U-Boot > (stm32mp15_basic_defconfig and

[PATCH v1 0/4]

2020-07-02 Thread Stefan Roese
usb: xhci: Prepare xHCI driver for MIPS Octeon big-endian support These patches fix a few issues, found while porting the xHCI to the MIPS Octeon platforms. The basic issues here are: - Endianess issues: missing cpu_to_leXX() & leXX_to_cpu() conversions - Use physical (DMA) address for the xHCI

[PATCH v1 1/4] usb: xhci: Add missing endian conversions (cpu_to_leXX / leXX_to_cpu)

2020-07-02 Thread Stefan Roese
While trying to use the U-Boot xHCI driver on the MIPS Octeon platform, which is big endian, I noticed that the driver is missing a few endian conversion calls. This patch adds these missing endian conversion calls. Signed-off-by: Stefan Roese Cc: Bin Meng Cc: Marek Vasut ---

Re: [PATCH v1 22/43] x86: Add support for building up an NHLT structure

2020-07-02 Thread Wolfgang Wallner
Hi Simon, I dont know NHLT well enough to actually review the code, but I did compare the files in this patch to the version in coreboot. Most of the changes are obvious (coding style, spelling, ...), but some things are not, see the remarks below. -"Simon Glass" schrieb: - > Betreff:

Re: [PATCH v1 19/43] x86: pinctrl: Add multi-ACPI control

2020-07-02 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v1 19/43] x86: pinctrl: Add multi-ACPI control > > Add a Kconfig to control whether pinctrl is represented as a single ACPI > device or as multiple devices. In the latter case (the default) we should > return the pin number relative

Re: [PATCH 1/2] cmd: env: use ENV_IS_IN_DEVICE in env info

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/15/20 12:02 PM, Patrick Delaunay wrote: > Use the define ENV_IS_IN_DEVICE to test if one the > CONFIG_ENV_IS_IN_... is defined and correct the detection of > persistent storage support in the command "env info" > if CONFIG_ENV_IS_NOWHERE is activated. > > Since commit

Re: [PATCH v1 23/43] x86: Add error checking for csrt table generation

2020-07-02 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v1 23/43] x86: Add error checking for csrt table generation > > Generation of this table can fail, so update the function to return an > error code. > > Signed-off-by: Simon Glass > --- > > Changes in v1: > - Add new patch to add

[PATCH v4 3/6] env: Enable SPI flash env for SiFive FU540

2020-07-02 Thread Jagan Teki
SPI flash device on HiFive Unleashed has 32MiB Size. This patch adds SPI flash environment after U-Boot proper partition with a size of 128KiB. SPI flash partition layout(32MiB): 0 - 34 : reserved for GPT header 35 - 39 : unused 40 - 2087: loader1 (SPL, FSBL) 2088 -

Re: [Uboot-stm32] [PATCH] board: dh_stm32mp1: update the gpio hog support

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 5/29/20 6:33 PM, Patrick Delaunay wrote: > This patch update the current gpio hog implementation with > the new API gpio_hog_probe_all() actviated with CONFIG_GPIO_HOG. s/actviated/activated > > Signed-off-by: Patrick Delaunay > --- > > board/dhelectronics/dh_stm32mp1/board.c | 10

Re: [PATCH v2 1/9] arm: stm32mp: spl: add bsec driver in SPL

2020-07-02 Thread Patrice CHOTARD
HI Patrick On 5/25/20 12:19 PM, Patrick Delaunay wrote: > Add the bsec driver in SPL, as it is needed by SOC part number detection > to found the supported OPP. > > Signed-off-by: Patrick Delaunay > Reviewed-by: Patrice Chotard > --- > > Changes in v2: None > >

[PATCH v4 2/6] sifive: fu540: Add Booting from SPI

2020-07-02 Thread Jagan Teki
Add booting from SPI for SiFive Unleashed board. Signed-off-by: Jagan Teki Reviewed-by: Bin Meng Tested-by: Bin Meng --- Changes for v4: - drop BOARD configs .../dts/hifive-unleashed-a00-u-boot.dtsi | 12 ++ configs/sifive_fu540_defconfig| 4 ++

[PATCH 10/13] configs: am65x_evm: Add support for DFU related configs

2020-07-02 Thread Faiz Abbas
Add offset and environment related configs used for booting from DFU. Signed-off-by: Faiz Abbas --- include/configs/am65x_evm.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/configs/am65x_evm.h b/include/configs/am65x_evm.h index 19d861d402..5435ef85c7

[PATCH 11/13] configs: am65x_evm_a53: Enable USB Mass storage and DFU boot modes

2020-07-02 Thread Faiz Abbas
Enable configs to facilitate booting from USB Mass Storage devices as well as USB peripheral boot Signed-off-by: Faiz Abbas --- configs/am65x_evm_a53_defconfig | 9 + include/configs/am65x_evm.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/configs/am65x_evm_a53_defconfig

[PATCH 12/13] configs: Add new config for supporting USB mass storage boot

2020-07-02 Thread Faiz Abbas
Because of space constraints, create a new USB defconfig for R5 to faciliate booting from USB mass storage devices Signed-off-by: Faiz Abbas --- configs/am65x_evm_r5_usbmsc_defconfig | 119 ++ 1 file changed, 119 insertions(+) create mode 100644

[PATCH 13/13] configs: Add defconfig for USB DFU bootmode

2020-07-02 Thread Faiz Abbas
Because of space constraints, create a new USB defconfig for R5 to faciliate booting in USB peripheral (DFU) bootmode Signed-off-by: Faiz Abbas --- configs/am65x_evm_r5_usbdfu_defconfig | 119 ++ 1 file changed, 119 insertions(+) create mode 100644

Re: [PATCH v2 11/11] pinctrl: stm32: add information on pin configuration

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/4/20 2:30 PM, Patrick Delaunay wrote: > Add information on pin configuration used for pinmux command: > - bias configuration for output (disable, pull up, pull down) > - otype for input (open drain or push pull) > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: None >

[PATCH 08/13] arm: dts: k3-am654-r5-base-board: Add USB0 nodes

2020-07-02 Thread Faiz Abbas
Add USB0 nodes and set them to host mode to support USB host and peripheral boot modes Signed-off-by: Faiz Abbas --- arch/arm/dts/k3-am654-r5-base-board.dts | 35 + 1 file changed, 35 insertions(+) diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts

[PATCH 09/13] arm: dts: k3-am654-base-board: Add support for USB0 in SPL

2020-07-02 Thread Faiz Abbas
Add nodes for USB0 in SPL to enable USB host boot mode Signed-off-by: Faiz Abbas --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 27 1 file changed, 27 insertions(+) diff --git a/arch/arm/dts/k3-am654-base-board-u-boot.dtsi

[PATCH 06/13] arm: mach-k3: am6_init: Do USB fixups to facilitate host and device boot modes

2020-07-02 Thread Faiz Abbas
U-boot only supports either USB host or device mode for a node at a time in dts To support both host and dfu bootmodes, set "peripheral" as the default dr_mode but fixup property to "host" if host bootmode is detected This needs to happen before the dwc3 generic layer binds the usb device to a

[PATCH 07/13] arm: mach-k3: am6_init: Add support for USB boot mode

2020-07-02 Thread Faiz Abbas
Add support for identifying USB host and device boot modes Signed-off-by: Faiz Abbas --- arch/arm/mach-k3/am6_init.c | 5 + arch/arm/mach-k3/include/mach/am6_hardware.h | 2 ++ arch/arm/mach-k3/include/mach/am6_spl.h | 3 ++- 3 files changed, 9 insertions(+), 1

[PATCH 01/13] spl: usb: Create an API spl_usb_load()

2020-07-02 Thread Faiz Abbas
Create a new API spl_usb_load() that takes the filename as a parameter instead of taking the default U-boot PAYLOAD_NAME Signed-off-by: Faiz Abbas --- common/spl/spl_usb.c | 20 +--- include/spl.h| 14 ++ 2 files changed, 27 insertions(+), 7 deletions(-)

[PATCH 05/13] arm: mach-k3: am6_init: Gate mmc related configurations with the appropriate config

2020-07-02 Thread Faiz Abbas
Gate mmc related system related configurations with DM_MMC to avoid build errors when MMC is not enabled Signed-off-by: Faiz Abbas --- arch/arm/mach-k3/am6_init.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/am6_init.c b/arch/arm/mach-k3/am6_init.c

[PATCH 04/13] arm: mach-k3: sysfw-loader: Add support to load SYSFW from USB

2020-07-02 Thread Faiz Abbas
Add support for loading system firmware from a USB mass storage device Signed-off-by: Faiz Abbas --- arch/arm/mach-k3/sysfw-loader.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/mach-k3/sysfw-loader.c b/arch/arm/mach-k3/sysfw-loader.c index 513be09c68..0ebd8c56a7

[PATCH 00/13] Add support for USB host and peripheral bootmodes on am65x-idk

2020-07-02 Thread Faiz Abbas
The following patches add support for USB mass storage and USB dfu bootmodes on am654x-idk. Because of space constrains and the size of the USB stack, there are two different usbmsc and usbdfu defconfigs for building R5 SPL. Fitting both of these into one defconfig requires some changes in the

[PATCH 03/13] armv7R: K3: am654: Use full malloc in SPL both pre and post reloc

2020-07-02 Thread Faiz Abbas
In order to be able to use things like file system drivers early on in SPL (before relocation) in a memory-constrained environment when DDR is not yet available we cannot use the simple malloc scheme which does not implement the freeing of previously allocated memory blocks. To address this issue

[PATCH 02/13] spl: usb: Only init usb once

2020-07-02 Thread Faiz Abbas
usb_init() may be called multiple times for fetching multiple images from SPL. Skip reinitializing USB if its already been done Signed-off-by: Faiz Abbas --- common/spl/spl_usb.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/common/spl/spl_usb.c

Re: [PATCH v2 10/11] pinctrl: stmfx: add information on pin configuration

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/4/20 2:30 PM, Patrick Delaunay wrote: > Add information on pin configuration used for pinmux command. > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: None > > drivers/pinctrl/pinctrl-stmfx.c | 32 +++- > 1 file changed, 31 insertions(+),

Re: [PATCH 0/2] u-boot support for ODROID-C4

2020-07-02 Thread Neil Armstrong
On 01/07/2020 18:09, Anand Moon wrote: > Hi Neil, > > On Wed, 1 Jul 2020 at 20:16, Neil Armstrong wrote: >> >> On 01/07/2020 16:43, Anand Moon wrote: >>> Hi Neil, >>> >>> On Wed, 1 Jul 2020 at 18:38, Neil Armstrong wrote: Hi, On 01/07/2020 13:31, Anand Moon wrote: > Hi

Re: [PATCH v2 09/11] gpio: stmfx: add ops get_dir_flags

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/4/20 2:30 PM, Patrick Delaunay wrote: > Add support of ops get_dir_flags() to read dir flags from > STMFX registers. > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: None > > drivers/pinctrl/pinctrl-stmfx.c | 50 + > 1 file changed, 50

Re: [PATCH v2 08/11] gpio: stmfx: add ops set_dir_flag

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/4/20 2:30 PM, Patrick Delaunay wrote: > Manage the flags for GPIO configuration: > - open_drain, push_pull > - pull_up, pull_down > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: None > > drivers/pinctrl/pinctrl-stmfx.c | 37 + > 1

Re: [PATCH 03/17] board: Introduce xenguest_arm64 board

2020-07-02 Thread Oleksandr Andrushchenko
On 7/2/20 10:26 AM, Heinrich Schuchardt wrote: > On 02.07.20 09:18, Oleksandr Andrushchenko wrote: >> On 7/2/20 4:28 AM, Peng Fan wrote: Subject: [PATCH 03/17] board: Introduce xenguest_arm64 board From: Andrii Anisov Introduce a minimal Xen guest board running as a

Re: [PATCH v2 07/11] gpio: stmfx: add function stmfx_read_reg and stmfx_write_reg

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/4/20 2:30 PM, Patrick Delaunay wrote: > Add the helper functions stmfx_read_reg() and stmfx_write_reg() to avoid > duplicated code for access to stmfx's register with mask. > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: > - NEW: split previous patch [5/5] gpio:

Re: [PATCH v2 06/11] gpio: stmfx: rename function used to change pin configuration

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/4/20 2:30 PM, Patrick Delaunay wrote: > Rename the two function used to change the pin configuration > from stmfx_pinctrl_.. stmfx_conf_... to clarify the function usage. > > No functional change. > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: > - NEW: split

Re: [PATCH v2 04/11] gpio: stm32: add ops get_dir_flags

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/4/20 2:30 PM, Patrick Delaunay wrote: > Add ops get_dir_flags() to read dir flags from GPIO registers. > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: None > > drivers/gpio/stm32_gpio.c | 59 +++ > 1 file changed, 59 insertions(+)

Re: [PATCH v2 03/11] gpio: stm32: add ops set_dir_flags

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/4/20 2:30 PM, Patrick Delaunay wrote: > Manage flags for GPIO configuration: > - open_drain, open_source, push_pull > - pull_up, pull_down > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: None > > drivers/gpio/stm32_gpio.c | 90 +--

Re: [PATCH v2 05/11] gpio: stmfx: move function to prepare new ops introduction

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/4/20 2:30 PM, Patrick Delaunay wrote: > Move the functions stmfx_pinctrl_set_pupd and stmfx_pinctrl_set_type; > they can be used by the new ops get_dir_flags and set_dir_flags introduced > by next patch. > > No functional change. > > Signed-off-by: Patrick Delaunay > --- > >

Re: [Uboot-stm32] [PATCH] configs: stm32mp1: activate WATCHDOG

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/11/20 4:51 PM, Patrick Delaunay wrote: > As kernel v5.6 have a solution since so we will be able to enable > the watchdog at boot time. It is reloaded by the watchdog > framework (if CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED is set) and > until the userspace watchdog daemon takes over

Re: [Uboot-stm32] [PATCH v2 01/11] configs: stm32mp1: activate CONFIG_GPIO_HOG

2020-07-02 Thread Patrice CHOTARD
HI Patrick On 6/4/20 2:30 PM, Patrick Delaunay wrote: > This patch activates the new configuration CONFIG_GPIO_HOG. > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: None > > configs/stm32mp15_basic_defconfig | 1 + > configs/stm32mp15_trusted_defconfig | 1 + > 2 files changed, 2

Re: [PATCH 4/4] ram: stm32mp1: add size and addr parameter to test all

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/12/20 10:34 AM, Patrick Delaunay wrote: > Add size and addr parameter to test "All" to override the default > value (4kB and STM32_DDR_BASE) used in tests with these optional > parameters: [size] or [addr]. > > When other optional parameters are present before [addr], > they are

Re: [Uboot-stm32] [PATCH v2 02/11] board: stm32mp1: update the gpio hog support

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/4/20 2:30 PM, Patrick Delaunay wrote: > This patch updates the current gpio hog implementation and uses > the new API gpio_hog_probe_all(), activated with CONFIG_GPIO_HOG. > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: None > > board/st/stm32mp1/stm32mp1.c | 10

[PATCH v3 0/2] x86: p2sb: P2SB fixes

2020-07-02 Thread Wolfgang Wallner
Currently it is possible to select the P2SB driver without selecting the P2SB uclass, which can't work. Fix this by adding a "depends on" in Kconfig. While at it, correct the meaning of P2SB (according to Intel's documentation P2SB stands for "Primary to Sideband Bridge"). Remark: I have resent

[PATCH v2 0/2] x86: p2sb: P2SB fixes

2020-07-02 Thread Wolfgang Wallner
Currently it is possible to select the P2SB driver without selecting the P2SB uclass, which can't work. Fix this by adding a "depends on" in Kconfig. While at it, correct the meaning of P2SB (according to Intel's documentation P2SB stands for "Primary to Sideband Bridge"). Remark: I have resent

Re: [PATCH 3/4] ram: stm32mp1: use the DDR size by default in the test addressBus

2020-07-02 Thread Patrice CHOTARD
Hi Patrick one typo below On 6/12/20 10:34 AM, Patrick Delaunay wrote: > The test 4 = "AddressBus [size] [addr]" without parameter > detects alias for any address bit only when: > - size = real size of DDR > - addr = start of DDR = 0xC000 > > These value must by the default value when

Re: [PATCH 2/4] ram: stm32mp1: add parameter addr in test FrequencySelectivePattern

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/12/20 10:34 AM, Patrick Delaunay wrote: > Add a parameter addr in test FrequencySelectivePattern to select > the base address used to execute the tests. > > Default value (when the parameter is absent) is STM32_DDR_BASE, > selected in get_addr() function. > > Signed-off-by:

Re: [PATCH] power: regulator: stm32: vrefbuf: fix a possible overshoot when re-enabling

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/12/20 10:40 AM, Patrick Delaunay wrote: > From: Fabrice Gasnier > > There maybe an overshoot: > - when disabling, then re-enabling vrefbuf too quickly > - or upon platform reset as external capacitor maybe slow > discharging (VREFBUF is HiZ at reset by default). > VREFBUF is

Re: [PATCH 1/4] ram: stm32mp1: protect minimum value in get_bufsize

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/12/20 10:34 AM, Patrick Delaunay wrote: > Add protection on minimum value for result of get_bufsize > and check the alignment of buffer size: only multiple min_size > is allowed; only 4 bytes alignment was checked previously > (value & 0x3). > > For example the "Random" test

Re: [Uboot-stm32] [PATCH] stm32mp1: configs: activate CMD_ERASEENV

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/15/20 11:25 AM, Patrick Delaunay wrote: > Activate the command env erase to reset the environment with the command: >> env erase > it is simpler than: >> env default -a >> env save > Signed-off-by: Patrick Delaunay > --- > > configs/stm32mp15_basic_defconfig | 1 + >

Re: [PATCH 03/17] board: Introduce xenguest_arm64 board

2020-07-02 Thread Heinrich Schuchardt
On 02.07.20 09:18, Oleksandr Andrushchenko wrote: > On 7/2/20 4:28 AM, Peng Fan wrote: >>> Subject: [PATCH 03/17] board: Introduce xenguest_arm64 board >>> >>> From: Andrii Anisov >>> >>> Introduce a minimal Xen guest board running as a virtual machine under Xen >>> Project's hypervisor [1], [2].

Re: [PATCH 2/2] stm32mp1: use the command env info in env_check

2020-07-02 Thread Patrice CHOTARD
On 6/15/20 12:02 PM, Patrick Delaunay wrote: > Activate CMD_NVEDIT_INFO and use the new command "env info -d -p -q" > to automatically save the environment on first boot. > > This patch allows to remove the env_default variable. > > > > Previously sent in serie > cmd: env: add option for quiet

Re: [PATCH] arm: stm32mp: protect DBGMCU_IDC access with BSEC

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/16/20 6:27 PM, Patrick Delaunay wrote: > As debugger must be totally closed on Sec closed chip, > the DBGMCU_IDC register is no more accessible (self > hosted debug is disabled with OTP). > > This patch adds a function bsec_dbgswenable() to check > if the DBGMCU registers are

Re: [Uboot-stm32] [PATCH] board: st: stm32mp1: increase teed partition

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/16/20 6:19 PM, Patrick Delaunay wrote: > With TEE 3.7.0, the partition teed (OP-TEE pageable > code and data) need to increase up to 512KB in NOR device. > > Signed-off-by: Patrick Delaunay > --- > > board/st/common/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] arm: stm32mp: stm32prog: add "Device Name" in iproduct during DFU USB enumeration

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/16/20 6:25 PM, Patrick Delaunay wrote: > Add "Device Name" in iproduct during DFU USB enumeration > to have this information in STM32CubeProgrammer trace > (this tools is compatible with @Name since v2.3) > > Signed-off-by: Patrick Delaunay > --- > >

Re: [PATCH 03/17] board: Introduce xenguest_arm64 board

2020-07-02 Thread Oleksandr Andrushchenko
On 7/2/20 4:28 AM, Peng Fan wrote: >> Subject: [PATCH 03/17] board: Introduce xenguest_arm64 board >> >> From: Andrii Anisov >> >> Introduce a minimal Xen guest board running as a virtual machine under Xen >> Project's hypervisor [1], [2]. >> >> Part of the code is ported from Xen mini-os and

Re: [Uboot-stm32] [PATCH] stm32mp1: use the command env info -q in env_check

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/15/20 4:42 PM, Patrick Delaunay wrote: > Activate the new option -q in command "env info" > to avoid unnecessary trace during boot. > > Hi, > > This patch was previous included in V3 serie 158105. > > This patch have dependency with serie 183438 for -q otpion > and with serie

Re: [PATCH 10/17] xen: Port Xen bus driver from mini-os

2020-07-02 Thread Heinrich Schuchardt
On 7/1/20 6:29 PM, Anastasiia Lukianenko wrote: > From: Oleksandr Andrushchenko > > Make required updates to run on u-boot and strip test code. > > Signed-off-by: Anastasiia Lukianenko > Signed-off-by: Oleksandr Andrushchenko > --- > arch/arm/Kconfig | 1 + >

RE: [PATCH 12/17] xen: pvblock: Add initial support for para-virtualized block driver

2020-07-02 Thread Peng Fan
> Subject: Re: [PATCH 12/17] xen: pvblock: Add initial support for > para-virtualized block driver > > On 7/1/20 6:29 PM, Anastasiia Lukianenko wrote: > > From: Anastasiia Lukianenko > > > > Add initial infrastructure for Xen para-virtualized block device. > > This includes compile-time

Re: [Uboot-stm32] [PATCH] configs: stm32mp1: only support SD card after NOR in bootcmd_stm32mp

2020-07-02 Thread Patrice CHOTARD
Hi On 6/16/20 6:30 PM, Patrick Delaunay wrote: > In the boot command used in ST boards, bootcmd_stm32mp, only support > the SD card as second stage, where is found the bootfs with DISTRO. > > Signed-off-by: Patrick Delaunay > --- > > include/configs/stm32mp1.h | 4 +++- > 1 file changed, 3

[PATCH 1/1] test: correct time stamps for UEFI authentication

2020-07-02 Thread Heinrich Schuchardt
A time authenticated variable cannot be overwritten with another value with the same time stamp. So we must ensure the correct sequence of time stamps when generating out test data. Using parameter -t for sign-efi-sig-list gives reproducible results and avoids sleep statements. In

Re: [PATCH] board: st: move type-c stusb1600 controller code in a driver

2020-07-02 Thread Patrice CHOTARD
Hi Patrick On 6/29/20 10:34 AM, Patrick Delaunay wrote: > Migrate the ST Microelectronics STUSB160X Type-C controller code in > a generic I2C driver in st/common, based on Linux one in : > drivers/usb/typec/stusb160x.c > > This patch simplifies the stm32mp1 board code and allows to reuse > this

Re: [PATCH 12/17] xen: pvblock: Add initial support for para-virtualized block driver

2020-07-02 Thread Heinrich Schuchardt
On 7/1/20 6:29 PM, Anastasiia Lukianenko wrote: > From: Anastasiia Lukianenko > > Add initial infrastructure for Xen para-virtualized block device. > This includes compile-time configuration and the skeleton for > the future driver implementation. > Add new class UCLASS_PVBLOCK which is going to

Re: [PATCH 12/17] xen: pvblock: Add initial support for para-virtualized block driver

2020-07-02 Thread Heinrich Schuchardt
On 7/1/20 6:29 PM, Anastasiia Lukianenko wrote: > From: Anastasiia Lukianenko > > Add initial infrastructure for Xen para-virtualized block device. > This includes compile-time configuration and the skeleton for > the future driver implementation. > Add new class UCLASS_PVBLOCK which is going to

Re: [PATCH 09/17] lib: sscanf: add sscanf implementation

2020-07-02 Thread Heinrich Schuchardt
On 7/1/20 6:29 PM, Anastasiia Lukianenko wrote: > From: Andrii Anisov > > Port sscanf implementation from mini-os and introduce new > Kconfig option to enable it: CONFIG_SSCANF. Disable by default. > > Signed-off-by: Andrii Anisov > Signed-off-by: Anastasiia Lukianenko > Signed-off-by:

Re: [PATCH 08/17] linux/compat.h: Add wait_event_timeout macro

2020-07-02 Thread Heinrich Schuchardt
On 7/1/20 6:29 PM, Anastasiia Lukianenko wrote: > From: Oleksandr Andrushchenko > > Add wait_event_timeout - sleep until a condition gets true or a > timeout elapses. > > This is a stripped version of the same from Linux kernel with the > following u-boot specific modifications: > - no wait

[4/5] freescale: ls1043aqds: enable secure system counter

2020-07-02 Thread Biwen Li
From: Biwen Li Enable secure system counter in board_early_init_f for udelay() to fix a bug that always return 0 by timer_read_counter() when boot from qspi(No TFA) Signed-off-by: Biwen Li --- board/freescale/ls1043aqds/ls1043aqds.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-)

Re: [PATCH] omap3_beagle: Finish current outstanding DM migrations

2020-07-02 Thread Derald D. Woods
On Wed, Jul 01, 2020 at 08:50:19PM -0400, Tom Rini wrote: > On Wed, Jul 01, 2020 at 07:17:04PM -0500, Derald D. Woods wrote: > > On Tue, Jun 30, 2020 at 03:02:27PM -0400, Tom Rini wrote: > > > At this point in time we can now remove our legacy code and switch to > > > enabling DM for USB and

[1/5] i2c: mxc: move i2c_early_init_f to common function

2020-07-02 Thread Biwen Li
From: Biwen Li Move i2c_early_init_f to common function to initialize baudrate of i2c Signed-off-by: Biwen Li --- drivers/i2c/mxc_i2c.c | 138 +- 1 file changed, 70 insertions(+), 68 deletions(-) diff --git a/drivers/i2c/mxc_i2c.c

[5/5] freescale: ls1043aqds: drop ifdef CONFIG_SYS_I2C

2020-07-02 Thread Biwen Li
From: Biwen Li - Drop ifdef CONFIG_SYS_I2C to initialize baudrate of i2c - Drop warning of i2c_early_init_f as follows, warning: implicit declaration of function 'i2c_early_init_f'; did you mean 'arch_early_init_r'? [-Wimplicit-function-declaration] Signed-off-by: Biwen Li ---

[3/5] freescale: ls1046aqds: drop ifdef CONFIG_SYS_I2C

2020-07-02 Thread Biwen Li
From: Biwen Li - Drop ifdef CONFIG_SYS_I2C to initialize baudrate of i2c - Drop warning of i2c_early_init_f as follows, warning: implicit declaration of function 'i2c_early_init_f'; did you mean 'arch_early_init_r'? [-Wimplicit-function-declaration] Signed-off-by: Biwen Li ---

<    1   2   3   >