Randall Spangler
acf6f963a1
Flash pre-init reboots if it needs to clear protection registers
BUG=chrome-os-partner:11171
TEST=manual
1. Clear some of the writable-bits in the flash registers
> ww 0x400fe40c 0xffff1234
write 0x400fe40c = 0xffff1234
> rw 0x400fe40c
read 0x400fe40c = 0xffff1234
2. Reset using power+refresh
3. Register should be clear again
> rw 0x400fe40c
read 0x400fe40c = 0xffffffff
4. Sysinfo should indicate reset-pin reason AND hard-reset reason
> sysinfo
Reset flags: 0x0000000a (reset-pin power-on)
5. Reset using power+refresh
6. Sysinfo should indicate reset-pin reason only
> sysinfo
Reset flags: 0x00000002 (reset-pin)
7. Clear writable-bits again
> ww 0x400fe40c 0xffff1234
write 0x400fe40c = 0xffff1234
8. Jump to another image. This should NOT trigger a hard reset.
> sysjump A
> sysinfo
Reset flags: 0x00000402 (reset-pin sysjump)
Change-Id: Ie1d6af2acc68217bb82faae464798ee85d63d1ea
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/27540
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
2012-07-16 17:49:10 -07:00
..
2012-04-19 13:08:58 -07:00
2012-05-25 09:59:58 -07:00
2012-04-19 01:16:01 +08:00
2012-07-15 22:01:14 -07:00
2012-05-25 09:59:58 -07:00
2012-04-19 11:08:28 -07:00
2012-04-19 11:08:28 -07:00
2012-05-14 16:07:17 -07:00
2012-04-24 09:59:31 -07:00
2012-06-29 10:22:49 -07:00
2012-07-12 18:22:24 -07:00
2012-07-13 17:28:22 -07:00
2011-12-07 19:10:02 +00:00
2012-07-10 14:56:05 -07:00
2012-07-16 17:49:10 -07:00
2012-02-15 16:34:54 -08:00
2012-07-02 22:35:52 -07:00
2012-05-21 16:30:12 -07:00
2012-07-12 18:21:32 -07:00
2012-07-02 22:35:51 -07:00
2012-06-29 10:46:22 -07:00
2012-05-31 15:03:17 -07:00
2012-01-11 11:37:55 -08:00
2012-06-26 17:01:52 -07:00
2012-06-07 09:59:55 -07:00
2012-04-26 13:57:19 -07:00
2012-05-08 12:03:49 -07:00
2012-07-12 18:22:24 -07:00
2011-12-07 19:10:02 +00:00
2012-04-19 13:08:58 -07:00
2012-06-22 11:12:40 -07:00
2012-04-19 13:08:58 -07:00
2012-07-03 23:51:19 -07:00
2012-04-19 11:08:28 -07:00
2012-06-26 17:01:52 -07:00
2012-07-02 15:26:02 -07:00
2011-12-07 19:10:02 +00:00
2012-06-07 00:54:02 -07:00
2012-06-22 15:56:57 -07:00
2012-06-07 20:48:51 -07:00
2011-12-07 19:10:02 +00:00
2012-06-27 03:22:17 -07:00
2012-06-27 03:22:17 -07:00
2012-05-30 13:12:34 -07:00
2012-07-16 10:20:58 -07:00
2012-04-06 09:06:53 -07:00
2012-05-29 09:38:58 -07:00
2012-06-22 11:12:43 -07:00
2012-04-05 11:30:16 +08:00
2012-06-28 17:06:46 -07:00
2012-05-28 16:42:17 +08:00
2012-06-07 00:54:02 -07:00
2012-05-09 16:09:10 -07:00
2012-06-22 10:13:36 -07:00
2012-07-16 17:49:10 -07:00
2012-06-28 17:40:39 -07:00
2012-06-15 13:39:22 -07:00
2012-04-24 17:46:54 -07:00