diff mbox

Gumstix Overo omap2_mcspi and spidev driver issues

Message ID 20101025172508.72910@gmx.net (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Norman Wildmann Oct. 25, 2010, 5:25 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c
index f357de9..3a9c519 100644
--- a/arch/arm/mach-omap2/board-overo.c
+++ b/arch/arm/mach-omap2/board-overo.c
@@ -70,8 +70,9 @@ 
 #define OVERO_SMSC911X2_CS     4
 #define OVERO_SMSC911X2_GPIO   65
 
-#if defined(CONFIG_TOUCHSCREEN_ADS7846) || \
-	defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE)
+//#if defined(CONFIG_TOUCHSCREEN_ADS7846) || \
+//	defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE)
+#if 0
 
 #include <linux/spi/ads7846.h>
 
@@ -616,7 +617,8 @@ 
 	return 0;
 }
 
-static struct spi_board_info overo_spi_board_info[] __initdata = {
+static struct spi_board_info overo_spi_board_info[] = {
+/*
 #if defined(CONFIG_TOUCHSCREEN_ADS7846) || \
 	defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE)
 	{
@@ -639,11 +641,19 @@ 
 		.mode			= SPI_MODE_3,
 	},
 #endif
+*/
+	{
+		.modalias = "spidev",
+		.bus_num = 1,
+		.chip_select = 0,
+		.max_speed_hz = 1000000,
+		.mode = SPI_MODE_0,
+	},
 };
 
 static int __init overo_spi_init(void)
 {
-	overo_ads7846_init();
+	//overo_ads7846_init();
 	spi_register_board_info(overo_spi_board_info,
 			ARRAY_SIZE(overo_spi_board_info));
 	return 0;