From: Hou Zhiqiang <zhiqiang....@freescale.com>

For the Spansion style SPI flashs, the Extended address control
bit (EXTADD) that control the switching between 3-Byte and 4-Byte
addressing mode is also in BAR[7]. Even if without the macro
CONFIG_SPI_FLASH_BAR, the BAR[7] should be abled to access.

Signed-off-by: Hou Zhiqiang <zhiqiang....@freescale.com>
---
 V7:
 - New patch.

 drivers/mtd/spi/sf_internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/spi/sf_internal.h b/drivers/mtd/spi/sf_internal.h
index 007a5a0..56936e5 100644
--- a/drivers/mtd/spi/sf_internal.h
+++ b/drivers/mtd/spi/sf_internal.h
@@ -94,9 +94,9 @@ enum spi_nor_option_flags {
 #define CMD_READ_EVCR                  0x65
 
 /* Bank addr access commands */
-#ifdef CONFIG_SPI_FLASH_BAR
 # define CMD_BANKADDR_BRWR             0x17
 # define CMD_BANKADDR_BRRD             0x16
+#ifdef CONFIG_SPI_FLASH_BAR
 # define CMD_EXTNADDR_WREAR            0xC5
 # define CMD_EXTNADDR_RDEAR            0xC8
 #endif
-- 
2.1.0.27.g96db324

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to