summaryrefslogtreecommitdiff
path: root/chip/mec1322/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/mec1322/flash.c')
-rw-r--r--chip/mec1322/flash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/chip/mec1322/flash.c b/chip/mec1322/flash.c
index d628109108..194926c15a 100644
--- a/chip/mec1322/flash.c
+++ b/chip/mec1322/flash.c
@@ -223,6 +223,8 @@ int flash_physical_protect_at_boot(enum flash_wp_range range)
size = CONFIG_WP_STORAGE_SIZE;
flashwp = SPI_WP_HARDWARE;
break;
+ default:
+ return EC_ERROR_INVAL;
}
ret = spi_flash_set_protect(offset, size);