summaryrefslogtreecommitdiff
path: root/include/flash.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/flash.h')
-rw-r--r--include/flash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/flash.h b/include/flash.h
index 3a4a120938..f2cc480dba 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -23,10 +23,12 @@
#define RW_BANK_COUNT (CONFIG_FW_RW_SIZE / CONFIG_FLASH_BANK_SIZE)
/* Persistent protection state flash offset / size / bank */
+#ifdef CONFIG_FLASH_PSTATE
#define PSTATE_OFFSET CONFIG_FW_PSTATE_OFF
#define PSTATE_SIZE CONFIG_FW_PSTATE_SIZE
#define PSTATE_BANK (PSTATE_OFFSET / CONFIG_FLASH_BANK_SIZE)
#define PSTATE_BANK_COUNT (PSTATE_SIZE / CONFIG_FLASH_BANK_SIZE)
+#endif
/* Range of write protection */
enum flash_wp_range {