diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-12-11 06:23:37 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-12-16 00:47:10 +0100 |
commit | 5b3375ac8c36c29c87abb132fede0509eb21e5c9 (patch) | |
tree | f44ea206e43139a95a3f4340409b7e2c6016dac8 /include/configs/ERIC.h | |
parent | ecf5f077c8e77454f532eaac3e3afb7cfc48c62d (diff) | |
download | u-boot-imx-5b3375ac8c36c29c87abb132fede0509eb21e5c9.zip u-boot-imx-5b3375ac8c36c29c87abb132fede0509eb21e5c9.tar.gz u-boot-imx-5b3375ac8c36c29c87abb132fede0509eb21e5c9.tar.bz2 |
env_sf: support embedded environments
If both CONFIG_ENV_SECT_SIZE and CONFIG_ENV_SIZE are defined, and the sect
size is larger than the env size, then it means the env is embedded in a
block. So we have to save/restore the part of the sector which is not the
environment. Previously, saving the environment in SPI flash in this
setup would probably brick the board as the rest of the sector tends to
contain actual U-Boot data/code.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'include/configs/ERIC.h')
0 files changed, 0 insertions, 0 deletions