diff --git a/XilinxProcessorIPLib/drivers/nandps8_v2_0/src/xnandps8.c b/XilinxProcessorIPLib/drivers/nandps8_v2_0/src/xnandps8.c index 8a6577c5..6952ba42 100644 --- a/XilinxProcessorIPLib/drivers/nandps8_v2_0/src/xnandps8.c +++ b/XilinxProcessorIPLib/drivers/nandps8_v2_0/src/xnandps8.c @@ -87,6 +87,8 @@ * size of spare area * Modified Block Erase API, removed clearing of * packet register before erase. +* Clearing Data Interface Register before +* XNandPs8_OnfiReset call. * * ******************************************************************************/ @@ -368,6 +370,12 @@ static s32 XNandPs8_FlashInit(XNandPs8 *InstancePtr) */ Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY); + /* + * Clear Data Interface Register + */ + XNandPs8_WriteReg((InstancePtr)->Config.BaseAddress, + XNANDPS8_DATA_INTF_OFFSET, 0U); + for (Target = 0U; Target < XNANDPS8_MAX_TARGETS; Target++) { /* * Reset the Target diff --git a/XilinxProcessorIPLib/drivers/nandps8_v2_0/src/xnandps8.h b/XilinxProcessorIPLib/drivers/nandps8_v2_0/src/xnandps8.h index 708fd806..97902d50 100644 --- a/XilinxProcessorIPLib/drivers/nandps8_v2_0/src/xnandps8.h +++ b/XilinxProcessorIPLib/drivers/nandps8_v2_0/src/xnandps8.h @@ -145,6 +145,8 @@ * size of spare area * Modified Block Erase API, removed clearing of * packet register before erase. +* Clearing Data Interface Register before +* XNandPs8_OnfiReset call. * * ******************************************************************************/