From: Bartlomiej Sieka Date: Tue, 23 Jan 2007 13:21:14 +0000 (+0100) Subject: [iDMR] Flash driver on initialisation write-protects some sectors, X-Git-Tag: v1.3.0-rc1~181^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f7db33101fbc9c8f0a10738ce87034875a17aeb9;p=u-boot [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. --- diff --git a/board/idmr/flash.c b/board/idmr/flash.c index ba9b009e1c..33512b8946 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; }