Files
OpenCellular/chip/stm32
Vincent Palatin 9ce66a98b2 zinger: enable RO partition write-protection
Check the flash protection at startup, if the RDP is still at level 0
(no read protection) or if the RO partition is not write protected :
- set the write protection on the first 16KB of flash (4 LSB of WRP0)
- push the RDP to level 1, so SWD/serial monitor needs to fully erase
  the part before re-writing the code or the write-protection.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>

BRANCH=samus
BUG=chrome-os-partner:34935
TEST=dump the content of the option bytes.

Change-Id: I11af64365a6fbc34327b2e463eb8e2d369ffacd2
Reviewed-on: https://chromium-review.googlesource.com/238262
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Trybot-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
2015-01-05 19:10:27 +00:00
..
2014-10-07 20:58:52 +00:00
2014-12-05 10:06:25 +00:00
2014-11-18 09:10:42 +00:00
2014-10-07 20:58:52 +00:00
2014-10-15 23:55:55 +00:00
2014-10-07 20:58:52 +00:00
2014-10-07 20:58:52 +00:00
2014-10-07 20:58:52 +00:00
2014-10-07 20:58:52 +00:00
2014-10-07 20:58:52 +00:00
2014-08-29 03:00:20 +00:00
2014-08-29 03:00:20 +00:00
2014-10-07 20:58:52 +00:00
2013-07-01 10:19:49 -07:00
2013-07-08 13:53:58 -07:00
2013-12-16 20:28:32 +00:00
2014-09-24 08:56:21 +00:00
2014-10-07 20:58:52 +00:00
2014-10-15 23:55:55 +00:00
2014-10-07 20:58:52 +00:00
2014-10-08 02:50:48 +00:00
2014-10-08 02:50:48 +00:00