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

2023-08-29 Thread Ahmad Fatoum
32_t crc, const void > *_buf, unsigned int len) > #ifdef CONFIG_DYNAMIC_CRC_TABLE > if (!crc_table) > make_crc_table(); > -#endif > +#endif /* CONFIG_DYNAMIC_CRC_TABLE */ > while (len >= 8) > { >DO8(buf); > @@ -186,6 +207,7 @@ STATIC

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

2023-08-29 Thread Johannes Zink
c32_no_comp(uint32_t crc, const void *_buf, unsigned int len) return crc; } +#endif /* __PBL__ */ STATIC uint32_t crc32_be(uint32_t crc, const void *_buf, unsigned int len) { --- base-commit: bef38b18eeb5d2f1fac334fb8b831e47261e099c change-id: 20230829-crc32_in_pbl-4d824629d4e2 Best regards, -- Johannes Zink

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

2023-08-29 Thread Marco Felsch
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 adding the EQOS pin as well and keep the FEC. Signed-off-by: Marco

[PATCH 3/4] ARM: boards: polyhex-debix: add support to read MAC addresses

2023-08-29 Thread Marco Felsch
For the Debix SoM/Baseboard combination the MAC addresses are stored on a baseboard EEPROM in ASCII format. This commit adds the support to read the MAC addresses from the EEPROM and set it accordingly. Signed-off-by: Marco Felsch --- arch/arm/boards/polyhex-debix/board.c | 66

[PATCH 4/4] ARM: dts: imx8mp-debix-som-a-bmb-08-upstream: sync with mainlined kernel version

2023-08-29 Thread Marco Felsch
Sync the *-upstream.dts(i) versions with the mainlined kernel version [1] available with v6.6. [1] https://lore.kernel.org/all/20230809071026.3546605-4-m.fel...@pengutronix.de/ Signed-off-by: Marco Felsch --- .../imx8mp-debix-som-a-bmb-08-upstream.dts| 126 --

[PATCH 2/4] ARM: boards: polyhex-debix: add SoM/Baseboard combination compatible

2023-08-29 Thread Marco Felsch
Upstream [1] did not accept the "polyhex,imx8mp-debix" since it is to generic. We could add "polyhex,imx8mp-debix" it to our barebox devicetree but since we need to differentiate between the SBC and SOM anyway, add the upstream landed compatible. [1]

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

2023-08-29 Thread Ahmad Fatoum
he best way to go about it then. Cheers, Ahmad > > Best regards > Johannes > >> Let me know what you think. >> >> Cheers, >> Ahmad >> >>> >>> Best regards >>> Johannes >>> >>> >>>>&g

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

2023-08-29 Thread Johannes Zink
able();   #endif --- base-commit: bef38b18eeb5d2f1fac334fb8b831e47261e099c change-id: 20230829-crc32_in_pbl-4d824629d4e2 Best regards, -- Pengutronix e.K.| Johannes Zink | Steuerwalder Str. 21| https://www.pengutronix.de/| 31137 Hildesheim, German

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

2023-08-29 Thread Ahmad Fatoum
p; !defined(__PBL__) >>>>   if (!crc_table) >>>>   make_crc_table(); >>>>   #endif >>>> @@ -171,7 +171,7 @@ STATIC uint32_t crc32_no_comp(uint32_t crc, const void >>>> *_buf, unsigned int len) >>>>   { >>>>

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

2023-08-29 Thread Johannes Zink
{ const unsigned char *buf = _buf; -#ifdef CONFIG_DYNAMIC_CRC_TABLE +#if defined(CONFIG_DYNAMIC_CRC_TABLE) && !defined(__PBL__) if (!crc_table) make_crc_table(); #endif --- base-commit: bef38b18eeb5d2f1fac334fb8b831e47261e099c change-id: 20230829-crc32

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

2023-08-29 Thread Ahmad Fatoum
& !defined(__PBL__) >> if (!crc_table) >> make_crc_table(); >> #endif >> @@ -171,7 +171,7 @@ STATIC uint32_t crc32_no_comp(uint32_t crc, const void >> *_buf, unsigned int len) >> { >> const unsigned char *buf = _buf; >> >> -#ifdef CONFIG_DYNAMIC

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

2023-08-29 Thread Ahmad Fatoum
table(); > #endif > @@ -171,7 +171,7 @@ STATIC uint32_t crc32_no_comp(uint32_t crc, const void > *_buf, unsigned int len) > { > const unsigned char *buf = _buf; > > -#ifdef CONFIG_DYNAMIC_CRC_TABLE > +#if defined(CONFIG_DYNAMIC_CRC_TAB

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

2023-08-29 Thread Johannes Zink
d(CONFIG_DYNAMIC_CRC_TABLE) && !defined(__PBL__) if (!crc_table) make_crc_table(); #endif --- base-commit: bef38b18eeb5d2f1fac334fb8b831e47261e099c change-id: 20230829-crc32_in_pbl-4d824629d4e2 Best regards, -- Johannes Zink