summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chip/g/config_std_flash.h12
-rw-r--r--chip/it83xx/config_chip.h12
-rw-r--r--chip/lm4/config_chip.h12
-rw-r--r--include/config.h8
4 files changed, 3 insertions, 41 deletions
diff --git a/chip/g/config_std_flash.h b/chip/g/config_std_flash.h
index a123b6cccc..cee332fad2 100644
--- a/chip/g/config_std_flash.h
+++ b/chip/g/config_std_flash.h
@@ -15,23 +15,13 @@
*/
#define CONFIG_FW_PSTATE_SIZE CONFIG_FLASH_BANK_SIZE
-#ifdef CONFIG_PSTATE_AT_END
-/* PSTATE is at end of flash */
-#define CONFIG_FW_RO_SIZE CONFIG_FW_IMAGE_SIZE
-#define CONFIG_FW_PSTATE_OFF (CONFIG_FLASH_PHYSICAL_SIZE \
- - CONFIG_FW_PSTATE_SIZE)
-/* Don't claim PSTATE is part of flash */
-#define CONFIG_FLASH_SIZE CONFIG_FW_PSTATE_OFF
-
-#else
/* PSTATE immediately follows RO, in the first half of flash */
#define CONFIG_FW_RO_SIZE (CONFIG_FW_IMAGE_SIZE \
- CONFIG_FW_PSTATE_SIZE)
#define CONFIG_FW_PSTATE_OFF CONFIG_FW_RO_SIZE
#define CONFIG_FLASH_SIZE CONFIG_FLASH_PHYSICAL_SIZE
-#endif
-/* Either way, RW firmware is one firmware image offset from the start */
+/* RW firmware is one firmware image offset from the start */
#define CONFIG_FW_RW_OFF CONFIG_FW_IMAGE_SIZE
#define CONFIG_FW_RW_SIZE CONFIG_FW_IMAGE_SIZE
diff --git a/chip/it83xx/config_chip.h b/chip/it83xx/config_chip.h
index 55e41763b4..a282933faa 100644
--- a/chip/it83xx/config_chip.h
+++ b/chip/it83xx/config_chip.h
@@ -69,23 +69,13 @@
*/
#define CONFIG_FW_PSTATE_SIZE CONFIG_FLASH_BANK_SIZE
-#ifdef CONFIG_PSTATE_AT_END
-/* PSTATE is at end of flash */
-#define CONFIG_FW_RO_SIZE CONFIG_FW_IMAGE_SIZE
-#define CONFIG_FW_PSTATE_OFF (CONFIG_FLASH_PHYSICAL_SIZE \
- - CONFIG_FW_PSTATE_SIZE)
-/* Don't claim PSTATE is part of flash */
-#define CONFIG_FLASH_SIZE CONFIG_FW_PSTATE_OFF
-
-#else
/* PSTATE immediately follows RO, in the first half of flash */
#define CONFIG_FW_RO_SIZE (CONFIG_FW_IMAGE_SIZE \
- CONFIG_FW_PSTATE_SIZE)
#define CONFIG_FW_PSTATE_OFF CONFIG_FW_RO_SIZE
#define CONFIG_FLASH_SIZE CONFIG_FLASH_PHYSICAL_SIZE
-#endif
-/* Either way, RW firmware is one firmware image offset from the start */
+/* RW firmware is one firmware image offset from the start */
#define CONFIG_FW_RW_OFF CONFIG_FW_IMAGE_SIZE
#define CONFIG_FW_RW_SIZE CONFIG_FW_IMAGE_SIZE
diff --git a/chip/lm4/config_chip.h b/chip/lm4/config_chip.h
index 88f6a76668..535b677701 100644
--- a/chip/lm4/config_chip.h
+++ b/chip/lm4/config_chip.h
@@ -83,23 +83,13 @@
*/
#define CONFIG_FW_PSTATE_SIZE CONFIG_FLASH_BANK_SIZE
-#ifdef CONFIG_PSTATE_AT_END
-/* PSTATE is at end of flash */
-#define CONFIG_FW_RO_SIZE CONFIG_FW_IMAGE_SIZE
-#define CONFIG_FW_PSTATE_OFF (CONFIG_FLASH_PHYSICAL_SIZE \
- - CONFIG_FW_PSTATE_SIZE)
-/* Don't claim PSTATE is part of flash */
-#define CONFIG_FLASH_SIZE CONFIG_FW_PSTATE_OFF
-
-#else
/* PSTATE immediately follows RO, in the first half of flash */
#define CONFIG_FW_RO_SIZE (CONFIG_FW_IMAGE_SIZE \
- CONFIG_FW_PSTATE_SIZE)
#define CONFIG_FW_PSTATE_OFF CONFIG_FW_RO_SIZE
#define CONFIG_FLASH_SIZE CONFIG_FLASH_PHYSICAL_SIZE
-#endif
-/* Either way, RW firmware is one firmware image offset from the start */
+/* RW firmware is one firmware image offset from the start */
#define CONFIG_FW_RW_OFF CONFIG_FW_IMAGE_SIZE
#define CONFIG_FW_RW_SIZE CONFIG_FW_IMAGE_SIZE
diff --git a/include/config.h b/include/config.h
index dd5e836ede..245d50301b 100644
--- a/include/config.h
+++ b/include/config.h
@@ -970,14 +970,6 @@
/* Compile common code for AP power state machine */
#undef CONFIG_POWER_COMMON
-/*
- * The EC stores persistent state information for flash write protect in a
- * block of flash. If this option is defined, the information is in the last
- * bank of flash, instead of the last bank in the nominally read-only section
- * of flash.
- */
-#undef CONFIG_PSTATE_AT_END
-
/* Use part of the EC's data EEPROM to hold persistent storage for the AP. */
#undef CONFIG_PSTORE