summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/brya
diff options
context:
space:
mode:
authorDavid Wu <david_wu@quanta.corp-partner.google.com>2021-12-27 13:50:27 +0800
committerFelix Held <felix-coreboot@felixheld.de>2022-01-04 17:18:25 +0000
commita5b6ec05a864fb323696b68f1513d69ee2b718b2 (patch)
tree31c8593cdf4e2fde6d376c6bfd67d1a73d154545 /src/mainboard/google/brya
parentfa7f37b75d19f568f352199a3fd147b448b0e114 (diff)
downloadcoreboot-a5b6ec05a864fb323696b68f1513d69ee2b718b2.tar.gz
coreboot-a5b6ec05a864fb323696b68f1513d69ee2b718b2.tar.bz2
coreboot-a5b6ec05a864fb323696b68f1513d69ee2b718b2.zip
mb/google/brya/var/kano: Add stylus probe
Kano 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:208179467 TEST=non-stylus doesn't register garage driver. Signed-off-by: David Wu <david_wu@quanta.corp-partner.google.com> Change-Id: I24839c39280185a6d649a82dd9f025ee305c2eed Reviewed-on: https://review.coreboot.org/c/coreboot/+/60389 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/mainboard/google/brya')
-rw-r--r--src/mainboard/google/brya/variants/kano/overridetree.cb8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mainboard/google/brya/variants/kano/overridetree.cb b/src/mainboard/google/brya/variants/kano/overridetree.cb
index a7e42715567f..87148c5d1269 100644
--- a/src/mainboard/google/brya/variants/kano/overridetree.cb
+++ b/src/mainboard/google/brya/variants/kano/overridetree.cb
@@ -11,6 +11,10 @@ fw_config
option UFC_USB 0
option UFC_MIPI_OVTI2740 1
end
+ field STYLUS 6
+ option STYLUS_ABSENT 0
+ option STYLUS_PRESENT 1
+ end
end
chip soc/intel/alderlake
register "SaGv" = "SaGv_Enabled"
@@ -440,7 +444,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
device ref i2c5 on