mainboard/google/poppy/variants/rammus: Fixed touchscreen function failed
commitb3591f39823949acf90e1172f2632ec08f9620ed
authorKane Chenffd <kane_chen@pegatron.corp-partner.google.com>
Wed, 12 Dec 2018 07:57:04 +0000 (12 15:57 +0800)
committerPatrick Georgi <pgeorgi@google.com>
Fri, 28 Dec 2018 12:21:22 +0000 (28 12:21 +0000)
tree9b831c921527ae36ff87625d69442e1c2ebc452f
parentc21df03ab675b91b35cdf16abcd6d560eb634121
mainboard/google/poppy/variants/rammus: Fixed touchscreen function failed

According to issue tracker b:119238959 #4 & #6.
Hardware modify design to make GPP_E3 to be a switch of touchscreen
I2C CLK and SDA.
Control GPP_E3 to make touchscreen I2C CLK and SDA keep low during
power on initialization to avoid data transfer during this time.
After touchscreen IC initial complete, control GPP_E3 to high to
make touchscreen I2C CLK and SDA work normally.
Depending on touchscreen IC specification, device take 105ms for
power on initialization.
Change delay time from 120ms to 105ms.

BUG=b:119238959
BRANCH=firmware-rammus-11275.B
TEST=emerge-rammus coreboot chromeos-ec chromeos-bootimage
Flash FW to DUT, run S5 stress test and verify the result

Signed-off-by: YanRu Chen <kane_chen@pegatron.corp-partner.google.com>
Change-Id: I86452c1445243c499aeaf931dba286db169c5628
Reviewed-on: https://review.coreboot.org/c/30180
Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/mainboard/google/poppy/variants/rammus/devicetree.cb
src/mainboard/google/poppy/variants/rammus/gpio.c