[coreboot-gerrit] Change in coreboot[master]: rt5663: Change the flags for gpio as ExclusiveAndWake

HARSHAPRIYA N (Code Review) gerrit at coreboot.org
Wed Apr 25 23:06:27 CEST 2018


HARSHAPRIYA N has uploaded this change for review. ( https://review.coreboot.org/25838


Change subject: rt5663: Change the flags for gpio as ExclusiveAndWake
......................................................................

rt5663: Change the flags for gpio as ExclusiveAndWake

Currently the SSDT table  exposes the gpio as Exclusive.
This patch changes the flag to ExclusiveAndWake so that codec
can detect jack insertion/removal during D3.

Change-Id: Ia71559dcae65112b75e4c789328e4a6153e922b0
Signed-off-by: Harsha Priya <harshapriya.n at intel.com>
---
M src/drivers/i2c/rt5663/rt5663.c
1 file changed, 7 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/38/25838/1

diff --git a/src/drivers/i2c/rt5663/rt5663.c b/src/drivers/i2c/rt5663/rt5663.c
index 16237d6..b983960 100644
--- a/src/drivers/i2c/rt5663/rt5663.c
+++ b/src/drivers/i2c/rt5663/rt5663.c
@@ -57,6 +57,13 @@
 	acpigen_write_name("_CRS");
 	acpigen_write_resourcetemplate_header();
 	acpi_device_write_i2c(&i2c);
+
+	/* Setting the flag as ExlusiveAndWake */
+	config->irq.shared = ACPI_IRQ_EXCLUSIVE;
+	config->irq.wake = ACPI_IRQ_WAKE;
+	config->irq_gpio.irq.shared = ACPI_IRQ_EXCLUSIVE;
+	config->irq_gpio.irq.wake = ACPI_IRQ_WAKE;
+
 	/* Allow either GpioInt() or Interrupt() */
 	if (config->irq_gpio.pin_count)
 		acpi_device_write_gpio(&config->irq_gpio);

-- 
To view, visit https://review.coreboot.org/25838
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia71559dcae65112b75e4c789328e4a6153e922b0
Gerrit-Change-Number: 25838
Gerrit-PatchSet: 1
Gerrit-Owner: HARSHAPRIYA N <harshapriya.n at intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180425/e136f3dc/attachment.html>


More information about the coreboot-gerrit mailing list