X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=board%2Feltec%2Fbab7xx%2Fflash.c;h=73496a13dedcb4735cf9318db06ab29c7f2182a0;hp=5834c9999903e4e816443f9567718a5bd8f402e4;hb=3b57fe0a70b903f4db66c558bb9828bc58acf06b;hpb=f07771cc288eb86cad8f8a5c1aa593caf2ba26f8 diff --git a/board/eltec/bab7xx/flash.c b/board/eltec/bab7xx/flash.c index 5834c99999..73496a13de 100644 --- a/board/eltec/bab7xx/flash.c +++ b/board/eltec/bab7xx/flash.c @@ -83,21 +83,21 @@ unsigned long flash_init (void) { (void)flash_protect(FLAG_PROTECT_SET, FLASH_BASE0_PRELIM, - FLASH_BASE0_PRELIM+CFG_MONITOR_LEN-1, + FLASH_BASE0_PRELIM+monitor_flash_len-1, &flash_info[0]); } if (size2 == 512*1024) { (void)flash_protect(FLAG_PROTECT_SET, FLASH_BASE1_PRELIM, - FLASH_BASE1_PRELIM+CFG_MONITOR_LEN-1, + FLASH_BASE1_PRELIM+monitor_flash_len-1, &flash_info[1]); } if (size2 == 4*1024*1024) { (void)flash_protect(FLAG_PROTECT_SET, CFG_FLASH_BASE, - CFG_FLASH_BASE+CFG_MONITOR_LEN-1, + CFG_FLASH_BASE+monitor_flash_len-1, &flash_info[1]); }