From patchwork Mon Feb 21 08:57:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 577121 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1L8xUs3024309 for ; Mon, 21 Feb 2011 08:59:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753192Ab1BUI73 (ORCPT ); Mon, 21 Feb 2011 03:59:29 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:44627 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753078Ab1BUI72 (ORCPT ); Mon, 21 Feb 2011 03:59:28 -0500 Received: from epmmp1 (mailout2.samsung.com [203.254.224.25]) by mailout2.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LGY00KYQM8UDE90@mailout2.samsung.com> for linux-mmc@vger.kernel.org; Mon, 21 Feb 2011 17:58:06 +0900 (KST) Received: from TNRNDGASPAPP1.tn.corp.samsungelectronics.net ([165.213.149.150]) by mmp1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LGY008ZFM8UR2@mmp1.samsung.com> for linux-mmc@vger.kernel.org; Mon, 21 Feb 2011 17:58:06 +0900 (KST) Received: from [165.213.219.108] ([165.213.219.108]) by TNRNDGASPAPP1.tn.corp.samsungelectronics.net with Microsoft SMTPSVC(6.0.3790.4675); Mon, 21 Feb 2011 17:58:06 +0900 Date: Mon, 21 Feb 2011 17:57:26 +0900 From: Jaehoon Chung Subject: [PATCH] dw_mmc: set the debounce value and remove duplicated offset To: "linux-mmc@vger.kernel.org" Cc: will.newton@imgtec.com, Chris Ball , Kyungmin Park Message-id: <4D6228F6.6020500@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT User-Agent: Thunderbird 2.0.0.24 (X11/20100317) X-OriginalArrivalTime: 21 Feb 2011 08:58:06.0662 (UTC) FILETIME=[749FA660:01CBD1A5] Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 21 Feb 2011 08:59:30 +0000 (UTC) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 62c8440..b3f94ff 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -1623,6 +1623,9 @@ static int dw_mci_probe(struct platform_device *pdev) /* Put in max timeout */ mci_writel(host, TMOUT, 0xFFFFFFFF); + /* Set the debounce value */ + mci_writel(host, DEBNCE, 0xFFFFFF); + /* * FIFO threshold settings RxMark = fifo_size / 2 - 1, * Tx Mark = fifo_size / 2 DMA Size = 8 diff --git a/drivers/mmc/host/dw_mmc.h b/drivers/mmc/host/dw_mmc.h index 5dd55a7..f492837 100644 --- a/drivers/mmc/host/dw_mmc.h +++ b/drivers/mmc/host/dw_mmc.h @@ -51,7 +51,6 @@ #define SDMMC_DSCADDR 0x094 #define SDMMC_BUFADDR 0x098 #define SDMMC_DATA 0x100 -#define SDMMC_DATA_ADR 0x100 /* shift bit field */ #define _SBF(f, v) ((v) << (f))