Patchwork [U-Boot,1/4] sf: Move manufacture id code macros to CONFIG_SPI_FLASH_BAR

login
register
mail settings
Submitter Jagannadha Sutradharudu Teki
Date July 29, 2013, 6:08 p.m.
Message ID <bb928205-fb36-459e-a708-b62939cadba9@CH1EHSMHS011.ehs.local>
Download mbox | patch
Permalink /patch/262931/
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Comments

Jagannadha Sutradharudu Teki - July 29, 2013, 6:08 p.m.
IDCODE0 are required to find the bank addr read/write commands,
as these commands are specific to manufacture id hence moved
manu id code macros to CONFIG_SPI_FLASH_BAR.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
---
 drivers/mtd/spi/spi_flash_internal.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Patch

diff --git a/drivers/mtd/spi/spi_flash_internal.h b/drivers/mtd/spi/spi_flash_internal.h
index af1afa9..20eed7c 100644
--- a/drivers/mtd/spi/spi_flash_internal.h
+++ b/drivers/mtd/spi/spi_flash_internal.h
@@ -31,12 +31,12 @@ 
 
 #define SPI_FLASH_16MB_BOUN		0x1000000
 
+#ifdef CONFIG_SPI_FLASH_BAR
 /* Manufacture ID's */
-#define SPI_FLASH_SPANSION_IDCODE0	0x01
-#define SPI_FLASH_STMICRO_IDCODE0	0x20
-#define SPI_FLASH_WINBOND_IDCODE0	0xef
+# define SPI_FLASH_SPANSION_IDCODE0	0x01
+# define SPI_FLASH_STMICRO_IDCODE0	0x20
+# define SPI_FLASH_WINBOND_IDCODE0	0xef
 
-#ifdef CONFIG_SPI_FLASH_BAR
 /* Bank addr access commands */
 # define CMD_BANKADDR_BRWR		0x17
 # define CMD_BANKADDR_BRRD		0x16