summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/flash.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/common/flash.c b/common/flash.c
index d39729980b..ccb0827806 100644
--- a/common/flash.c
+++ b/common/flash.c
@@ -626,16 +626,6 @@ static int flash_command_protect(struct host_cmd_handler_args *args)
if (!(r->flags & EC_FLASH_PROTECT_RO_NOW))
r->writable_flags |= EC_FLASH_PROTECT_RO_AT_BOOT;
-#ifdef CHIP_FAMILY_STM32F
- /*
- * TODO(crosbug.com/p/23762): Should ignore all-now on STM32F if WP
- * isn't asserted. We don't do this due to limitations in early snow
- * boards (lack of WP GPIO?) - in which case, this can either be
- * restricted to BOARD_SNOW, or removed entirely.
- */
- r->valid_flags |= EC_FLASH_PROTECT_ALL_NOW;
- r->writable_flags |= EC_FLASH_PROTECT_ALL_NOW;
-#else
/*
* If entire flash isn't protected at this boot, it can be enabled if
* the WP GPIO is asserted.
@@ -643,7 +633,6 @@ static int flash_command_protect(struct host_cmd_handler_args *args)
if (!(r->flags & EC_FLASH_PROTECT_ALL_NOW) &&
(r->flags & EC_FLASH_PROTECT_GPIO_ASSERTED))
r->writable_flags |= EC_FLASH_PROTECT_ALL_NOW;
-#endif
args->response_size = sizeof(*r);