Andrey Petrov
ef4d930f88
cyan: fix issues with write protection
...
* Fixes cyan/board.h to use correct SPI part
* Adds new flash protection regions in spi_flash_reg.c
* Sets SRP register in flash_physical_protect_at_boot()
* Fixes a bug in COMPARE_BIT macro
* Makes spi_flash_set_status() fail only when both HW pin is asserted
AND SRP(s) are set
* Makes sure set_flash_set_status() completes before returning
BUG=chrome-os-partner:40908
BRANCH=master
TEST=on Cyan:
With WP pin de-asserted:
flashrom -p ec --wp-enable
flashrom -p ec --wp-status, make sure it is enabled
flashrom -p ec --wp-disable
flashrom -p ec --status, make sure it is disabled
flashrom -p ec --wp-enable
Assert WP pin (either with screwdriver or dut-control)
flashrom -p ec --wp-disable
make sure it failed
Change-Id: I338cc906b73e723fdbb37f7c2fd0c4da358b6c8e
Signed-off-by: Andrey Petrov <andrey.petrov@intel.com >
Reviewed-on: https://chromium-review.googlesource.com/276671
Reviewed-by: Shawn N <shawnn@chromium.org >
Tested-by: Divya Jyothi <divya.jyothi@intel.com >
Commit-Queue: Divya Jyothi <divya.jyothi@intel.com >
2015-07-16 18:47:22 +00:00
..
2015-07-15 03:39:12 +00:00
2013-12-12 18:21:56 +00:00
2015-07-16 05:15:22 +00:00
2015-01-21 05:05:47 +00:00
2013-12-17 21:27:53 +00:00
2015-04-10 22:08:25 +00:00
2014-12-31 00:01:00 +00:00
2015-06-18 19:07:00 +00:00
2014-07-23 02:29:59 +00:00
2015-06-04 19:33:00 +00:00
2013-04-05 14:28:42 -07:00
2014-02-08 04:15:39 +00:00
2014-02-08 04:15:39 +00:00
2015-06-18 19:07:00 +00:00
2015-07-13 03:18:38 +00:00
2015-06-18 19:07:00 +00:00
2014-04-11 15:37:38 +00:00
2014-12-15 19:53:46 +00:00
2015-01-15 05:13:14 +00:00
2015-07-14 22:39:36 +00:00
2015-04-10 22:08:25 +00:00
2015-02-10 10:47:07 +00:00
2015-07-01 03:49:14 +00:00
2015-06-18 19:07:00 +00:00
2015-05-15 06:42:30 +00:00
2015-07-16 18:47:22 +00:00
2015-05-19 02:46:27 +00:00
2015-06-18 19:07:00 +00:00
2015-06-18 19:07:00 +00:00
2015-06-18 19:07:00 +00:00
2015-01-09 05:40:18 +00:00
2014-02-08 00:14:48 +00:00
2015-07-15 21:58:15 +00:00
2013-10-25 20:12:49 +00:00
2012-10-26 09:49:38 -07:00
2015-06-10 18:24:05 +00:00
2014-11-06 02:28:22 +00:00
2015-05-15 06:42:30 +00:00
2014-10-29 22:23:43 +00:00
2015-05-27 03:58:16 +00:00
2015-05-27 03:58:16 +00:00
2015-06-30 17:18:54 +00:00
2015-05-27 03:58:16 +00:00
2015-07-13 18:43:56 +00:00
2015-06-25 17:21:50 +00:00
2013-06-26 09:08:23 -07:00
2013-03-20 15:23:29 -07:00
2015-06-17 13:10:58 +00:00
2012-11-04 20:27:57 -08:00
2015-06-18 19:07:00 +00:00
2015-04-10 22:08:25 +00:00
2014-02-07 04:13:18 +00:00
2015-01-24 06:42:02 +00:00
2013-10-30 23:10:13 +00:00
2014-02-07 04:13:14 +00:00
2015-04-10 22:08:25 +00:00
2014-04-11 20:02:30 +00:00
2013-03-22 11:24:29 -07:00
2014-10-08 02:50:54 +00:00
2013-08-07 12:43:48 -07:00
2015-02-05 19:41:41 +00:00
2013-04-02 14:12:57 -07:00
2014-10-08 02:50:54 +00:00
2014-10-15 18:22:37 +00:00
2014-11-21 06:23:16 +00:00
2015-06-17 13:10:58 +00:00
2015-06-25 17:21:50 +00:00
2015-06-18 19:07:00 +00:00
2011-12-07 19:10:02 +00:00
2014-10-24 01:37:58 +00:00
2015-04-30 02:31:22 +00:00
2015-03-06 08:48:39 +00:00
2015-07-15 02:07:01 +00:00
2012-10-25 14:12:11 -07:00
2015-03-14 03:22:37 +00:00
2012-11-01 12:45:22 -07:00
2015-06-18 19:07:00 +00:00
2015-04-27 23:29:30 +00:00
2015-06-04 01:15:55 +00:00
2013-04-24 16:32:58 -07:00
2015-07-14 07:35:27 +00:00
2012-10-25 14:12:10 -07:00
2015-06-18 19:07:00 +00:00
2013-10-30 23:10:10 +00:00
2015-06-18 19:07:00 +00:00
2015-07-15 21:57:36 +00:00
2015-06-18 19:07:00 +00:00
2015-06-18 19:07:00 +00:00
2015-06-18 19:07:00 +00:00
2012-08-09 17:40:37 -07:00
2015-06-18 19:07:00 +00:00
2015-02-18 04:53:59 +00:00
2015-06-18 19:07:00 +00:00
2015-03-11 23:18:09 +00:00
2015-05-07 23:39:06 +00:00
2015-06-18 19:07:00 +00:00
2015-04-10 22:08:25 +00:00
2015-07-08 09:25:48 +00:00
2015-06-18 19:07:00 +00:00
2015-07-13 18:43:56 +00:00
2015-06-18 19:07:00 +00:00
2014-02-08 04:21:26 +00:00
2015-06-17 13:10:58 +00:00
2015-01-14 03:15:41 +00:00
2014-08-10 18:39:24 +00:00
2013-11-21 00:09:09 +00:00
2015-04-10 22:08:25 +00:00
2015-06-18 19:07:00 +00:00
2015-06-18 19:07:00 +00:00
2015-07-13 03:18:32 +00:00
2015-06-18 19:07:00 +00:00
2015-06-18 19:07:00 +00:00
2015-06-30 17:18:40 +00:00
2015-06-18 19:07:00 +00:00
2015-06-30 17:18:31 +00:00
2015-07-15 20:29:30 +00:00
2015-06-18 19:07:00 +00:00
2015-01-08 00:38:13 +00:00
2015-07-01 03:49:00 +00:00
2014-08-28 20:12:52 +00:00
2014-06-17 18:34:03 +00:00
2015-01-20 20:56:43 +00:00