summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mvebu/include/mach/config.h
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2015-11-20 13:51:57 +0100
committerStefan Roese <sr@denx.de>2016-01-14 14:08:59 +0100
commit09a54c009e8ffbcb88d4b5593b8da32596f14be0 (patch)
tree1fd4272063f31feba432174e255ea1ba3cc6e8a0 /arch/arm/mach-mvebu/include/mach/config.h
parent9985bdb1cea7ba0b238f299d5bec591a144d3132 (diff)
downloadu-boot-imx-09a54c009e8ffbcb88d4b5593b8da32596f14be0.zip
u-boot-imx-09a54c009e8ffbcb88d4b5593b8da32596f14be0.tar.gz
u-boot-imx-09a54c009e8ffbcb88d4b5593b8da32596f14be0.tar.bz2
arm: mvebu: Add SPI driver model support
This patch enables the DM support for the SPI driver and the SPI NOR flash chips. Some MVEBU boards boot from SPI NOR, so adding the aliases and enabling CONFIG_DM_SEQ_ALIAS is needed here. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Luka Perkov <luka.perkov@sartura.hr> Cc: Dirk Eibach <dirk.eibach@gdsys.cc> Cc: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/mach-mvebu/include/mach/config.h')
-rw-r--r--arch/arm/mach-mvebu/include/mach/config.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-mvebu/include/mach/config.h b/arch/arm/mach-mvebu/include/mach/config.h
index 3d18827..74a1ff6 100644
--- a/arch/arm/mach-mvebu/include/mach/config.h
+++ b/arch/arm/mach-mvebu/include/mach/config.h
@@ -47,8 +47,7 @@
* SPI Flash configuration
*/
#ifdef CONFIG_CMD_SF
-#define CONFIG_HARD_SPI 1
-#define CONFIG_KIRKWOOD_SPI 1
+#define CONFIG_KIRKWOOD_SPI
#ifndef CONFIG_ENV_SPI_BUS
# define CONFIG_ENV_SPI_BUS 0
#endif
@@ -60,6 +59,9 @@
#endif
#endif
+/* Needed for SPI NOR booting in SPL */
+#define CONFIG_DM_SEQ_ALIAS 1
+
/*
* Ethernet Driver configuration
*/