diff options
author | Hatim RV <hatim.rv@samsung.com> | 2012-11-02 01:15:37 +0000 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2012-11-15 21:08:21 +0900 |
commit | 3a8a70017d33e4f72f647154ed3432253b3dfac4 (patch) | |
tree | d4a8e10f3d487472af1a6316045cead4e357f796 /include/configs/smdk5250.h | |
parent | 1bf43b829eae86e70895fb90f0b3a102dfc7ba2c (diff) | |
download | u-boot-3a8a70017d33e4f72f647154ed3432253b3dfac4.tar.gz |
EXYNOS5: Enable SPI
This patch enables SPI driver for EXYNOS5.
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Signed-off-by: Hatim Ali <hatim.rv@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'include/configs/smdk5250.h')
-rw-r--r-- | include/configs/smdk5250.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/include/configs/smdk5250.h b/include/configs/smdk5250.h index 819493a8c7..4973c330ce 100644 --- a/include/configs/smdk5250.h +++ b/include/configs/smdk5250.h @@ -163,7 +163,6 @@ #undef CONFIG_CMD_IMLS #define CONFIG_IDENT_STRING " for SMDK5250" -#define CONFIG_ENV_IS_IN_MMC #define CONFIG_SYS_MMC_ENV_DEV 0 #define CONFIG_SECURE_BL1_ONLY @@ -209,6 +208,27 @@ #define CONFIG_PMIC_I2C #define CONFIG_PMIC_MAX77686 +/* SPI */ +#define CONFIG_ENV_IS_IN_SPI_FLASH +#define CONFIG_SPI_FLASH + +#ifdef CONFIG_SPI_FLASH +#define CONFIG_EXYNOS_SPI +#define CONFIG_CMD_SF +#define CONFIG_CMD_SPI +#define CONFIG_SPI_FLASH_WINBOND +#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0 +#define CONFIG_SF_DEFAULT_SPEED 50000000 +#define EXYNOS5_SPI_NUM_CONTROLLERS 5 +#endif + +#ifdef CONFIG_ENV_IS_IN_SPI_FLASH +#define CONFIG_ENV_SPI_MODE SPI_MODE_0 +#define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE +#define CONFIG_ENV_SPI_BUS 1 +#define CONFIG_ENV_SPI_MAX_HZ 50000000 +#endif + /* Ethernet Controllor Driver */ #ifdef CONFIG_CMD_NET #define CONFIG_SMC911X |