diff options
| author | wdenk <wdenk> | 2004-12-31 09:32:47 +0000 | 
|---|---|---|
| committer | wdenk <wdenk> | 2004-12-31 09:32:47 +0000 | 
| commit | e2ffd59b4d93c9149de1caaa087371b0cfc512c9 (patch) | |
| tree | 86cfb6e30bec1686253b0542d76f57c5d62d183a /common/cmd_flash.c | |
| parent | 400ab719c6025c176c50bcdff342384222d7424b (diff) | |
| download | olio-uboot-2014.01-e2ffd59b4d93c9149de1caaa087371b0cfc512c9.tar.xz olio-uboot-2014.01-e2ffd59b4d93c9149de1caaa087371b0cfc512c9.zip | |
* Code cleanup, mostly for GCC-3.3.x
* Cleanup confusing use of CONFIG_ETH*ADDR - ust his only to
  pre-define a MAC address; use CONFIG_HAS_ETH* to enable support for
  additional ethernet addresses.
* Cleanup drivers/i82365.c - avoid duplication of code
* Fix bogus "cannot span across banks" flash error message
* Add support for CompactFlash for the CPC45 Board.
Diffstat (limited to 'common/cmd_flash.c')
| -rw-r--r-- | common/cmd_flash.c | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/common/cmd_flash.c b/common/cmd_flash.c index 5ecf88873..b2728ab1d 100644 --- a/common/cmd_flash.c +++ b/common/cmd_flash.c @@ -164,6 +164,10 @@ flash_fill_sect_ranges (ulong addr_first, ulong addr_last,  			sect = s_last[bank];  			addr_first = (sect == s_end) ? b_end + 1: info->start[sect + 1];  			(*s_count) += s_last[bank] - s_first[bank] + 1; +		} else if (addr_first >= info->start[0] && addr_first < b_end) { +			puts ("Error: start address not on sector boundary\n"); +			rcode = 1; +			break;  		} else if (s_last[bank] >= 0) {  			puts ("Error: cannot span across banks when they are"  			       " mapped in reverse order\n"); |