diff mbox

[U-Boot,PATCHv7,1/2] sf: remove conditional compilation for BAR wr/rd command

Message ID 1454052404-15821-1-git-send-email-Zhiqiang.Hou@freescale.com
State Deferred
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Zhiqiang Hou Jan. 29, 2016, 7:26 a.m. UTC
From: Hou Zhiqiang <Zhiqiang.Hou@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.Hou@freescale.com>
---
 V7:
 - New patch.

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

Patch

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