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

2023-09-05 Thread Ahmad Fatoum
On 05.09.23 16:26, 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 inaccessible by the time barebox

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

2023-09-05 Thread Ahmad Fatoum
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 inaccessible by the time barebox proper runs in EL2. This area was so far not

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

2023-09-05 Thread Ahmad Fatoum
$(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 evaluating it in a secondary expansion. That this works as expected can be

Re: [PATCH v2] crypto: crc32: make crc32 available in PBL

2023-09-05 Thread Johannes Zink
On 9/5/23 14:26, Sascha Hauer wrote: On Tue, Sep 05, 2023 at 09:57:21AM +0200, Johannes Zink wrote: Hi Sascha, On 9/4/23 10:19, Sascha Hauer wrote: On Tue, Aug 29, 2023 at 04:38:32PM +0200, Johannes Zink wrote: crc32 may be required in PBL for checking data integrity. Add it to PBL when

Re: [PATCH v2] crypto: crc32: make crc32 available in PBL

2023-09-05 Thread Sascha Hauer
On Tue, Sep 05, 2023 at 09:57:21AM +0200, Johannes Zink wrote: > Hi Sascha, > > On 9/4/23 10:19, Sascha Hauer wrote: > > On Tue, Aug 29, 2023 at 04:38:32PM +0200, Johannes Zink wrote: > > > crc32 may be required in PBL for checking data integrity. Add it to PBL > > > when CONFIG_CRC32 is enabled.

Re: [PATCH 1/4] ARM: boards: polyhex-debix: fix RGMII pin setup

2023-09-05 Thread Sascha Hauer
On Tue, Aug 29, 2023 at 02:43:53PM +0200, Marco Felsch wrote: > On the Debix SBC the EQOS interface is used as primary interface, the > FEC pins are routed to the extension header. On the other hand the Debix > SoM/Baseboard combination both interfaces are used. So fix the RGMII pin > setup by

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

2023-09-05 Thread Marco Felsch
On 23-09-04, Ahmad Fatoum wrote: > 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:

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

2023-09-05 Thread Marco Felsch
On 23-09-04, 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

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

2023-09-05 Thread Marco Felsch
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 binary is to large. The reason for this issues is that

Re: [PATCH 3/3] ARM: boards: Add MyirTech MYD-YA15XC-T development board support

2023-09-05 Thread Ahmad Fatoum
On 31.08.23 11:41, Alexander Shiyan wrote: >>> +struct id_eeprom { >>> + u8 hrcw_primary[0x10]; >>> + u8 pn[64]; >>> + u8 sn[64]; >>> + u8 mac0[6]; >>> + u8 mac1[6]; >>> +} __packed; >> >> You could describe this as nvmem-cells in the DT and you'd automatically >> get the MAC

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

2023-09-05 Thread Marco Felsch
On 23-09-04, Sascha Hauer wrote: > Hi Marco, > > On Thu, Aug 31, 2023 at 04:47:24PM +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

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

2023-09-05 Thread Marco Felsch
On 23-09-04, Ahmad Fatoum wrote: > On 31.08.23 16:47, 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

Re: [PATCH v2] crypto: crc32: make crc32 available in PBL

2023-09-05 Thread Johannes Zink
Hi Sascha, On 9/4/23 10:19, Sascha Hauer wrote: On Tue, Aug 29, 2023 at 04:38:32PM +0200, Johannes Zink wrote: crc32 may be required in PBL for checking data integrity. Add it to PBL when CONFIG_CRC32 is enabled. To save some memory use a slower-but-smaller variant of the crc32 algorithm in