]> git.sur5r.net Git - u-boot/commitdiff
km/arm: set SPI NOR Flash default parameters
authorValentin Longchamp <valentin.longchamp@keymile.com>
Tue, 14 Aug 2012 01:39:10 +0000 (01:39 +0000)
committerPrafulla Wadaskar <prafulla@marvell.com>
Mon, 3 Sep 2012 11:43:03 +0000 (17:13 +0530)
These parameters are used by the the sf probe command that are used by
our update script and they therefore need to be set for all of our
boards.

The timing is the same as for the ENV SPI NOR Flash (since it's the
same physical device) and takes the boco2 delay on the bus into account.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Holger Brunck <holger.brunck@keymile.com>
Acked-by: Prafulla Wadaskar <Prafulla@marvell.com>
include/configs/km/km_arm.h

index 27b77d3dabe220a21f3d37dd712938006cc0a876..b41ca2e36d8d886fc5e45643e0cccf1827f0d3c7 100644 (file)
 #define CONFIG_CMD_SF
 #define CONFIG_SOFT_I2C                /* I2C bit-banged       */
 
+/* SPI NOR Flash default params, used by sf commands */
+#define CONFIG_SF_DEFAULT_SPEED                8100000
+#define CONFIG_SF_DEFAULT_MODE         SPI_MODE_3
+
 #if defined CONFIG_KM_ENV_IS_IN_SPI_NOR
 #define CONFIG_ENV_SPI_BUS             0
 #define CONFIG_ENV_SPI_CS              0