summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhuvanchandra DV <bhuvanchandra.dv@toradex.com>2015-07-29 14:16:43 +0200
committerStefan Agner <stefan.agner@toradex.com>2015-08-10 16:11:43 +0200
commite949d566bee99b893e07a3c59586c9c828960cf0 (patch)
tree529de5e2ff632d09dcd3157ce221080133367393
parentbc3d349e79879cc7ec00baeb313b0e59f7f8dd57 (diff)
colibri-vf: Enable SPI support
Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> [add CONFIG_DM to colibri_vf_defconfig] Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
-rw-r--r--configs/colibri_vf_defconfig1
-rw-r--r--include/configs/colibri_vf.h10
2 files changed, 8 insertions, 3 deletions
diff --git a/configs/colibri_vf_defconfig b/configs/colibri_vf_defconfig
index 7b3c344799..1d6befe765 100644
--- a/configs/colibri_vf_defconfig
+++ b/configs/colibri_vf_defconfig
@@ -3,3 +3,4 @@ CONFIG_ARM=y
CONFIG_TARGET_COLIBRI_VF=y
CONFIG_NAND_VF610_NFC=y
CONFIG_SYS_NAND_VF610_NFC_60_ECC_BYTES=y
+CONFIG_DM=y
diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h
index bc60f6658a..b96ea88bcf 100644
--- a/include/configs/colibri_vf.h
+++ b/include/configs/colibri_vf.h
@@ -79,9 +79,6 @@
#define CONFIG_SYS_MAX_NAND_DEVICE 1
#define CONFIG_SYS_NAND_BASE NFC_BASE_ADDR
-/* Enable driver model */
-#define CONFIG_DM
-
/* GPIO support */
#define CONFIG_DM_GPIO
#define CONFIG_CMD_GPIO
@@ -310,4 +307,11 @@
#define CONFIG_USB_GADGET_MASS_STORAGE
#define CONFIG_CMD_USB_MASS_STORAGE
+/* Enable SPI support */
+#ifdef CONFIG_OF_CONTROL
+#define CONFIG_DM_SPI
+#define CONFIG_CMD_SPI
+#define CONFIG_FSL_DSPI
+#endif
+
#endif /* __CONFIG_H */