]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
imx8mq: pico: drop redundant gd clearing in board_init_f
authorPeng Fan <peng.fan@nxp.com>
Tue, 21 Apr 2026 13:41:17 +0000 (21:41 +0800)
committerFabio Estevam <festevam@gmail.com>
Tue, 21 Apr 2026 23:49:39 +0000 (20:49 -0300)
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 <peng.fan@nxp.com>
board/technexion/pico-imx8mq/spl.c

index c9d68b402aeba2a7497d1310ae2e545f9947740e..eed7f70e833fd92d78c414448ea21759425ce5a5 100644 (file)
@@ -10,7 +10,6 @@
 #include <asm/arch/ddr.h>
 #include <asm/arch/imx8mq_pins.h>
 #include <asm/arch/sys_proto.h>
-#include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/mach-imx/gpio.h>
 #include <asm/mach-imx/iomux-v3.h>
@@ -24,8 +23,6 @@
 
 #include "lpddr4_timing.h"
 
-DECLARE_GLOBAL_DATA_PTR;
-
 #define DDR_DET_1              IMX_GPIO_NR(3, 11)
 #define DDR_DET_2              IMX_GPIO_NR(3, 12)
 #define DDR_DET_3              IMX_GPIO_NR(3, 13)
@@ -196,9 +193,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(0);