From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com>
To: Stefano Babic <sbabic@denx.de>,
Fabio Estevam <festevam@gmail.com>,
"NXP i.MX U-Boot Team" <uboot-imx@nxp.com>
Cc: u-boot@lists.denx.de, Peng Fan <peng.fan@nxp.com>
Subject: [PATCH 10/12] imx: imx8mq_evk: Enable dynamic settings to mmcdev and mmcroot
Date: Sat, 04 Jan 2025 12:25:44 +0800 [thread overview]
Message-ID: <20250104-imx-bootstd-v1-10-e09618cc1d65@nxp.com> (raw)
In-Reply-To: <20250104-imx-bootstd-v1-0-e09618cc1d65@nxp.com>
From: Peng Fan <peng.fan@nxp.com>
Enable dynamic settings to mmcdev and mmcroot for i.MX8MQ-EVK
Since we are here, clean up the including headers
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
board/freescale/imx8mq_evk/imx8mq_evk.c | 25 +++++--------------------
1 file changed, 5 insertions(+), 20 deletions(-)
diff --git a/board/freescale/imx8mq_evk/imx8mq_evk.c b/board/freescale/imx8mq_evk/imx8mq_evk.c
index ab920a4539cdf9a77607e1eba5640fa8a6233436..752a84635b419e834adf2089167460a0beb4b9db 100644
--- a/board/freescale/imx8mq_evk/imx8mq_evk.c
+++ b/board/freescale/imx8mq_evk/imx8mq_evk.c
@@ -4,29 +4,10 @@
*/
#include <env.h>
-#include <init.h>
-#include <malloc.h>
-#include <errno.h>
-#include <asm/global_data.h>
-#include <asm/io.h>
-#include <miiphy.h>
-#include <netdev.h>
#include <asm/mach-imx/iomux-v3.h>
-#include <asm-generic/gpio.h>
-#include <fsl_esdhc_imx.h>
-#include <mmc.h>
+#include <asm/arch/clock.h>
#include <asm/arch/imx8mq_pins.h>
#include <asm/arch/sys_proto.h>
-#include <asm/mach-imx/gpio.h>
-#include <asm/mach-imx/mxc_i2c.h>
-#include <asm/arch/clock.h>
-#include <spl.h>
-#include <linux/bitops.h>
-#include <power/pmic.h>
-#include <power/pfuze100_pmic.h>
-#include "../common/pfuze.h"
-
-DECLARE_GLOBAL_DATA_PTR;
#define UART_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_FSEL1)
@@ -69,6 +50,10 @@ int board_mmc_get_env_dev(int devno)
int board_late_init(void)
{
+#if CONFIG_IS_ENABLED(ENV_IS_IN_MMC)
+ board_late_mmc_env_init();
+#endif
+
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
env_set("board_name", "EVK");
env_set("board_rev", "iMX8MQ");
--
2.35.3
next prev parent reply other threads:[~2025-01-04 3:21 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-04 4:25 [PATCH 00/12] imx9: switch to bootstd for i.MX93/1 EVK/QSB and i.MX8M EVK Peng Fan (OSS)
2025-01-04 4:25 ` [PATCH 01/12] imx: imx93_evk: switch to BOOTSTD Peng Fan (OSS)
2025-01-06 11:06 ` Fabio Estevam
2025-01-04 4:25 ` [PATCH 02/12] imx: imx93_qsb: " Peng Fan (OSS)
2025-01-04 4:25 ` [PATCH 03/12] imx: imx91_evk: " Peng Fan (OSS)
2025-01-04 4:25 ` [PATCH 04/12] imx: imx8mp_evk: Enable dynamic settings to mmcdev and mmcroot Peng Fan (OSS)
2025-01-04 4:25 ` [PATCH 05/12] imx: imx8mp_evk: Switch to BOOTSTD Peng Fan (OSS)
2025-01-04 4:25 ` [PATCH 06/12] imx: imx8mn_evk: Enable dynamic settings to mmcdev and mmcroot Peng Fan (OSS)
2025-01-06 11:09 ` Fabio Estevam
2025-01-04 4:25 ` [PATCH 07/12] imx: imx8mn_evk: Switch to BOOTSTD Peng Fan (OSS)
2025-01-04 4:25 ` [PATCH 08/12] imx: imx8mm_evk: Enable dynamic settings to mmcdev and mmcroot Peng Fan (OSS)
2025-01-04 4:25 ` [PATCH 09/12] imx: imx8mm_evk: Switch to BOOTSTD Peng Fan (OSS)
2025-01-04 4:25 ` Peng Fan (OSS) [this message]
2025-01-06 11:11 ` [PATCH 10/12] imx: imx8mq_evk: Enable dynamic settings to mmcdev and mmcroot Fabio Estevam
2025-01-04 4:25 ` [PATCH 11/12] imx: imx8mq_evk: Switch to BOOTSTD Peng Fan (OSS)
2025-01-04 4:25 ` [PATCH 12/12] imx: imx93-11x11-evk: drop duplicated nodes Peng Fan (OSS)
2025-01-04 19:30 ` [PATCH 00/12] imx9: switch to bootstd for i.MX93/1 EVK/QSB and i.MX8M EVK Simon Glass
2025-01-06 1:33 ` Peng Fan
2025-01-06 1:02 ` Simon Glass
2025-01-06 1:14 ` Peng Fan
2025-01-06 12:15 ` Simon Glass
2025-01-06 23:45 ` Tony Dinh
2025-01-13 9:48 ` Frieder Schrempf
2025-01-14 13:13 ` Simon Glass
2025-01-07 1:39 ` Peng Fan
2025-01-08 16:27 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250104-imx-bootstd-v1-10-e09618cc1d65@nxp.com \
--to=peng.fan@oss.nxp.com \
--cc=festevam@gmail.com \
--cc=peng.fan@nxp.com \
--cc=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
--cc=uboot-imx@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox