diff options
author | Matthias Fuchs <matthias.fuchs@esd-electronics.com> | 2008-04-18 16:29:40 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-04-25 15:52:14 +0200 |
commit | c63ad6325a8ac0097a54b418a3288926b0484b18 (patch) | |
tree | e1559e0c2898ea63e519193000b643f427a2d2e8 /include/74xx_7xx.h | |
parent | d0d91ae3acb4f29d1a2a3a766747478ed54e2848 (diff) | |
download | u-boot-imx-c63ad6325a8ac0097a54b418a3288926b0484b18.zip u-boot-imx-c63ad6325a8ac0097a54b418a3288926b0484b18.tar.gz u-boot-imx-c63ad6325a8ac0097a54b418a3288926b0484b18.tar.bz2 |
cfi-flash: Add CFG_FLASH_AUTOPROTECT_LIST
This patch adds a configurable flash auto protection list that can be used
to make U-Boot protect flash regions in flash_init().
The idea has been discussed on the u-boot mailing list starting
on Nov 18th, 2007.
Even this patch brings a new feature it is used as a bugfix for 4xx
platforms where flash_init() does not completely protect the
monitor's flash range in all situations.
U-Boot protects the flash range from CFG_MONITOR_BASE to
(CFG_MONITOR_BASE + monitor_flash_len - 1) by default. This does not
include the reset vector at 0xfffffffc.
Example:
#define CFG_FLASH_AUTOPROTECT_LIST {{0xfff80000, 0x80000}}
This config option will auto protect the last 512k of flash that
contains the bootloader on board like APC405 and PMC405.
Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Diffstat (limited to 'include/74xx_7xx.h')
0 files changed, 0 insertions, 0 deletions