diff options
Diffstat (limited to 'chip/lm4')
-rw-r--r-- | chip/lm4/config_chip.h | 2 | ||||
-rw-r--r-- | chip/lm4/flash.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chip/lm4/config_chip.h b/chip/lm4/config_chip.h index 65c3f07889..80b653274d 100644 --- a/chip/lm4/config_chip.h +++ b/chip/lm4/config_chip.h @@ -64,7 +64,7 @@ * in order to emulate per-bank write-protection UNTIL REBOOT. The hardware * doesn't support a write-protect pin, and if we make the write-protection * permanent, it can't be undone easily enough to support RMA. */ -#define CONFIG_FLASH_PHYSICAL_SIZE 0x00040000 +#define CONFIG_FLASH_SIZE 0x00040000 /****************************************************************************/ /* Define our flash layout. */ diff --git a/chip/lm4/flash.c b/chip/lm4/flash.c index 6a5634f5b3..1c8da9b26a 100644 --- a/chip/lm4/flash.c +++ b/chip/lm4/flash.c @@ -193,7 +193,7 @@ int flash_physical_protect_now(int all) if (all) { /* Protect the entire flash */ all_protected = 1; - protect_banks(0, CONFIG_FLASH_PHYSICAL_SIZE / + protect_banks(0, CONFIG_FLASH_SIZE / CONFIG_FLASH_BANK_SIZE); } else /* Protect the WP region (read-only section and pstate) */ |