diff options
author | Jan Glauber <jglauber@cavium.com> | 2016-08-24 23:25:45 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-08-26 00:41:56 +0200 |
commit | 1e5866711accf16e931c4f8174cf898b554e9f4a (patch) | |
tree | 35afb3ecfc00e397b4260d2fd89318e8ff8c8ff8 /drivers/i2c/busses/i2c-octeon-core.h | |
parent | 22d40209de3bb50cbffcc6b79f2f7c5d689d185f (diff) | |
download | linux-1e5866711accf16e931c4f8174cf898b554e9f4a.tar.gz linux-1e5866711accf16e931c4f8174cf898b554e9f4a.tar.bz2 linux-1e5866711accf16e931c4f8174cf898b554e9f4a.zip |
i2c: thunderx: Add SMBUS alert support
Add SMBUS alert interrupt support. For now only device tree is
supported for specifying the alert. In case of ACPI an error
is returned.
Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-octeon-core.h')
-rw-r--r-- | drivers/i2c/busses/i2c-octeon-core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-octeon-core.h b/drivers/i2c/busses/i2c-octeon-core.h index 33c7e1fb178c..2ed6f7a36b88 100644 --- a/drivers/i2c/busses/i2c-octeon-core.h +++ b/drivers/i2c/busses/i2c-octeon-core.h @@ -3,6 +3,7 @@ #include <linux/delay.h> #include <linux/device.h> #include <linux/i2c.h> +#include <linux/i2c-smbus.h> #include <linux/io.h> #include <linux/kernel.h> #include <linux/pci.h> @@ -119,6 +120,8 @@ struct octeon_i2c { #if IS_ENABLED(CONFIG_I2C_THUNDERX) struct msix_entry i2c_msix; #endif + struct i2c_smbus_alert_setup alert_data; + struct i2c_client *ara; }; static inline void octeon_i2c_writeq_flush(u64 val, void __iomem *addr) |