diff options
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. * |