nandpsu_v1_0: Correct the length to be read for signature and version when No OOB enabled.
Modified the number of bytes of data to be read for signature and version when NO OOB option is enabled. Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
This commit is contained in:
parent
33888ecc4d
commit
092cc995df
1 changed files with 1 additions and 1 deletions
|
@ -673,7 +673,7 @@ static s32 XNandPsu_SearchBbt(XNandPsu *InstancePtr, XNandPsu_BbtDesc *Desc,
|
|||
if(Desc->Option == XNANDPSU_BBT_NO_OOB){
|
||||
BlockOff = (u64)PageOff * (u64)InstancePtr->Geometry.BytesPerPage;
|
||||
Status = XNandPsu_Read(InstancePtr, BlockOff,
|
||||
Desc->SigLength + Desc->SigOffset , &Buf[0]);
|
||||
Desc->VerOffset + XNANDPSU_BBT_VERSION_LENGTH, &Buf[0]);
|
||||
}else{
|
||||
Status = XNandPsu_ReadSpareBytes(InstancePtr, PageOff, &Buf[0]);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue