From patchwork Mon Nov 23 07:48:51 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wan zongshun X-Patchwork-Id: 62111 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAN7oL21010616 for ; Mon, 23 Nov 2009 07:50:21 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 1NCTfv-0004Zl-4i; Mon, 23 Nov 2009 07:49:31 +0000 Received: from sfi-mx-2.v28.ch3.sourceforge.com ([172.29.28.122] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NCTft-0004ZW-VJ for spi-devel-general@lists.sourceforge.net; Mon, 23 Nov 2009 07:49:29 +0000 Received-SPF: pass (72vjzd1.ch3.sourceforge.com: domain of gmail.com designates 209.85.160.43 as permitted sender) client-ip=209.85.160.43; envelope-from=mcuos.com@gmail.com; helo=mail-pw0-f43.google.com; Received: from mail-pw0-f43.google.com ([209.85.160.43]) by 72vjzd1.ch3.sourceforge.com with esmtp (Exim 4.69) id 1NCTfl-000058-HP for spi-devel-general@lists.sourceforge.net; Mon, 23 Nov 2009 07:49:29 +0000 Received: by pwi12 with SMTP id 12so3535526pwi.2 for ; Sun, 22 Nov 2009 23:48:59 -0800 (PST) Received: by 10.114.237.18 with SMTP id k18mr8247023wah.63.1258962539192; Sun, 22 Nov 2009 23:48:59 -0800 (PST) Received: from ?192.169.0.164? ([116.226.94.165]) by mx.google.com with ESMTPS id 21sm2915379pzk.7.2009.11.22.23.48.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 22 Nov 2009 23:48:58 -0800 (PST) Message-ID: <4B0A3E63.1080904@gmail.com> Date: Mon, 23 Nov 2009 15:48:51 +0800 From: Wan ZongShun User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: David Brownell-sourceforge , linux-arm-kernel , linux-spi , Russell King X-Spam-Score: -2.2 (--) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record -0.0 DKIM_VERIFIED Domain Keys Identified Mail: signature passes verification 0.0 DKIM_SIGNED Domain Keys Identified Mail: message has a signature -0.7 AWL AWL: From: address is in the auto white-list X-Headers-End: 1NCTfl-000058-HP Subject: [spi-devel-general] [PATCH] NUC900: add spi resource plaform_data structure initialization 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 diff --git a/arch/arm/mach-w90x900/dev.c b/arch/arm/mach-w90x900/dev.c index 2a6f98d..51f17b7 100644 --- a/arch/arm/mach-w90x900/dev.c +++ b/arch/arm/mach-w90x900/dev.c @@ -32,6 +32,7 @@ #include #include +#include #include #include "cpu.h" @@ -196,6 +197,18 @@ static struct platform_device nuc900_device_emc = { /* SPI device */ +static struct w90p910_spi_info nuc900_spiflash_data = { + .num_cs = 1, + .lsb = 0, + .txneg = 1, + .rxneg = 0, + .divider = 24, + .sleep = 0, + .txnum = 0, + .txbitlen = 1, + .bus_num = 0, +}; + static struct resource nuc900_spi_resource[] = { [0] = { .start = W90X900_PA_I2C + SPIOFFSET, @@ -214,6 +227,9 @@ static struct platform_device nuc900_device_spi = { .id = -1, .num_resources = ARRAY_SIZE(nuc900_spi_resource), .resource = nuc900_spi_resource, + .dev = { + .platform_data = &nuc900_spiflash_data, + } }; /* spi device, spi flash info */