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:
parent
bf93dc207e
commit
cb15b20fa5
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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 */
|
||||
|
||||
/* @} */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue