From patchwork Mon Nov 23 18:25:20 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Aggarwal, Anuj" X-Patchwork-Id: 62253 X-Patchwork-Delegate: tony@atomide.com 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 nANIPVYJ014218 for ; Mon, 23 Nov 2009 18:25:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753693AbZKWSZV (ORCPT ); Mon, 23 Nov 2009 13:25:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754800AbZKWSZV (ORCPT ); Mon, 23 Nov 2009 13:25:21 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:52151 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753631AbZKWSZT (ORCPT ); Mon, 23 Nov 2009 13:25:19 -0500 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id nANIPNOi013051 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 23 Nov 2009 12:25:25 -0600 Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id nANIPMuW010612; Mon, 23 Nov 2009 23:55:22 +0530 (IST) Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by psplinux050.india.ti.com (8.13.1/8.13.1) with ESMTP id nANIPMqL032265; Mon, 23 Nov 2009 23:55:22 +0530 Received: (from a0393534@localhost) by psplinux050.india.ti.com (8.13.1/8.13.1/Submit) id nANIPM5q032262; Mon, 23 Nov 2009 23:55:22 +0530 From: Anuj Aggarwal To: linux-omap@vger.kernel.org Cc: Anuj Aggarwal Subject: [PATCH 2/4] AM3517: MMC: Modifying board-evm file to add mmc_init Date: Mon, 23 Nov 2009 23:55:20 +0530 Message-Id: <1259000722-32222-2-git-send-email-anuj.aggarwal@ti.com> X-Mailer: git-send-email 1.6.2.4 In-Reply-To: <1259000722-32222-1-git-send-email-anuj.aggarwal@ti.com> References: <1259000722-32222-1-git-send-email-anuj.aggarwal@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 415a13d..30f8b00 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c @@ -30,6 +30,7 @@ #include #include +#include "mmc-am3517evm.h" /* * Board initialization */ @@ -60,6 +61,24 @@ static struct ehci_hcd_omap_platform_data ehci_pdata __initdata = { .reset_gpio_port[2] = -EINVAL }; +static struct am3517_hsmmc_info mmc[] = { + { + .mmc = 1, + .wires = 4, + /* TODO: Need to change */ + .gpio_cd = 127, + .gpio_wp = 126, + }, + { + .mmc = 2, + .wires = 4, + /* TODO: Need to change */ + .gpio_cd = 128, + .gpio_wp = 129, + }, + {} /* Terminator */ +}; + static void __init am3517_evm_init(void) { platform_add_devices(am3517_evm_devices, @@ -67,6 +86,9 @@ static void __init am3517_evm_init(void) omap_serial_init(); usb_ehci_init(&ehci_pdata); + + /* MMC init function */ + am3517_mmc_init(mmc); } static void __init am3517_evm_map_io(void)