Re: [PATCH] ARM: dts: stm32: Move vdd_io extras into Avenger96 extras

2022-02-02 Thread Patrice CHOTARD
Hi Marek On 2/3/22 02:49, Marek Vasut wrote: > The vdd_io regulator is present only on DHCOR SoM configured for 1V8 IO, > as populated on Avenger96, but not present on 3V3 DHCOR SoM. Move these > extras to Avenger96 u-boot DT extras. > > Fixes: 3919aa1722a ("ARM: dts: stm32: Add DFU support for D

Re: [PATCH v2 2/2] efi_loader: Reset system after CapsuleUpdate on disk

2022-02-02 Thread Masami Hiramatsu
Hi Takahiro, We forgot a simple fact. The warm reset doesn't load the new firmware from media. If this reset is for reloading the new firmware, we anyway need the cold reset :-) (and I can't think of any reason other than this) Thank you, 2022年2月3日(木) 13:34 Masami Hiramatsu : > > Hi Takahiro, >

RE: [EXT] RE: [PATCH v10 02/14] i.MX8M: crypto: updated device tree for supporting DM in SPL

2022-02-02 Thread Gaurav Jain
Hello Andrey > -Original Message- > From: ZHIZHIKIN Andrey > Sent: Tuesday, February 1, 2022 3:15 AM > To: Gaurav Jain ; u-boot@lists.denx.de > Cc: Stefano Babic ; Fabio Estevam ; > Peng Fan ; Simon Glass ; Michael > Walle ; Priyanka Jain ; Ye Li > ; Horia Geanta ; Ji Luo > ; Franck Lenor

Re: [PATCH v2 2/2] efi_loader: Reset system after CapsuleUpdate on disk

2022-02-02 Thread Masami Hiramatsu
Hi Takahiro, 2022年2月3日(木) 10:24 AKASHI Takahiro : > > On Wed, Feb 02, 2022 at 10:54:43PM +0900, Masami Hiramatsu wrote: > > Add a config option to reset system soon after processing capsule update > > on disk. > > We no longer have a new config option :) Oops, that's my fault. > > > This is requ

Re: pull request of u-boot-fsl-qoriq for v2022.04

2022-02-02 Thread Tom Rini
On Wed, Feb 02, 2022 at 06:02:50AM +, Priyanka Jain wrote: > Dear Tom, > > Please find my pull-request for u-boot-fsl-qoriq/master > https://github.com/u-boot/u-boot/pull/107 > > Summary > Update and fixes for ls1088a, FMAN, ls1046ardb, ls1043ardb > sync ls1028ardb u-boot and Linux device-tr

[PATCH] ARM: dts: stm32: Move vdd_io extras into Avenger96 extras

2022-02-02 Thread Marek Vasut
The vdd_io regulator is present only on DHCOR SoM configured for 1V8 IO, as populated on Avenger96, but not present on 3V3 DHCOR SoM. Move these extras to Avenger96 u-boot DT extras. Fixes: 3919aa1722a ("ARM: dts: stm32: Add DFU support for DHCOR recovery") Signed-off-by: Marek Vasut Cc: Patrice

Re: [PATCH v2 2/2] efi_loader: Reset system after CapsuleUpdate on disk

2022-02-02 Thread AKASHI Takahiro
On Wed, Feb 02, 2022 at 10:54:43PM +0900, Masami Hiramatsu wrote: > Add a config option to reset system soon after processing capsule update > on disk. We no longer have a new config option :) > This is required in UEFI specification 2.9 Section 8.5.5 > "Delivery of Capsules via file on Mass Sto

Re: [PATCH v2 2/5] sunxi: move Cortex SMPEN setting into start.S

2022-02-02 Thread Fabio Estevam
Hi Samuel and Andre, On Wed, Feb 2, 2022 at 10:06 PM Samuel Holland wrote: > > ENTRY(cpu_init_cp15) > > + > > +#if CONFIG_IS_ENABLED(ARMV7_SET_CORTEX_SMPEN) > > There is no SPL-prefixed symbol, so you probably want plain old "#if defined" > here instead. Otherwise, this code will always be omit

Re: [PATCH v2 5/5] sunxi-common.h: remove pointless #ifdefs

2022-02-02 Thread Samuel Holland
On 1/31/22 7:41 PM, Andre Przywara wrote: > Remove some pointless #ifdefs from this file, as there are quite too > many of them already. > > Some definitions don't really hurt to have in any case, so remove the > pointless CONFIG_MMC guard around CONFIG_MMC_SUNXI_SLOT. > > The BOARD_SIZE_LIMIT ap

Re: [PATCH v2 2/5] sunxi: move Cortex SMPEN setting into start.S

2022-02-02 Thread Samuel Holland
On 1/31/22 7:41 PM, Andre Przywara wrote: > According to their TRMs, Cortex ARMv7 CPUs with SMP support require the > ACTLR.SMPEN bit to be set as early as possible, before any cache or TLB > maintenance operations are done. As we do those things still in start.S, > we need to move the SMPEN bit se

Re: Problem IMX8MN booting legacy kernel and mipi display

2022-02-02 Thread Michael Nazzareno Trimarchi
Hi On Wed, Feb 2, 2022 at 4:54 PM Tim Harvey wrote: > > On Wed, Feb 2, 2022 at 5:04 AM Michael Nazzareno Trimarchi > wrote: > > > > Hi Adam > > > > On Wed, Feb 2, 2022 at 2:02 PM Adam Ford wrote: > > > > > > On Wed, Feb 2, 2022 at 6:24 AM Michael Nazzareno Trimarchi > > > wrote: > > > > > > >

[PATCH] core: devres: don't use devres code when CONFIG_DEVRES is not defined

2022-02-02 Thread Angus Ainslie
Put guards around the devres code so that it isn't compiled during the SPL. Signed-off-by: Angus Ainslie --- drivers/core/devres.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/core/devres.c b/drivers/core/devres.c index 313ddc7089..92a237c64c 100644 --- a/driver

[PATCH 1/2] usb: dwc3: dwc3-generic: check the parent nodes

2022-02-02 Thread Angus Ainslie
The kernel devicetree has definitions for port and hub nodes as subnodes to the USB devices. These subnodes don't contain all of the data required to properly configure the dwc3. Check the parent nodes if the data is not in the port/hub node. Here's an example from the librem5 kernel dts file &us

[PATCH 2/2] usb: dwc3: core: stop the core when it's removed

2022-02-02 Thread Angus Ainslie
If u-boot doesn't stop the core when it's finished with it then linux can't find it. Signed-off-by: Angus Ainslie --- drivers/usb/dwc3/core.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index ce1c0e88c2..b592a487e0 100644 --- a/d

[PATCH 0/2] Fixes for the dwc3 driver

2022-02-02 Thread Angus Ainslie
dwc3 driver fixes to work better with the linux kernel. Angus Ainslie (2): usb: dwc3: dwc3-generic: check the parent nodes usb: dwc3: core: stop the core when it's removed drivers/usb/dwc3/core.c | 9 + drivers/usb/dwc3/dwc3-generic.c | 25 - 2 files

[PATCH] mach-imx: iomux-v3: add a define for the SION bit

2022-02-02 Thread Angus Ainslie
SION (Software Input On Field) - force the select mode input path Signed-off-by: Angus Ainslie --- arch/arm/include/asm/mach-imx/iomux-v3.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/mach-imx/iomux-v3.h b/arch/arm/include/asm/mach-imx/iomux-v3.h index 9330a32fe9..2

Re: Raw Kernel Image Support for Falcon Mode Boot Via SPI Devices

2022-02-02 Thread Nathan Barrett-Morrison
Hi Tom, I've attached v2 of this patch. I've also confirmed again that the offending lines are entirely unnecessary and amended the patch to delete them instead. Sincerely, Nathan On Mon, Jan 31, 2022 at 10:23 AM Tom Rini wrote: > On Mon, Jan 31, 2022 at 10:16:08AM -0500, Nathan Barrett-Morri

Re: Falcon Mode Support For Uncompressed Kernel Images

2022-02-02 Thread Nathan Barrett-Morrison
Hi Tom, I've attached version 2 of the patch. I believe this should adhere more closely to your suggestions. Keep in mind, CONFIG_IS_ENABLED will not work for checking CMD_BOOTI/CMD_BOOTZ in this case, as there is no CONFIG_SPL_CMD_BOOTx. So, I'm just directly checking if it's defined instead.

[PATCH] adc: rockchip-saradc: add support for getting reference voltage value

2022-02-02 Thread Peter Cai
Mirroring commit 97ab802aa36f ("adc: meson-saradc: add support for getting reference voltage value") for meson-saradc, this adds support for getting the "vref-supply" regulator and register it as the ADC's reference voltage regulator, so clients can translate sampled ADC values to voltage. Signed-

Re: i.MX8M Mini Hangs at ATF when booting from USB

2022-02-02 Thread Adam Ford
On Wed, Feb 2, 2022 at 12:42 PM Tom Rini wrote: > > On Wed, Feb 02, 2022 at 02:45:44PM -0300, Fabio Estevam wrote: > > Hi Marcel, > > > > [Adding Tom and Marek] > > > > On Wed, Feb 2, 2022 at 2:40 PM Marcel Ziswiler > > wrote: > > > > > > The blocker to getting non-dm-spl-usb support for IMX8M ap

Re: i.MX8M Mini Hangs at ATF when booting from USB

2022-02-02 Thread Tom Rini
On Wed, Feb 02, 2022 at 02:45:44PM -0300, Fabio Estevam wrote: > Hi Marcel, > > [Adding Tom and Marek] > > On Wed, Feb 2, 2022 at 2:40 PM Marcel Ziswiler > wrote: > > > > The blocker to getting non-dm-spl-usb support for IMX8M appears to be > > > the base addresses and instead of adding more of

[PATCH v1 1/4] misc: k3_esm: Add functionality to set and route error events within K3SoC

2022-02-02 Thread Hari Nagalla
Add functionality to enable, set priority to the input events and to route to MCU ESM. On AM64x/AM62x devices, it is possible to route Main ESM0 error events to MCU ESM. When these error events are routed to MCU ESM high output, it can trigger the reset logic to reset the device, when CTRLMMR_MCU_R

[PATCH v1 3/4] arch: arm: mach-k3: am642_init: Probe ESM nodes

2022-02-02 Thread Hari Nagalla
On AM64x devices, it is possible to route Main ESM0 error events to MCU ESM. MCU ESM high error output can trigger the reset logic to reset the device. So, for these devices we expect two ESM device nodes in the device tree, one for Main ESM and the another MCU ESM in the device tree. When these E

[PATCH v1 4/4] configs: am64x_evm_r5_defconfig: Add support for ESM

2022-02-02 Thread Hari Nagalla
Enable ESM driver for AM64x R5 SPL/u-boot builds. Signed-off-by: Hari Nagalla --- configs/am64x_evm_r5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am64x_evm_r5_defconfig b/configs/am64x_evm_r5_defconfig index 61138dd1a9..e29e99c2d1 100644 --- a/configs/am64x_evm_r5_defc

[PATCH v1 2/4] arm: dts: k3-am64: Add support for ESM device nodes

2022-02-02 Thread Hari Nagalla
Enable acces to ESM0 configuration space and add Main ESM0 and MCU ESM nodes to the AM64 device tree. Signed-off-by: Hari Nagalla --- arch/arm/dts/k3-am64.dtsi| 1 + arch/arm/dts/k3-am642-r5-evm.dts | 19 +++ arch/arm/dts/k3-am642-r5-sk.dts | 19 +++ 3 f

[PATCH v1 0/4] Add ESM driver support for AM64x R5

2022-02-02 Thread Hari Nagalla
AM64x devices have a main ESM and a MCU ESM. The ESM driver enables routing of the error events from various sources to different processors or to reset hardware logic. Only the MCU ESM's high output can trigger reset logic. The main RTI0 WWDT output can be routed to the MCU highoutput to trigger r

RE: [PATCH 0/5] Add ESM driver support for AM64x R5

2022-02-02 Thread Nagalla, Hari
Sorry.. The patches are being re-submitted after rebasing. Thanks -Original Message- From: U-Boot On Behalf Of Nagalla, Hari Sent: Wednesday, February 2, 2022 11:10 AM To: u-boot@lists.denx.de Cc: Menon, Nishanth Subject: [PATCH 0/5] Add ESM driver support for AM64x R5 AM64x devices ha

[PATCH] button: adc: set state to pressed when the voltage is closest to nominal

2022-02-02 Thread Peter Cai
In the Linux implementation of adc-keys (drivers/input/keyboard/adc-keys.c), `press-threshold-microvolt` is not really interpreted as a threshold, but rather as the "nominal voltage" of the button. When the voltage read from the ADC is closest to a button's `press-threshold-microvolt`, the button i

[PATCH 0/5] Add ESM driver support for AM64x R5

2022-02-02 Thread Hari Nagalla
AM64x devices have a main ESM and a MCU ESM. The ESM driver enables routing of the error events from various sources to different processors or to reset hardware logic. Only the MCU ESM's high output can trigger reset logic. The main RTI0 WWDT output can be routed to the MCU highoutput to trigger r

[PATCH] pstore: Do not fail if a reserved-memory node already exists

2022-02-02 Thread Detlev Casanova
The pstore command tries to create a reserved-memory node but fails if it is already present with: Add 'reserved-memory' node failed: FDT_ERR_EXISTS This patch creates the node only if it does not exist and adapts the reg values sizes depending on already present #address-cells and #size-cell

Re: i.MX8M Mini Hangs at ATF when booting from USB

2022-02-02 Thread Fabio Estevam
Hi Marcel, [Adding Tom and Marek] On Wed, Feb 2, 2022 at 2:40 PM Marcel Ziswiler wrote: > > The blocker to getting non-dm-spl-usb support for IMX8M appears to be > > the base addresses and instead of adding more of them to imx-regs.h we > > need to get them from DT via of_platdata which nobody

Re: i.MX8M Mini Hangs at ATF when booting from USB

2022-02-02 Thread Marcel Ziswiler
Hi Tim et al. On Wed, 2022-02-02 at 08:27 -0800, Tim Harvey wrote: > On Wed, Feb 2, 2022 at 3:36 AM Adam Ford wrote: [snip] > > To give some numbers to the SPL size issue here is what I've found: > - lpddr4 dram config structs are about 3K each (I know I have 3 of > them currently in my IMX8MM

Re: [PATCH v1] mmc: fsl_esdhc_imx: fix watermark level in dma

2022-02-02 Thread Fabio Estevam
On Mon, Jan 31, 2022 at 10:44 PM Fabio Estevam wrote: > > Hi Marcel, > > On Mon, Jan 31, 2022 at 7:08 PM Marcel Ziswiler wrote: > > > > From: Marcel Ziswiler > > > > Seems that we need the waterlevel setting not only for PIO mode as > > without this at least the i.MX 8M Mini won't boot anymore w

Re: i.MX8M Mini Hangs at ATF when booting from USB

2022-02-02 Thread Tim Harvey
On Wed, Feb 2, 2022 at 3:36 AM Adam Ford wrote: > > On Mon, Jan 31, 2022 at 2:48 PM Adam Ford wrote: > > > > On Mon, Jan 31, 2022 at 2:45 PM Michael Nazzareno Trimarchi > > wrote: > > > > > > Hi > > > > > > On Mon, Jan 31, 2022 at 9:34 PM Adam Ford wrote: > > > > > > > > On Mon, Jan 31, 2022 at

Re: [PATCH v4 0/2] Add support of the FXL6408 GPIO expander

2022-02-02 Thread Marcel Ziswiler
Hi guys On Sun, 2021-11-21 at 18:05 +0200, Oleksandr Suvorov wrote: > > Add support of the Fairchild's FXL6408 i2c gpio expander and enable > this driver for Toradex Colibri iMX8QXP SoM. Any progress in applying this patch series? I just applied it again on today's master and it still cleanly a

Re: [PATCH v2] arm: dts: imx8mq kernel dts updates

2022-02-02 Thread Fabio Estevam
Hi Angus, On Wed, Feb 2, 2022 at 12:31 PM Angus Ainslie wrote: > > Update to the 5.16 imx8mq dts files and dt bindings > > Changes since v1: > > Dropped rfkill.h that is not in linux mainline yet. Nit: the "Changes since v1" text should go after the --- line. Reviewed-by: Fabio Estevam

Re: Problem IMX8MN booting legacy kernel and mipi display

2022-02-02 Thread Tim Harvey
On Wed, Feb 2, 2022 at 5:04 AM Michael Nazzareno Trimarchi wrote: > > Hi Adam > > On Wed, Feb 2, 2022 at 2:02 PM Adam Ford wrote: > > > > On Wed, Feb 2, 2022 at 6:24 AM Michael Nazzareno Trimarchi > > wrote: > > > > > > Hi all > > > > > > I have now able to pack those combination and all of them

[PATCH v2] arm: dts: imx8mq kernel dts updates

2022-02-02 Thread Angus Ainslie
Update to the 5.16 imx8mq dts files and dt bindings Changes since v1: Dropped rfkill.h that is not in linux mainline yet. Signed-off-by: Angus Ainslie --- arch/arm/dts/imx8mq.dtsi | 203 -- include/dt-bindings/interconnect/imx8mq.h | 48 + 2 files chan

[PATCH v2 0/3] add TCB driver for sama5d2

2022-02-02 Thread Clément Léger
When booting under OP-TEE, the SYSC is secured which means the PIT is also not accessible by non-secure world. The TCB 0 however is always available for non-secure world and thus can be used. This series add a TCB driver and enables it in sama5d2 configs. --- Changes in v2: - Reworked driver to u

[PATCH v2 1/3] timer: atmel_tcb_timer: add atmel_tcb driver

2022-02-02 Thread Clément Léger
Add a driver for the timer counter block that can be found on sama5d2. This driver will be used when booting under OP-TEE since the pit timer which is part of the SYSC is secured. Channel 1 & 2 are configured to be chained together which allows to have a 64bits counter. Signed-off-by: Clément Lége

[PATCH v2 3/3] configs: sama5d2: enable option CONFIG_ATMEL_TCB_TIMER

2022-02-02 Thread Clément Léger
This will allow using the TCB timer instead of the PIT one when running under OP-TEE. Signed-off-by: Clément Léger --- configs/sama5d2_icp_mmc_defconfig| 1 + configs/sama5d2_ptc_ek_mmc_defconfig | 1 + configs/sama5d2_ptc_ek_nandflash_defconfig | 1 + configs/sama5d2_xplai

[PATCH v2 2/3] dts: sama5d2: add TCB node

2022-02-02 Thread Clément Léger
Add the device-tree node to describe the TCB timer. Signed-off-by: Clément Léger --- arch/arm/dts/sama5d2.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/dts/sama5d2.dtsi b/arch/arm/dts/sama5d2.dtsi index 038cd73c03..fc6a4fbe4d 100644 --- a/arch/arm/dts/sama5d2

Re: [PATCH 2/2] common: drop CONFIG_SYS_RESET_ADDR

2022-02-02 Thread thomas
On 2022-01-31 07:20, Ovidiu Panait wrote: There are no boards that define CONFIG_SYS_RESET_ADDR, so drop the remaining comments referencing it and also the config_whitelist.txt entry. Signed-off-by: Ovidiu Panait --- include/configs/10m50_devboard.h | 9 - include/configs/3c120_devb

Device Tree Overlays and FIT Images - Are they supported together fully?

2022-02-02 Thread Westermann, Oliver
Hey, We're supporting a device that has some hardware variants. As those variants can be of A different kinds on B different interfaces, we end up with A*B = N different hardware variations. Currently we have N device trees in the FIT image, but we noticed that it doesn't scale anymore: Any new

Re: [PATCH 7/8] Convert CONFIG_SCSI_AHCI_PLAT et al to Kconfig

2022-02-02 Thread Stefan Roese
On 1/31/22 15:49, Simon Glass wrote: This converts the following to Kconfig: CONFIG_SCSI_AHCI_PLAT CONFIG_SYS_SCSI_MAX_SCSI_ID CONFIG_SYS_SCSI_MAX_LUN CONFIG_SYS_SATA_MAX_DEVICE Drop CONFIG_SCSI for everything except the sandbox build. We only need one build for tests. Signed-of

[PATCH v2 2/2] efi_loader: Reset system after CapsuleUpdate on disk

2022-02-02 Thread Masami Hiramatsu
Add a config option to reset system soon after processing capsule update on disk. This is required in UEFI specification 2.9 Section 8.5.5 "Delivery of Capsules via file on Mass Storage device" as; In all cases that a capsule is identified for processing the system is restarted after caps

[PATCH v2 1/2] efi_loader: use efi_update_capsule_firmware() for capsule on disk

2022-02-02 Thread Masami Hiramatsu
Since the efi_update_capsule() represents the UpdateCapsule() runtime service, it has to handle the capsule flags and update ESRT. However, the capsule-on-disk doesn't need to care about such things. Thus, the capsule-on-disk should use the efi_capsule_update_firmware() directly instead of calling

[PATCH v2 0/2] EFI: Reset system after capsule-on-disk

2022-02-02 Thread Masami Hiramatsu
Hi, Here is the 3rd version of the reset after capsule-on-disk. This version updates the patch description and use do_reset() and halt or reset_cpu() if available, according to Takahiro and Sughosh's comment. The reset after completing the capsule-on-disk is stated in the UEFI specification 2.9,

Re: Problem IMX8MN booting legacy kernel and mipi display

2022-02-02 Thread Michael Nazzareno Trimarchi
Hi Adam On Wed, Feb 2, 2022 at 2:02 PM Adam Ford wrote: > > On Wed, Feb 2, 2022 at 6:24 AM Michael Nazzareno Trimarchi > wrote: > > > > Hi all > > > > I have now able to pack those combination and all of them look ok > > > > - mainline uboot > > - optee 3.15.0 > > - atf 2.5 > > - mainline kernel

Re: Problem IMX8MN booting legacy kernel and mipi display

2022-02-02 Thread Adam Ford
On Wed, Feb 2, 2022 at 6:24 AM Michael Nazzareno Trimarchi wrote: > > Hi all > > I have now able to pack those combination and all of them look ok > > - mainline uboot > - optee 3.15.0 > - atf 2.5 > - mainline kernel > > - mainline uboot > - optee 3.15.0 > - imx-atf rel_imx_5.4.70_2.3.2 > - Linux

[PATCH] serial-uclass: fix build warning

2022-02-02 Thread Heiko Schocher
if CONFIG_DM_STDIO is defined but SERIAL_PRESENT not, gcc drops warnings for serial_stub_* functions that they are defined but not used. Fix it. Signed-off-by: Heiko Schocher --- azure build is clean https://dev.azure.com/hs0298/hs/_build/results?buildId=78&view=results drivers/serial/serial-u

[PATCH] serial: remove nulldev_serial_input

2022-02-02 Thread Heiko Schocher
nulldev_serial_input is static and not used in this file, so remove it. Signed-off-by: Heiko Schocher --- azure build is clean https://dev.azure.com/hs0298/hs/_build/results?buildId=78&view=results drivers/serial/serial_nulldev.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/s

Problem IMX8MN booting legacy kernel and mipi display

2022-02-02 Thread Michael Nazzareno Trimarchi
Hi all I have now able to pack those combination and all of them look ok - mainline uboot - optee 3.15.0 - atf 2.5 - mainline kernel - mainline uboot - optee 3.15.0 - imx-atf rel_imx_5.4.70_2.3.2 - Linux rel_imx_5.4.70_2.3.2 I have a setup where I can test some peripherals. I can run an optee t

[PATCH] stm32mp: psci: Implement PSCI system suspend and DRAM SSR

2022-02-02 Thread Marek Vasut
Implement PSCI system suspend and placement of DRAM into SSR while the CPUs are in suspend. This saves non-trivial amount of power in suspend, on 2x W632GU6NB-15 ~710mW. Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard --- arch/arm/mach-stm32mp/include/mach/stm32.h | 3 +

Re: i.MX8M Mini Hangs at ATF when booting from USB

2022-02-02 Thread Adam Ford
On Mon, Jan 31, 2022 at 2:48 PM Adam Ford wrote: > > On Mon, Jan 31, 2022 at 2:45 PM Michael Nazzareno Trimarchi > wrote: > > > > Hi > > > > On Mon, Jan 31, 2022 at 9:34 PM Adam Ford wrote: > > > > > > On Mon, Jan 31, 2022 at 2:25 PM Michael Nazzareno Trimarchi > > > wrote: > > > > > > > > HI A

Re: [PATCH v4] sf: Query write-protection status before operating the flash

2022-02-02 Thread Jan Kiszka
On 02.02.22 10:38, Jan Kiszka wrote: > On 02.02.22 09:21, Michael Walle wrote: >> Am 2022-02-02 07:35, schrieb Jan Kiszka: >>> From: Jan Kiszka >>> >>> Do not suggest successful operation if a flash area to be changed is >>> actually locked, thus will not execute the request. Rather report an >>>

Re: [PATCH v4] sf: Query write-protection status before operating the flash

2022-02-02 Thread Michael Walle
Am 2022-02-02 10:38, schrieb Jan Kiszka: On 02.02.22 09:21, Michael Walle wrote: Am 2022-02-02 07:35, schrieb Jan Kiszka: From: Jan Kiszka Do not suggest successful operation if a flash area to be changed is actually locked, thus will not execute the request. Rather report an error and bail o

[PATCH 3/3] configs: sama5d2: enable option CONFIG_ATMEL_TCB_TIMER

2022-02-02 Thread Clément Léger
This will allow using the TCB timer instead of the PIT one when running under OP-TEE. Signed-off-by: Clément Léger --- configs/sama5d2_icp_mmc_defconfig| 1 + configs/sama5d2_ptc_ek_mmc_defconfig | 1 + configs/sama5d2_ptc_ek_nandflash_defconfig | 1 + configs/sama5d2_xplai

[PATCH 2/3] dts: sama5d2: add TCB node

2022-02-02 Thread Clément Léger
Add the device-tree node to describe the TCB timer. Signed-off-by: Clément Léger --- arch/arm/dts/sama5d2.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/sama5d2.dtsi b/arch/arm/dts/sama5d2.dtsi index 038cd73c03..c03a9d423c 100644 --- a/arch/arm/dts/sama5d2.dtsi +++ b

[PATCH 0/3] add TCB driver for sama5d2

2022-02-02 Thread Clément Léger
When booting under OP-TEE, the SYSC is secured which means the PIT is also not accessible by non-secure world. The TCB 0 however is always available for non-secure world and thus can be used. This series add a TCB driver and enables it in sama5d2 configs. Clément Léger (3): timer: atmel_tcb_time

[PATCH 1/3] timer: atmel_tcb_timer: add atmel_tcb driver

2022-02-02 Thread Clément Léger
Add a driver for the timer counter block that can be found on sama5d2. This driver will be used when booting under OP-TEE since the pit timer which is part of the SYSC is secured. Channel 1 & 2 are configured to be chained together which allows to have a 64bits counter. Signed-off-by: Clément Lége

Re: [PATCH v4] sf: Query write-protection status before operating the flash

2022-02-02 Thread Jan Kiszka
On 02.02.22 09:21, Michael Walle wrote: > Am 2022-02-02 07:35, schrieb Jan Kiszka: >> From: Jan Kiszka >> >> Do not suggest successful operation if a flash area to be changed is >> actually locked, thus will not execute the request. Rather report an >> error and bail out. That's way more user-frie

RE: [PATCH v2] tools: mkimage: Call verify_header after writing image to disk

2022-02-02 Thread Priyanka Jain
>-Original Message- >From: Tom Rini >Sent: Saturday, January 22, 2022 10:05 PM >To: Pali Rohár ; Alison Wang ; >Priyanka Jain ; Mingkai Hu ; >Rajesh Bhagat >Cc: Simon Glass ; Alexandru Gagniuc >; Yann Dirson ; Stefan >Roese ; Marek Behún ; u- >b...@lists.denx.de >Subject: Re: [PATCH v2

Re: [PATCH v2 1/2] efi_loader: Avoid using efi_update_capsule() from update capsule on disk

2022-02-02 Thread Sughosh Ganu
hi Masami, On Wed, 2 Feb 2022 at 12:33, Masami Hiramatsu wrote: > > Hi Sughosh, > > 2022年2月2日(水) 14:35 Sughosh Ganu : > > > > hi Masami, > > > > On Wed, 2 Feb 2022 at 05:39, Masami Hiramatsu > > wrote: > > > > > > Hi Sughosh, > > > > > > Could you tell me why do you need to do the FWU code in th

Re: [PATCH v4] sf: Query write-protection status before operating the flash

2022-02-02 Thread Michael Walle
Am 2022-02-02 07:35, schrieb Jan Kiszka: From: Jan Kiszka Do not suggest successful operation if a flash area to be changed is actually locked, thus will not execute the request. Rather report an error and bail out. That's way more user-friendly than asking them to manually check for this case.