diff options
author | Kinsey Moore <kinsey.moore@oarcorp.com> | 2023-05-22 14:20:17 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2023-09-23 09:42:30 -0500 |
commit | 853429c3f8d2328be5b7f47b40c1745e61e29261 (patch) | |
tree | df78d6d5c862d6048d68bb2ccafe8f02def0d366 /bsps/include | |
parent | build: Remove enabled-by special case (diff) | |
download | rtems-853429c3f8d2328be5b7f47b40c1745e61e29261.tar.bz2 |
bsps/xqspipsu: Break out RDID
Expose a function to read the NOR flash chip ID information beyond the
minimum 3 bytes for the lookup table.
Diffstat (limited to 'bsps/include')
-rw-r--r-- | bsps/include/dev/spi/xqspipsu-flash-helper.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bsps/include/dev/spi/xqspipsu-flash-helper.h b/bsps/include/dev/spi/xqspipsu-flash-helper.h index 5e4233e64e..1578fe8485 100644 --- a/bsps/include/dev/spi/xqspipsu-flash-helper.h +++ b/bsps/include/dev/spi/xqspipsu-flash-helper.h @@ -155,3 +155,18 @@ u32 QspiPsu_NOR_Get_Device_Size(XQspiPsu *QspiPsuPtr); * ******************************************************************************/ u32 QspiPsu_NOR_Get_Sector_Size(XQspiPsu *QspiPsuPtr); + +/*****************************************************************************/ +/** + * + * This function performs a read of the RDID configuration space. + * + * @param QspiPsuPtr is a pointer to the QSPIPSU driver component to use. + * @param ReadBfrPtr is a pointer to a buffer to be filled with + * configuration data. + * @param ReadLen is the total length of the configuration space to read. + * + * @return XST_SUCCESS if successful, else XST_FAILURE. + * + ******************************************************************************/ +int QspiPsu_NOR_RDID(XQspiPsu *QspiPsuPtr, u8 *ReadBfrPtr, u32 ReadLen); |