Patchwork [U-Boot,v2,4/4] Armada100: Add env storage support for Marvell gplugD

login
register
mail settings
Submitter Ajay Bhargav
Date Sept. 21, 2011, 7:01 a.m.
Message ID <1316588460-4767-4-git-send-email-ajay.bhargav@einfochips.com>
Download mbox | patch
Permalink /patch/115689/
State Accepted
Headers show

Comments

Ajay Bhargav - Sept. 21, 2011, 7:01 a.m.
This patch adds support for envrionment varaible storage in SPI flash
for Marvell gplugD.

Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
---
Changes for v2:
	- Not changed

 include/configs/gplugd.h |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
Prafulla Wadaskar - Oct. 3, 2011, 4:47 a.m.
> -----Original Message-----
> From: Ajay Bhargav [mailto:ajay.bhargav@einfochips.com]
> Sent: Wednesday, September 21, 2011 12:31 PM
> To: Prafulla Wadaskar
> Cc: u-boot@lists.denx.de; marek.vasut@gmail.com; vapier@gentoo.org; Ajay
> Bhargav
> Subject: [PATCH v2 4/4] Armada100: Add env storage support for Marvell
> gplugD
> 
> This patch adds support for envrionment varaible storage in SPI flash
> for Marvell gplugD.
> 
> Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
> ---
> Changes for v2:
> 	- Not changed
> 
>  include/configs/gplugd.h |   10 ++++++++--
>  1 files changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/include/configs/gplugd.h b/include/configs/gplugd.h
> index 260a1dc..8905df8 100644
> --- a/include/configs/gplugd.h
> +++ b/include/configs/gplugd.h
> @@ -116,7 +116,13 @@
>  /*
>   * Environment variables configurations
>   */
> -#define CONFIG_ENV_IS_NOWHERE	1	/* if env in SDRAM */
> -#define CONFIG_ENV_SIZE	0x20000		/* 64k */
> +#define CONFIG_ENV_IS_IN_SPI_FLASH
> +#define CONFIG_ENV_SECT_SIZE		0x4000
> +#define CONFIG_ENV_SIZE			0x4000
> +#define CONFIG_ENV_OFFSET		0x07C000
> +
> +#define CONFIG_CMD_ASKENV
> +#define CONFIG_CMD_EDITENV
> +#define CONFIG_CMD_SAVEENV
> 
>  #endif	/* __CONFIG_GPLUGD_H */
> --
> 1.7.0.4


Applied to u-boot-marvell.git master branch

Regards..
Prafulla . .

Patch

diff --git a/include/configs/gplugd.h b/include/configs/gplugd.h
index 260a1dc..8905df8 100644
--- a/include/configs/gplugd.h
+++ b/include/configs/gplugd.h
@@ -116,7 +116,13 @@ 
 /*
  * Environment variables configurations
  */
-#define CONFIG_ENV_IS_NOWHERE	1	/* if env in SDRAM */
-#define CONFIG_ENV_SIZE	0x20000		/* 64k */
+#define CONFIG_ENV_IS_IN_SPI_FLASH
+#define CONFIG_ENV_SECT_SIZE		0x4000
+#define CONFIG_ENV_SIZE			0x4000
+#define CONFIG_ENV_OFFSET		0x07C000
+
+#define CONFIG_CMD_ASKENV
+#define CONFIG_CMD_EDITENV
+#define CONFIG_CMD_SAVEENV
 
 #endif	/* __CONFIG_GPLUGD_H */