diff options
author | Marek Vasut <marex@denx.de> | 2012-10-11 15:36:56 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-10-12 12:16:29 -0700 |
commit | 2a090cea73f0439f1247d96c830dd52377aa58f5 (patch) | |
tree | 3bd7830b0e369a17c5b051639cfeab30535abdf4 | |
parent | c7c63221439ad87a8c05e7b42f9eae32ec7cc2d4 (diff) | |
download | u-boot-imx-2a090cea73f0439f1247d96c830dd52377aa58f5.zip u-boot-imx-2a090cea73f0439f1247d96c830dd52377aa58f5.tar.gz u-boot-imx-2a090cea73f0439f1247d96c830dd52377aa58f5.tar.bz2 |
m28: Properly configure the SPI flash chipselect
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>
-rw-r--r-- | include/configs/m28evk.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h index 9eb2a54..bdbb820 100644 --- a/include/configs/m28evk.h +++ b/include/configs/m28evk.h @@ -246,18 +246,20 @@ #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 |