[coreboot-gerrit] Change in coreboot[master]: mb/intel/glkrvp: Configure SCI for ESPI

Shaunak Saha (Code Review) gerrit at coreboot.org
Wed Dec 6 21:25:25 CET 2017


Shaunak Saha has uploaded this change for review. ( https://review.coreboot.org/22761


Change subject: mb/intel/glkrvp: Configure SCI for ESPI
......................................................................

mb/intel/glkrvp: Configure SCI for ESPI

This patch configures the EC_SCI_GPI when ESPI is enabled.
Also adds mainboard espi handler function.

TEST= Boot to OS and SMI/SCI is working when ESPI is
      enabled/disabled.

Change-Id: I2b3845d54ad7c1f14edc86f71b3f968424711999
Signed-off-by: Shaunak Saha <shaunak.saha at intel.com>
---
M src/mainboard/intel/glkrvp/smihandler.c
M src/mainboard/intel/glkrvp/variants/baseboard/include/baseboard/gpio.h
2 files changed, 9 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/61/22761/1

diff --git a/src/mainboard/intel/glkrvp/smihandler.c b/src/mainboard/intel/glkrvp/smihandler.c
index afaf9f9..c08fef9 100644
--- a/src/mainboard/intel/glkrvp/smihandler.c
+++ b/src/mainboard/intel/glkrvp/smihandler.c
@@ -50,3 +50,8 @@
 					MAINBOARD_EC_SMI_EVENTS);
 	return 0;
 }
+
+void mainboard_smi_espi_handler(void)
+{
+	chromeec_smi_process_events();
+}
diff --git a/src/mainboard/intel/glkrvp/variants/baseboard/include/baseboard/gpio.h b/src/mainboard/intel/glkrvp/variants/baseboard/include/baseboard/gpio.h
index 41de87c..510332b 100644
--- a/src/mainboard/intel/glkrvp/variants/baseboard/include/baseboard/gpio.h
+++ b/src/mainboard/intel/glkrvp/variants/baseboard/include/baseboard/gpio.h
@@ -22,7 +22,11 @@
  * GPIO_11 for SCI is routed to GPE0_DW1 and maps to group GPIO_GPE_N_31_0
  * which is North community
  */
+#if IS_ENABLED(CONFIG_SOC_ESPI)
+#define EC_SCI_GPI	GPE0_ESPI
+#else
 #define EC_SCI_GPI	GPE0_DW1_05
+#endif
 
 /* EC SMI */
 #define EC_SMI_GPI	GPIO_41

-- 
To view, visit https://review.coreboot.org/22761
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2b3845d54ad7c1f14edc86f71b3f968424711999
Gerrit-Change-Number: 22761
Gerrit-PatchSet: 1
Gerrit-Owner: Shaunak Saha <shaunak.saha at intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171206/cdcafff3/attachment.html>


More information about the coreboot-gerrit mailing list