summaryrefslogtreecommitdiff
path: root/include/configs/qemu-arm.h
diff options
context:
space:
mode:
authorSumit Garg <sumit.garg@linaro.org>2018-11-26 14:20:17 +0300
committerTom Rini <trini@konsulko.com>2018-12-12 20:14:21 +0300
commit03fb0958c9090eb3add089cb9f5a8a5ecb30ddf6 (patch)
tree3094c913aa257de5fa0dca1b2fb1b079b357eab5 /include/configs/qemu-arm.h
parent5266db16eeba3318e2d0a6e27eb91c0b494d0de4 (diff)
downloadu-boot-03fb0958c9090eb3add089cb9f5a8a5ecb30ddf6.tar.xz
qemu-arm: Add persistent environment support
Currently on qemu-arm platforms environment is kept in RAM. Instead use pflash device 1 to provide persistent environment support across device reset. Also (optionally) provide support for persistent environment across qemu machine OFF/ON using following instructions: - Create envstore.img using qemu-img: qemu-img create -f raw envstore.img 64M - Add a pflash drive parameter to the command line: -drive if=pflash,format=raw,index=1,file=envstore.img Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Diffstat (limited to 'include/configs/qemu-arm.h')
-rw-r--r--include/configs/qemu-arm.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/configs/qemu-arm.h b/include/configs/qemu-arm.h
index 33dcce0f92..0431a7982d 100644
--- a/include/configs/qemu-arm.h
+++ b/include/configs/qemu-arm.h
@@ -21,7 +21,8 @@
#define CONFIG_SYS_HZ 1000
/* Environment options */
-#define CONFIG_ENV_SIZE SZ_64K
+#define CONFIG_ENV_ADDR 0x4000000
+#define CONFIG_ENV_SIZE SZ_256K
#define BOOT_TARGET_DEVICES(func) \
func(SCSI, scsi, 0) \
@@ -43,4 +44,9 @@
#define CONFIG_SYS_CBSIZE 512
+#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
+#define CONFIG_SYS_FLASH_BASE 0x0
+#define CONFIG_SYS_MAX_FLASH_BANKS 2
+#define CONFIG_SYS_MAX_FLASH_SECT 256 /* Sector: 256K, Bank: 64M */
+
#endif /* __CONFIG_H */