summaryrefslogtreecommitdiffstats
path: root/doc/opal-api
diff options
context:
space:
mode:
authorNageswara R Sastry <rnsastry@linux.vnet.ibm.com>2016-10-26 19:11:18 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-10-28 10:52:21 +1100
commit76ed836d666afc911ffde1be08cb9670327e9757 (patch)
tree7910616a850019e2da478376d3d379cc6fc394b3 /doc/opal-api
parent3b4941b49323a3767840fc67023ffed85db21154 (diff)
downloadtalos-skiboot-76ed836d666afc911ffde1be08cb9670327e9757.tar.gz
talos-skiboot-76ed836d666afc911ffde1be08cb9670327e9757.zip
Documentation for OPAL_LPC_READ, OPAL_LPC_WRITE
Documentation for OPAL_LPC_READ 67 and OPAL_LPC_WRITE 68 Signed-off-by: Nageswara R Sastry <rnsastry@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'doc/opal-api')
-rw-r--r--doc/opal-api/opal-lpc-read-write-67-68.rst82
1 files changed, 82 insertions, 0 deletions
diff --git a/doc/opal-api/opal-lpc-read-write-67-68.rst b/doc/opal-api/opal-lpc-read-write-67-68.rst
new file mode 100644
index 00000000..78414745
--- /dev/null
+++ b/doc/opal-api/opal-lpc-read-write-67-68.rst
@@ -0,0 +1,82 @@
+OPAL_LPC_READ
+=============
+::
+
+ This function related to Low Pin Count (LPC) bus. This function reads the
+ data from IDSEL register for ``chip_id``, which has LPC information.
+ From ``addr`` for ``addr_type`` with read size ``sz`` bytes in to a
+ variable named ``data``.
+
+Parameters
+----------
+
+``chip_id``
+ The ``chip_id`` parameter contains value of the chip number identified at
+ boot time.
+
+``addr_type``
+ The ``addr_type`` is one of the LPC supported address types.
+ Supported address types are -
+ LPC memory,
+ LPC IO and
+ LPC firmware.
+
+``addr``
+ The ``addr`` from which the data has to be read.
+
+``data``
+ The ``data`` will be used to store the read data.
+
+``sz``
+ How many ``sz`` bytes to be read in to ``data``.
+
+Return Codes
+------------
+
+``OPAL_PARAMETER``
+ Indicates either ``chip_id`` not found or ``chip_id`` doesn’t contain
+ LPC information.
+
+``OPAL_SUCCESS``
+ Indicates Success!
+
+OPAL_LPC_WRITE
+==============
+::
+
+ This function related to Low Pin Count (LPC) bus. This function writes the
+ ``data`` in to ECCB register for ``chip_id``, which has LPC information.
+ From ``addr`` for ``addr_type`` with write size ``sz`` bytes.
+
+Parameters
+----------
+
+``chip_id``
+ The ``chip_id`` parameter contains value of the chip number identified at
+ boot time.
+
+``addr_type``
+ The ``addr_type`` is one of the address types LPC supported.
+ Supported address types are -
+ LPC memory,
+ LPC IO and
+ LPC firmware.
+
+``addr``
+ The ``addr`` to where the ``data`` need to be written.
+
+``data``
+ The ``data`` for writing.
+
+``sz``
+ How many ``sz`` bytes to write.
+
+Return Codes
+------------
+
+``OPAL_PARAMETER``
+ Indicates either ``chip_id`` not found or ``chip_id`` doesn’t contain LPC
+ information.
+
+``OPAL_SUCCESS``
+ Indicates Success!
OpenPOWER on IntegriCloud