Re: [PATCH 1/4] crypto: crc32: Drop CONFIG_DYNAMIC_CRC_TABLE option

2023-09-06 Thread Johannes Zink
Even though I am too late: tested and verified entire series on ARM64 Tested-by: Johannes Zink On 9/4/23 10:18, Sascha Hauer wrote: Generating the crc table on a not-so-powerfull i.MX6q SoC takes around 100us. This is negligible and not worth bothering the user with an extra Kconfig option. J

[PATCH 2/3] scripts: Select XZ --arm64 BCJ filter for 64-bit arm

2023-09-06 Thread Jules Maselbas
This change will select the arm64 BCJ filter for aarch64 instead of the arm filter which was always selected for arm based architectures. The selected filter is also tested, by looking if it is present in the long help message of xz, this is because the arm64 BCJ filter is a recent addition to xz.

[PATCH 3/3] kbuild: remove duplicated xz compressions target

2023-09-06 Thread Jules Maselbas
Both cmd_xzkern and cmd_xzmisc where already defined in the same file Signed-off-by: Jules Maselbas --- scripts/Makefile.lib | 28 1 file changed, 28 deletions(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index f04c09f9e2..6baa618f15 100644 --- a/scri

[PATCH 1/3] decompressors: Update xz to include ARM64 BCJ decoder

2023-09-06 Thread Jules Maselbas
Update lib/xz/xz_dec_bcj.c and lib/xz/xz_private.h files from xz-embedded [1], which include spelling fixes and the new ARM64 BCJ decoder which was recently introduced into .xz file format version 1.1.0 (2022-12-11) [2]. [1] https://git.tukaani.org/?p=xz-embedded.git [2] https://tukaani.org/xz/xz-

Re: [PATCH master] ARM: i.MX8M: romapi: reserve scratch space

2023-09-06 Thread Sascha Hauer
On Tue, Sep 05, 2023 at 04:26:48PM +0200, Ahmad Fatoum wrote: > We have 32K of RAM at the end of the initial memory, where a > prebootloader can place data for future use. i.MX8M is currently the > only user and currently uses it to save the ROM API log, which is > located in SRAM and is inaccessib

Re: [PATCH v3] ARM: i.MX8M: esdctl: split memory banks for devices with >4G

2023-09-06 Thread Sascha Hauer
On Tue, Sep 05, 2023 at 11:32:10AM +0200, Marco Felsch wrote: > At the moment the whole available memory is added to one single memory > bank "ram0". This can cause barebox chainload issues on devices with a > huge amount of memory like the i.MX8MP-EVK which has 6G of RAM if the > barebox pbl binar

Re: [PATCH master] firmware: fix dependency tracking for PBL firmware files

2023-09-06 Thread Sascha Hauer
On Tue, Sep 05, 2023 at 04:23:28PM +0200, Ahmad Fatoum wrote: > $(wildcard $(fwdir)/%) was added to allow for optional firmware, but in > return it broke dependency tracking, because it was evaluated before the > static pattern rule it's a part of. > > Fix the dependency tracking by only evaluatin

Re: [PATCH] commands: pwm: add option to list registered PWMs

2023-09-06 Thread Sascha Hauer
On Wed, Sep 06, 2023 at 03:26:23PM +0200, Bastian Krause wrote: > It's useful to be able to list all registered PWMs, especially > considering these might be aliased. So add such an option to the pwm > command. > > Signed-off-by: Bastian Krause > --- > commands/pwm.c | 8 ++-- > drivers/

Re: [PATCH] ARM: dts: i.MX8: add pwm aliases

2023-09-06 Thread Sascha Hauer
On Wed, Sep 06, 2023 at 03:11:13PM +0200, Bastian Krause wrote: > Signed-off-by: Bastian Krause > --- > arch/arm/dts/imx8mm.dtsi | 4 > arch/arm/dts/imx8mn.dtsi | 9 + > arch/arm/dts/imx8mp.dtsi | 7 +++ > 3 files changed, 20 insertions(+) Applied, thanks Sascha > > diff --gi

Re: [PATCH v2 1/2] clk: implement clk_get_optional helper

2023-09-06 Thread Sascha Hauer
On Wed, Sep 06, 2023 at 03:39:27PM +0200, Bastian Krause wrote: > From: Ahmad Fatoum > > Lack of clock can be ok at times and thus the clk API accepts NULL > arguments and treats them as no-op. > > Linux provides a clk_get_optional function to simplify code with such > optional code, so let's pr

[PATCH v2 1/2] clk: implement clk_get_optional helper

2023-09-06 Thread Bastian Krause
From: Ahmad Fatoum Lack of clock can be ok at times and thus the clk API accepts NULL arguments and treats them as no-op. Linux provides a clk_get_optional function to simplify code with such optional code, so let's provide an equivalent for barebox. Signed-off-by: Ahmad Fatoum Reviewed-by: Ma

[PATCH v2 2/2] pwm: imx: enable clocks during PWM register accesses

2023-09-06 Thread Bastian Krause
From: Ahmad Fatoum This is a port of Linux commit 9f4c8f9607c3147d291b70c13dd01c738ed41faf: | Author: Anson Huang | AuthorDate: Wed Dec 19 05:24:58 2018 + | Commit: Thierry Reding | CommitDate: Mon Dec 24 12:06:56 2018 +0100 | | pwm: imx: Add ipg clock operation | | i.MX PW

[PATCH] commands: pwm: add option to list registered PWMs

2023-09-06 Thread Bastian Krause
It's useful to be able to list all registered PWMs, especially considering these might be aliased. So add such an option to the pwm command. Signed-off-by: Bastian Krause --- commands/pwm.c | 8 ++-- drivers/pwm/core.c | 9 + include/pwm.h | 2 ++ 3 files changed, 17 inserti

[PATCH] ARM: dts: i.MX8: add pwm aliases

2023-09-06 Thread Bastian Krause
Signed-off-by: Bastian Krause --- arch/arm/dts/imx8mm.dtsi | 4 arch/arm/dts/imx8mn.dtsi | 9 + arch/arm/dts/imx8mp.dtsi | 7 +++ 3 files changed, 20 insertions(+) diff --git a/arch/arm/dts/imx8mm.dtsi b/arch/arm/dts/imx8mm.dtsi index 22ae01a20a2..982174375ec 100644 --- a/arch/a

Re: [PATCH master 2/2] pwm: imx: enable clocks during PWM register accesses

2023-09-06 Thread Bastian Krause
On 9/4/23 17:49, Ahmad Fatoum wrote: This is a port of Linux commit 9f4c8f9607c3147d291b70c13dd01c738ed41faf: | Author: Anson Huang | AuthorDate: Wed Dec 19 05:24:58 2018 + | Commit: Thierry Reding | CommitDate: Mon Dec 24 12:06:56 2018 +0100 | | pwm: imx: Add ipg clock operati