summaryrefslogtreecommitdiff
path: root/chip/stm32/flash-stm32f100.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/flash-stm32f100.c')
-rw-r--r--chip/stm32/flash-stm32f100.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/chip/stm32/flash-stm32f100.c b/chip/stm32/flash-stm32f100.c
index e9f888a581..583b4225ab 100644
--- a/chip/stm32/flash-stm32f100.c
+++ b/chip/stm32/flash-stm32f100.c
@@ -253,7 +253,9 @@ int flash_physical_get_protect(int block)
void flash_physical_set_protect(int block)
{
+ if (0) { /* TODO: crosbug.com/p/9849 verify WP */
int byte_off = STM32_OPTB_WRP_OFF(block/8);
uint8_t val = read_optb(byte_off) | (1 << (block % 8));
write_optb(byte_off, val);
+ }
}