Re: [PATCH 2/2] mvebu: uDPU: disable non-present peripherals

2022-06-06 Thread Stefan Roese
On 03.06.22 12:53, Robert Marko wrote: uDPU like eDPU does not expose SCSI based peripherals like SATA nor PCI and for sure it does not have the Intel E1000 PCI card. So, like for eDPU remove those from the defconfig. Signed-off-by: Robert Marko Reviewed-by: Stefan Roese Thanks, Stefan -

Re: [PATCH 1/2] mvebu: eDPU: disable SCSI support

2022-06-06 Thread Stefan Roese
On 03.06.22 12:53, Robert Marko wrote: eDPU does not use SCSI nor it has SATA exposed, and commit arm: mvebu: a3720: Set BOOT_TARGET_DEVICES list to enabled peripherals now allows compiling U-boot wihout all of the BOOT_TARGET_DEVICES since not all boards have all of the listed peripherals expose

[PATCH] crypto/fsl: fsl_hash: Fix crash in flush dcache

2022-06-06 Thread Gaurav Jain
wrong end address passed to flush_dcache_range. modified the flush_dache logic for scatter list elements. Fixes: 1919f58a8f (crypto/fsl: fsl_hash: Fix dcache issue in caam_hash_finish) Signed-off-by: Gaurav Jain --- drivers/crypto/fsl/fsl_hash.c | 18 -- 1 file changed, 12 insert

Re: [PATCH] crypto: fsl_hash: Remove unnecessary alignment check in caam_hash()

2022-06-06 Thread Fabio Estevam
Hi Stefan, On Fri, Apr 29, 2022 at 10:35 AM Stefan Roese wrote: > > While working on an LX2160 based board and updating to latest mainline > I noticed problems using the HW accelerated hash functions on this > platform, when trying to boot a FIT Kernel image. Here the resulting > error message: >

RE: [PATCH] arm: dts: ast2600: Add I2C pinctrl

2022-06-06 Thread Ryan Chen
> -Original Message- > From: Joel Stanley > Sent: Thursday, June 2, 2022 11:40 AM > To: Eddie James > Cc: U-Boot Mailing List ; Dylan Hung > ; Billy Tsai ; > ChiaWei Wang ; Simon Glass > > Subject: Re: [PATCH] arm: dts: ast2600: Add I2C pinctrl > > On Wed, 1 Jun 2022 at 16:10, Eddie Jam

[PATCH 6/6] video: Only dcache flush damaged lines

2022-06-06 Thread Alexander Graf
Now that we have a damage area tells us which parts of the frame buffer actually need updating, let's only dcache flush those on video_sync() calls. With this optimization in place, frame buffer updates - especially on large screen such as 4k displays - speed up significantly. Signed-off-by: Alexa

[PATCH 5/6] efi_loader: GOP: Add damage notification on BLT

2022-06-06 Thread Alexander Graf
Now that we have a damage tracking API, let's populate damage done by UEFI payloads when they BLT data onto the screen. Signed-off-by: Alexander Graf Reported-by: Da Xue --- lib/efi_loader/efi_gop.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/lib/efi_loader/efi_gop.c b/lib/

[PATCH 3/6] vidconsole: Add damage notifications to all vidconsole drivers

2022-06-06 Thread Alexander Graf
Now that we have a damage tracking API, let's populate damage done by vidconsole drivers. We try to declare as little memory as damaged as possible, with the exception of rotated screens that I couldn't get my head wrapped around. On those, we revert to the old behavior and mark the full screen as

[PATCH 4/6] video: Add damage notification on bmp display

2022-06-06 Thread Alexander Graf
Let's report the video damage when we draw a bitmap on the screen. This way we can later lazily flush only relevant regions to hardware. Signed-off-by: Alexander Graf Reported-by: Da Xue --- drivers/video/video_bmp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/video_bmp.

[PATCH 1/6] dm: video: Add damage tracking API

2022-06-06 Thread Alexander Graf
We are going to introduce image damage tracking to fasten up screen refresh on large displays. This patch adds damage tracking for up to one rectangle of the screen which is typically enough to hold blt or text print updates. Callers into this API and a reduced dcache flush code path will follow in

[PATCH 2/6] dm: video: Add damage notification on display clear

2022-06-06 Thread Alexander Graf
Let's report the video damage when we clear the screen. This way we can later lazily flush only relevant regions to hardware. Signed-off-by: Alexander Graf Reported-by: Da Xue --- drivers/video/video-uclass.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/video-uclass.c b/d

[PATCH 0/6] Add video damage tracking

2022-06-06 Thread Alexander Graf
This patch set speeds up graphics output on ARM by a factor of 60x. On most ARM SBCs, we keep the frame buffer in DRAM and map it as cached, but need it accessible by the display controller which reads directly from a later point of consistency. Hence, we flush the frame buffer to DRAM on every ch

Re: [PATCH 3/3] spl: Rework and tighten some dependencies

2022-06-06 Thread Tom Rini
On Tue, May 31, 2022 at 12:17:05PM -0400, Tom Rini wrote: > - In a few places, add missing "depends on" that can be implied from the > option name (i.e. SPL_DM_xxx depends on SPL_DM). > - Make less use of "if SPL_xxx ... endif" clauses as most of the time > this reads better as depends on. In

Re: [PATCH 2/3] spl: Rework Kconfig to be more menu driven

2022-06-06 Thread Tom Rini
On Tue, May 31, 2022 at 12:17:04PM -0400, Tom Rini wrote: > Make it so that all of SPL, TPL and VPL are proper menus hidden behind a > gating question. > > Signed-off-by: Tom Rini Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/3] spl: Move all VPL, TPL and PowerPC specific CONFIG options to separate files

2022-06-06 Thread Tom Rini
On Tue, May 31, 2022 at 12:17:03PM -0400, Tom Rini wrote: > - Move all PowerPC (and some shared with Layerscape) options to > common/spl/Kconfig.nxp > - Move all other TPL related options to common/spl/Kconfig.tpl > - Move all VPL related options to common/spl/Kconfig.vpl > > This makes the who

Re: [PATCH 01/20] Convert CONFIG_SPL_STACK to Kconfig

2022-06-06 Thread Tom Rini
On Sun, May 29, 2022 at 12:55:02PM -0400, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_SPL_STACK > > Signed-off-by: Tom Rini For the series, applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 3/3] arm: mvebu: Remove CONFIG_SPL_BOOT_DEVICE

2022-06-06 Thread Tom Rini
On Sun, May 29, 2022 at 11:13:18AM +1200, Chris Packham wrote: > CONFIG_SPL_BOOT_DEVICE was made obsolete by > CONFIG_MVEBU_SPL_BOOT_DEVICE_{SPI,MMC,SATA,UART}. > CONFIG_MVEBU_SPL_BOOT_DEVICE_SPI is the default so existing users of > CONFIG_SPL_BOOT_DEVICE can simply have the option removed. > >

Re: [PATCH 2/3] Convert CONFIG_FIXED_SDHCI_ALIGNED_BUFFER to Kconfig

2022-06-06 Thread Tom Rini
On Sun, May 29, 2022 at 11:13:17AM +1200, Chris Packham wrote: > CONFIG_FIXED_SDHCI_ALIGNED_BUFFER is needed on some Marvell SoCs when > booting from MMC. All existing usages of this have the same value so > make this the default and have the Kconfig option depend on SPL && > MVEBU_SPL_BOOT_DEVICE

Re: [PATCH 1/3] arm: mvebu: Use MVEBU_SPL_BOOT_DEVICE instead of SPL_BOOT_DEVICE

2022-06-06 Thread Tom Rini
On Sun, May 29, 2022 at 11:13:16AM +1200, Chris Packham wrote: > Update the way KWB_CFG_SEC_BOOT_DEV is determined to use > CONFIG_MVEBU_SPL_BOOT_DEVICE_{SPI,MMC} instead of > CONFIG_SPL_BOOT_DEVICE. > > Signed-off-by: Chris Packham > Reviewed-by: Stefan Roese Applied to u-boot/next, thanks!

Re: [PATCH 01/11] m68k: Remove dead code

2022-06-06 Thread Tom Rini
On Thu, May 26, 2022 at 09:41:57AM -0400, Tom Rini wrote: > There are no mcf5227x platforms, remove the CPU code. > > Signed-off-by: Tom Rini For the series, applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/4] Convert CONFIG_SPL_BSS_MAX_SIZE et al to Kconfig

2022-06-06 Thread Tom Rini
On Mon, May 23, 2022 at 03:13:50PM -0400, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_SPL_BSS_MAX_SIZE >CONFIG_SPL_MAX_FOOTPRINT > > Note that the da850evm platforms were violating the "only use one" rule > here, and so now hard-code their BSS limit. > > Signed-off-

Re: [PATCH 1/9] P1010RDB: Remove CONFIG_SPL_NAND_MINIMAL

2022-06-06 Thread Tom Rini
On Wed, May 18, 2022 at 07:47:44PM -0400, Tom Rini wrote: > This symbol is not used anywhere, remove it. > > Signed-off-by: Tom Rini For the series, applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/7] Convert CONFIG_SYS_PBSIZE to Kconfig

2022-06-06 Thread Tom Rini
On Thu, May 12, 2022 at 10:44:01PM -0400, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_SYS_PBSIZE > > Signed-off-by: Tom Rini For the series, applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] armv8: Fix TCR 64-bit writes

2022-06-06 Thread Mark Kettenis
> From: Andre Przywara > Date: Mon, 9 May 2022 17:08:49 +0100 > > The AArch64 TCR_ELx register is a 64-bit register, and many newer > architecture features use bits in the upper half. So far U-Boot was > igorant of those bits, trying to leave them alone. > However, in an effort to set bit 31 to

Re: [PATCH 0/3] Updates for omap3-evm

2022-06-06 Thread Derald Woods
On Mon, Jun 6, 2022 at 10:16 AM Tom Rini wrote: > On Mon, Jun 06, 2022 at 10:09:16AM -0500, Derald Woods wrote: > > On Sun, May 15, 2022 at 10:25 PM Derald D. Woods < > woods.techni...@gmail.com> > > wrote: > > > > > This patch set brings omap3-evm inline with similar boards and improves > > > th

Re: [PATCH] crypto: fsl_hash: Remove unnecessary alignment check in caam_hash()

2022-06-06 Thread Tom Rini
On Mon, Jun 06, 2022 at 07:43:52PM +0200, Rasmus Villemoes wrote: > On 29/04/2022 15.34, Stefan Roese wrote: > > While working on an LX2160 based board and updating to latest mainline > > I noticed problems using the HW accelerated hash functions on this > > platform, when trying to boot a FIT Kern

Re: [PATCH] crypto: fsl_hash: Remove unnecessary alignment check in caam_hash()

2022-06-06 Thread Rasmus Villemoes
On 29/04/2022 15.34, Stefan Roese wrote: > While working on an LX2160 based board and updating to latest mainline > I noticed problems using the HW accelerated hash functions on this > platform, when trying to boot a FIT Kernel image. Here the resulting > error message: > >Using 'conf-freescal

Re: [PATCH 0/3] Updates for omap3-evm

2022-06-06 Thread Tom Rini
On Mon, Jun 06, 2022 at 10:09:16AM -0500, Derald Woods wrote: > On Sun, May 15, 2022 at 10:25 PM Derald D. Woods > wrote: > > > This patch set brings omap3-evm inline with similar boards and improves > > the ability to boot a 'fitImage' using DEFAULT_FIT_TI_ARGS. > > > > Derald D. Woods (3): > >

Re: [PATCH 1/1] CVE-2022-30767: unbounded memcpy with a failed length check

2022-06-06 Thread gerbert
Tom Rini писал 2022-06-06 17:43: On Thu, Jun 02, 2022 at 09:18:42PM +0300, gerbert wrote: This patch tries to fix a CVE-2019-14196 fix In if-condition, where NFSV2_FLAG is checked, memcpy call is performed to transfer a reply data of NFS_FHSIZE size. Since the data field in struct rpc_t st

Re: [PATCH 0/3] Updates for omap3-evm

2022-06-06 Thread Derald Woods
On Sun, May 15, 2022 at 10:25 PM Derald D. Woods wrote: > This patch set brings omap3-evm inline with similar boards and improves > the ability to boot a 'fitImage' using DEFAULT_FIT_TI_ARGS. > > Derald D. Woods (3): > ARM: omap3: evm: Power on MMC when setting up PMIC > ARM: omap3: evm: Comp

Re: [PATCH 1/1] CVE-2022-30767: unbounded memcpy with a failed length check

2022-06-06 Thread Tom Rini
On Thu, Jun 02, 2022 at 09:18:42PM +0300, gerbert wrote: > This patch tries to fix a CVE-2019-14196 fix > > In if-condition, where NFSV2_FLAG is checked, memcpy call is performed > to transfer a reply data of NFS_FHSIZE size. Since the data field in > struct rpc_t structure has the size of (102

[ANN] U-Boot v2022.07-rc4 released

2022-06-06 Thread Tom Rini
Hey all, It's release day and so here's v2022.07-rc4. There were a few more fixes that I had seen that were either regressions or minor and seemingly safe fixes that I've pulled them in. If there are any bug fixes people are aware of that have not yet been applied, please let me know. Now that

Re: [PATCH] doc: update mail author for st-dt.rst

2022-06-06 Thread Tom Rini
On Thu, Jun 02, 2022 at 06:34:49PM +0200, Patrick Delaunay wrote: > Update author email address with the one dedicated to > upstream activities. > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] configs: fsl: add missing SYS_FMAN_FW_ADDR defines

2022-06-06 Thread Tom Rini
On Thu, Jun 02, 2022 at 04:47:09PM +0300, Camelia Groza wrote: > From: Camelia Groza > > Two defconfigs were missed when transitioning the SYS_FMAN_FW_ADDR > symbol to Kconfig. CONFIG_SYS_FMAN_FW_ADDR is currently initialized to > 0 by default on these builds, which prevents the firmware from lo

[PATCH v1 2/2] ARM: stm32: activate OF_LIVE for DHSOM

2022-06-06 Thread Patrick Delaunay
Activate the live DT with CONFIG_OF_LIVE to reduce the DT parsing time. Tested-by: Marek Vasut Signed-off-by: Patrick Delaunay --- Changes in v1: - previously sent as RFC, Tested by Marek http://patchwork.ozlabs.org/project/uboot/list/?series=301157 configs/stm32mp15_dhcom_basic_defconfig |

[PATCH v1 1/2] board: dhelectronics: stm32mp1: convert to livetree

2022-06-06 Thread Patrick Delaunay
Replace call to fdt_*() functions and access to gd->fdt_blob with call to ofnode_*() functions to support a live tree. Tested-by: Marek Vasut Signed-off-by: Patrick Delaunay --- Changes in v1: - previously sent as RFC, Tested by Marek http://patchwork.ozlabs.org/project/uboot/list/?series=301

Re: [PATCH v1] fdt: Add U-Boot version to chosen node

2022-06-06 Thread Tom Rini
On Thu, May 19, 2022 at 04:22:26PM +0200, Francesco Dolcini wrote: > Add a new device tree property "u-boot,version" in the chosen node to > pass the U-Boot version to the operating system. > This can be useful to implement a firmware upgrade procedure from the > operating system. > > Signed-off-

Re: [PATCH 2/8] configs: imx8mm_data_modul_edm_sbc: not select SPL_RAM_DEVICE

2022-06-06 Thread Marek Vasut
On 6/3/22 09:17, Peng Fan (OSS) wrote: From: Peng Fan i.MX8M use FIT image, not RAW image. And to support binman symbols, u_boot_any could be optimized if RAW image is not selected, otherwise there will be build failure. So not select SPL_RAW_DEVICE Is it RAW device/image or RAM device/image

Re: [PATCH v2 3/3] drivers: rng: optee_rng: register to CONFIG_OPTEE_SERVICE_DISCOVERY

2022-06-06 Thread Patrick DELAUNAY
Hi Etienne, On 6/3/22 12:27, Etienne Carriere wrote: Changes optee_rng driver to register itself has a OP-TEE service so that a device is bound for the driver when OP-TEE enumerates the PTA RNG service. Cc: Sughosh Ganu Cc: Patrick Delaunay Signed-off-by: Etienne Carriere --- No change since

Re: [PATCH v2 2/3] drivers: tee: optee: discover OP-TEE services

2022-06-06 Thread Patrick DELAUNAY
Hi Etienne, On 6/3/22 12:27, Etienne Carriere wrote: This change defines resources for OP-TEE service drivers to register themselves for being bound to when OP-TEE firmware reports the related service is supported. OP-TEE services are discovered during optee driver probe sequence which mandates

Re: [PATCH v2 1/3] drivers: tee: optee: remove unused probe local variable

2022-06-06 Thread Patrick DELAUNAY
Hi, On 6/3/22 12:26, Etienne Carriere wrote: Removes local variable child in optee_probe() that is not used. Cc: Patrick Delaunay Signed-off-by: Etienne Carriere --- New change not in v1 series. --- drivers/tee/optee/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --gi

[PATCH 45/49] net: dwc_eth_qos: move i.MX code out

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Move i.MX code to a standalone file to make it easy for adding new platform support Signed-off-by: Peng Fan --- drivers/net/Makefile | 1 + drivers/net/dwc_eth_qos.c | 92 -- drivers/net/dwc_eth_qos.h | 2 + drivers/net/dwc_eth_qos_i

[PATCH 29/49] misc: fuse: update the code for accessing fuse of i.MX93

2022-06-06 Thread Peng Fan (OSS)
From: Alice Guo Sentinel have read access of OTP shadow register 0-511, and fsb have read access of shadow 0-51/312-511. Reviewed-by: Ye Li Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- drivers/misc/sentinel/fuse.c | 86 +++- 1 file changed, 74 insertio

[PATCH 31/49] imx: imx9: Add MIX power init

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Add power init of MEDIAMIX, MLMIX and DDRMIX. And clear isolation of MIPI DSI/CSI, USBPHY after the power up. SPL should call the power init in its boot sequence before accessing above three MIX and USB. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 1

[PATCH 36/49] imx: imx9: clock: Add DDR clock support

2022-06-06 Thread Peng Fan (OSS)
From: Ye Li Implement the DDR driver clock interfaces for set DDR rate and bypass DDR PLL Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/clock.h | 3 ++ arch/arm/mach-imx/imx9/clock.c | 41 ++ 2 files changed, 44 insertions(+)

[PATCH 28/49] misc: fuse: support to access fuse on i.MX93

2022-06-06 Thread Peng Fan (OSS)
From: Alice Guo i.MX93 fuse can be accessed through FSB and s400-api. Add mapping tables for i.MX93. The offset address of FSB accessing OTP shadow registers is different between i.MX8ULP and i.MX93, so use macro to define the offset address instead of hardcode. Signed-off-by: Alice Guo Signed-

[PATCH 34/49] imx: imx9: Support multiple env storages at runtime

2022-06-06 Thread Peng Fan (OSS)
From: Ye Li Select env storages according to boot device at runtime Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/soc.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/mach-imx/imx9/soc.c b/arch/arm/mach-imx/imx9/soc.c

[PATCH 33/49] imx: imx9: Support booting m33 from Acore

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Add bootaux command to support on-demand booting M33 from u-boot. It kicks M33 via ATF by "bootaux 0x201e 0" Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/Makefile | 4 + arch/arm/mach-imx/imx9/imx_bootaux.c | 133 +++ arch/arm/mach-imx/im

[PATCH 32/49] imx: imx9: Add M33 release prepare function

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan To support on-demand booting M33 image from A core. SPL needs to follow M33 kick up sequence to release M33 firstly, then set M33 CPUWAIT signal. ATF will clear CPUWAIT to kick M33 to run. The prepare function also works around the M33 TCM ECC issue by clean the TCM. Also enable s

[PATCH 30/49] imx: imx9: Add gpio registers structure

2022-06-06 Thread Peng Fan (OSS)
From: Ye Li Add GPIO registers structure for iMX93, so that we can enable lpgpio driver Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/Kconfig | 1 + arch/arm/include/asm/arch-imx9/gpio.h | 20 2 files changed, 21 insertions(+) diff --git

[PATCH 49/49] tools: image: support i.MX93

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Support build i.MX93 container image with mkimage Signed-off-by: Peng Fan --- include/imx8image.h | 15 +++-- tools/imx8image.c | 79 + 2 files changed, 78 insertions(+), 16 deletions(-) diff --git a/include/imx8image.h b/includ

[PATCH 48/49] board: freescale: imx93_evk: support ethernet

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Add ethernet support Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 7 + board/freescale/imx93_evk/imx93_evk.c | 32 +++ configs/imx93_11x11_evk_defconfig | 9 +++ 3 files changed, 48 insertions(+) diff --git a/

[PATCH 47/49] net: dwc_eth_qos: intrdouce eqos hook eqos_get_enetaddr

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan i.MX has specific hook to get MAC address, so introduce a hook and move i.MX code to its own driver Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 9 ++--- drivers/net/dwc_eth_qos.h | 1 + drivers/net/dwc_eth_qos_imx.c | 12 +++- 3 files changed, 1

[PATCH 46/49] net: eqos: add function to get phy node and address

2022-06-06 Thread Peng Fan (OSS)
From: Ye Li Since new atheros PHY driver needs to access its PHY node through phy device, we have to assign the phy node in ethernet controller driver. Otherwise the PHY driver will fail to get some nodes and properties. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos

[PATCH 44/49] net: dwc_eth_qos: public some functions

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Move macros and structures to header file and make some functions public, so that could used by other files, this is to prepare split platform specific config to one file. Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 280 +- drivers

[PATCH 40/49] imx: imx93_evk: Add basic board support

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Add basic board codes and defconfig for i.MX93 11x11 EVK board. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/dts/Makefile |3 + arch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 157 +++ arch/arm/dts/imx93-11x11-evk.dts | 527 +++

[PATCH 43/49] net: dwc_eth_qos: fix build break when CLK not enabled

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan When CONFIG_CLK is not enabled, there will be buil break: "error: ‘eqos’ undeclared (first use in this function)" Should not guard the eqos under CONFIG_CLK macro Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[PATCH 42/49] net: fec_mxc: support i.MX93

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Support i.MX93 in fec_mxc driver Signed-off-by: Peng Fan --- drivers/net/Kconfig | 2 +- drivers/net/fec_mxc.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 84d859c21eb..8cf8621467f 100644 --- a/drivers

[PATCH 41/49] imx: imx93_evk: Set ARM clock to 1.7Ghz

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Set ARM clock to OD frequency 1.7Ghz, since we have set PMIC VDD_SOC to Overdrive voltage 0.9V Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/clock.h | 4 +++- arch/arm/mach-imx/imx9/clock.c | 9 + board/freescale/imx93_evk/spl.c

[PATCH 39/49] arm: dts: Add i.MX93 SoC DTSi file

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Add the DTSi file and DT header files for i.MX93 SoC Signed-off-by: Ye Li Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- arch/arm/dts/imx93.dtsi | 688 include/dt-bindings/clock/imx93-clock.h | 203 +++ include/dt-bindings/pow

[PATCH 37/49] ddr: imx: Add i.MX9 DDR controller driver

2022-06-06 Thread Peng Fan (OSS)
From: Ye Li Since i.MX9 uses same DDR PHY with i.MX8M, split the DDRPHY to a common directory under imx, then use dedicated ddr controller driver for each iMX9 and iMX8M. The DDRPHY registers are space compressed, so it needs conversion to access the DDRPHY address. Introduce a common PHY addres

[PATCH 38/49] ddr: imx9: enable Performance monitor counter

2022-06-06 Thread Peng Fan (OSS)
From: Ye Li Add Kconfig for enabling reference events counter in DDRC performance monitor by default Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/ddr/imx/imx9/Kconfig| 6 ++ drivers/ddr/imx/imx9/ddr_init.c | 4 2 files changed, 10 insertions(+) diff --git a/drivers/d

[PATCH 35/49] imx: imx8m: enlarge SPL MAX size

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Enlarge to 152KB to avoid imx8mm-cl-iot-gate-optee build when refactoring code to support i.MX93. Signed-off-by: Peng Fan --- include/configs/imx8m.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/imx8m.h b/include/configs/imx8m.h index 7a694

[PATCH 26/49] misc: S400_API: Rename imx8ulp_s400_msg to sentinel_msg

2022-06-06 Thread Peng Fan (OSS)
From: Ye Li Use more generic name for S40x msg structure Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 2 +- arch/arm/mach-imx/imx8ulp/rdc.c | 2 +- arch/arm/mach-imx/imx9/trdc.c| 2 +- drivers/misc/sentinel/s400_api.c

[PATCH 27/49] misc: imx8ulp: move fuse.c from imx8ulp to sentinel

2022-06-06 Thread Peng Fan (OSS)
From: Alice Guo The i.MX93 platform wants to reuse drivers/misc/imx8ulp/fuse.c. Moving fuse.c from the folder imx8ulp to sentinel makes it can be used by other platforms. Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- drivers/misc/Makefile | 2 -- drivers/misc/imx8ul

[PATCH 24/49] imx: imx9: Add AHAB boot support

2022-06-06 Thread Peng Fan (OSS)
From: Ye Li Add AHAB driver for iMX9 to do authentication by calling sentinel API Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/Kconfig | 5 + arch/arm/mach-imx/imx9/Makefile | 1 + arch/arm/mach-imx/imx9/ahab.c | 346 3 files

[PATCH 25/49] imx: imx9: Get the chip revision through S400 API

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Update the get chip revision methond to use S400 API, also record other information like lifecycle and UID to global data. Signed-off-by: Peng Fan --- arch/arm/include/asm/global_data.h | 3 ++ arch/arm/mach-imx/imx9/soc.c | 49 +- 2 files chan

[PATCH 23/49] imx: imx9: Add TRDC driver for TRDC init

2022-06-06 Thread Peng Fan (OSS)
From: Ye Li Add TRDC driver to iMX9. The TRDC init splits to two phases: 1. Early init phase will release TRDC from Sentinel and open write permission to the memory where SPL image runs. Sentinel will set the memory to RX only after ROM authentication for the OEM closed part. 2. Init pha

[PATCH 22/49] misc: s400_api: introduce ahab_release_m33_trout

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Introduce Sentinel API ahab_release_m33_trout to make sure sentinel release M33 trout and make sure M33 could boot. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 1 + drivers/misc/sentinel/s400_api.c | 25 2 files change

[PATCH 21/49] misc: S400_API: New API for FW status and chip info

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Add new API to get sentinel FW status and SoC chip info Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 13 + drivers/misc/sentinel/s400_api.c | 61 2 files changed, 74 insertions(+) diff --git a/

[PATCH 15/49] imx: imx9: Add function to initialize timer

2022-06-06 Thread Peng Fan (OSS)
From: Jian Li Add timer_init to update ARM arch timer with correct frequency from system counter and enable system counter. Signed-off-by: Jian Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 1 + arch/arm/mach-imx/imx9/soc.c | 19 +++

[PATCH 20/49] misc: S400_API: Update release RDC API

2022-06-06 Thread Peng Fan (OSS)
From: Ye Li To support more RDC instances on i.MX93, update API to latest definition. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 2 +- drivers/misc/sentinel/s400_api.c | 21 + 2 files changed, 18 insertions(+), 5 de

[PATCH 19/49] misc: s4mu: Support iMX93 with Sentinel MU

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Move i.MX8ULP MU registers structure to driver to avoid add a copy for i.MX9 Add compatible string for iMX93 Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/imx-regs.h | 25 --- drivers/misc/sentinel/s4mu.c | 26

[PATCH 18/49] misc: imx: S400_API: Move S400 MU and API to a common place

2022-06-06 Thread Peng Fan (OSS)
From: Ye Li Since iMX9 uses S401 which shares the API with iMX8ULP. So move S400 MU driver and API to a common place and selected by CONFIG_IMX_SENTINEL Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/Kconfig | 4 + arch/arm/include/asm/global_data.h

[PATCH 17/49] imx: imx9: support romapi

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan i.MX9 shares same ROM API with i.MX8ULP, so make the i.MX8ULP the function prototype common and usable by i.MX9. Also include mmc env functions that use ROM API. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 4 -- arch/arm/include/asm/mach-imx/sys

[PATCH 16/49] imx: imx9: disable watchdog

2022-06-06 Thread Peng Fan (OSS)
From: Ye Li Disable all 3 wdogs on AIPS2 and unmask SRC reset trigger for WDOG3-5 Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 4 ++ arch/arm/mach-imx/imx9/soc.c | 45 ++- 2 files changed, 48 insertions(+), 1 de

[PATCH 12/49] imx: imx9: Add CCM and clock API support

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Add clock API to support CCM root clock and LPCG setting Set the CCM AUTHEN register to allow non-secure world to set root clock and lpcg. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/ccm_regs.h | 266 arch/arm/include/asm/arch-imx9/c

[PATCH 14/49] spl: Use SPL_FIT_IMAGE_TINY for iMX9

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Select SPL_FIT_IMAGE_TINY for i.MX9 Signed-off-by: Peng Fan --- common/spl/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 50ff113cab2..06efd250138 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig

[PATCH 13/49] mmc: fsl_esdhc_imx: Support i.MX9

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Support i.MX9 for fsl_esdhc_imx driver Signed-off-by: Peng Fan --- drivers/mmc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index 5e2921ce41a..8a8a59b5d2c 100644 --- a/drivers/mmc/Kconfig +++ b/drivers/mmc/

[PATCH 11/49] imx: pinctrl: add pinctrl and pinfunc file for i.MX93

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Add the pinctrl driver and pinfunc header file to support iMX93 Signed-off-by: Peng Fan --- arch/arm/dts/imx93-pinfunc.h| 625 drivers/pinctrl/nxp/Kconfig | 13 + drivers/pinctrl/nxp/Makefile| 1 + drivers/pinctrl/nxp/pinct

[PATCH 08/49] imx: add basic i.MX9 support

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX9 Kconfig and basic files for the new SoC Signed-off-by: Peng Fan --- arch/arm/Kconfig| 11 + arch/arm/include/asm/arch-imx/cpu.h | 2 + arch/arm/include/asm/arch-imx9/clock.h | 0 arch/arm/include/asm/arch-imx9/gpio.h

[PATCH 10/49] gpio: pca953x: support pcal6524

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Support pcal6524 IO expander driver Signed-off-by: Peng Fan --- drivers/gpio/pca953x_gpio.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpio/pca953x_gpio.c b/drivers/gpio/pca953x_gpio.c index e98e1e56dbc..4654f9e0989 100644 --- a/drivers/gpio/pca953x_gpio.c +

[PATCH 09/49] fsl_lpuart: add i.MX9 support

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan i.MX9 shares same register layout as i.MX7ULP, so add the i.MX9 define here. Signed-off-by: Peng Fan --- include/fsl_lpuart.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fsl_lpuart.h b/include/fsl_lpuart.h index 18e5cc15d61..93c996b764b 100644 ---

[PATCH 07/49] imx: add USB2_BOOT type

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Add USB2_BOOT type for i.MX8ULP and i.MX9 Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/boot_mode.h | 1 + arch/arm/mach-imx/imx_romapi.c| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/mach-imx/boot_mode.h b/arc

[PATCH 06/49] imx: move get_boot_device to common file

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan i.MX8MN/P/ULP supports ROM API, they have almost same get_boot_device implementation, so move to a common file. And when support i.MX9, no need to include the other function copy. Since sys_proto.h is included in imx_romapi.c, there will be build warning for i.MX8M because wdog_re

[PATCH 05/49] imx: move get_boot_device to common header

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan Most i.MX implements get_boot_device, move it to common header to simplify code Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/sys_proto.h| 1 - arch/arm/include/asm/arch-imx8m/sys_proto.h | 1 - arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 1 - arch/arm/inc

[PATCH 04/49] imx: simplify dependency with SPL_BOOTROM_SUPPORT

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan For SoCs support ROM API, CONFIG_SPL_BOOTROM_SUPPORT is needed, so use this macro to guard the code to avoid extend the list. And drop the guard with structure definition, there is no need. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/sys_proto.h | 2 -- arch/arm/m

[PATCH 03/49] imx: spl: Allow iMX7/8/8M to overwrite spl_board_boot_device

2022-06-06 Thread Peng Fan (OSS)
From: Ye Li Move the default mapping of spl_boot_device to weak function of spl_board_boot_device. So that every board of iMX7/8/8M can overwrite this function to implement specific mapping. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 80 +

[PATCH 02/49] imx: Change USB boot device type

2022-06-06 Thread Peng Fan (OSS)
From: Ye Li The SPL SDP is configured as BOOT_DEVICE_BOARD, so when booting from USB, change its type to BOOT_DEVICE_BOARD, so we can use SDP. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/

[PATCH 01/49] arm: makefile: cleanup mach-imx usage

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan All the SoCs use mach-imx has CONFIG_MACH_IMX selected, so the macro could be the gate to build arch/arm/mach-imx to simplify the rules. Signed-off-by: Peng Fan --- arch/arm/Makefile | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/arch/arm/Makef

[PATCH 00/49] imx: support i.MX93

2022-06-06 Thread Peng Fan (OSS)
From: Peng Fan This patchset is to support i.MX93, during the development, there are some code cleanup and restructure to make i.MX93 code porting cleaner. i.MX9 is a new i.MX family and i.MX93 is the first one that we would support in upstream. It features two Cortex-A55 core, one NPU, one M33

Re: [PATCH 1/2] drivers: tee: optee: discover OP-TEE services

2022-06-06 Thread Ilias Apalodimas
Hi Etienne, On Wed, Jun 01, 2022 at 10:27:51AM +0200, Etienne Carriere wrote: > This change defines resources for OP-TEE service drivers to register > themselves for being bound to when OP-TEE firmware reports the related > service is supported. OP-TEE services are discovered during optee > drive

Re: [PATCH] net: phy: Remove inline definitions from convinience functions

2022-06-06 Thread Ramon Fried
On Sun, Jun 5, 2022 at 9:59 AM Michael Nazzareno Trimarchi wrote: > > Hi Ramon > > Il dom 5 giu 2022, 02:44 Ramon Fried ha scritto: >> >> The convinience functions are not that small and they caused >> bloated text segments because of their usage. >> There was no need to inline them in the first

Re: [PATCH] arm64: zynqmp: Add support for kr260 revA/B boards

2022-06-06 Thread Michal Simek
st 18. 5. 2022 v 12:49 odesílatel Michal Simek napsal: > > From: Michal Simek > > Board is using kv260 design for couple of parts defined by spec like i2c > eeproms, ina260, uart, etc. > > Board has 4 gems. One gem connected via PS SGMII(GT), another PS RGMII(MIO) > and 2 via EMIO. First two shar

Re: [PATCH] serial: Setup serial base and freq for zynq/zynqmp

2022-06-06 Thread Michal Simek
st 18. 5. 2022 v 12:58 odesílatel Michal Simek napsal: > > Setup default values for debug console, base address and frequency. > > Signed-off-by: Michal Simek > --- > > drivers/serial/Kconfig | 4 > 1 file changed, 4 insertions(+) > > diff --git a/drivers/serial/Kconfig b/drivers/serial/Kco

Re: [PATCH] arm64: zynqmp: Add debug messages to bl2_plat_get_bl31_params()

2022-06-06 Thread Michal Simek
st 18. 5. 2022 v 13:02 odesílatel Michal Simek napsal: > > It is useful to get information about BL type and entry address that's why > add some debug messages. > > Signed-off-by: Michal Simek > --- > > arch/arm/mach-zynqmp/handoff.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/a

Re: [PATCH] xilinx: fru: Replace spaces with \0 in detected revision

2022-06-06 Thread Michal Simek
po 30. 5. 2022 v 13:50 odesílatel Michal Simek napsal: > > Also fix board revision field where spaces are used instead of \0. > The same change was done for board name by commit 530560b6f8eb ("xilinx: > fru: Replace spaces with \0 in detected name"). > > Signed-off-by: Michal Simek > --- > > boa