From patchwork Mon Oct 25 17:25:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Norman Wildmann X-Patchwork-Id: 267442 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9PHPTRc028992 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 25 Oct 2010 17:25:51 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1PAQnS-0005xq-69; Mon, 25 Oct 2010 17:25:22 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1PAQnR-0005xi-1x for spi-devel-general@lists.sourceforge.net; Mon, 25 Oct 2010 17:25:21 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of gmx.de designates 213.165.64.23 as permitted sender) client-ip=213.165.64.23; envelope-from=nenntmichdochwieihrwollt@gmx.de; helo=mail.gmx.net; Received: from mailout-de.gmx.net ([213.165.64.23] helo=mail.gmx.net) by sog-mx-4.v43.ch3.sourceforge.com with smtp (Exim 4.69) id 1PAQnQ-0005NR-59 for spi-devel-general@lists.sourceforge.net; Mon, 25 Oct 2010 17:25:21 +0000 Received: (qmail 8676 invoked by uid 0); 25 Oct 2010 17:25:09 -0000 Received: from 134.2.143.19 by www055.gmx.net with HTTP; Mon, 25 Oct 2010 19:25:08 +0200 (CEST) Date: Mon, 25 Oct 2010 19:25:08 +0200 From: "Norman Wildmann" Message-ID: <20101025172508.72910@gmx.net> MIME-Version: 1.0 Subject: Gumstix Overo omap2_mcspi and spidev driver issues To: spi-devel-general@lists.sourceforge.net X-Authenticated: #9599111 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1+YWzE640qYp8hCJet5vKSuNybQdZ8UMYKF7HS+yR Ot6QXmUAhIg1vu06mIev6l2/mrojX4bW/oaQ== X-GMX-UID: RovwfQ50bUk7GLFLoGgnpPdsZ2hlN0qG X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, low trust [213.165.64.23 listed in list.dnswl.org] -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is freemail (nenntmichdochwieihrwollt[at]gmx.de) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL X-Headers-End: 1PAQnQ-0005NR-59 X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 25 Oct 2010 17:25:51 +0000 (UTC) X-MIME-Autoconverted: from base64 to 8bit by demeter1.kernel.org id o9PHPTRc028992 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 @@ -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;