]> git.sur5r.net Git - u-boot/commitdiff
spi: Tegra2: Seaboard: enable SPI/UART corruption fix
authorTom Warren <twarren@nvidia.com>
Tue, 15 May 2012 21:38:03 +0000 (14:38 -0700)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 7 Jul 2012 12:07:17 +0000 (14:07 +0200)
Signed-off-by: Tom Warren <twarren@nvidia.com>
include/configs/seaboard.h

index 46d42281b78d2ee3c53acd503addbfa453e26afa..889bdfff383b009baf1e36062edd11b33cf2e3bf 100644 (file)
 
 /* On Seaboard: GPIO_PI3 = Port I = 8, bit = 3 */
 #define CONFIG_UART_DISABLE_GPIO       GPIO_PI3
+/*
+ * On Seaboard, SPIFLASH is muxed with UART4. The next 5 defines are
+ * needed to work around that design error.
+ */
+#define CONFIG_SPI_UART_SWITCH
+#define CONFIG_SPI_CORRUPTS_UART       NV_PA_APB_UARTD_BASE
+#define CONFIG_SPI_CORRUPTS_UART_NR    3
+#define CONFIG_SPI_CORRUPTS_UART_DLY   2500
+#undef CONFIG_CMDLINE_EDITING          /* avoid NUL in input buffer */
 
 #define CONFIG_MACH_TYPE               MACH_TYPE_SEABOARD
 #define CONFIG_SYS_BOARD_ODMDATA       0x300d8011 /* lp1, 1GB */