aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/i2c/da7219/chip.h
diff options
context:
space:
mode:
authorDaniel Kurtz <djkurtz@chromium.org>2018-01-29 15:23:39 +0530
committerMartin Roth <martinroth@google.com>2018-02-10 23:53:16 +0000
commit2bfae02d1df992d20f27abbb081eb0efbb1b58f5 (patch)
tree63e27a0a2c9a26dd21e7fd00b9a3bd2f1928f21d /src/drivers/i2c/da7219/chip.h
parent681bf41087ae1c2f496b987be283e7df77cc4590 (diff)
drivers/i2c/da7219: Allow GPIO based interrupt
Allow specifying the DA7219 interrupt pin as either an Interrupt or GpioInt. BUG=b:72121803 TEST=(with whole patch series) Grunt Kernel discovers DA7219 on i2c0 Change-Id: I2d26731bf4c0ad590dad2c5d26c252371f415f9a Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Reviewed-on: https://review.coreboot.org/23657 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-by: Justin TerAvest <teravest@chromium.org>
Diffstat (limited to 'src/drivers/i2c/da7219/chip.h')
-rw-r--r--src/drivers/i2c/da7219/chip.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/i2c/da7219/chip.h b/src/drivers/i2c/da7219/chip.h
index 823b940e67..572d7279a5 100644
--- a/src/drivers/i2c/da7219/chip.h
+++ b/src/drivers/i2c/da7219/chip.h
@@ -8,6 +8,9 @@ struct drivers_i2c_da7219_config {
/* Interrupt configuration */
struct acpi_irq irq;
+ /* Use GPIO based interrupt instead of PIRQ */
+ struct acpi_gpio irq_gpio;
+
/* I2C Bus Frequency in Hertz (default 400kHz) */
unsigned bus_speed;