diff options
| author | Peng Fan <[email protected]> | 2026-04-21 21:41:14 +0800 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2026-04-21 20:49:39 -0300 |
| commit | bb95b5258223e0aa2014bae8270719007bfa7bbb (patch) | |
| tree | 0f57fcb31560617c2c5d775e83408fbb6823d4fa | |
| parent | 5a9da0e505b021e49d67dd85bdfa0bc61afcffcb (diff) | |
imx8mq: pitx: drop redundant gd clearing in board_init_f
The global data (gd) area is already zeroed in
board_init_f_init_reserve() before board_init_f() is called.
Remove the duplicate gd clearing from board_init_f().
Signed-off-by: Peng Fan <[email protected]>
| -rw-r--r-- | board/kontron/pitx_imx8m/spl.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/board/kontron/pitx_imx8m/spl.c b/board/kontron/pitx_imx8m/spl.c index bd5981bf694..b9e864d3f05 100644 --- a/board/kontron/pitx_imx8m/spl.c +++ b/board/kontron/pitx_imx8m/spl.c @@ -11,7 +11,6 @@ #include <asm/arch/imx8mq_pins.h> #include <asm/arch/sys_proto.h> #include <asm/arch/clock.h> -#include <asm/global_data.h> #include <asm/io.h> #include <asm/mach-imx/iomux-v3.h> #include <asm/mach-imx/gpio.h> @@ -26,8 +25,6 @@ extern struct dram_timing_info dram_timing_2gb; extern struct dram_timing_info dram_timing_4gb; -DECLARE_GLOBAL_DATA_PTR; - static void spl_dram_init(void) { struct dram_timing_info *dram_timing; @@ -261,9 +258,6 @@ void board_init_f(ulong dummy) { int ret; - /* Clear global data */ - memset((void *)gd, 0, sizeof(gd_t)); - arch_cpu_init(); init_uart_clk(2); |
