nandps8_v2_0: Rectified bbt signature/ version write offset

corrected the bbt signature/version write offset for NO_OOB
in XNandPs8_WriteBbt API.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
This commit is contained in:
Shakti Bhatnagar 2014-12-12 14:51:50 +05:30 committed by Suneel Garapati
parent 9572c366af
commit 734de3b828

View file

@ -794,9 +794,9 @@ static s32 XNandPs8_WriteBbt(XNandPs8 *InstancePtr, XNandPs8_BbtDesc *Desc,
/*
* Copy the signature and version to the Buffer
*/
memcpy(Buf , &Desc->Signature[0],
memcpy(Buf + Desc->SigOffset, &Desc->Signature[0],
Desc->SigLength);
memcpy(Buf + Desc->SigLength, &Desc->Version[Target], 1U);
memcpy(Buf + Desc->VerOffset, &Desc->Version[Target], 1U);
/*
* Write the Buffer to page offset
*/