stub out write-protection commands for GEC.

Modify from david's CL https://gerrit.chromium.org/gerrit/#/c/25957/1,
but generalize to all platform since the EC has changed the API version
and unfortunately the flashrom is not ready yet.

The bad thing is the factory process is broken so that we need this
temporary hack to continue the factory test.

This should be fixed before MP (tracked in issue tracker already).

BUG=chrome-os-partner:11320,chrome-os-partner:11219
TEST=run on link.
; WP pin is asserted.
flashrom -p internal:bus=lpc --wp-status
flashrom -p internal:bus=lpc --wp-range 0x123456 0x789a
flashrom -p internal:bus=lpc --wp-enable
flashrom -p internal:bus=lpc --wp-status
flashrom -p internal:bus=lpc --wp-disable  # FAIL, expected
flashrom -p internal:bus=lpc --wp-status
; WP pin is de-asserted
flashrom -p internal:bus=lpc --wp-disable
flashrom -p internal:bus=lpc --wp-set-range
flashrom -p internal:bus=lpc --wp-status

Change-Id: Ifec93f83fb06ed687a60a7cd01eee0b52c678255
Signed-off-by: Louis Yung-Chieh Lo <[email protected]>
Reviewed-on: https://gerrit.chromium.org/gerrit/29271
Commit-Ready: Yung-Chieh Lo <yjlou%[email protected]>
Tested-by: Yung-Chieh Lo <yjlou%[email protected]>
Reviewed-by: David Hendricks <[email protected]>
1 file changed