mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] fixup! crypto: caam - skip RNG selftest when i.MX6 is in normal world
@ 2025-11-04 10:00 Ahmad Fatoum
  2025-11-04 10:13 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-11-04 10:00 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

crypto: caam - fix COMPILE_TEST breakage

<mach/imx/*.h> doesn't exist when we compile allyesconfig for sandbox,
so stub out the macros used from it, so CAAM can continue to build
independently of selected architecture.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/crypto/caam/rng_self_test.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/crypto/caam/rng_self_test.c b/drivers/crypto/caam/rng_self_test.c
index a42d9cad1639..f008908b903e 100644
--- a/drivers/crypto/caam/rng_self_test.c
+++ b/drivers/crypto/caam/rng_self_test.c
@@ -47,8 +47,14 @@
 #include <dma.h>
 #include <common.h>
 #include <linux/kernel.h>
+
+#ifdef CONFIG_ARCH_IMX6
 #include <mach/imx/generic.h>
 #include <mach/imx/imx6.h>
+#else
+#define cpu_is_mx6()			false
+#define imx6_cannot_write_l2x0()	false
+#endif
 
 #include "error.h"
 #include "regs.h"
-- 
2.47.3




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-04 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-04 10:00 [PATCH] fixup! crypto: caam - skip RNG selftest when i.MX6 is in normal world Ahmad Fatoum
2025-11-04 10:13 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox