summaryrefslogtreecommitdiffstats
path: root/src/include/usr/devicefw
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2014-05-13 16:45:45 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-09-22 13:31:04 -0500
commitd001febf0b5594120dd422bcbe5736221471e0ca (patch)
tree227678a8341e96ef6bf9fe385e1215cffe613b97 /src/include/usr/devicefw
parente7d14e42caf28c421dfaa4b3b15bda7cf5a77e43 (diff)
downloadtalos-hostboot-d001febf0b5594120dd422bcbe5736221471e0ca.tar.gz
talos-hostboot-d001febf0b5594120dd422bcbe5736221471e0ca.zip
Create LPC Device Driver
Split LPC function out from PNOR DD and incorporate Stradale changes Change-Id: I4162db1a9f52ba3c0c973438b7b70baeae00aee2 Origin: Google Shared Technology RTC: 97494 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11198 Tested-by: Jenkins Server Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/devicefw')
-rw-r--r--src/include/usr/devicefw/userif.H13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/usr/devicefw/userif.H b/src/include/usr/devicefw/userif.H
index 0e2497e48..38cad8ea6 100644
--- a/src/include/usr/devicefw/userif.H
+++ b/src/include/usr/devicefw/userif.H
@@ -58,6 +58,8 @@ namespace DeviceFW
SCAN,
EEPROM,
GPIO,
+ LPC,
+
LAST_ACCESS_TYPE,
};
@@ -142,6 +144,17 @@ namespace DeviceFW
static_cast<uint64_t>(( i_flag ))
/**
+ * Construct the device addressing parameters for the LPC device ops.
+ * @param[in] i_trans_type - LPC transaction type.
+ * @param[in] i_address - LPC address to operate on.
+ * Flag options are located in: src/include/usr/lpc/lpcif.H
+ */
+ #define DEVICE_LPC_ADDRESS( i_trans_type, i_address )\
+ DeviceFW::LPC, static_cast<uint64_t>(( i_trans_type )),\
+ static_cast<uint64_t>(( i_address ))
+
+
+ /**
* Construct the device addressing parameters for the EEPROM device ops.
* @param[in] i_eeprom_enum - The chip number of the EEPROM to access. See
* eeprom_chip_types_t in eepromif.H
OpenPOWER on IntegriCloud