summaryrefslogtreecommitdiff
path: root/include/configs/km
diff options
context:
space:
mode:
authorValentin Longchamp <valentin.longchamp@keymile.com>2012-08-14 01:39:10 +0000
committerPrafulla Wadaskar <prafulla@marvell.com>2012-09-03 17:13:03 +0530
commitf46b4a1aadb4ab834bcf333a9dd4c7804296e185 (patch)
tree66bf6ebdb14441e48cbc6489ed261926c7ed4173 /include/configs/km
parent491f6c2f291657dce8b67d85c15aaa9c03766b8e (diff)
downloadu-boot-imx-f46b4a1aadb4ab834bcf333a9dd4c7804296e185.zip
u-boot-imx-f46b4a1aadb4ab834bcf333a9dd4c7804296e185.tar.gz
u-boot-imx-f46b4a1aadb4ab834bcf333a9dd4c7804296e185.tar.bz2
km/arm: set SPI NOR Flash default parameters
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>
Diffstat (limited to 'include/configs/km')
-rw-r--r--include/configs/km/km_arm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/km/km_arm.h b/include/configs/km/km_arm.h
index 27b77d3..b41ca2e 100644
--- a/include/configs/km/km_arm.h
+++ b/include/configs/km/km_arm.h
@@ -57,6 +57,10 @@
#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