@@ -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;