faft: Support EC write protect on non-Chrome-EC devices

On non-Chrome-EC devices, we use flashrom as a single interface to set
write protection for different chips. This CL supports this function
such that we can run suite:faft_ec_wp on non-Chrome-EC devices.

BUG=chrome-os-partner:15835
TEST=mock the flashrom in DUT and run suite:faft_ec_wp, see it executed.

Change-Id: I0745a2cf05656ba84099847d3eb63c924027fd90
Reviewed-on: https://gerrit.chromium.org/gerrit/38363
Reviewed-by: Vic Yang <victoryang@chromium.org>
Commit-Ready: Tom Wai-Hong Tam <waihong@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
5 files changed