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-07-12 02:09:45 -07:00
2012-04-19 01:16:01 +08:00
2012-07-12 02:35:21 -07:00
2012-07-15 22:01:14 -07:00
2012-05-25 13:34:06 -07:00
2012-07-12 18:22:24 -07:00
2012-06-13 13:17:33 -07:00
2012-07-10 14:56:05 -07:00
2012-06-26 13:58:54 -07:00
2012-06-26 13:58:54 -07:00
2012-07-12 11:32:06 -07:00
2012-07-16 17:49:10 -07:00
2012-06-28 17:40:39 -07:00
2012-07-07 19:34:53 -07:00
2012-07-13 12:24:00 -07:00
2012-05-21 16:30:12 -07:00
2012-07-16 10:20:58 -07:00
2012-07-12 18:22:24 -07:00
2012-07-12 02:35:21 -07:00
2012-06-07 20:48:51 -07:00
2012-06-22 15:35:41 -07:00
2012-07-11 14:46:30 -07:00
2012-07-13 15:24:17 -07:00
2012-07-16 17:49:10 -07:00
2012-05-25 13:34:06 -07:00
2012-07-08 20:25:17 -07:00
2012-06-27 00:55:04 -07:00
2012-07-08 20:25:17 -07:00
2012-06-25 07:15:50 -07:00
2012-07-08 20:25:17 -07:00
2012-07-13 13:06:16 -07:00
2012-07-05 22:56:39 -07:00
2012-06-18 11:48:15 -07:00
2012-05-25 13:34:06 -07:00
2012-06-07 14:33:26 -07:00
2012-07-12 11:32:06 -07:00
2012-07-11 14:46:30 -07:00
2012-06-07 20:48:51 -07:00
2012-04-19 18:15:18 -07:00
2012-06-27 03:22:17 -07:00
2012-07-02 22:35:51 -07:00
2012-07-16 10:20:58 -07:00
2012-07-11 14:46:30 -07:00
2012-07-12 11:32:06 -07:00
2012-07-11 14:46:30 -07:00
2012-07-16 17:49:10 -07:00
2012-05-28 16:42:17 +08:00
2012-07-07 23:05:50 -07:00
2012-07-11 14:46:30 -07:00
2012-05-25 13:34:06 -07:00
2012-07-03 10:50:45 -07:00
2012-07-13 15:24:18 -07:00
2012-06-26 17:01:52 -07:00
2012-05-10 17:27:36 -07:00
2012-07-16 17:49:10 -07:00
2012-03-02 16:46:26 +00:00
2012-07-16 17:49:10 -07:00