summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-08-21 16:17:28 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-09-01 14:58:29 +0200
commit1d6d5f9674348e7ef0395c4bc873dc8d09a252ce (patch)
tree36706da727eeb07c29ef43b0a950b58e446d40b8
parent2c4321444a3783fc0eccf133f682be06580e7e17 (diff)
downloadu-boot-imx-1d6d5f9674348e7ef0395c4bc873dc8d09a252ce.zip
u-boot-imx-1d6d5f9674348e7ef0395c4bc873dc8d09a252ce.tar.gz
u-boot-imx-1d6d5f9674348e7ef0395c4bc873dc8d09a252ce.tar.bz2
MX28: m28evk: Align SSP clock speed
Align the SSP clock speed with oscilator to achieve higher transfer stability. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <festevam@gmail.com> Cc: Otavio Salvador <otavio@ossystems.com.br> Cc: Stefano Babic <sbabic@denx.de>
-rw-r--r--board/denx/m28evk/m28evk.c4
-rw-r--r--include/configs/m28evk.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/board/denx/m28evk/m28evk.c b/board/denx/m28evk/m28evk.c
index 9473d10..9d6db65 100644
--- a/board/denx/m28evk/m28evk.c
+++ b/board/denx/m28evk/m28evk.c
@@ -49,8 +49,8 @@ int board_early_init_f(void)
/* SSP0 clock at 96MHz */
mx28_set_sspclk(MXC_SSPCLK0, 96000, 0);
- /* SSP2 clock at 96MHz */
- mx28_set_sspclk(MXC_SSPCLK2, 96000, 0);
+ /* SSP2 clock at 160MHz */
+ mx28_set_sspclk(MXC_SSPCLK2, 160000, 0);
#ifdef CONFIG_CMD_USB
mxs_iomux_setup_pad(MX28_PAD_SSP2_SS1__USB1_OVERCURRENT);
diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h
index c26b720..560d512 100644
--- a/include/configs/m28evk.h
+++ b/include/configs/m28evk.h
@@ -253,11 +253,11 @@
#define CONFIG_SPI_FLASH_STMICRO
#define CONFIG_SF_DEFAULT_CS 2
#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0
-#define CONFIG_SF_DEFAULT_SPEED 24000000
+#define CONFIG_SF_DEFAULT_SPEED 40000000
#define CONFIG_ENV_SPI_CS 0
#define CONFIG_ENV_SPI_BUS 2
-#define CONFIG_ENV_SPI_MAX_HZ 24000000
+#define CONFIG_ENV_SPI_MAX_HZ 40000000
#define CONFIG_ENV_SPI_MODE SPI_MODE_0
#endif
#endif