From patchwork Thu Dec 10 07:24:57 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phaneendra kumar X-Patchwork-Id: 66193 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 nBA7PIQK025847 for ; Thu, 10 Dec 2009 07:25:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760464AbZLJHZJ (ORCPT ); Thu, 10 Dec 2009 02:25:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755974AbZLJHZJ (ORCPT ); Thu, 10 Dec 2009 02:25:09 -0500 Received: from mail10.myhsphere.biz ([64.71.235.184]:41504 "EHLO mail10.myhsphere.biz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755969AbZLJHZH (ORCPT ); Thu, 10 Dec 2009 02:25:07 -0500 Received: (qmail 6085 invoked by uid 399); 10 Dec 2009 07:25:08 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail10.myhsphere.biz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.2.5 X-Virus-Scan: Scanned by ClamAV 0.94.2 (no viruses); Thu, 10 Dec 2009 02:25:09 -0500 Received: from abts-tn-static-237.19.165.122.airtelbroadband.in (HELO embwise16de1b5) (122.165.19.237) by mail10.myhsphere.biz with ESMTPM; 10 Dec 2009 07:25:08 -0000 X-Originating-IP: 122.165.19.237 From: "Phaneedra Kumar Alapati" To: Cc: Subject: [PATCH]OMAP35xx:SDIO IRQ Support for OMAP35xx Date: Thu, 10 Dec 2009 12:54:57 +0530 Message-ID: <8B7FC6A3798741D6B3E3284E1A8D7A27@embwise16de1b5> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acp5aeARQUQJtw2USfCUiuj07cawqQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 4b23225..fa94580 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -100,6 +100,10 @@ #define SRD (1 << 26) #define SOFTRESET (1 << 1) #define RESETDONE (1 << 0) +#define CIRQ (1 << 8) +#define CIRQ_ENABLE (1 << 8) +#define CTPL (1 << 11) +#define CLKEXTFREE (1 << 16) /* * FIXME: Most likely all the data using these _DEVID defines should come @@ -171,6 +175,7 @@ struct omap_hsmmc_host { int vdd; int protect_card; int reqs_blocked; + int sdio_int; struct omap_mmc_platform_data *pdata; }; @@ -436,6 +441,13 @@ omap_hsmmc_start_command(struct omap_hsmmc_host *host, struct mmc_command *cmd, else OMAP_HSMMC_WRITE(host->base, IE, INT_EN_MASK); + if (host->sdio_int) { + OMAP_HSMMC_WRITE(host->base, ISE, + (OMAP_HSMMC_READ(host->base, ISE) | CIRQ_ENABLE)); + OMAP_HSMMC_WRITE(host->base, IE, + (OMAP_HSMMC_READ(host->base, IE) | CIRQ_ENABLE)); + } + host->response_busy = 0; if (cmd->flags & MMC_RSP_PRESENT) {