diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2012-05-21 18:43:11 +0000 |
---|---|---|
committer | Vincent Palatin <vpalatin@chromium.org> | 2012-05-21 18:48:27 +0000 |
commit | 1ac197d566d74b5dfd2abbd57c191e464aa46d8b (patch) | |
tree | 8695185f8cf777ece633afcda471846a090d99f2 /chip | |
parent | 6b2a23bf8383ceed81a34a9fd5f945f90e75f990 (diff) | |
download | chrome-ec-1ac197d566d74b5dfd2abbd57c191e464aa46d8b.tar.gz |
stm32: de-activate write protect feature until it is validated
Don't do anything on write protect until we have properly verify the
current implementation to avoid bricking Daisy and Snow boards.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=chrome-os-partner:8865 chrome-os-partner:9849
TEST=None
Change-Id: I599a2a733b7304dc17286fae6fd7807fd8f6981c
Diffstat (limited to 'chip')
-rw-r--r-- | chip/stm32/flash-stm32f100.c | 2 | ||||
-rw-r--r-- | chip/stm32/flash-stm32l15x.c | 2 |
2 files changed, 4 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); + } } diff --git a/chip/stm32/flash-stm32l15x.c b/chip/stm32/flash-stm32l15x.c index 4361dddfb7..e045694dab 100644 --- a/chip/stm32/flash-stm32l15x.c +++ b/chip/stm32/flash-stm32l15x.c @@ -311,7 +311,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); + } } |