Christian Walter has uploaded this change for review. ( https://review.coreboot.org/c/gerrit-avatars/+/43016 )
Change subject: Add Christian Walter Avatar
......................................................................
Add Christian Walter Avatar
Signed-off-by: Christian Walter <christian.walter(a)9elements.com>
Change-Id: If4ab7192e49e2507763c3d8fc73375cac7b0f215
---
A 1002388.jpg
1 file changed, 0 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/gerrit-avatars refs/changes/16/43016/1
diff --git a/1002388.jpg b/1002388.jpg
new file mode 100644
index 0000000..b988ede
--- /dev/null
+++ b/1002388.jpg
Binary files differ
--
To view, visit https://review.coreboot.org/c/gerrit-avatars/+/43016
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: gerrit-avatars
Gerrit-Branch: master
Gerrit-Change-Id: If4ab7192e49e2507763c3d8fc73375cac7b0f215
Gerrit-Change-Number: 43016
Gerrit-PatchSet: 1
Gerrit-Owner: Christian Walter <christian.walter(a)9elements.com>
Gerrit-MessageType: newchange
Aaron Durbin has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43010 )
Change subject: soc/amd/common: fix eSPI virtual wire polarity encoding
......................................................................
soc/amd/common: fix eSPI virtual wire polarity encoding
eSPI interrupts are active level high. The eSPI polarity register
in the chipset inverts incoming signals if the corresonding bit
is 0 in the register. Therefore, all active high (edge or level)
virtual wire interrupts need to ensure they are not inverted.
And really the sender of the interrupts should be conforming to the
the eSPI spec. As such inverting any signals should not be necessary,
but this register in the chipset allows for fixing up those misbehaviors.
BUG=b:157984427
Signed-off-by: Aaron Durbin <adurbin(a)chromium.org>
Change-Id: I7346bb0484506d96d7ab2e6d046ffa0571683a48
---
M src/soc/amd/common/block/include/amdblocks/espi.h
1 file changed, 5 insertions(+), 8 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/10/43010/1
diff --git a/src/soc/amd/common/block/include/amdblocks/espi.h b/src/soc/amd/common/block/include/amdblocks/espi.h
index e882af0..2bfef89 100644
--- a/src/soc/amd/common/block/include/amdblocks/espi.h
+++ b/src/soc/amd/common/block/include/amdblocks/espi.h
@@ -43,14 +43,11 @@
#define ESPI_OOB_CH_EN (1 << 1)
#define ESPI_FLASH_CH_EN (1 << 0)
-/*
- * Virtual wire interrupt polarity. If the interrupt is active level high or active falling
- * edge, then controller expects its bit to be cleared in ESPI_RXVW_POLARITY whereas if the
- * interrupt is active level low or active rising edge, then its bit needs to be set in
- * ESPI_RXVW_POLARITY.
- */
-#define ESPI_VW_IRQ_LEVEL_HIGH(x) (0 << (x))
-#define ESPI_VW_IRQ_LEVEL_LOW(x) (1 << (x))
+/* Virtual wire interrupt polarity. eSPI interrupts are active level high signals. The
+ polarity register inverts the incoming signal if the associated bit with the irq is
+ 0. */
+#define ESPI_VW_IRQ_LEVEL_HIGH(x) (1 << (x))
+#define ESPI_VW_IRQ_LEVEL_LOW(x) (0 << (x))
#define ESPI_VW_IRQ_EDGE_HIGH(x) (1 << (x))
#define ESPI_VW_IRQ_EDGE_LOW(x) (0 << (x))
--
To view, visit https://review.coreboot.org/c/coreboot/+/43010
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7346bb0484506d96d7ab2e6d046ffa0571683a48
Gerrit-Change-Number: 43010
Gerrit-PatchSet: 1
Gerrit-Owner: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-MessageType: newchange