From 853429c3f8d2328be5b7f47b40c1745e61e29261 Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Mon, 22 May 2023 14:20:17 -0500 Subject: 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. --- bsps/include/dev/spi/xqspipsu-flash-helper.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'bsps/include/dev') 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); -- cgit v1.2.3