diff options
author | Mathieu Othacehe <othacehe@gnu.org> | 2024-02-09 11:30:07 +0100 |
---|---|---|
committer | Fabio Estevam <festevam@denx.de> | 2024-02-10 15:16:13 -0300 |
commit | 2029a4c6be564887ba0860f1e91ea7d54b5675d5 (patch) | |
tree | 8e6ab8fb34c8cc57270a13576473e305b4dd8f85 | |
parent | 05d3602737769765ff0c1e71914d521bddedfb2c (diff) | |
download | u-boot-2029a4c6be564887ba0860f1e91ea7d54b5675d5.zip u-boot-2029a4c6be564887ba0860f1e91ea7d54b5675d5.tar.gz u-boot-2029a4c6be564887ba0860f1e91ea7d54b5675d5.tar.bz2 |
imx93: Use a header for imx9_probe_mu declaration
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>
-rw-r--r-- | arch/arm/include/asm/arch-imx9/mu.h | 13 | ||||
-rw-r--r-- | board/freescale/imx93_evk/spl.c | 2 | ||||
-rw-r--r-- | board/phytec/phycore_imx93/spl.c | 2 |
3 files changed, 15 insertions, 2 deletions
diff --git a/arch/arm/include/asm/arch-imx9/mu.h b/arch/arm/include/asm/arch-imx9/mu.h new file mode 100644 index 0000000..b860499 --- /dev/null +++ b/arch/arm/include/asm/arch-imx9/mu.h @@ -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 diff --git a/board/freescale/imx93_evk/spl.c b/board/freescale/imx93_evk/spl.c index be9c24f..a98ed69 100644 --- a/board/freescale/imx93_evk/spl.c +++ b/board/freescale/imx93_evk/spl.c @@ -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; diff --git a/board/phytec/phycore_imx93/spl.c b/board/phytec/phycore_imx93/spl.c index da4b9e5..dabc531 100644 --- a/board/phytec/phycore_imx93/spl.c +++ b/board/phytec/phycore_imx93/spl.c @@ -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; |