Otherwise GCC complains:
<PATH>/barebox-2026.08.0/include/mach/imx/ocotp.h: In function
'imx_ocotp_read_uid':
<PATH>/barebox-2026.08.0/include/mach/imx/ocotp.h:47:16: error: implicit
declaration of function 'readl' [-Werror=implicit-function-declaration]
47 | uid = readl(ocotp + OCOTP_UID_H);
| ^~~~~
Signed-off-by: Ulrich Ölmann <[email protected]>
---
include/mach/imx/ocotp.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/mach/imx/ocotp.h b/include/mach/imx/ocotp.h
index e6f62a9da48c..2d8fcc7c2657 100644
--- a/include/mach/imx/ocotp.h
+++ b/include/mach/imx/ocotp.h
@@ -5,6 +5,7 @@
#include <linux/bitfield.h>
#include <linux/types.h>
+#include <linux/io.h>
#define OCOTP_SHADOW_OFFSET 0x400
#define OCOTP_SHADOW_SPACING 0x10
--
2.47.3