st-touch: update script to new EC-based firmware

We are transiting from the old firmware to new EC-based firmware. The
new script checks if the trackpad is running old firmware, then flash
new EC firmware if it is the case. For trackpad that is already running
EC, we invoke flashrom to perform regular firmware update.

BUG=b:37187312,b:37584134
TEST=1) flash TP to old firmware, reboot the device and after an extra
        reboot the TP is running EC firmware.
     2) Place a new version of EC firmware onto the the device. Reboot
        and the firmware should be updated to the latest version.
     3) Like 2) but with RO WP enabled, after reboot EC_RW should be
        updated to the latest version.
CQ-DEPEND=CL:497152

Change-Id: I2939b8cd5afa8ba50965ec3d323b7325f376aeed
Reviewed-on: https://chromium-review.googlesource.com/499710
Commit-Ready: Wei-Ning Huang <wnhuang@chromium.org>
Tested-by: Wei-Ning Huang <wnhuang@chromium.org>
Reviewed-by: Tai-hsu Lin <sheckylin@google.com>
2 files changed
tree: 0f5afda93d4d123b9399e6f882c7749d8d156a02
  1. host_scripts/
  2. policies/
  3. scripts/
  4. LICENSE
  5. OWNERS
  6. README