summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorBartlomiej Sieka <tur@semihalf.com>2007-01-23 14:21:14 +0100
committerBartlomiej Sieka <tur@semihalf.com>2007-01-23 14:21:14 +0100
commitf7db33101fbc9c8f0a10738ce87034875a17aeb9 (patch)
treee1f4d69e59059efe9d6a468521fadebaadcc1933 /board
parent0ed47bb119cd2c4c16edb2548789148f9e6dc9de (diff)
downloadu-boot-imx-f7db33101fbc9c8f0a10738ce87034875a17aeb9.zip
u-boot-imx-f7db33101fbc9c8f0a10738ce87034875a17aeb9.tar.gz
u-boot-imx-f7db33101fbc9c8f0a10738ce87034875a17aeb9.tar.bz2
[iDMR] Flash driver on initialisation write-protects some sectors,
currently sectors 0-3. Sector 3 does not need to be protected, though (U-boot occupies sectors 0-1 and the environment sector 2). This commit fixes this, i.e., only sectors 0-2 are protected.
Diffstat (limited to 'board')
-rw-r--r--board/idmr/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/idmr/flash.c b/board/idmr/flash.c
index ba9b009..33512b8 100644
--- a/board/idmr/flash.c
+++ b/board/idmr/flash.c
@@ -97,7 +97,7 @@ unsigned long flash_init (void)
flash_protect (FLAG_PROTECT_SET,
CFG_FLASH_BASE,
- CFG_FLASH_BASE + 0x30000, &flash_info[0]);
+ CFG_FLASH_BASE + 0x2ffff, &flash_info[0]);
return size;
}