summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/brya/variants/felwinter
diff options
context:
space:
mode:
authorEric Lai <ericr_lai@compal.corp-partner.google.com>2021-12-13 11:39:17 +0800
committerFelix Held <felix-coreboot@felixheld.de>2021-12-16 23:46:06 +0000
commit3ca82e2d78b174a3946c4878160b38ed12a714e6 (patch)
tree0c191a2413855d12be8c594ebd4e2bf4bfb3bd6f /src/mainboard/google/brya/variants/felwinter
parent39dea9310b0ba3e85ed5450ea18109dc92230239 (diff)
downloadcoreboot-3ca82e2d78b174a3946c4878160b38ed12a714e6.tar.gz
coreboot-3ca82e2d78b174a3946c4878160b38ed12a714e6.tar.bz2
coreboot-3ca82e2d78b174a3946c4878160b38ed12a714e6.zip
mb/google/brya/var/felwinter: Add stylus probe for garage
Felwinter has non-stylus sku. Add a FW_CONFIG field to indicate stylus presence and add a probe statement to the devicetree for the corresponding device. BUG=b:208937710 TEST=non-stylus doesn't register garage driver. Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com> Change-Id: I06a2c125f2b5a73f9f7c27bf1b20ff8712664809 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60073 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/mainboard/google/brya/variants/felwinter')
-rw-r--r--src/mainboard/google/brya/variants/felwinter/overridetree.cb8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mainboard/google/brya/variants/felwinter/overridetree.cb b/src/mainboard/google/brya/variants/felwinter/overridetree.cb
index dafdbfc1063c..c2da32984fa8 100644
--- a/src/mainboard/google/brya/variants/felwinter/overridetree.cb
+++ b/src/mainboard/google/brya/variants/felwinter/overridetree.cb
@@ -4,6 +4,10 @@ fw_config
option USB3_PS8815 1
option USB4_KB8001 2
end
+ field STYLUS 5
+ option STYLUS_ABSENT 0
+ option STYLUS_PRESENT 1
+ end
field AUDIO_AMP 7 9
option UNPROVISIONED 0
option MAX98360_ALC5682I_I2S 1
@@ -269,7 +273,9 @@ chip soc/intel/alderlake
register "key.linux_code" = "SW_PEN_INSERTED"
register "key.linux_input_type" = "EV_SW"
register "key.label" = ""pen_eject""
- device generic 0 on end
+ device generic 0 on
+ probe STYLUS STYLUS_PRESENT
+ end
end
end #I2C3
device ref i2c5 on