[U-Boot] [PATCH 1/4] sf: Move manufacture id code macros to CONFIG_SPI_FLASH_BAR
Jagannadha Sutradharudu Teki
jagannadha.sutradharudu-teki at xilinx.com
Mon Jul 29 20:08:34 CEST 2013
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 at xilinx.com>
---
drivers/mtd/spi/spi_flash_internal.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
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
--
1.8.3
More information about the U-Boot
mailing list