summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <[email protected]>2026-04-21 21:41:16 +0800
committerFabio Estevam <[email protected]>2026-04-21 20:49:39 -0300
commitb79b9635e2c994d6b6513c2853ca40612b05b71f (patch)
tree29d1d27659a7e0cd281f5ba9e572209b9e8d988e
parent27d49fc9ec7d6c92ef77cfdc32185499c264ee42 (diff)
imx8mq: reform2: 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/mntre/imx8mq_reform2/spl.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/board/mntre/imx8mq_reform2/spl.c b/board/mntre/imx8mq_reform2/spl.c
index 48a783593b6..aca0525c699 100644
--- a/board/mntre/imx8mq_reform2/spl.c
+++ b/board/mntre/imx8mq_reform2/spl.c
@@ -10,7 +10,6 @@
#include <image.h>
#include <init.h>
#include <log.h>
-#include <asm/global_data.h>
#include <asm/io.h>
#include <errno.h>
#include <asm/io.h>
@@ -28,8 +27,6 @@
#include <power/pmic.h>
#include <spl.h>
-DECLARE_GLOBAL_DATA_PTR;
-
extern struct dram_timing_info dram_timing_ch2;
static void spl_dram_init(void)
@@ -226,9 +223,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);