Gwendal Grignou
a35218e204
stm32f4: Add OTP support.
...
Add support for OTP memory: if needed store serial number in first bank.
BUG=chromium:746471
BRANCH=none
TEST=On sweetberry, check we can write serial number with serialno
command. Check serial number survive a firmware update.
First, check without write protect, check we can write 0s (but not 1s)
serialno
Serial number: NNNNNNNNNNNNNNNNNNNNNN
>
> serial set MMMMMMMMMMMMMMMMMMMMMMMMMMMMM
Saving serial number
Serial number: LLLLLLLLLLLLLLLLLLLLLL
After lock enabled, check we can not overwrite.
> serial set AMMMMMMMMMMMMMMMMMMMMMMMMMMMM
Saving serial number
Serial number: LLLLLLLLLLLLLLLLLLLLLL
Access Denied
Check that serialno returns "Uninitialized" if it was never set.
Change-Id: I9ab08486a7c3e1958e964649640d69b5b70947e3
Signed-off-by: Gwendal Grignou <gwendal@chromium.org >
Reviewed-on: https://chromium-review.googlesource.com/580290
Reviewed-by: Nick Sanders <nsanders@chromium.org >
2017-07-28 17:45:13 -07:00
..
2014-03-20 23:51:28 +00:00
2016-11-15 17:41:53 -08:00
2017-01-02 14:04:10 -08:00
2017-01-02 14:04:10 -08:00
2017-07-28 17:45:13 -07:00
2016-02-26 21:22:07 -08:00
2017-06-21 01:02:59 -07:00
2017-06-21 01:02:59 -07:00
2017-01-26 18:43:53 -08:00
2014-10-07 20:58:52 +00:00
2017-06-21 01:02:59 -07:00
2017-06-21 01:02:59 -07:00
2017-06-21 01:02:59 -07:00
2017-03-28 11:27:57 -07:00
2016-04-19 19:19:10 -07:00
2015-10-19 15:15:36 -07:00
2015-09-16 14:49:33 -07:00
2017-02-27 16:56:24 -08:00
2015-09-16 14:49:33 -07:00
2017-07-28 17:45:13 -07:00
2015-09-16 14:49:33 -07:00
2015-09-16 14:49:33 -07:00
2017-02-17 01:47:29 -08:00
2016-04-25 16:49:02 -07:00
2015-06-18 19:07:00 +00:00
2015-10-19 13:45:49 -07:00
2015-10-19 13:45:49 -07:00
2016-08-17 16:19:07 -07:00
2016-08-17 16:19:07 -07:00
2017-07-07 02:40:03 -07:00
2017-02-25 08:36:41 -08:00
2017-06-28 00:58:59 -07:00
2017-06-28 00:58:59 -07:00
2017-03-24 19:38:04 -07:00
2017-02-12 21:05:11 -08:00
2016-03-02 20:26:20 -08:00
2016-04-27 14:04:07 -07:00
2015-09-29 21:11:40 -07:00
2015-09-29 21:11:40 -07:00
2017-04-26 11:25:57 -07:00
2016-07-29 10:51:20 -07:00
2015-09-29 21:11:40 -07:00
2017-07-17 07:21:48 -07:00
2017-06-26 11:12:07 -07:00
2017-06-26 11:12:07 -07:00
2017-07-10 11:22:35 -07:00
2014-10-07 20:58:52 +00:00
2017-05-23 16:56:55 -07:00
2016-10-05 20:58:20 -07:00
2016-08-24 16:30:10 +00:00
2014-03-11 05:52:44 +00:00
2014-10-07 20:58:52 +00:00
2016-08-17 16:19:07 -07:00
2016-04-25 16:49:02 -07:00
2013-07-08 13:53:58 -07:00
2014-10-02 20:51:05 +00:00
2017-07-28 17:45:13 -07:00
2016-08-24 16:30:10 +00:00
2015-12-04 01:20:33 -08:00
2017-07-04 06:51:01 -07:00
2017-07-28 17:45:13 -07:00
2017-05-22 05:02:46 -07:00
2017-03-13 05:16:04 -07:00
2016-04-25 16:49:01 -07:00
2017-06-12 20:27:55 -07:00
2017-02-23 11:36:21 -08:00
2016-11-15 17:41:53 -08:00
2016-08-24 16:30:10 +00:00
2015-08-24 19:08:35 +00:00
2016-11-15 17:41:53 -08:00
2015-08-10 17:54:17 +00:00
2015-08-10 17:54:17 +00:00
2015-08-24 19:08:35 +00:00
2015-08-24 19:08:35 +00:00
2015-07-21 18:30:40 +00:00
2016-11-15 17:41:53 -08:00
2015-08-24 19:08:35 +00:00
2016-11-15 17:41:53 -08:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:30 +00:00
2017-07-13 17:30:40 -07:00
2017-07-13 17:30:40 -07:00
2017-03-16 11:25:50 -07:00
2016-09-02 21:17:22 -07:00
2016-09-01 22:56:22 -07:00
2016-10-21 21:20:49 -07:00
2016-09-02 21:17:22 -07:00
2016-09-02 21:17:22 -07:00
2016-09-02 21:17:22 -07:00
2016-09-02 21:17:22 -07:00
2017-07-28 17:45:13 -07:00
2015-01-05 19:10:22 +00:00
2015-06-18 05:07:55 +00:00
2017-03-16 11:25:50 -07:00
2017-05-18 06:03:52 -07:00
2017-06-02 23:59:05 -07:00
2017-07-27 04:22:43 -07:00
2017-05-18 06:03:52 -07:00
2016-11-22 18:36:36 -08:00
2015-10-23 19:29:27 -07:00
2017-07-24 22:54:04 -07:00
2016-11-11 17:20:19 -08:00
2017-03-16 11:25:50 -07:00
2017-03-16 11:25:50 -07:00
2017-03-01 07:25:03 -08:00
2017-03-01 07:25:03 -08:00
2014-11-11 21:46:16 +00:00
2017-03-01 07:25:03 -08:00
2017-07-13 17:30:40 -07:00
2017-07-13 17:30:40 -07:00
2017-07-28 17:45:13 -07:00
2014-06-20 18:27:26 +00:00