diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-04-11 08:39:43 -0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-04-28 14:00:16 +0200 |
commit | 694c3bc107c61b900e3e0a09dd8f0346b1b7685f (patch) | |
tree | 46db6a420ef2e7aca9818da5afa108d4316c879f /include/configs/mx6slevk.h | |
parent | 0782bdf89878f3b4806b127b60f8d0e72c195354 (diff) | |
download | u-boot-imx-694c3bc107c61b900e3e0a09dd8f0346b1b7685f.zip u-boot-imx-694c3bc107c61b900e3e0a09dd8f0346b1b7685f.tar.gz u-boot-imx-694c3bc107c61b900e3e0a09dd8f0346b1b7685f.tar.bz2 |
mx6slevk: Add SPI NOR flash support
mx6slevk has a m25p32 SPI NOR flash connected to ESCSPI port.
Add support for it.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Reviewed-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Diffstat (limited to 'include/configs/mx6slevk.h')
-rw-r--r-- | include/configs/mx6slevk.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/mx6slevk.h b/include/configs/mx6slevk.h index 1876dbf..3d05a64 100644 --- a/include/configs/mx6slevk.h +++ b/include/configs/mx6slevk.h @@ -10,6 +10,7 @@ #define __CONFIG_H #include <asm/arch/imx-regs.h> +#include <asm/imx-common/gpio.h> #include <linux/sizes.h> #include "mx6_common.h" @@ -196,4 +197,15 @@ #define CONFIG_CMD_CACHE #endif +#define CONFIG_CMD_SF +#ifdef CONFIG_CMD_SF +#define CONFIG_SPI_FLASH +#define CONFIG_SPI_FLASH_STMICRO +#define CONFIG_MXC_SPI +#define CONFIG_SF_DEFAULT_BUS 0 +#define CONFIG_SF_DEFAULT_CS (0 | (IMX_GPIO_NR(4, 11) << 8)) +#define CONFIG_SF_DEFAULT_SPEED 20000000 +#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0 +#endif + #endif /* __CONFIG_H */ |