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>
This commit is contained in:
Eric Lai 2021-12-13 11:39:17 +08:00 committed by Felix Held
parent 39dea9310b
commit 3ca82e2d78
1 changed files with 7 additions and 1 deletions

View File

@ -4,6 +4,10 @@ fw_config
option USB3_PS8815 1 option USB3_PS8815 1
option USB4_KB8001 2 option USB4_KB8001 2
end end
field STYLUS 5
option STYLUS_ABSENT 0
option STYLUS_PRESENT 1
end
field AUDIO_AMP 7 9 field AUDIO_AMP 7 9
option UNPROVISIONED 0 option UNPROVISIONED 0
option MAX98360_ALC5682I_I2S 1 option MAX98360_ALC5682I_I2S 1
@ -269,7 +273,9 @@ chip soc/intel/alderlake
register "key.linux_code" = "SW_PEN_INSERTED" register "key.linux_code" = "SW_PEN_INSERTED"
register "key.linux_input_type" = "EV_SW" register "key.linux_input_type" = "EV_SW"
register "key.label" = ""pen_eject"" register "key.label" = ""pen_eject""
device generic 0 on end device generic 0 on
probe STYLUS STYLUS_PRESENT
end
end end
end #I2C3 end #I2C3
device ref i2c5 on device ref i2c5 on