From patchwork Fri Oct 2 02:23:07 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 51278 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n922RO73007248 for ; Fri, 2 Oct 2009 02:27:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754753AbZJBC1m (ORCPT ); Thu, 1 Oct 2009 22:27:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755026AbZJBC1m (ORCPT ); Thu, 1 Oct 2009 22:27:42 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:61326 "EHLO mail-ew0-f211.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754753AbZJBC1l (ORCPT ); Thu, 1 Oct 2009 22:27:41 -0400 Received: by mail-ew0-f211.google.com with SMTP id 7so778329ewy.17 for ; Thu, 01 Oct 2009 19:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :in-reply-to:references:subject; bh=9RyHzgQ4jwz/6InsWpQ3RytXnxZHS4r1KfP+Lh6J8gM=; b=YBDST0iCgX5gjoGkSyJhNX9yhS/tvmq4fJzSYgLHuzs7QAuNdEHNuhBtEdZL5Gc5Dn j6FsyKF30btJtpAKPS2ftrDmjIuQ6bnyegk2cSDDln4DnPZvvWhSyYdR+D7n6AQ2okc/ TwXkClHu8I2LE1sj1n32R9McAGLliQ99o7hPo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:in-reply-to:references:subject; b=Ty0tSKN4N4BNVhG0xfsRD9mdRqAmJn5+8Or5SJLXZf9EnSxrnW2eldsN/PyWmQm5Ob hleH3yjL1z/UeIFQ9hQxO2+57EMpR9PjMKK4zoLuaR3qS5mODMFL2/wsZUMF7wLdswos FiRxFnCEHSwGZZQgD9Vvnp/CWsoDHtUx69aIw= Received: by 10.211.142.11 with SMTP id u11mr2369183ebn.8.1254450464893; Thu, 01 Oct 2009 19:27:44 -0700 (PDT) Received: from rxone.opensource.se (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id 7sm704380eyg.43.2009.10.01.19.27.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Oct 2009 19:27:44 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: linux-mmc@vger.kernel.org, g.liakhovetski@gmx.de, ian@mnementh.co.uk, lethal@linux-sh.org, Magnus Damm , akpm@linux-foundation.org Date: Fri, 02 Oct 2009 11:23:07 +0900 Message-Id: <20091002022307.8215.39215.sendpatchset@rxone.opensource.se> In-Reply-To: <20091002022158.8215.58317.sendpatchset@rxone.opensource.se> References: <20091002022158.8215.58317.sendpatchset@rxone.opensource.se> Subject: [PATCH 06/07] sh: SDHI platform data to the SE7724 board Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org --- 0001/arch/sh/boards/mach-se/7724/setup.c +++ work/arch/sh/boards/mach-se/7724/setup.c 2009-10-02 09:46:17.000000000 +0900 @@ -448,6 +448,28 @@ static struct platform_device sh7724_usb .resource = sh7724_usb1_gadget_resources, }; +static struct resource sdhi0_cn7_resources[] = { + [0] = { + .name = "SDHI0", + .start = 0x04ce0000, + .end = 0x04ce01ff, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = 101, + .flags = IORESOURCE_IRQ, + }, +}; + +static struct platform_device sdhi0_cn7_device = { + .name = "sh_mobile_sdhi", + .num_resources = ARRAY_SIZE(sdhi0_cn7_resources), + .resource = sdhi0_cn7_resources, + .archdata = { + .hwblk_id = HWBLK_SDHI0, + }, +}; + static struct platform_device *ms7724se_devices[] __initdata = { &heartbeat_device, &smc91x_eth_device, @@ -460,6 +482,7 @@ static struct platform_device *ms7724se_ &sh7724_usb0_host_device, &sh7724_usb1_gadget_device, &fsi_device, + &sdhi0_cn7_device, }; #define EEPROM_OP 0xBA206000 @@ -698,6 +721,16 @@ static int __init devices_setup(void) clk_set_rate(&fsimcka_clk, 11000); clk_put(fsia_clk); + /* SDHI0 connected to cn7 */ + gpio_request(GPIO_FN_SDHI0CD, NULL); + gpio_request(GPIO_FN_SDHI0WP, NULL); + gpio_request(GPIO_FN_SDHI0D3, NULL); + gpio_request(GPIO_FN_SDHI0D2, NULL); + gpio_request(GPIO_FN_SDHI0D1, NULL); + gpio_request(GPIO_FN_SDHI0D0, NULL); + gpio_request(GPIO_FN_SDHI0CMD, NULL); + gpio_request(GPIO_FN_SDHI0CLK, NULL); + /* * enable SH-Eth *