nandps_v2_2: Pass address cycles as per the onfi parameter page.
Using the address cycles defined in onfi parameter page than hardcoding this value to 5 for read and write operations in XNandPs_SendCommand API. Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
This commit is contained in:
parent
31c7177fc4
commit
ad66dc099a
2 changed files with 16 additions and 1 deletions
|
@ -72,7 +72,10 @@
|
|||
* of spare bytes since we don't calculate ECC for
|
||||
* spare bytes.
|
||||
* 2.01 kpc 07/24/2014 Fixed CR#808770. Update command register twice only
|
||||
if flash device requires >= four address cycles.
|
||||
* if flash device requires >= four address cycles.
|
||||
* 2.2 sb 01/31/2015 Use the address cycles defined in onfi parameter
|
||||
* page than hardcoding this value to 5 for read and
|
||||
* write operations.
|
||||
* </pre>
|
||||
*
|
||||
******************************************************************************/
|
||||
|
@ -1076,6 +1079,15 @@ void XNandPs_SendCommand(XNandPs *InstancePtr, XNandPs_CommandFormat
|
|||
EndCmdReq = 1;
|
||||
}
|
||||
|
||||
if ((Command->StartCmd == ONFI_CMD_READ1) ||
|
||||
(Command->StartCmd == ONFI_CMD_PAGE_PROG1)) {
|
||||
Command->AddrCycles = InstancePtr->Geometry.RowAddrCycles +
|
||||
InstancePtr->Geometry.ColAddrCycles;
|
||||
}
|
||||
if ((Command->StartCmd == ONFI_CMD_BLOCK_ERASE1)) {
|
||||
Command->AddrCycles = InstancePtr->Geometry.RowAddrCycles;
|
||||
}
|
||||
|
||||
/*
|
||||
* Construct command phase address
|
||||
*/
|
||||
|
|
|
@ -166,6 +166,9 @@
|
|||
* 2.0 adk 12/10/13 Updated as per the New Tcl API's
|
||||
* 2.1 kpc 07/24/13 Fixed CR#808770. Update command register twice only
|
||||
* if flash device requires >= four address cycles.
|
||||
* 2.2 sb 01/31/2015 Use the address cycles defined in onfi parameter
|
||||
* page than hardcoding this value to 5 for read and
|
||||
* write operations.
|
||||
* </pre>
|
||||
*
|
||||
******************************************************************************/
|
||||
|
|
Loading…
Add table
Reference in a new issue