palkia: separate the gpio pins control for the second touch
commit7587526583bf7820ffcb09edcce92bbd48237382
authorZhuohao Lee <zhuohao@chromium.org>
Mon, 8 Jun 2020 07:37:23 +0000 (8 15:37 +0800)
committerFurquan Shaikh <furquan@google.com>
Tue, 23 Jun 2020 00:54:09 +0000 (23 00:54 +0000)
tree63c5a10ab0f212da0cf908c89d6fca88e83c0449
parent4229dfc21567b42f4843b8d8437a7681084d66e6
palkia: separate the gpio pins control for the second touch

There are two touch screen controllers on the Palkia device.
One is on the lid; another is on the base. To support
the different control path (for example: turning off the base's
touch event when we don't want to use it however still keeping
the lid's touch event), we use the different gpio pins to control
the second touch. As a result, we need to modify the devicetree
to adopt this change. With this change, we can control the
primary and secondary touch screen controller respectively.

BUG=b:149714955
TEST=lid/base touch screen works correctly

Change-Id: I1f896e334e51c78300af724cbef8d57641ae5612
Signed-off-by: Zhuohao Lee <zhuohao@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42185
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
src/mainboard/google/hatch/variants/palkia/gpio.c
src/mainboard/google/hatch/variants/palkia/overridetree.cb