mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
drivers: mtd: nand: Extract the Status register value
Flash Status register value will get updated in [15:8] bits section. Hence right shift first and then extract the required bit value. Change-Id: I7f2233f22984da3db2324e9e2ba8aafff76adb32 Signed-off-by: Kavin A <quic_kavia@quicinc.com>
This commit is contained in:
parent
d539984c88
commit
db4391c1d7
1 changed files with 1 additions and 0 deletions
|
|
@ -1421,6 +1421,7 @@ int qpic_spi_nand_config(struct mtd_info *mtd)
|
|||
if ((status >> 8) & FLASH_SPI_NAND_FR_ECC_ENABLE) {
|
||||
qspi_debug("%s : Internal ECC enabled, disabling internal ECC\n",__func__);
|
||||
|
||||
status >>= 8;
|
||||
status &= ~(FLASH_SPI_NAND_FR_ECC_ENABLE);
|
||||
status = qpic_serial_set_feature(mtd, FLASH_SPI_NAND_FR_ADDR,
|
||||
status);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue