From patchwork Wed Mar 10 07:15:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 84497 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2A7FXeU025805 for ; Wed, 10 Mar 2010 07:15:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752551Ab0CJHPa (ORCPT ); Wed, 10 Mar 2010 02:15:30 -0500 Received: from mail-yx0-f200.google.com ([209.85.210.200]:48803 "EHLO mail-yx0-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751169Ab0CJHPa (ORCPT ); Wed, 10 Mar 2010 02:15:30 -0500 Received: by yxe38 with SMTP id 38so1441527yxe.22 for ; Tue, 09 Mar 2010 23:15:28 -0800 (PST) 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 :subject; bh=vgGKsS3TTNrnxSRwVk5klcN3xaivCEqg+OetI4Bupzw=; b=jrOQsxdAXmPo/ZCSVnEvGojyofVQFzMSC32LpJ6I3CaglReo9l/4wx9Ay0CiePobMW sidrtV6hZHUvxKSgEuHuTqd7gKoz3r+K/ja7aKZoOZxu2o4RKafWEaiKdtlmW44xUV5O PJLgc0Cfa5v9tpCvdPuP1+VYh/sb5PafkUMGw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=XYmkn16T8Wzi01HFBeEtoT9UijVkHEJ8P3ePCeHvs8GUvupXiE/uFPvImNTilI+a/V TffBEylBolirb6Zc6DyabcaZWwMDiFk4qq1ykY1y9tVhden0Xv+dE4s0twSITgvBvPmT IFAlMICRK/3kE1MfCKf+G9gnaTle/o4DksyRQ= Received: by 10.100.30.29 with SMTP id d29mr1624415and.247.1268205328526; Tue, 09 Mar 2010 23:15:28 -0800 (PST) Received: from [127.0.0.1] (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id 16sm4964416gxk.13.2010.03.09.23.15.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 09 Mar 2010 23:15:27 -0800 (PST) From: Magnus Damm To: lethal@linux-sh.org Cc: Magnus Damm , linux-sh@vger.kernel.org Date: Wed, 10 Mar 2010 16:15:28 +0900 Message-Id: <20100310071528.5975.28821.sendpatchset@t400s> Subject: [PATCH] ARM: mach-shmobile: ap4evb SDHI0 platform data Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 10 Mar 2010 07:15:33 +0000 (UTC) --- 0001/arch/arm/mach-shmobile/board-ap4evb.c +++ work/arch/arm/mach-shmobile/board-ap4evb.c 2010-03-10 16:11:27.000000000 +0900 @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -206,10 +207,38 @@ static struct platform_device keysc_devi }, }; +/* SDHI0 */ +static struct sh_mobile_sdhi_info sdhi0_info = { +}; + +static struct resource sdhi0_resources[] = { + [0] = { + .name = "SDHI0", + .start = 0xe6850000, + .end = 0xe68501ff, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = 96, + .flags = IORESOURCE_IRQ, + }, +}; + +static struct platform_device sdhi0_device = { + .name = "sh_mobile_sdhi", + .num_resources = ARRAY_SIZE(sdhi0_resources), + .resource = sdhi0_resources, + .id = 0, + .dev = { + .platform_data = &sdhi0_info, + }, +}; + static struct platform_device *ap4evb_devices[] __initdata = { &nor_flash_device, &smc911x_device, &keysc_device, + &sdhi0_device, }; static struct map_desc ap4evb_io_desc[] __initdata = { @@ -286,6 +315,16 @@ static void __init ap4evb_init(void) gpio_request(GPIO_FN_KEYIN3_133, NULL); gpio_request(GPIO_FN_KEYIN4, NULL); + /* SDHI0 */ + gpio_request(GPIO_FN_SDHICD0, NULL); + gpio_request(GPIO_FN_SDHIWP0, NULL); + gpio_request(GPIO_FN_SDHICMD0, NULL); + gpio_request(GPIO_FN_SDHICLK0, NULL); + gpio_request(GPIO_FN_SDHID0_3, NULL); + gpio_request(GPIO_FN_SDHID0_2, NULL); + gpio_request(GPIO_FN_SDHID0_1, NULL); + gpio_request(GPIO_FN_SDHID0_0, NULL); + sh7372_add_standard_devices(); platform_add_devices(ap4evb_devices, ARRAY_SIZE(ap4evb_devices));