]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx93: Use a header for imx9_probe_mu declaration
authorMathieu Othacehe <othacehe@gnu.org>
Fri, 9 Feb 2024 10:30:07 +0000 (11:30 +0100)
committerFabio Estevam <festevam@denx.de>
Sat, 10 Feb 2024 18:16:13 +0000 (15:16 -0300)
Put imx9_probe_mu declaration in a new mu.h header file.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
Reviewed-by: Igor Opaniuk <igor.opaniuk@foundries.io>
arch/arm/include/asm/arch-imx9/mu.h [new file with mode: 0644]
board/freescale/imx93_evk/spl.c
board/phytec/phycore_imx93/spl.c

diff --git a/arch/arm/include/asm/arch-imx9/mu.h b/arch/arm/include/asm/arch-imx9/mu.h
new file mode 100644 (file)
index 0000000..b860499
--- /dev/null
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (C) 2024 Mathieu Othacehe <m.othacehe@gmail.com>
+ */
+
+#ifndef __ARCH_IMX9_MU_H
+#define __ARCH_IMX9_MU_H
+
+#include <event.h>
+
+int imx9_probe_mu(void *ctx, struct event *event);
+
+#endif
index be9c24fc0d9165efc2ee14043ae7515ad1fa7e72..a98ed69db880b437f251191c8da7bac74e8ee286 100644 (file)
@@ -14,6 +14,7 @@
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/imx93_pins.h>
+#include <asm/arch/mu.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/mach-imx/boot_mode.h>
@@ -91,7 +92,6 @@ int power_init_board(void)
 }
 #endif
 
-extern int imx9_probe_mu(void *ctx, struct event *event);
 void board_init_f(ulong dummy)
 {
        int ret;
index da4b9e535949ef7896bf40df3de7ccbda2aeb0fc..dabc5316f33423d1f86da73c0db953b1edb93476 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <asm/arch/clock.h>
 #include <asm/arch/ddr.h>
+#include <asm/arch/mu.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/trdc.h>
 #include <asm/mach-imx/boot_mode.h>
@@ -99,7 +100,6 @@ int power_init_board(void)
        return 0;
 }
 
-extern int imx9_probe_mu(void *ctx, struct event *event);
 void board_init_f(ulong dummy)
 {
        int ret;