U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Schultz <d.schultz@phytec.de>
To: <u-boot@lists.denx.de>, <trini@konsulko.com>, <upstream@lists.phytec.de>
Cc: <w.egorov@phytec.de>, <t.remmet@phytec.de>, <d-gole@ti.com>,
	Daniel Schultz <d.schultz@phytec.de>
Subject: [PATCH v2 8/9] board: phytec: phycore_am62x: Use k3_mmc.env logic
Date: Tue, 16 Jul 2024 22:11:33 -0700	[thread overview]
Message-ID: <20240717051134.1538180-9-d.schultz@phytec.de> (raw)
In-Reply-To: <20240717051134.1538180-1-d.schultz@phytec.de>

Use our common environment file to implement MMC boot.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
---
 board/phytec/phycore_am62x/phycore_am62x.env | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/board/phytec/phycore_am62x/phycore_am62x.env b/board/phytec/phycore_am62x/phycore_am62x.env
index 2d6475d408f..046bbd22f25 100644
--- a/board/phytec/phycore_am62x/phycore_am62x.env
+++ b/board/phytec/phycore_am62x/phycore_am62x.env
@@ -1,4 +1,5 @@
 #include <env/ti/k3_dfu.env>
+#include <env/phytec/k3_mmc.env>
 
 fdtaddr=0x88000000
 loadaddr=0x82000000
@@ -14,13 +15,3 @@ mmcroot=2
 mmcpart=1
 console=ttyS2,115200n8
 earlycon=ns16550a,mmio32,0x02800000
-mmcargs=setenv bootargs console=${console} earlycon=${earlycon}
-	root=/dev/mmcblk${mmcdev}p${mmcroot} rootwait rw
-loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} Image
-loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdtaddr} ${fdtfile}
-mmcboot=run mmcargs;
-	mmc dev ${mmcdev};
-	mmc rescan;
-	run loadimage;
-	run loadfdt;
-	booti ${loadaddr} - ${fdtaddr}
-- 
2.25.1


  parent reply	other threads:[~2024-07-17  5:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-17  5:11 [PATCH v2 0/9] Generalize PHYTEC Overlay Handling Daniel Schultz
2024-07-17  5:11 ` [PATCH v2 1/9] include: env: phytec: Create env file for loading and applying overlays Daniel Schultz
2024-07-17  5:11 ` [PATCH v2 2/9] phycore-imx8mp: Add overlay and bootenv.txt support Daniel Schultz
2024-07-17  5:11 ` [PATCH v2 3/9] phycore_imx93: include common overlays.env Daniel Schultz
2024-07-17  5:11 ` [PATCH v2 4/9] board: phytec: renaming of variables according to bootstd doc Daniel Schultz
2024-07-17  5:11 ` [PATCH v2 5/9] include: env: " Daniel Schultz
2024-07-17  5:11 ` [PATCH v2 6/9] include: env: phytec: Add common mmc boot for K3 SoMs Daniel Schultz
2024-07-17  5:11 ` [PATCH v2 7/9] include: env: phytec: k3_mmc: Apply overlays during boot Daniel Schultz
2024-07-17  5:11 ` Daniel Schultz [this message]
2024-07-17  5:11 ` [PATCH v2 9/9] board: phytec: phycore_am64x: Use k3_mmc.env logic Daniel Schultz
2024-07-23 21:04 ` [PATCH v2 0/9] Generalize PHYTEC Overlay Handling Tom Rini

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=20240717051134.1538180-9-d.schultz@phytec.de \
    --to=d.schultz@phytec.de \
    --cc=d-gole@ti.com \
    --cc=t.remmet@phytec.de \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=upstream@lists.phytec.de \
    --cc=w.egorov@phytec.de \
    /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