Patchwork [U-Boot] powerpc/85xx: Add support to save environment in SD card on p1_p2_rdb

login
register
mail settings
Submitter Kumar Gala
Date April 9, 2011, 5:49 p.m.
Message ID <1302371373-11009-1-git-send-email-galak@kernel.crashing.org>
Download mbox | patch
Permalink /patch/90469/
State Accepted
Commit e59a93e7e8f70455ab31652c0c6bf850b3ff5bbd
Delegated to: Kumar Gala
Headers show

Comments

Kumar Gala - April 9, 2011, 5:49 p.m.
From: Priyanka Jain <Priyanka.Jain@freescale.com>

If we boot from a SD card use it for the environment as well.

Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
Signed-off-by: Poonam Aggrwal <Poonam.Aggrwal@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 include/configs/P1_P2_RDB.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
Kumar Gala - April 29, 2011, 12:52 p.m.
On Apr 9, 2011, at 12:49 PM, Kumar Gala wrote:

> From: Priyanka Jain <Priyanka.Jain@freescale.com>
> 
> If we boot from a SD card use it for the environment as well.
> 
> Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
> Signed-off-by: Poonam Aggrwal <Poonam.Aggrwal@freescale.com>
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> ---
> include/configs/P1_P2_RDB.h |    6 +++++-
> 1 files changed, 5 insertions(+), 1 deletions(-)

applied to 85xx

- k

Patch

diff --git a/include/configs/P1_P2_RDB.h b/include/configs/P1_P2_RDB.h
index a82ae26..31e88a8 100644
--- a/include/configs/P1_P2_RDB.h
+++ b/include/configs/P1_P2_RDB.h
@@ -522,7 +522,11 @@  extern unsigned long get_board_sys_clk(unsigned long dummy);
 	#define CONFIG_ENV_IS_IN_NAND	1
 	#define CONFIG_ENV_SIZE		CONFIG_SYS_NAND_BLOCK_SIZE
 	#define CONFIG_ENV_OFFSET	((512 * 1024) + CONFIG_SYS_NAND_BLOCK_SIZE)
-#elif defined(CONFIG_RAMBOOT_SDCARD) || defined(CONFIG_RAMBOOT_SPIFLASH)
+#elif defined(CONFIG_RAMBOOT_SDCARD)
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_ENV_SIZE			0x2000
+#define CONFIG_SYS_MMC_ENV_DEV		0
+#elif defined(CONFIG_RAMBOOT_SPIFLASH)
 	#define CONFIG_ENV_IS_NOWHERE	1	/* Store ENV in memory only */
 	#define CONFIG_ENV_ADDR		(CONFIG_SYS_MONITOR_BASE - 0x1000)
 	#define CONFIG_ENV_SIZE		0x2000