nandps8_v2_0: Cleared data interface register.

Cleared Data interface register in XNandPs8_FlashInit
before XNandPs8_OnfiReset call.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
This commit is contained in:
Shakti Bhatnagar 2015-01-12 19:01:21 +05:30 committed by Suneel Garapati
parent 2863b7fd43
commit 3f752a53a6
2 changed files with 10 additions and 0 deletions

View file

@ -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.
* </pre>
*
******************************************************************************/
@ -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

View file

@ -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.
* </pre>
*
******************************************************************************/