summaryrefslogtreecommitdiffstats
path: root/src/include/usr/devicefw
diff options
context:
space:
mode:
authorTsung Yeung <tyeung@us.ibm.com>2018-06-04 14:12:42 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-09-18 15:48:56 -0500
commit1f6ed77b32b629f5cd316f2f3e1d8a432f037881 (patch)
tree24b56ee17587dc2311cbb63936e405590c62d282 /src/include/usr/devicefw
parent2968366be4705757b8766c8c422f608f491f0e0b (diff)
downloadtalos-hostboot-1f6ed77b32b629f5cd316f2f3e1d8a432f037881.tar.gz
talos-hostboot-1f6ed77b32b629f5cd316f2f3e1d8a432f037881.zip
Targeting support for NVDIMM-N P9 on ZZ
(Redo from previous change https://ralgit01.raleigh.ibm.com/gerrit1/#/c/56096/) -Added interfaces for accessing NVDIMM via I2C -Added attributes to support NV controller on NVDIMM -Moved all attributes to common file Change-Id: Ief68d9d5e0aaadfa017b4fe117bdb3e29739e772 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/59995 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/devicefw')
-rw-r--r--src/include/usr/devicefw/userif.H8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/usr/devicefw/userif.H b/src/include/usr/devicefw/userif.H
index 68f923f95..5bdd3b238 100644
--- a/src/include/usr/devicefw/userif.H
+++ b/src/include/usr/devicefw/userif.H
@@ -69,6 +69,7 @@ namespace DeviceFW
DVPD, // Direct access memory VPD
DEPRECATED_MEMD_VPD,
NODECOMM,
+ NVDIMM,
LAST_ACCESS_TYPE,
};
@@ -365,7 +366,12 @@ namespace DeviceFW
static_cast<uint64_t>(( i_mode )),\
static_cast<uint64_t>(( i_link_id )),\
static_cast<uint64_t>(( i_mailbox_id ))
-
+ /**
+ * Construct the device addressing parameters for the NVDIMM device ops.
+ * @param[i] i_address - NVDIMM address to internal register
+ */
+ #define DEVICE_NVDIMM_ADDRESS(i_address)\
+ DeviceFW::NVDIMM, static_cast<uint64_t>((i_address))
/**
* @brief Perform a hardware read operation.
OpenPOWER on IntegriCloud