summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <[email protected]>2026-04-21 21:41:18 +0800
committerFabio Estevam <[email protected]>2026-04-21 20:49:39 -0300
commit913b8c6cb861ab8b0d1778bfd75b5964ed002e2a (patch)
treec40b3b524b3dda0bd4d371d98cca36953967c209
parent10ca7ec200285029e56642149933a6c2a612367e (diff)
imx8mq: cm: 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/ronetix/imx8mq-cm/spl.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/board/ronetix/imx8mq-cm/spl.c b/board/ronetix/imx8mq-cm/spl.c
index ee0ad20ced4..200562482af 100644
--- a/board/ronetix/imx8mq-cm/spl.c
+++ b/board/ronetix/imx8mq-cm/spl.c
@@ -18,8 +18,6 @@
#include <linux/delay.h>
#include <spl.h>
-DECLARE_GLOBAL_DATA_PTR;
-
static void spl_dram_init(void)
{
/* ddr init */
@@ -135,9 +133,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);