From patchwork Mon Sep 6 10:34:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 177982 Return-path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on void.printf.net X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.9 tests=RCVD_IN_DNSWL_LOW autolearn=disabled version=3.2.5 Envelope-to: chris@printf.net Delivery-date: Mon, 06 Sep 2010 11:35:06 +0100 Received: from lists.laptop.org ([18.85.2.145] helo=mail.laptop.org) by void.printf.net with esmtp (Exim 4.69) (envelope-from ) id 1OsZ2Y-00082N-AI for chris@printf.net; Mon, 06 Sep 2010 11:35:06 +0100 Received: by mail.laptop.org (Postfix) id D971724179; Mon, 6 Sep 2010 06:34:45 -0400 (EDT) Delivered-To: cjb@laptop.org Received: from spam.laptop.org (spam.laptop.org [18.85.46.23]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.laptop.org (Postfix) with ESMTPS id 363B22417D for ; Mon, 6 Sep 2010 06:34:43 -0400 (EDT) X-ASG-Debug-ID: 1283769297-0b74e5560003-zHW3sV Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by spam.laptop.org with ESMTP id O0UtfWFFl8pm6xnH for ; Mon, 06 Sep 2010 06:34:59 -0400 (EDT) X-Barracuda-Envelope-From: linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752788Ab0IFKe6 (ORCPT ); Mon, 6 Sep 2010 06:34:58 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:51028 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752898Ab0IFKe4 (ORCPT ); Mon, 6 Sep 2010 06:34:56 -0400 Received: from [2001:6f8:1178:2:221:70ff:fe71:1890] (helo=pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.71) (envelope-from ) id 1OsZ2N-0004iq-UI; Mon, 06 Sep 2010 12:34:55 +0200 From: Wolfram Sang To: linux-mmc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Zhu Richard-R65037 , Wolfram Sang X-ASG-Orig-Subj: [RFC 3/3] pcm043: add resources for mmc Subject: [RFC 3/3] pcm043: add resources for mmc Date: Mon, 6 Sep 2010 12:34:25 +0200 Message-Id: <1283769265-14147-4-git-send-email-w.sang@pengutronix.de> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1283769265-14147-1-git-send-email-w.sang@pengutronix.de> References: <1283769265-14147-1-git-send-email-w.sang@pengutronix.de> X-SA-Exim-Connect-IP: 2001:6f8:1178:2:221:70ff:fe71:1890 X-SA-Exim-Mail-From: w.sang@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-mmc@vger.kernel.org Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Barracuda-Connect: vger.kernel.org[209.132.180.67] X-Barracuda-Start-Time: 1283769298 X-Barracuda-URL: http://18.85.46.23:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at laptop.org X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.5 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.40082 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- diff --git a/arch/arm/mach-mx3/mach-pcm043.c b/arch/arm/mach-mx3/mach-pcm043.c index 28886f0..44278d3 100644 --- a/arch/arm/mach-mx3/mach-pcm043.c +++ b/arch/arm/mach-mx3/mach-pcm043.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include @@ -139,10 +140,31 @@ static struct i2c_board_info pcm043_i2c_devices[] = { }; #endif +static struct resource sdhci_resources[] = { + { + .start = 0x53fb4000, + .end = 0x53fb4000 + 0xff, + .flags = IORESOURCE_MEM, + }, { + .start = MX35_INT_MMC_SDHC1, + .end = MX35_INT_MMC_SDHC1, + .flags = IORESOURCE_IRQ, + }, +}; + +static struct platform_device sdhci_device = { + .name = "sdhci-esdhc", + .id = 0, + .num_resources = ARRAY_SIZE(sdhci_resources), + .resource = sdhci_resources, +}; + + static struct platform_device *devices[] __initdata = { &pcm043_flash, &mxc_fec_device, &imx_wdt_device0, + &sdhci_device, }; static struct pad_desc pcm043_pads[] = { @@ -217,6 +239,13 @@ static struct pad_desc pcm043_pads[] = { /* CAN2 */ MX35_PAD_TX5_RX0__CAN2_TXCAN, MX35_PAD_TX4_RX1__CAN2_RXCAN, + /* esdhc */ + MX35_PAD_SD1_CMD__ESDHC1_CMD, + MX35_PAD_SD1_CLK__ESDHC1_CLK, + MX35_PAD_SD1_DATA0__ESDHC1_DAT0, + MX35_PAD_SD1_DATA1__ESDHC1_DAT1, + MX35_PAD_SD1_DATA2__ESDHC1_DAT2, + MX35_PAD_SD1_DATA3__ESDHC1_DAT3, }; #define AC97_GPIO_TXFS (1 * 32 + 31)