summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobin Getz <[email protected]>2009-07-10 18:37:15 +0000
committerTom Rix <[email protected]>2009-10-03 09:04:05 -0500
commit8e5dc6f986dc340331c98081d53c96473e07953d (patch)
treef9621e09a39ee36d1e3d9415f307d436fdd45128 /include
parente08dbb4f203b7fd4311378c894c9924941666002 (diff)
Blackfin: use +(filesize) to make sure we are only doing what is necessary
Signed-off-by: Robin Getz <[email protected]> Signed-off-by: Mike Frysinger <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/configs/bfin_adi_common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/configs/bfin_adi_common.h b/include/configs/bfin_adi_common.h
index 1ca2e514205..ceb130c813d 100644
--- a/include/configs/bfin_adi_common.h
+++ b/include/configs/bfin_adi_common.h
@@ -160,8 +160,8 @@
"nand write $(loadaddr) 0 0x40000"
# else
# define UBOOT_ENV_UPDATE \
- "protect off 0x20000000 0x2003FFFF;" \
- "erase 0x20000000 0x2003FFFF;" \
+ "protect off 0x20000000 +$(filesize);" \
+ "erase 0x20000000 +$(filesize);" \
"cp.b $(loadaddr) 0x20000000 $(filesize)"
# endif
# define NETWORK_ENV_SETTINGS \