Armada100: Add env storage support for Marvell gplugD
authorAjay Bhargav <[ajay.bhargav@einfochips.com]>
Mon, 3 Oct 2011 08:30:58 +0000 (14:00 +0530)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 27 Oct 2011 19:56:33 +0000 (21:56 +0200)
This patch adds support for envrionment varaible storage in SPI flash
for Marvell gplugD.

Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
include/configs/gplugd.h

index 35ecdb535d1bdc7f0a0a8293b4a428c75e4fb3f7..24bf7675d6170839aaf16601e6d4770cba58a662 100644 (file)
 /*
  * 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 */