Support write protection of A25L040.

Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org>
BRANCH=None
BUG=chrome-os-partner:14084,
TEST=on butterfly
flashrom -p internal:bus=lpc --wp-list
flashrom -p internal:bus=lpc --wp-status  # disabled, 0, 0
flashrom -p internal:bus=lpc --wp-range 0x40000 0x40000
flashrom -p internal:bus=lpc --wp-enable
flashrom -p internal:bus=lpc --wp-status  # enabled, 0x40000, 0x40000
flashrom -p internal:bus=lpc --wp-disable

Change-Id: I8c2d1281babefba8ce8640781301307eb1abc827
Reviewed-on: https://gerrit.chromium.org/gerrit/33422
Commit-Ready: Yung-Chieh Lo <yjlou@chromium.org>
Tested-by: Yung-Chieh Lo <yjlou@chromium.org>
Reviewed-by: David Hendricks <dhendrix@chromium.org>
2 files changed