summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb
diff options
context:
space:
mode:
authorMark Hasemeyer <markhas@google.com>2023-09-25 10:36:47 -0600
committerMatt DeVillier <matt.devillier@amd.corp-partner.google.com>2023-11-02 13:33:57 +0000
commit312a277bf9b46a5624b814b1a9360bdfa517709f (patch)
tree385d888ca0861b734b60168df563601032d8e8db /src/mainboard/google/guybrush/variants/baseboard/devicetree.cb
parent8bde652241ecb8356540b3a418012d3c7e570ac3 (diff)
downloadcoreboot-312a277bf9b46a5624b814b1a9360bdfa517709f.tar.gz
coreboot-312a277bf9b46a5624b814b1a9360bdfa517709f.tar.bz2
coreboot-312a277bf9b46a5624b814b1a9360bdfa517709f.zip
mb/google/guybrush: Set PS2K_IRQ to level/low
On guybrush, keyboard presses are signaled by the EC via eSPI virtual wire. The interrupt is shared with others and should be active low. From 74bce48f1d4 ("mb/google/{zork,guybrush,skyrim},soc/amd/espi: Fix vw_irq_polarity"): > The default state for the IRQ lines when the eSPI controller comes > out of reset is high. This is because the IRQ lines are shared with > the other IRQ sources using AND gates. This means that in order to > not cause any spurious interrupts or miss any interrupts, the > IO-APIC must use a low polarity trigger. Setting `vw_irq_polarity` in the device tree provides an option to invert interrupts from the eSPI controller, but the register is initialized from verstage which is baked into RO. As a workaround, the necessary interrupts on the EC have been reconfigured to be active low, and we can modify the IO-APIC accordingly. EC related CL here: https://crrev.com/c/4891663 BUG=b:218874489 TEST=-`emerge-guybrush chromeos-ec coreboot chromeos-bootimage` -Flash new RW fw and verify keyboard is functional -`suspend_stress_test -c 1` and verify i8042 irq is removed as a wake source -`echo mem > /sys/power/state`. Press key and verify system wake from i8042. Cq-Depend: chromium:4891663 Change-Id: I7d093d94a666263684645ef724e945069c68c806 Signed-off-by: Mark Hasemeyer <markhas@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78137 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/mainboard/google/guybrush/variants/baseboard/devicetree.cb')
-rw-r--r--src/mainboard/google/guybrush/variants/baseboard/devicetree.cb10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb b/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb
index 848fd935e30f..49ff8dd3c7d1 100644
--- a/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb
+++ b/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb
@@ -44,12 +44,10 @@ chip soc/amd/cezanne
/*
* b/218874489 - This should really be ESPI_VW_IRQ_LEVEL_HIGH,
- * but eSPI gets configured in verstage which is in RO.
- * We have already locked RO for guybrush devices so we need
- * make it so x86 coreboot re-initializes the vw_irq_polarity.
- * This leaves another problem, verstage also runs in S0i3, but
- * we don't run any other x86 coreboot stages, so we need to
- * figure out a way to reset the eSPI polarity.
+ * but eSPI gets configured in verstage which is in RO, and the
+ * RO is already locked down. As a workaround, the EC fw has
+ * been modified to use active low signalling for the
+ * interrupts that require it.
*/
.vw_irq_polarity = ESPI_VW_IRQ_LEVEL_LOW(1),
}"