sw_apps:zynqmp_fsbl: Corrected the ReadBuffer index value

This patch points to the correct readbuffer index value
in SendBankSelect API, when bank register read command
is issued for a SPANSION device in 24-bit mode.

Signed-off-by: RamyaSree <rdarapun@xilinx.com>
Acked-by: Sarat Chand Savitala <saratcha@xilinx.com>
This commit is contained in:
RamyaSree 2015-10-20 16:15:58 +05:30 committed by Nava kishore Manne
parent 158f2cec4f
commit 33124005bd

View file

@ -494,9 +494,9 @@ static int SendBankSelect(u32 BankSel)
goto END;
}
if (ReadBuffer[1] != BankSel) {
if (ReadBuffer[0] != BankSel) {
XFsbl_Printf(DEBUG_INFO, "Bank Select %d != Register Read %d\n\r", BankSel,
ReadBuffer[1]);
ReadBuffer[0]);
Status = XFSBL_ERROR_QSPI_READ;
XFsbl_Printf(DEBUG_GENERAL,"XFSBL_ERROR_QSPI_READ\r\n");
goto END;