From patchwork Fri Oct 2 02:23:19 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 51279 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 n922RO74007248 for ; Fri, 2 Oct 2009 02:27:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754287AbZJBC1y (ORCPT ); Thu, 1 Oct 2009 22:27:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755055AbZJBC1y (ORCPT ); Thu, 1 Oct 2009 22:27:54 -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 S1754290AbZJBC1x (ORCPT ); Thu, 1 Oct 2009 22:27:53 -0400 Received: by mail-ew0-f211.google.com with SMTP id 7so778329ewy.17 for ; Thu, 01 Oct 2009 19:27:57 -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=C44ZccJnAvxZXezuO8rLFUKwaeNKvVfCtdNTydsJW7A=; b=c5FYQZuWY6r2VJUpG1VcJTkzSj1GfYvyjKnz8RppRoJBmrHPGxaGHhtiDMjL2w8bdb 3xzHtNlaSNsCWLsiB0SHnbJLDmBwtV4nkilpbOqEMZ2dtVK0oD0JiWdIVQhNxbIQcZqS /M39iagLW9ZsKlAqEk89UNsEnduVEaGmgI/MA= 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=UhhSMhJTbTFhuJWwv2Jj3vC8XalZoL6fz4i6t5HtDH9d+6p6XqsvejQP5nBPUBxM15 KAKI9M+KfGHx3/Ls2RbY76PJpFub9myWIJVv/tLA9Goz+6+S0OX5o59g+2eF6HWOXEgM aSIfhelvqrWDaw9qqUGTWQbkXNAS5hKxYSjX4= Received: by 10.211.173.14 with SMTP id a14mr8827479ebp.39.1254450477129; Thu, 01 Oct 2009 19:27:57 -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 5sm886114eyh.8.2009.10.01.19.27.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Oct 2009 19:27:56 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: akpm@linux-foundation.org, linux-mmc@vger.kernel.org, ian@mnementh.co.uk, lethal@linux-sh.org, Magnus Damm , g.liakhovetski@gmx.de Date: Fri, 02 Oct 2009 11:23:19 +0900 Message-Id: <20091002022319.8215.68511.sendpatchset@rxone.opensource.se> In-Reply-To: <20091002022158.8215.58317.sendpatchset@rxone.opensource.se> References: <20091002022158.8215.58317.sendpatchset@rxone.opensource.se> Subject: [PATCH 07/07] sh: SDHI platform data to the kfr2r09 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-kfr2r09/setup.c +++ work/arch/sh/boards/mach-kfr2r09/setup.c 2009-10-01 13:22:17.000000000 +0900 @@ -212,11 +212,34 @@ static struct platform_device kfr2r09_us .resource = kfr2r09_usb0_gadget_resources, }; +static struct resource kfr2r09_sh_sdhi0_resources[] = { + [0] = { + .name = "SDHI0", + .start = 0x04ce0000, + .end = 0x04ce01ff, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = 101, + .flags = IORESOURCE_IRQ, + }, +}; + +static struct platform_device kfr2r09_sh_sdhi0_device = { + .name = "sh_mobile_sdhi", + .num_resources = ARRAY_SIZE(kfr2r09_sh_sdhi0_resources), + .resource = kfr2r09_sh_sdhi0_resources, + .archdata = { + .hwblk_id = HWBLK_SDHI0, + }, +}; + static struct platform_device *kfr2r09_devices[] __initdata = { &kfr2r09_nor_flash_device, &kfr2r09_nand_flash_device, &kfr2r09_sh_keysc_device, &kfr2r09_sh_lcdc_device, + &kfr2r09_sh_sdhi0_device, }; #define BSC_CS0BCR 0xfec10004 @@ -361,6 +384,16 @@ static int __init kfr2r09_devices_setup( if (kfr2r09_usb0_gadget_setup() == 0) platform_device_register(&kfr2r09_usb0_gadget_device); + /* SDHI0 connected to yc304 */ + 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); + return platform_add_devices(kfr2r09_devices, ARRAY_SIZE(kfr2r09_devices)); }