CHERRY-PICK: Make crossystem look for the write protect switch in the chromeos_arm device

The value of the ChromeOS write protect switch is now provided through the new
chromeos_arm platform device which avoids the mismatch between U-Boot and
kernel GPIO numbering.

BUG=chrome-os-partner:11297
TEST=gmerge-ed onto a snow and verified that crossystem got the right value of
the write protect switch.
BRANCH=snow

Change-Id: I4850c113bd071205d7c2a80c2003cdf6ab3cc266
Original-Change-Id: I466370e4f6bf2d14c067518a9d620e9e60142a0b
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Commit-Ready: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Signed-off-by: Doug Anderson <dianders@chromium.org>
(cherry picked from commit 3afe5566ccee0df6c636ab6e9cf882106fe9245b)
Reviewed-on: https://gerrit.chromium.org/gerrit/30995
Reviewed-by: Olof Johansson <olofj@chromium.org>
1 file changed