diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2011-07-25 16:22:38 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2011-07-28 16:25:20 -0500 |
commit | d7e9478f1de907b1b3d4923b507964222cb224fe (patch) | |
tree | e33c23c92e29eec270a7738c6286c03983584f23 /src/include/usr/devicefw/userif.H | |
parent | 8d82f5f4dde24bb6f944607c59d314b9f5003ae9 (diff) | |
download | talos-hostboot-d7e9478f1de907b1b3d4923b507964222cb224fe.tar.gz talos-hostboot-d7e9478f1de907b1b3d4923b507964222cb224fe.zip |
PNOR Resource Provider (RTC:3387)
Change-Id: Ifa47ad581c7d403b927708497b565d858b31ee0f
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/213
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Tested-by: Jenkins Server
Diffstat (limited to 'src/include/usr/devicefw/userif.H')
-rw-r--r-- | src/include/usr/devicefw/userif.H | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/usr/devicefw/userif.H b/src/include/usr/devicefw/userif.H index 464ab570e..794577312 100644 --- a/src/include/usr/devicefw/userif.H +++ b/src/include/usr/devicefw/userif.H @@ -23,7 +23,7 @@ namespace DeviceFW SCOM = 0, PNOR, MAILBOX, - PRESENT, + PRESENT, LAST_ACCESS_TYPE, }; @@ -39,6 +39,18 @@ namespace DeviceFW #define DEVICE_PRESENT_ADDRESS() \ DeviceFW::PRESENT + /** + * Construct a PNOR DD address + * address = 0000_0000_0000_000c_aaaa_aaaa_aaaa_aaaa + * c=side, a=address + * @param[in] chip Chip Select + * @param[in] addr Offset (from zero) into selected flash chip + * @return 64-bit address to pass into PNOR device commands + */ + #define DEVICE_PNOR_ADDRESS( chip, addr ) \ + DeviceFW::PNOR, (((chip)<<32)|(addr)) + + /** * @brief Perform a hardware read operation. * |