diff options
author | Terry Lv <r65388@freescale.com> | 2011-03-24 19:38:41 +0800 |
---|---|---|
committer | Terry Lv <r65388@freescale.com> | 2011-03-24 19:52:21 +0800 |
commit | b2660136cb57c171ce0289098c6e5799cdaad0da (patch) | |
tree | 4e5669660edc7973dcf98729abef704098aee6c9 /include | |
parent | cd0cf0ce16aa681d681d210a3513357d5ca02490 (diff) | |
download | u-boot-imx-b2660136cb57c171ce0289098c6e5799cdaad0da.zip u-boot-imx-b2660136cb57c171ce0289098c6e5799cdaad0da.tar.gz u-boot-imx-b2660136cb57c171ce0289098c6e5799cdaad0da.tar.bz2 |
ENGR00141129: Add m25p32 spi_nor support for mx53_smd
Add m25p32 spi_nor support for mx53_smd.
Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/mx53_smd.h | 28 | ||||
-rw-r--r-- | include/configs/mx53_smd_mfg.h | 28 |
2 files changed, 44 insertions, 12 deletions
diff --git a/include/configs/mx53_smd.h b/include/configs/mx53_smd.h index d9504de..81bdc48 100644 --- a/include/configs/mx53_smd.h +++ b/include/configs/mx53_smd.h @@ -96,6 +96,9 @@ #define CONFIG_BOOTP_DNS #define CONFIG_CMD_MMC +#define CONFIG_CMD_SPI +#define CONFIG_CMD_I2C +#define CONFIG_CMD_SF #define CONFIG_CMD_ENV #define CONFIG_CMD_IIM @@ -182,12 +185,25 @@ /* * I2C Configs */ -#define CONFIG_CMD_I2C 1 -#define CONFIG_HARD_I2C 1 -#define CONFIG_I2C_MXC 1 -#define CONFIG_SYS_I2C_PORT I2C1_BASE_ADDR -#define CONFIG_SYS_I2C_SPEED 100000 -#define CONFIG_SYS_I2C_SLAVE 0xfe +#ifdef CONFIG_CMD_I2C + #define CONFIG_HARD_I2C 1 + #define CONFIG_I2C_MXC 1 + #define CONFIG_SYS_I2C_PORT I2C1_BASE_ADDR + #define CONFIG_SYS_I2C_SPEED 100000 + #define CONFIG_SYS_I2C_SLAVE 0xfe +#endif + +/* + * SPI Configs + */ +#ifdef CONFIG_CMD_SF + #define CONFIG_FSL_SF 1 + #define CONFIG_SPI_FLASH_IMX_M25PXX 1 + #define CONFIG_SPI_FLASH_CS 1 + #define CONFIG_IMX_ECSPI + #define IMX_CSPI_VER_2_3 1 + #define MAX_SPI_BYTES (64 * 4) +#endif /* * MMC Configs diff --git a/include/configs/mx53_smd_mfg.h b/include/configs/mx53_smd_mfg.h index 2a2e4cd..0e5a76e 100644 --- a/include/configs/mx53_smd_mfg.h +++ b/include/configs/mx53_smd_mfg.h @@ -97,6 +97,9 @@ #define CONFIG_BOOTP_DNS #define CONFIG_CMD_MMC +#define CONFIG_CMD_SPI +#define CONFIG_CMD_SF +#define CONFIG_CMD_I2C #define CONFIG_CMD_ENV #define CONFIG_CMD_IIM @@ -170,12 +173,25 @@ /* * I2C Configs */ -#define CONFIG_CMD_I2C 1 -#define CONFIG_HARD_I2C 1 -#define CONFIG_I2C_MXC 1 -#define CONFIG_SYS_I2C_PORT I2C1_BASE_ADDR -#define CONFIG_SYS_I2C_SPEED 100000 -#define CONFIG_SYS_I2C_SLAVE 0xfe +#ifdef CONFIG_CMD_I2C 1 + #define CONFIG_HARD_I2C 1 + #define CONFIG_I2C_MXC 1 + #define CONFIG_SYS_I2C_PORT I2C1_BASE_ADDR + #define CONFIG_SYS_I2C_SPEED 100000 + #define CONFIG_SYS_I2C_SLAVE 0xfe +#endif + +/* + * SPI Configs + */ +#ifdef CONFIG_CMD_SF + #define CONFIG_FSL_SF 1 + #define CONFIG_SPI_FLASH_IMX_M25PXX 1 + #define CONFIG_SPI_FLASH_CS 1 + #define CONFIG_IMX_ECSPI + #define IMX_CSPI_VER_2_3 1 + #define MAX_SPI_BYTES (8 * 4) +#endif /* * MMC Configs |