On Sun, Apr 21, 2024 at 11:48 PM Igor Opaniuk wrote:
>
> Add additional check for buffer size when reading out persistent
> storage value and provide back actual value size.
>
> Signed-off-by: Igor Opaniuk
Reviewed-by: Oleksandr Suvorov
> ---
>
> drivers/tee/sandbo
iple of 2MB when
> CONFIG_ARMV7_LPAE=y.
>
> Fixes: 3fa914af82("arm: qemu: implement enable_caches()")
> Signed-off-by: Igor Opaniuk
>
Reviewed-by: Oleksandr Suvorov >
> ---
>
> Changes in v2:
> - Adjust commit message, add more details
>
> board/emu
27;
Fixes: c0f037f6a2a ("mach-imx: bootaux: elf firmware support")
Signed-off-by: Oleksandr Suvorov
---
Changes in v2:
- select LIB_ELF unconditionally
arch/arm/mach-imx/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconf
Hi Tom,
On Sun, Aug 27, 2023 at 2:50 AM Tom Rini wrote:
>
> On Sat, Aug 26, 2023 at 06:16:36PM +0300, Oleksandr Suvorov wrote:
> > Hi Heinrich,
> >
> > On Sat, Aug 26, 2023 at 4:46 PM Heinrich Schuchardt
> > wrote:
> > >
> > > On 8/26/23 15
Hi Stefan,
On Mon, Aug 28, 2023 at 5:30 PM Stefan Roese wrote:
>
> Hi Oleksandr,
>
> On 8/28/23 15:23, Oleksandr Suvorov wrote:
> > Hi Stefan,
> >
> > On Thu, Aug 24, 2023 at 2:24 PM Stefan Roese wrote:
> >>
> >> On 8/23/23 14:00, Oleksandr
Hi Stefan,
On Thu, Aug 24, 2023 at 2:24 PM Stefan Roese wrote:
>
> On 8/23/23 14:00, Oleksandr Suvorov wrote:
> > Add SPL_HW_WATCHDOG Kconfig symbol which can be used to enable
> > non-WDT hardware watchdog in SPL.
>
> Hmmm, my hope / plan was to completely drop HW_WATCHD
Hi Heinrich,
On Sat, Aug 26, 2023 at 4:46 PM Heinrich Schuchardt wrote:
>
> On 8/26/23 15:24, Oleksandr Suvorov wrote:
> > If CMD_ELF disabled and IMX_BOOTAUX enabled, the u-boot building ends
> > up with a linking error [1]. Select LIB_ELF for all cases when
> > valid_el
c:108: undefined reference to `valid_elf_image'
Fixes: c0f037f6a2a ("mach-imx: bootaux: elf firmware support")
Signed-off-by: Oleksandr Suvorov
---
arch/arm/mach-imx/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index d94b
all modes, returning
NOWHERE when no valid mode is found.
Signed-off-by: Ricardo Salveti
Co-developed-by: Oleksandr Suvorov
Signed-off-by: Oleksandr Suvorov
---
arch/arm/mach-imx/imx8ulp/soc.c | 28
1 file changed, 12 insertions(+), 16 deletions(-)
diff --git a
From: Ricardo Salveti
This reverts commit c5b68ef8af3c2f515c1f5b8d63a69359a85d753b.
CONFIG_OPTEE_TZDRAM_SIZE is used by imx6-based SoCs as well. Move the
option back.
Signed-off-by: Ricardo Salveti
Signed-off-by: Oleksandr Suvorov
---
arch/arm/mach-imx/mx7/Kconfig | 8
lib/optee
On Fri, Aug 25, 2023 at 1:39 PM Marek Vasut wrote:
>
> On 8/25/23 12:27, Oleksandr Suvorov wrote:
> > On Wed, Aug 23, 2023 at 9:29 PM Marek Vasut wrote:
> >>
> >> On 8/23/23 20:21, Oleksandr Suvorov wrote:
> >>> In the usb/dwc3-layerscape driver the f
The original logic always enables USB_DR_MODE_HOST operation mode in
dwc3_layerscape_bind() in u-boot. Prevent choosing USB_DR_MODE_HOST
operation mode if USB_HOST is not enabled.
Fixes: 2b0b51d0bed ("usb: dwc3: add layerscape support")
Signed-off-by: Oleksandr Suvorov
---
Changes in
In the usb/dwc3-layerscape driver the first option should be renamed
to the latter as well. Do it.
Fix original logic in dwc3_layerscape_bind() - do not enable
Fixes: 333e4a621df ("Rename SPL_USB_HOST_SUPPORT to SPL_USB_HOST")
Signed-off-by: Oleksandr Suvorov
---
(no change
On Wed, Aug 23, 2023 at 9:29 PM Marek Vasut wrote:
>
> On 8/23/23 20:21, Oleksandr Suvorov wrote:
> > In the usb/dwc3-layerscape driver the first option should be renamed
> > to the latter as well. Do it.
> >
> > Fixes: 333e4a621df ("Rename SPL_USB_HOST_SUPPORT
In the usb/dwc3-layerscape driver the first option should be renamed
to the latter as well. Do it.
Fixes: 333e4a621df ("Rename SPL_USB_HOST_SUPPORT to SPL_USB_HOST")
Signed-off-by: Oleksandr Suvorov
---
Changes in v2:
- [asked by Tom Rini] shrink the code using CONFIG_IS_ENABLED()
d
HAS_CAAM should be enabled for all architecture support it. Whereas
FSL_CAAM enables a driver for a device which may be managed by
another system, like OP-TEE. Allow disabling u-boot FSL CAAM driver
on systems with CAAM to prevent access conflicts.
Signed-off-by: Oleksandr Suvorov
---
arch/arm
mmc_bind() in mmc-uclass.c calls blk_create_devicef() which is
defined in blk-uclass.c, so SPL_BLK is required by SPL_DM_MMC.
Implicitly select SPL_BLK for SPL_DM_MMC.
Signed-off-by: Oleksandr Suvorov
---
drivers/mmc/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mmc
If one of SHA* algorithms is disabled in u-boot, its code is not
included in SPL even if a given SHA* option is enabled in SPL. Fix
this.
Fixes: 603d15a572d ("spl: cypto: Bring back SPL_ versions of SHA")
Signed-off-by: Oleksandr Suvorov
---
lib/Makefile | 6 +++---
1 file
In the usb/dwc3-layerscape driver the first option should be renamed
to the latter as well. Do it.
Fixes: 333e4a621df ("Rename SPL_USB_HOST_SUPPORT to SPL_USB_HOST")
Signed-off-by: Oleksandr Suvorov
---
drivers/usb/dwc3/dwc3-layerscape.c | 4 ++--
1 file changed, 2 insertions(+), 2
Add SPL_HW_WATCHDOG Kconfig symbol which can be used to enable
non-WDT hardware watchdog in SPL.
Co-developed-by: Igor Opaniuk
Signed-off-by: Igor Opaniuk
Signed-off-by: Oleksandr Suvorov
---
Changes in v2:
- remove mistakenly included unwanted changes
common/spl/Kconfig| 1
On Tue, Aug 22, 2023 at 7:28 PM Fabio Estevam wrote:
>
> Hi Oleksandr,
>
> On Tue, Aug 22, 2023 at 12:53 PM Oleksandr Suvorov
> wrote:
>
> > ddr-1d-imem-fw {
> > - filename = "lpddr4_pmu_train_1d_imem_202006.bin&quo
Add SPL_HW_WATCHDOG Kconfig symbol which can be used to enable
non-WDT hardware watchdog in SPL.
Co-developed-by: Igor Opaniuk
Signed-off-by: Igor Opaniuk
Signed-off-by: Oleksandr Suvorov
---
arch/arm/dts/imx8mp-u-boot.dtsi | 8
common/spl/Kconfig | 1 -
drivers
From: Igor Opaniuk
Move an OEM closing logic to ahab_close() function to be able to use
it directly without calling a u-boot command.
Signed-off-by: Igor Opaniuk
Co-developed-by: Oleksandr Suvorov
Signed-off-by: Oleksandr Suvorov
---
arch/arm/include/asm/arch-imx8/sys_proto.h | 1 +
arch
The make by default cuts off the stdout output from external tools,
so all error messages from the image-host are not shown in a make
output. Besides that, it is a common approach to use stderr stream
for error messages.
Use stderr for all error messages in image-host.
Signed-off-by: Oleksandr
This stub needs to link SPL properly.
Signed-off-by: Oleksandr Suvorov
---
common/spl/spl.c | 8
1 file changed, 8 insertions(+)
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 0062f3f45d9..781858891b9 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -1026,3 +1026,11
From: Ricardo Salveti
Linux microPlatform uses an rngb device in optee-os in boot scheme
SPL -> OPTEE -> U-Boot. To make rngb available for optee-os, enable
it in SPL.
Signed-off-by: Ricardo Salveti
Co-developed-by: Oleksandr Suvorov
Signed-off-by: Oleksandr Suvorov
---
arch/a
All SPL hash algorithm options are collected in lib/Kconfig. Move
SPL_CRC32 there as well.
Signed-off-by: Oleksandr Suvorov
---
Changes in v2:
- add a related commit to the series.
common/spl/Kconfig | 11 ---
lib/Kconfig| 11 +++
2 files changed, 11 insertions(+), 11
ename SPL_MD5_SUPPORT to SPL_MD5")
Signed-off-by: Oleksandr Suvorov
---
(no changes since v1)
common/spl/Kconfig | 12
1 file changed, 12 deletions(-)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index bee231b583a..c66d70e2a99 100644
--- a/common/spl/Kconfig
+++ b/common/s
ename SPL_MD5_SUPPORT to SPL_MD5")
Signed-off-by: Oleksandr Suvorov
---
common/spl/Kconfig | 12
1 file changed, 12 deletions(-)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index bee231b583a..c66d70e2a99 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -561,18 +561,6
: mx7: avoid some initialization if low level is
skipped")
Signed-off-by: Michael Scott
Co-developed-by: Oleksandr Suvorov
Signed-off-by: Oleksandr Suvorov
Reviewed-by: Peng Fan
---
Changes in v3:
- add Reviewed-by from
https://patchwork.ozlabs.org/project/uboot/patch/202109251518
https://github.com/madler/zlib/commit/1eb7682f845ac9e9bf9ae35bbfb3bad5dacbd91d
Fixes: e89516f031d ("zlib: split up to match original source tree")
Signed-off-by: Oleksandr Suvorov
---
lib/zlib/inflate.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/zlib/
NOWHERE when no valid mode is found.
This solution is based on (with added SPL support):
Link: https://lore.kernel.org/all/20211020191626.3648540-1-rica...@foundries.io/
Signed-off-by: Oleksandr Suvorov
---
arch/arm/mach-imx/imx9/soc.c | 28
1 file changed, 12 insertions
On Tue, Jan 24, 2023 at 12:56 PM Simon Glass wrote:
>
> This was added by mistake and renders the function useless. Fix it.
>
> Signed-off-by: Simon Glass
> Fixes: 33c60a38bb9 ("trace: Use notrace for short")
> Reported-by: Stefan Herbrechtsmeier
>
NXP tested imx8mn-ddr4 with firmware version 201810 only. Use this
version for all imx8mn targets with DRAM DDR4.
Fixes: 93c4c0e4dd1 ("arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi")
Signed-off-by: Oleksandr Suvorov
---
arch/arm/dts/imx8mn-u-boot.dtsi | 8
1 fi
On Tue, Jan 10, 2023 at 2:30 PM Jorge Ramirez-Ortiz wrote:
>
> Fix AUTH_BOOT message identifier (s/IMIAGE/IMAGE)
>
> Signed-off-by: Jorge Ramirez-Ortiz
Reviewed-by: Oleksandr Suvorov
> ---
> drivers/firmware/ti_sci.c | 2 +-
> drivers/firmware/ti_sci.h | 2 +-
> 2 fil
The option SHA256_ALGO does not exist. Remove selecting it.
Fixes: 26dd9936574 ("lib: add crypt subsystem")
Signed-off-by: Oleksandr Suvorov
---
lib/crypt/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/crypt/Kconfig b/lib/crypt/Kconfig
index a59d5c7d1d5..22af6834
("configs: add stm32mp13 defconfig")
> Fixes: 17aeb589fa9d ("stm32mp15: remove configs dependency on
> CONFIG_TFABOOT")
>
> Signed-off-by: Jorge Ramirez-Ortiz
Acked-by: Oleksandr Suvorov
> ---
> configs/stm32mp13_defconfig
stm32mp15_trusted_defconfig
> > +++ b/configs/stm32mp15_trusted_defconfig
> > @@ -134,7 +134,6 @@ CONFIG_SPI=y
> > CONFIG_DM_SPI=y
> > CONFIG_STM32_QSPI=y
> > CONFIG_STM32_SPI=y
> > -CONFIG_SYSRESET_PSCI=y
> > CONFIG_TEE=y
> > CONFIG_OPTEE=y
> > # CONFIG_OPTEE_TA_AVB is not set
> > --
> > 2.34.1
> >
--
Best regards
Oleksandr
Oleksandr Suvorov
cryo...@gmail.com
The option SPL_SATA_SUPPORT is renamed to SPL_SATA. Fix the option
name.
Fixes: 73059529b20 ("ata: ahci-pci: Add new option CONFIG_SPL_AHCI_PCI")
Signed-off-by: Oleksandr Suvorov
---
drivers/ata/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ata
From: Michael Scott
Define dfu_alt_info to allow updating SPL/imx-boot and u-boot.itb via
DFU (which is also used by EFI capsule updates).
Signed-off-by: Michael Scott
Signed-off-by: Oleksandr Suvorov
---
include/configs/imx8mn_evk.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a
From: Jorge Ramirez-Ortiz
Enable getting randomness from the tpm command line.
Signed-off-by: Jorge Ramirez-Ortiz
Co-developed-by: Oleksandr Suvorov
Signed-off-by: Oleksandr Suvorov
---
cmd/tpm-v2.c | 36
1 file changed, 36 insertions(+)
diff --git a
Hi Jorge,
On Tue, Aug 16, 2022 at 2:28 PM Jorge Ramirez-Ortiz wrote:
>
> Early instantiation of this I2C device would lock up when being
> probed.
>
> Signed-off-by: Jorge Ramirez-Ortiz
With a small note below,
Acked-by: Oleksandr Suvorov
> ---
> drivers/t
Jorge,
On Mon, Aug 15, 2022 at 2:19 PM Jorge Ramirez-Ortiz wrote:
>
> Sending the stop condition without waiting for TC has been
> found to lock the bus.
>
> Tested accessing the the NXP SE05X I2C device.
"the the" seems like a typo.
With this,
Reviewed-by: Oleksandr
Hi Stefano,
This patchset is superseded by that one
https://patchwork.ozlabs.org/project/uboot/list/?series=312792
On Mon, Jul 11, 2022 at 5:05 PM Oleksandr Suvorov
wrote:
>
> From: Ricardo Salveti
>
> Add a base implementation of mx7ulp SPL config header and soc,
> and changes
From: Ricardo Salveti
Add a base implementation of mx7ulp SPL config header and soc,
and changes in makefiles in order to allow building SPL on mx7ulp
based devices.
Signed-off-by: Ricardo Salveti
Co-developed-by: Oleksandr Suvorov
Signed-off-by: Oleksandr Suvorov
---
Changes in v4
There is a paired to ifdef comment which should include CONFIG_IMX9
as well.
Fixes: 881df6ed84c ("imx: add basic i.MX9 support")
Signed-off-by: Oleksandr Suvorov
---
Changes in v4:
- add a small fix for imx spl.
arch/arm/mach-imx/spl.c | 2 +-
1 file changed, 1 insertion(+),
tchset
https://patchwork.ozlabs.org/project/uboot/list/?series=309021
Changes in v4:
- rebase to the current master
- fix a reference to a non-existent option SPL_MMC_SUPPORT
- add a small fix for imx spl.
Changes in v3:
- rebase the patch to the current codebase
Oleksandr Suvorov (1):
imx: spl:
Please, ignore this patchset - these issues were fixed in another one
just applied.
On Thu, Aug 4, 2022 at 9:16 PM Oleksandr Suvorov
wrote:
>
>
> SPL_MMC_SUPPORT option is still used in few places in spite of
> renaming in the commit 103c5f18069 ("mmc: Rename MMC_SUPPORT to MM
SPL_MMC_SUPPORT is renamed to SPL_MMC in the
commit 103c5f18069 ("mmc: Rename MMC_SUPPORT to MMC")
Fix the name of the option used in TARGET_MX7ULP_COM.
Fixes: ddb56f371a7 ("arm: imx8m: add support for Advantech RSB-3720")
Signed-off-by: Oleksandr Suvorov
---
board/advant
SPL_MMC_SUPPORT is renamed to SPL_MMC in the
commit 103c5f18069 ("mmc: Rename MMC_SUPPORT to MMC")
Fix the name of that option used in TARGET_MX7ULP_COM.
Fixes: 8b71576f384 ("mx7ulp_com: add support for SPL")
Signed-off-by: Oleksandr Suvorov
---
arch/arm/mach-imx/mx7ulp/Kc
SPL_MMC_SUPPORT option is still used in few places in spite of
renaming in the commit 103c5f18069 ("mmc: Rename MMC_SUPPORT to MMC").
This patch set fixes the rest of SPL_MMC_SUPPORT options.
Oleksandr Suvorov (2):
mx7ulp_com: fix obsolete option SPL_MMC_SUPPORT
urce to the AES engine if the FSBL is not
encrypted. This prevents using the BBRAM or eFUSE as the key source
to the AES engine during run-time applications."
Signed-off-by: Adrian Fiergolski
Co-developed-by: Oleksandr Suvorov
Signed-off-by: Oleksandr Suvorov
Tested-by: Adrian Fiergolski
Add supporting new compatible string "u-boot,zynqmp-fpga-ddrauth" to
handle loading authenticated images (DDR).
Based on solution by Jorge Ramirez-Ortiz
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
---
(no changes since v11)
Changes in v11:
- Fix treating an inc
These flags may be used to check whether an FPGA driver is able to
load a particular FPGA bitstream image.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v1)
drivers/fpga/spartan2.c | 2 +-
drivers/fpga/spartan3.c | 2
Check whether the FPGA ZynqMP driver supports the given bitstream
image type.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
Changes in v12:
- exclude all secure-related code if FPGA_LOAD_SECURE is disabled
Changes in v10:
- fix grammar
drivers
Reduce the function code by calling xilinx_pm_request() once only.
Use the same variable bsize_req to store either bstream size in bytes
or an address of bstream size according to a type required by the
firmware version. Remove obsolete debug().
Signed-off-by: Oleksandr Suvorov
Tested-by
Convert taken FPGA image "compatible" string to a binary compatible
flag and pass it to an FPGA driver.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
Changes in v12:
- convert "compatible" to flags only if FPGA_LOAD_SECURE
Add a "compatible" string to binary flag converter, which uses
a callback str2flag() of given FPGA driver if available.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
Changes in v12:
- define the function only if FPGA_LOAD_SECURE enabled
These flags may be used to check whether an FPGA driver is able to
load a particular FPGA bitstream image.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v1)
boot/image-board.c| 4 ++--
cmd/fpga.c| 8
This flag is used to check whether a Xilinx FPGA driver is able to
load a particular FPGA bitstream image.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v1)
drivers/fpga/fpga.c | 2 +-
drivers/fpga/xilinx.c | 2 +-
include
Add a call to convert FPGA "compatible" string to a binary flag.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v1)
drivers/fpga/zynqmppl.c | 11 ++-
include/xilinx.h| 3 +++
2 files changed, 13
Store a set of supported bitstream types in xilinx_desc structure.
It will be used to determine whether an FPGA image is able to be
loaded with a given driver.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v10)
Changes in v10
Function definition arguments should also have identifier names.
Add missed ones to struct xilinx_fpga_op callbacks, unifying code.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v1)
include/xilinx.h | 10 ++
1 file
It allows using this feature without enabling the "fpga loads"
command.
Signed-off-by: Oleksandr Suvorov
Co-developed-by: Adrian Fiergolski
Signed-off-by: Adrian Fiergolski
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v1)
cmd/Kconfig
hanges in v2:
- add function fit_fpga_load() to simplify calls of fpga_load()
from contexts without a compatible attribute.
- move all ZynqMP-specific logic to drivers/fpga/zynqmppl.c
- prepare for passing a "compatible" FDT property to any fpga driver.
Adrian Fiergolski (1):
fpga:
Replace logically correct word in the description.
Fixes: 91a91ff804d ("dm: Add Kconfig options for driver model SPL support")
Signed-off-by: Oleksandr Suvorov
---
drivers/core/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/core/Kconfig b/dr
From: Ricardo Salveti
Add a base implementation of mx7ulp SPL config header and soc,
and changes in makefiles in order to allow building SPL on mx7ulp
based devices.
Signed-off-by: Ricardo Salveti
Co-developed-by: Oleksandr Suvorov
Signed-off-by: Oleksandr Suvorov
---
Changes in v3
I've just realized this only patch was not applied among other
patches of the original patchset "Support SPL for i.MX7ULP".
Please apply this patch as now "include/configs/mx7ulp_com.h"
refers to non-existent "include/configs/imx7ulp_spl.h".
Changes in v3:
- rebase the patch to the current code
Hi Michal,
On Fri, Jul 8, 2022 at 3:43 PM Michal Simek wrote:
>
>
>
> On 7/5/22 21:23, Oleksandr Suvorov wrote:
> > Optimize function code preparing to add secure bitstream types
> > support.
>
> Can you please extend this? I understand what you do below but bet
urce to the AES engine if the FSBL is not
encrypted. This prevents using the BBRAM or eFUSE as the key source
to the AES engine during run-time applications."
Signed-off-by: Adrian Fiergolski
Co-developed-by: Oleksandr Suvorov
Signed-off-by: Oleksandr Suvorov
Tested-by: Adrian Fiergolski
Add supporting new compatible string "u-boot,zynqmp-fpga-ddrauth" to
handle loading authenticated images (DDR).
Based on solution by Jorge Ramirez-Ortiz
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
---
Changes in v11:
- Fix treating an incoming FPGA image with e
Check whether the FPGA ZynqMP driver supports the given bitstream
image type.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v10)
Changes in v10:
- fix grammar;
drivers/fpga/zynqmppl.c | 27 +++
1 file
Optimize function code preparing to add secure bitstream types
support.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v1)
drivers/fpga/zynqmppl.c | 27 +--
1 file changed, 13 insertions(+), 14 deletions
These flags may be used to check whether an FPGA driver is able to
load a particular FPGA bitstream image.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v1)
drivers/fpga/spartan2.c | 2 +-
drivers/fpga/spartan3.c | 2
Convert taken FPGA image "compatible" string to a binary compatible
flag and pass it to an FPGA driver.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v10)
Changes in v10:
- made the message about ignoring legacy
These flags may be used to check whether an FPGA driver is able to
load a particular FPGA bitstream image.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v1)
boot/image-board.c| 4 ++--
cmd/fpga.c| 8
This flag is used to check whether a Xilinx FPGA driver is able to
load a particular FPGA bitstream image.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v1)
drivers/fpga/fpga.c | 2 +-
drivers/fpga/xilinx.c | 2 +-
include
Add a "compatible" string to binary flag converter, which uses
a callback str2flag() of given FPGA driver if available.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v10)
Changes in v10:
- fix mixed types of re
Add a call to convert FPGA "compatible" string to a binary flag.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v1)
drivers/fpga/zynqmppl.c | 9 +
include/xilinx.h| 1 +
2 files changed, 10 insertion
Store a set of supported bitstream types in xilinx_desc structure.
It will be used to determine whether an FPGA image is able to be
loaded with a given driver.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v10)
Changes in v10
Function definition arguments should also have identifier names.
Add missed ones to struct xilinx_fpga_op callbacks, unifying code.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v1)
include/xilinx.h | 10 ++
1 file
It allows using this feature without enabling the "fpga loads"
command.
Signed-off-by: Oleksandr Suvorov
Co-developed-by: Adrian Fiergolski
Signed-off-by: Adrian Fiergolski
Tested-by: Ricardo Salveti
Tested-by: Adrian Fiergolski
---
(no changes since v1)
cmd/Kconfig
function fit_fpga_load() to simplify calls of fpga_load()
from contexts without a compatible attribute.
- move all ZynqMP-specific logic to drivers/fpga/zynqmppl.c
- prepare for passing a "compatible" FDT property to any fpga driver.
Adrian Fiergolski (1):
fpga: zynqmp: support loading
authenticated) and I confirm it
> works.
>
> Regads,
> Adrian
>
> On 12.06.2022 00:06, Oleksandr Suvorov wrote:
> > This patchset introduces support for the authenticated and encrypted
> > FPGA images on ZynqMP boards, besides that introducing common way to
> > pass the
urce to the AES engine if the FSBL is not
encrypted. This prevents using the BBRAM or eFUSE as the key source
to the AES engine during run-time applications."
Signed-off-by: Adrian Fiergolski
Co-developed-by: Oleksandr Suvorov
Signed-off-by: Oleksandr Suvorov
---
Changes in v10:
Add supporting new compatible string "u-boot,zynqmp-fpga-ddrauth" to
handle loading authenticated images (DDR).
Based on solution by Jorge Ramirez-Ortiz
Signed-off-by: Oleksandr Suvorov
---
Changes in v10:
- Support DDR images only if FPGA_LOAD_SECURE enabled.
bo
Check whether the FPGA ZynqMP driver supports the given bitstream
image type.
Signed-off-by: Oleksandr Suvorov
---
Changes in v10:
- fix grammar;
drivers/fpga/zynqmppl.c | 27 +++
1 file changed, 27 insertions(+)
diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga
Optimize function code preparing to add secure bitstream types
support.
Signed-off-by: Oleksandr Suvorov
---
(no changes since v1)
drivers/fpga/zynqmppl.c | 27 +--
1 file changed, 13 insertions(+), 14 deletions(-)
diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga
These flags may be used to check whether an FPGA driver is able to
load a particular FPGA bitstream image.
Signed-off-by: Oleksandr Suvorov
---
(no changes since v1)
drivers/fpga/spartan2.c | 2 +-
drivers/fpga/spartan3.c | 2 +-
drivers/fpga/versalpl.c | 2 +-
drivers/fpga/virtex2.c | 2
These flags may be used to check whether an FPGA driver is able to
load a particular FPGA bitstream image.
Signed-off-by: Oleksandr Suvorov
---
(no changes since v1)
boot/image-board.c| 4 ++--
cmd/fpga.c| 8
common/spl/spl_fit.c | 6 --
drivers/fpga/fpga.c | 5
Convert taken FPGA image "compatible" string to a binary compatible
flag and pass it to an FPGA driver.
Signed-off-by: Oleksandr Suvorov
---
Changes in v10:
- made the message about ignoring legacy compatibe option as debug
common/spl/spl_fit.c | 10 +++---
1 file changed, 7
This flag is used to check whether a Xilinx FPGA driver is able to
load a particular FPGA bitstream image.
Signed-off-by: Oleksandr Suvorov
---
(no changes since v1)
drivers/fpga/fpga.c | 2 +-
drivers/fpga/xilinx.c | 2 +-
include/xilinx.h | 2 +-
3 files changed, 3 insertions(+), 3
Add a "compatible" string to binary flag converter, which uses
a callback str2flag() of given FPGA driver if available.
Signed-off-by: Oleksandr Suvorov
---
Changes in v10:
- fix mixed types of return value;
drivers/fpga/fpga.c | 24
include/fpga.h
Add a call to convert FPGA "compatible" string to a binary flag.
Signed-off-by: Oleksandr Suvorov
---
(no changes since v1)
drivers/fpga/zynqmppl.c | 9 +
include/xilinx.h| 1 +
2 files changed, 10 insertions(+)
diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga/
Store a set of supported bitstream types in xilinx_desc structure.
It will be used to determine whether an FPGA image is able to be
loaded with a given driver.
Signed-off-by: Oleksandr Suvorov
---
Changes in v10:
- move FPGA flags to macros;
- initialize xilinx_desc structs directly, removing
Function definition arguments should also have identifier names.
Add missed ones to struct xilinx_fpga_op callbacks, unifying code.
Signed-off-by: Oleksandr Suvorov
---
(no changes since v1)
include/xilinx.h | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a
It allows using this feature without enabling the "fpga loads"
command.
Signed-off-by: Oleksandr Suvorov
Tested-by: Ricardo Salveti
Co-developed-by: Adrian Fiergolski
Signed-off-by: Adrian Fiergolski
---
(no changes since v1)
cmd/Kconfig | 3 ++-
drivers/fpga/Kconf
nqMP-specific logic to drivers/fpga/zynqmppl.c
- prepare for passing a "compatible" FDT property to any fpga driver.
Adrian Fiergolski (1):
fpga: zynqmp: support loading encrypted bitfiles
Oleksandr Suvorov (12):
fpga: add option for loading FPGA secure bitstreams
fpga: xilinx: a
On Tue, Jun 7, 2022 at 3:11 PM Michal Simek wrote:
>
>
>
> On 6/1/22 10:46, Oleksandr Suvorov wrote:
> > Add a "compatible" string to binary flag converter, which uses
> > a callback str2flag() of given FPGA driver if available.
> >
> > Signed-
;
> Regards,
> Adrian
>
> On 02.06.2022 17:11, Oleksandr Suvorov wrote:
> > Adrian, I don't have access to the ZynqMP hardware for now, so could
> > you please test this patchset?
> >
> > On Wed, Jun 1, 2022 at 11:46 AM Oleksandr Suvorov
> > wrote:
>
1 - 100 of 441 matches
Mail list logo