From: Faiz Abbas <faiz_abbas@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 8/8] configs: j721e_evm_r5: Add configs for environment in eMMC
Date: Tue, 19 Nov 2019 13:49:25 +0530 [thread overview]
Message-ID: <20191119081925.19497-9-faiz_abbas@ti.com> (raw)
In-Reply-To: <20191119081925.19497-1-faiz_abbas@ti.com>
Add config to save and read back environment from eMMC.
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
---
configs/j721e_evm_a72_defconfig | 3 +++
include/configs/j721e_evm.h | 9 +++++++++
2 files changed, 12 insertions(+)
diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig
index 8b70f11a21..a8be24411c 100644
--- a/configs/j721e_evm_a72_defconfig
+++ b/configs/j721e_evm_a72_defconfig
@@ -23,6 +23,7 @@ CONFIG_BOOTCOMMAND="run findfdt; run envboot; run init_${boot}; run boot_rprocs;
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
CONFIG_SPL_STACK_R=y
CONFIG_SPL_SEPARATE_BSS=y
+CONFIG_SPL_ENV_SUPPORT=y
CONFIG_SPL_I2C_SUPPORT=y
CONFIG_SPL_DM_MAILBOX=y
CONFIG_SPL_DM_RESET=y
@@ -50,6 +51,8 @@ CONFIG_SPL_OF_CONTROL=y
CONFIG_DEFAULT_DEVICE_TREE="k3-j721e-common-proc-board"
CONFIG_SPL_MULTI_DTB_FIT=y
CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y
+CONFIG_ENV_IS_IN_MMC=y
+CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
CONFIG_DM=y
CONFIG_SPL_DM=y
CONFIG_SPL_DM_SEQ_ALIAS=y
diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h
index c7a6cd4fab..950f40eb40 100644
--- a/include/configs/j721e_evm.h
+++ b/include/configs/j721e_evm.h
@@ -119,4 +119,13 @@
/* Now for the remaining common defines */
#include <configs/ti_armv7_common.h>
+/* MMC ENV related defines */
+#ifdef CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV 0
+#define CONFIG_SYS_MMC_ENV_PART 1
+#define CONFIG_ENV_SIZE (128 << 10)
+#define CONFIG_ENV_OFFSET 0x680000
+#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
+#endif
+
#endif /* __CONFIG_J721E_EVM_H */
--
2.19.2
next prev parent reply other threads:[~2019-11-19 8:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-19 8:19 [U-Boot] [PATCH 0/8] Add Support for MMC/SD in J721e Faiz Abbas
2019-11-19 8:19 ` [U-Boot] [PATCH 1/8] mmc: am654_sdhci: Get Xin clock by name Faiz Abbas
2019-11-19 8:19 ` [U-Boot] [PATCH 2/8] mmc: am654_sdhci: Add Support for configuring PHY in J721e Faiz Abbas
2019-11-19 8:19 ` [U-Boot] [PATCH 3/8] arm: dts: k3-j721e-common-proc-board: Remove voltage-ranges from sdhci nodes Faiz Abbas
2019-11-19 8:19 ` [U-Boot] [PATCH 4/8] arm: dts: k3-j721e-common-proc-board: Add pinmux for SD card Faiz Abbas
2019-11-19 8:19 ` [U-Boot] [PATCH 5/8] configs: j721e_evm: Add configs for ADMA Support Faiz Abbas
2019-11-19 8:19 ` [U-Boot] [PATCH 6/8] configs: j721e_evm_a72: Enable FAT_WRITE Faiz Abbas
2019-11-19 8:19 ` [U-Boot] [PATCH 7/8] configs: j721e_evm_a72: Add Support for GPT partitions Faiz Abbas
2019-11-19 8:19 ` Faiz Abbas [this message]
2020-01-07 11:22 ` [PATCH 0/8] Add Support for MMC/SD in J721e Faiz Abbas
2020-01-08 1:14 ` Peng Fan
2020-01-10 8:03 ` Faiz Abbas
2020-01-16 13:16 ` 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=20191119081925.19497-9-faiz_abbas@ti.com \
--to=faiz_abbas@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox