scripts/chromeos-goodix: add a board layer hook to reconfig the pid

This patch adds a board layer hook to reconfig the pid. We add this
script is for the krane device because we want to separate the 0E30 to
two different PIDs (ie. 0E30 and 0E31) after the board_rev>=5. To
backward compatible with the old devices, we query the sensor id and
use it as the indicator to override the active_product_id. The board
layer script can be found from cl:1795202

BUG=b:137254423
TEST=Verified on Krane board_rev4 with sensor id 8 and 10

Change-Id: I8254b75c022fe46da274f55cb9ebc7f83bf9708d
Reviewed-on: https://chromium-review.googlesource.com/1789953
Tested-by: Zhuohao Lee <zhuohao@chromium.org>
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Marco Chen <marcochen@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Harry Cutts <hcutts@chromium.org>
1 file changed