nandpsu_v1_0: Clear dmabuffer boundary register during the init.

Ensure that the dma buffer boundary interrupt is disabled as driver
is using the contiguous buffer for the whole page size and enabling
this interrupt would cause failures if the buffer boundary is
configured for other values (not the page size)

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
This commit is contained in:
Shakti Bhatnagar 2015-03-12 20:43:36 +05:30 committed by Nava kishore Manne
parent 66409812e8
commit 5ebc54dfa8

View file

@ -344,6 +344,10 @@ static s32 XNandPsu_FlashInit(XNandPsu *InstancePtr)
XNandPsu_WriteReg((InstancePtr)->Config.BaseAddress,
XNANDPSU_DATA_INTF_OFFSET, 0U);
/* Clear DMA Buffer Boundary Register */
XNandPsu_WriteReg(InstancePtr->Config.BaseAddress,
XNANDPSU_DMA_BUF_BND_OFFSET, 0U);
for (Target = 0U; Target < XNANDPSU_MAX_TARGETS; Target++) {
/*
* Reset the Target