diff options
author | Wisley Chen <wisley.chen@quantatw.com> | 2016-11-10 10:34:58 -0500 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-01-17 17:58:34 +0100 |
commit | 01ba8cf7a78419eb1ac3c98ad33656b8925ef565 (patch) | |
tree | 6f7b2138082518584d1e22f210736355911fb748 /src | |
parent | ce0a56419854d8c2bd0fac401c76139106fc4dd8 (diff) |
mainboard/google/snappy: Add PowerResource for ELAN touchscreen
Define reset_gpio and enable_gpio for touchscreen device so that
when kernel puts this device into D3, we put the device into reset.
PowerResource _ON and _OFF routines are used to put the device
into D0 and D3 states.
BUG=chrome-os-partner:59034
BRANCH=master
TEST=emerge-snappy coreboot chromeos-bootimage
Change-Id: I08c05d06b2812a33b3fdff9b42b2a8e0653dd8b4
Signed-off-by: Wisley Chen <wisley.chen@quantatw.com>
Reviewed-on: https://review.coreboot.org/17366
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/reef/variants/snappy/devicetree.cb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/google/reef/variants/snappy/devicetree.cb b/src/mainboard/google/reef/variants/snappy/devicetree.cb index e46483e3b0..9e4dc38116 100644 --- a/src/mainboard/google/reef/variants/snappy/devicetree.cb +++ b/src/mainboard/google/reef/variants/snappy/devicetree.cb @@ -175,6 +175,10 @@ chip soc/intel/apollolake register "desc" = ""ELAN Touchscreen"" register "irq" = "IRQ_EDGE_LOW(GPIO_21_IRQ)" register "probed" = "1" + register "reset_gpio" = "GPIO_36" + register "reset_delay_ms" = "20" + register "enable_gpio" = "GPIO_152" + register "enable_delay_ms" = "1" device i2c 10 on end end end # - I2C 3 |