aboutsummaryrefslogtreecommitdiff
path: root/include/opal.h
diff options
context:
space:
mode:
authorNeelesh Gupta <neelegup@linux.vnet.ibm.com>2014-10-25 23:33:52 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-10-27 18:13:41 +1100
commit2fe43d8776b19ff5896312c8bfef6a46156d0d48 (patch)
tree14c00d74019d94ae7ce7af1d79565cc6c0b18adc /include/opal.h
parent531bdefda91102cb3240e4e3289900af0a50e78b (diff)
downloadskiboot-2fe43d8776b19ff5896312c8bfef6a46156d0d48.zip
skiboot-2fe43d8776b19ff5896312c8bfef6a46156d0d48.tar.gz
skiboot-2fe43d8776b19ff5896312c8bfef6a46156d0d48.tar.bz2
hw/i2c: i2c driver infrastructure providing device I/O
This patch adds the generic i2c driver infrastructure to handle multiple i2c master cores present in the system and exposes structures and interfaces for the client to perform I/O on the i2c slave devices. The driver adds the capability to queue multiple requests from client and let clients notified asynchronously after completion. It does that by handling the i2c interrupt or through OPAL poller in the absence of interrupt. Signed-off-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/opal.h')
-rw-r--r--include/opal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/opal.h b/include/opal.h
index acb2bb5..347e171 100644
--- a/include/opal.h
+++ b/include/opal.h
@@ -141,7 +141,8 @@
#define OPAL_WRITE_TPO 103
#define OPAL_READ_TPO 104
#define OPAL_GET_DPO_STATUS 105
-#define OPAL_LAST 105
+#define OPAL_I2C_REQUEST 106
+#define OPAL_LAST 106
#ifndef __ASSEMBLY__