nandpsu_v1_0: Fixed Mark Block Bad bbt updation issue.
Corrected the target value calculation in XNandPsu_MarkBlockBad API. Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
This commit is contained in:
parent
f0f16cc511
commit
a516afcdf5
1 changed files with 1 additions and 1 deletions
|
@ -1031,7 +1031,7 @@ s32 XNandPsu_MarkBlockBad(XNandPsu *InstancePtr, u32 Block)
|
|||
Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
|
||||
Xil_AssertNonvoid(Block < InstancePtr->Geometry.NumBlocks);
|
||||
|
||||
Target = Block % InstancePtr->Geometry.NumTargetBlocks;
|
||||
Target = Block / InstancePtr->Geometry.NumTargetBlocks;
|
||||
|
||||
BlockOffset = Block >> XNANDPSU_BBT_BLOCK_SHIFT;
|
||||
BlockShift = XNandPsu_BbtBlockShift(Block);
|
||||
|
|
Loading…
Add table
Reference in a new issue