mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-03 21:49:32 +00:00
And also add a fake write protect pin command for futher development and
testing.
BUG=chrome-os-partner:11595
TEST=Enable pstate read/write for stm32f.
1. 'flashinfo' -> WP pin deasserted. No blocks protected.
2. 'flashwp enable' -> Nothing changes.
3. 'fakewp 1'; 'flashinfo' -> WP pin asserted. No blocks
protected.
4. 'flashwp enable'; 'flashinfo' -> RO protected.
Change-Id: Id5b1997442d9104d9cb254a295e0bd2f8c83bc78
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/28062
Reviewed-by: Randall Spangler <rspangler@chromium.org>