]> git.sur5r.net Git - u-boot/commitdiff
m28: Properly configure the SPI flash chipselect
authorMarek Vasut <marex@denx.de>
Thu, 11 Oct 2012 15:36:56 +0000 (15:36 +0000)
committerTom Rini <trini@ti.com>
Fri, 12 Oct 2012 19:16:29 +0000 (12:16 -0700)
The SPI flash is not properly detected by plain "sf probe" due to
it being located on different bus and different chipselect. Fix
this problem.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Tom Rini <trini@ti.com>
include/configs/m28evk.h

index 9eb2a547fc487ce2fb1201c83583abe21c99fa15..bdbb82065e5e7c2df19de34ae4a2b57f63d9ef55 100644 (file)
 #define        CONFIG_MXS_SPI_DMA_ENABLE
 #define        CONFIG_SPI_HALF_DUPLEX
 #define        CONFIG_DEFAULT_SPI_BUS          2
+#define        CONFIG_DEFAULT_SPI_CS           0
 #define        CONFIG_DEFAULT_SPI_MODE         SPI_MODE_0
 
 /* SPI FLASH */
 #ifdef CONFIG_CMD_SF
 #define        CONFIG_SPI_FLASH
 #define        CONFIG_SPI_FLASH_STMICRO
-#define        CONFIG_SF_DEFAULT_CS            2
-#define        CONFIG_SF_DEFAULT_MODE          SPI_MODE_0
+#define        CONFIG_SF_DEFAULT_BUS           2
+#define        CONFIG_SF_DEFAULT_CS            0
 #define        CONFIG_SF_DEFAULT_SPEED         40000000
+#define        CONFIG_SF_DEFAULT_MODE          SPI_MODE_0
 
-#define        CONFIG_ENV_SPI_CS               0
 #define        CONFIG_ENV_SPI_BUS              2
+#define        CONFIG_ENV_SPI_CS               0
 #define        CONFIG_ENV_SPI_MAX_HZ           40000000
 #define        CONFIG_ENV_SPI_MODE             SPI_MODE_0
 #endif