summaryrefslogtreecommitdiff
path: root/board/omap2420h4/flash.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-01-12 00:15:14 +0000
committerwdenk <wdenk>2005-01-12 00:15:14 +0000
commit289f932c5ff628bf21a05073243071a01a2d3b02 (patch)
treeadfa2abf61660375c7d3609b100f18f1b30dde90 /board/omap2420h4/flash.c
parent082acfd4849d2f0471b0709fe7f5ce1de387437d (diff)
downloadu-boot-imx-289f932c5ff628bf21a05073243071a01a2d3b02.zip
u-boot-imx-289f932c5ff628bf21a05073243071a01a2d3b02.tar.gz
u-boot-imx-289f932c5ff628bf21a05073243071a01a2d3b02.tar.bz2
* Some Cleanup.
* Patch by Richard Woodruff, 10 Jan 2005: Update support for OMAP2420 (ARM11) and H4 board: o clean up and add new types to H4 memory probe code. o fix to work with internal boot. o added PRCM config III operation. o fix marginal flash timings. o add revison ATAG usage. o enable voltage scaling at power chip. o fix compile error for i2c. * Fix network problem (error when receiving multiple ARP packets)
Diffstat (limited to 'board/omap2420h4/flash.c')
-rw-r--r--board/omap2420h4/flash.c3
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;
}