tma525c: support touch FW downgrade mechanism

1. Support touch FW downgrade
2. Will trigger calibration if user downgrade to the too old touch FW
   version.

Bug: 315266948
Bug: 318578719
Test: local build to check if touch fw is downgraded/upgrade/calibration as expected
0x605 -> 0x607 w/o calibration
0x604 -> 0x607 w/ calibration
0x604 -> 0x605 w/ calibration
0x607 -> 0x605 w/o calibration
0x605 -> 0x604 w calibration
0x607 -> 0x604 w calibration

0x705 -> 0x707 w/o calibration
0x704 -> 0x707 w/ calibration
0x704 -> 0x705 w/ calibration
0x707 -> 0x705 w/o calibration
0x705 -> 0x704 w calibration
0x707 -> 0x704 w calibration
Signed-off-by: Simon Wei <jentsewei@google.com>
(cherry picked from https://partner-android-review.googlesource.com/q/commit:4924c2bb7216f0259c0d364f6bda80d2c27fef3d)
Merged-In: Ic67fbbc0d50366228356312adad371504c9ef528
Change-Id: Ic67fbbc0d50366228356312adad371504c9ef528
1 file changed
tree: 2b2f3521b879f443279c064640d0f2120eae0067
  1. tma525c/
  2. .checkpatch.conf
  3. .clang-format
  4. OWNERS
  5. PREUPLOAD.cfg