touch_updater: Checking re-calibration needed or not

Elan I2C touchscreen will calibrate after update firmware.
If someactions interrupt firmware to calibrate after update success,
such as power-off, suspend system or etc, then touch will malfunction.

We add a checking mechanism to auto recover by Auto-Update script.
If calibration count is '0xffff', then we need re-calibration.
Otherwise, count is greater or equal to '0x0000' means it calibrated.

BUG=b:154062658
TEST=tested and work on nami

Signed-off-by: Johnny Chuang <johnny.chuang@elan.corp-partner.google.com>
Change-Id: I163ae3f40814c5496864ef25035a45658ed2e5ff
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/touch_updater/+/2150465
Reviewed-by: Sean O'Brien <seobrien@chromium.org>
Commit-Queue: YH Lin <yueherngl@chromium.org>
1 file changed