qspips_v3_2: SLCR_LOCKSTA register checked.

This patch checked the SLCR_LOCKSTA register instead of
SLC register.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
This commit is contained in:
P L Sai Krishna 2015-02-18 16:26:55 +05:30 committed by Nava kishore Manne
parent bf93dc207e
commit cb15b20fa5
2 changed files with 2 additions and 1 deletions

View file

@ -319,7 +319,7 @@ void XQspiPs_Abort(XQspiPs *InstancePtr)
/*
* QSPI Software Reset
*/
IsLock = XQspiPs_ReadReg(XPAR_XSLCR_0_BASEADDR, 0x0);
IsLock = XQspiPs_ReadReg(XPAR_XSLCR_0_BASEADDR, SLCR_LOCKSTA);
if (IsLock) {
XQspiPs_WriteReg(XPAR_XSLCR_0_BASEADDR, SLCR_UNLOCK,
SLCR_UNLOCK_MASK);

View file

@ -338,6 +338,7 @@ extern "C" {
#define SLCR_LOCK 0x00000004 /**< SLCR Write Protection Lock */
#define SLCR_UNLOCK 0x00000008 /**< SLCR Write Protection Unlock */
#define LQSPI_RST_CTRL 0x00000230 /**< Quad SPI Software Reset Control */
#define SLCR_LOCKSTA 0x0000000C /**< SLCR Write Protection status */
/* @} */