public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Daniel Schultz <d.schultz@phytec.de>
To: <joe.hershberger@ni.com>, <trini@konsulko.com>, <u-boot@lists.denx.de>
Cc: <w.egorov@phytec.de>, <nmorrisson@phytec.com>,
	<upstream@lists.phytec.de>,  Daniel Schultz <d.schultz@phytec.de>
Subject: [PATCH] include: env: phytec: Add optargs to K3 files
Date: Wed, 29 Jan 2025 02:34:44 -0800	[thread overview]
Message-ID: <20250129103444.3463044-1-d.schultz@phytec.de> (raw)

From: Nathan Morrisson <nmorrisson@phytec.com>

Add the optargs variable so that we can set optional arguments while
booting.

Signed-off-by: Nathan Morrisson <nmorrisson@phytec.com>
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
---
 include/env/phytec/k3_mmc.env | 1 +
 include/env/phytec/k3_net.env | 2 +-
 include/env/phytec/k3_spi.env | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/env/phytec/k3_mmc.env b/include/env/phytec/k3_mmc.env
index ad8d3a8b764..3f67e312f65 100644
--- a/include/env/phytec/k3_mmc.env
+++ b/include/env/phytec/k3_mmc.env
@@ -11,6 +11,7 @@
 
 mmcargs=setenv bootargs console=${console} earlycon=${earlycon}
 	root=/dev/mmcblk${mmcdev}p${mmcroot} ${raucargs} rootwait rw
+	${optargs}
 mmcloadimage=load mmc ${mmcdev}:${mmcpart} ${kernel_addr_r} Image
 mmcloadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile}
 mmcboot=if test ${doraucboot} = 1; then run raucinit; fi;
diff --git a/include/env/phytec/k3_net.env b/include/env/phytec/k3_net.env
index 377e406688d..8ad1cb7b0c2 100644
--- a/include/env/phytec/k3_net.env
+++ b/include/env/phytec/k3_net.env
@@ -9,7 +9,7 @@
 #include <env/phytec/overlays.env>
 
 netargs=setenv bootargs console=${console} root=/dev/nfs ip=dhcp rw
-	nfsroot=${serverip}:${nfsroot},vers=4,tcp
+	nfsroot=${serverip}:${nfsroot},vers=4,tcp ${optargs}
 netloadimage=${net_fetch_cmd} ${kernel_addr_r} ${serverip}:/Image
 netloadfdt=${net_fetch_cmd} ${fdt_addr_r} ${serverip}:/${fdtfile}
 netboot=run netargs;
diff --git a/include/env/phytec/k3_spi.env b/include/env/phytec/k3_spi.env
index 97d3a157058..8e9cfce3b4c 100644
--- a/include/env/phytec/k3_spi.env
+++ b/include/env/phytec/k3_spi.env
@@ -6,7 +6,7 @@
 
 /* Logic for TI K3 based SoCs to boot from an OSPI/QSPI NOR flash. */
 
-spiargs=setenv bootargs console=${console} earlycon=${earlycon}
+spiargs=setenv bootargs console=${console} earlycon=${earlycon} ${optargs}
 spiloadimage=sf read ${kernel_addr_r} ${spi_image_addr} ${size_kern}
 spiloadfdt=sf read ${fdt_addr_r} ${spi_fdt_addr} ${size_fdt}
 spiloadramdisk=sf read ${ramdisk_addr_r} ${spi_ramdisk_addr} ${size_fs}
-- 
2.25.1


             reply	other threads:[~2025-01-29 10:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-29 10:34 Daniel Schultz [this message]
2025-02-10 20:38 ` [PATCH] include: env: phytec: Add optargs to K3 files 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=20250129103444.3463044-1-d.schultz@phytec.de \
    --to=d.schultz@phytec.de \
    --cc=joe.hershberger@ni.com \
    --cc=nmorrisson@phytec.com \
    --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