Patchwork [U-Boot,14/14] tegra114: dalmore: config: enable SPI

login
register
mail settings
Submitter Allen Martin
Date Feb. 13, 2013, 3:23 a.m.
Message ID <1360725802-5518-15-git-send-email-amartin@nvidia.com>
Download mbox | patch
Permalink /patch/220045/
State Superseded
Delegated to: Tom Warren
Headers show

Comments

Allen Martin - Feb. 13, 2013, 3:23 a.m.
Turn on SPI in dalmore config file

Signed-off-by: Allen Martin <amartin@nvidia.com>
---
 include/configs/dalmore.h |   11 +++++++++++
 1 file changed, 11 insertions(+)

Patch

diff --git a/include/configs/dalmore.h b/include/configs/dalmore.h
index ce32c80..e7df60b 100644
--- a/include/configs/dalmore.h
+++ b/include/configs/dalmore.h
@@ -45,6 +45,17 @@ 
 
 #define MACH_TYPE_DALMORE	4304	/* not yet in mach-types.h */
 
+/* SPI */
+#define CONFIG_TEGRA114_SPI
+#define CONFIG_TEGRA114_SPI_CTRLS	6
+#define CONFIG_SPI_FLASH
+#define CONFIG_SPI_FLASH_WINBOND
+#define CONFIG_SF_DEFAULT_MODE         SPI_MODE_0
+#define CONFIG_SF_DEFAULT_SPEED        24000000
+#define CONFIG_CMD_SPI
+#define CONFIG_CMD_SF
+#define CONFIG_SPI_FLASH_SIZE          (4 << 20)
+
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */