diff options
Diffstat (limited to 'board/omap2420h4/flash.c')
-rw-r--r-- | board/omap2420h4/flash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/omap2420h4/flash.c b/board/omap2420h4/flash.c index 3b6a69f..d5e106a 100644 --- a/board/omap2420h4/flash.c +++ b/board/omap2420h4/flash.c @@ -119,6 +119,7 @@ unsigned long flash_init (void) size += flash_info[i].size; } +#ifdef CFG_ENV_IS_IN_FLASH /* Protect monitor and environment sectors */ flash_protect (FLAG_PROTECT_SET, @@ -128,7 +129,7 @@ unsigned long flash_init (void) flash_protect (FLAG_PROTECT_SET, CFG_ENV_ADDR, CFG_ENV_ADDR + CFG_ENV_SIZE - 1, &flash_info[0]); - +#endif return size; } |