public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
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 04/12] imx: imx8mp_evk: Enable dynamic settings to mmcdev and mmcroot
Date: Sat, 04 Jan 2025 12:25:38 +0800	[thread overview]
Message-ID: <20250104-imx-bootstd-v1-4-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.MX8MP-EVK

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 board/freescale/common/Makefile         | 2 +-
 board/freescale/imx8mp_evk/imx8mp_evk.c | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/board/freescale/common/Makefile b/board/freescale/common/Makefile
index c2c86c0dd08252e8feef5d2f2f5176af408020ac..468a06725c1e470d0d36f79e8a25e31799562e9b 100644
--- a/board/freescale/common/Makefile
+++ b/board/freescale/common/Makefile
@@ -59,7 +59,7 @@ obj-$(CONFIG_POWER_PFUZE100)	+= pfuze.o
 endif
 obj-$(CONFIG_DM_PMIC_PFUZE100)	+= pfuze.o
 obj-$(CONFIG_POWER_MC34VR500)	+= mc34vr500.o
-ifneq (,$(filter $(SOC), imx8ulp imx9))
+ifneq (,$(filter $(SOC), imx8m imx8ulp imx9))
 obj-y				+= mmc.o
 endif
 
diff --git a/board/freescale/imx8mp_evk/imx8mp_evk.c b/board/freescale/imx8mp_evk/imx8mp_evk.c
index 024b46ef8bc28bd8f6085cc9cc290b719b37fd66..2ff067bc6752135f323398e620e37ef11d1b91bb 100644
--- a/board/freescale/imx8mp_evk/imx8mp_evk.c
+++ b/board/freescale/imx8mp_evk/imx8mp_evk.c
@@ -3,6 +3,7 @@
  * Copyright 2019 NXP
  */
 
+#include <asm/arch/sys_proto.h>
 #include <env.h>
 
 int board_init(void)
@@ -12,6 +13,10 @@ int board_init(void)
 
 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", "iMX8MP");

-- 
2.35.3


  parent reply	other threads:[~2025-01-04  3:20 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 ` Peng Fan (OSS) [this message]
2025-01-04  4:25 ` [PATCH 05/12] imx: imx8mp_evk: Switch " 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 ` [PATCH 10/12] imx: imx8mq_evk: Enable dynamic settings to mmcdev and mmcroot Peng Fan (OSS)
2025-01-06 11:11   ` 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-4-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