All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vignesh Raghavendra <vigneshr@ti.com>
To: u-boot@lists.denx.de
Subject: [PATCH 7/9] configs: j721e_evm: Setup mtdparts for OSPI
Date: Wed, 29 Jan 2020 17:48:53 +0530	[thread overview]
Message-ID: <20200129121855.30112-8-vigneshr@ti.com> (raw)
In-Reply-To: <20200129121855.30112-1-vigneshr@ti.com>

Set up mtdparts cmdline argument to be passed to kernel

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
---
 include/configs/j721e_evm.h | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h
index 4371c471e5a9..0f8a9739a13f 100644
--- a/include/configs/j721e_evm.h
+++ b/include/configs/j721e_evm.h
@@ -74,7 +74,8 @@
 	"overlayaddr=0x83000000\0"					\
 	"name_kern=Image\0"						\
 	"console=ttyS2,115200n8\0"					\
-	"args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000\0" \
+	"args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000 "	\
+		"${mtdparts}\0"						\
 	"run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}\0"
 
 #define PARTS_DEFAULT \
@@ -124,6 +125,14 @@
 	DFU_ALT_INFO_RAM \
 	DFU_ALT_INFO_OSPI
 
+#ifdef CONFIG_TARGET_J721E_A72_EVM
+#define EXTRA_ENV_J721E_BOARD_SETTINGS_MTD				\
+	"mtdids=" CONFIG_MTDIDS_DEFAULT "\0"				\
+	"mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"
+#else
+#define EXTRA_ENV_J721E_BOARD_SETTINGS_MTD
+#endif
+
 /* Incorporate settings into the U-Boot environment */
 #define CONFIG_EXTRA_ENV_SETTINGS					\
 	DEFAULT_MMC_TI_ARGS						\
@@ -132,7 +141,8 @@
 	EXTRA_ENV_J721E_BOARD_SETTINGS_MMC				\
 	EXTRA_ENV_RPROC_SETTINGS					\
 	EXTRA_ENV_DFUARGS						\
-	DEFAULT_UFS_TI_ARGS
+	DEFAULT_UFS_TI_ARGS						\
+	EXTRA_ENV_J721E_BOARD_SETTINGS_MTD
 
 /* Now for the remaining common defines */
 #include <configs/ti_armv7_common.h>
-- 
2.25.0

  parent reply	other threads:[~2020-01-29 12:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-29 12:18 [PATCH 0/9] TI: AM654/J721e: Add support to boot from OSPI Vignesh Raghavendra
2020-01-29 12:18 ` [PATCH 1/9] drivers: Descend to drivers/soc unconditionally Vignesh Raghavendra
2020-01-29 17:48   ` Tom Rini
2020-01-29 12:18 ` [PATCH 2/9] ARM: mach-k3: arm64-mmu: map 64bit FSS MMIO space in A53 MMU Vignesh Raghavendra
2020-01-29 12:18 ` [PATCH 3/9] ARM: mach-k3: sysfw-loader: Use SPI memmapped addr when loading SYSFW Vignesh Raghavendra
2020-01-29 12:18 ` [PATCH 4/9] ARM: dts: k3-am65: Add OSPI DT nodes Vignesh Raghavendra
2020-01-29 12:18 ` [PATCH 5/9] ARM: dts: k3-j721e: " Vignesh Raghavendra
2020-01-29 12:18 ` [PATCH 6/9] configs: am65x_evm: Setup mtdparts for OSPI Vignesh Raghavendra
2020-01-29 12:18 ` Vignesh Raghavendra [this message]
2020-01-29 12:18 ` [PATCH 8/9] configs: j721e_evm_defconfig: Enable OSPI configs Vignesh Raghavendra
2020-01-29 12:18 ` [PATCH 9/9] configs: am65x_evm_defconfig: " Vignesh Raghavendra
2020-01-29 16:31 ` [PATCH 0/9] TI: AM654/J721e: Add support to boot from OSPI Andreas Dannenberg
2020-01-30  4:21   ` Vignesh Raghavendra
2020-02-04  3:33 ` Lokesh Vutla

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=20200129121855.30112-8-vigneshr@ti.com \
    --to=vigneshr@ti.com \
    --cc=u-boot@lists.denx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.