From patchwork Fri Jul 27 02:33:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 173545 X-Patchwork-Delegate: afleming@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 2E3622C0087 for ; Fri, 27 Jul 2012 12:34:20 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 49196280C7; Fri, 27 Jul 2012 04:34:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y5ehNzn7+1x3; Fri, 27 Jul 2012 04:34:12 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 86664280D8; Fri, 27 Jul 2012 04:33:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6ADD8280CB for ; Fri, 27 Jul 2012 04:33:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NLKxTMHRF5s8 for ; Fri, 27 Jul 2012 04:33:49 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by theia.denx.de (Postfix) with ESMTP id D1C17280C8 for ; Fri, 27 Jul 2012 04:33:47 +0200 (CEST) Received: from epcpsbgm2.samsung.com (mailout2.samsung.com [203.254.224.25]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M7S00B4NSG6Y0D0@mailout2.samsung.com> for u-boot@lists.denx.de; Fri, 27 Jul 2012 11:33:45 +0900 (KST) X-AuditID: cbfee61b-b7f566d000005c8a-78-5011fe087466 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 2B.F4.23690.80EF1105; Fri, 27 Jul 2012 11:33:45 +0900 (KST) Received: from [10.90.51.55] by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M7S00FPYSG8L460@mmp2.samsung.com> for u-boot@lists.denx.de; Fri, 27 Jul 2012 11:33:44 +0900 (KST) Message-id: <5011FDF6.8040606@samsung.com> Date: Fri, 27 Jul 2012 11:33:26 +0900 From: Jaehoon Chung User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-version: 1.0 To: "u-boot@lists.denx.de" X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprILMWRmVeSWpSXmKPExsVy+t9jQV3Of4IBBpukLd7u7WR3YPQ4e2cH YwBjFJdNSmpOZllqkb5dAlfG9ElPWQvWc1V0zZnA3sB4iaOLkYNDQsBEYklnahcjJ5ApJnHh 3nq2LkYuDiGB6YwSV6YfYIVwmpgkln/9yQJSxSugJfFg/hFmkGYWAVWJthPiIGE2AR2J7d+O M4HYogJhEq/u/mSDKBeU+DH5HliriIChxN/du1lAZjILnGOU2PPhJlhCWMBd4tH146wgNjPQ oP2t09ggbHmJzWveMk9g5JuFZNYsJGWzkJQtYGRexSiaWpBcUJyUnmukV5yYW1yal66XnJ+7 iREcUM+kdzCuarA4xCjAwajEw7swUiBAiDWxrLgy9xCjBAezkgiv93LBACHelMTKqtSi/Pii 0pzU4kOM0hwsSuK8Jt5f/YUE0hNLUrNTUwtSi2CyTBycUg2MyjM/Os1vmdHw8NquvWJcYREy yk8epDy+Pp3nGveqGoZNNznl905lU/4ie5Lf4+/KHbly7xvc4wtud91tSBbZfXKHuqOx/RbL Tv0T3mU+Vi6K7zyXnHymd7prdzL7may9x5c5nnZ8sSLUapdedatWYf2LS+x2c2v85AKULafX ZTAnJz+/emGtEktxRqKhFnNRcSIAC0jRWSQCAAA= X-TM-AS-MML: No Cc: Lei Wen , Kyungmin Park , afleming@freescale.com Subject: [U-Boot] [PATCH v2 1/4] mmc: s5p_sdhci: set the SDHCI_QUIRK_BROKEN_R1B X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Samsung SoC is broken busy waiting for R1b type. And clk dealy control value is modified the previosuly value. (that value used at the s5p_mmc.c) Signed-off-by: Jaehoon Chung --- drivers/mmc/s5p_sdhci.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c index 1d4481b..12b28dd 100644 --- a/drivers/mmc/s5p_sdhci.c +++ b/drivers/mmc/s5p_sdhci.c @@ -54,7 +54,7 @@ static void s5p_sdhci_set_control_reg(struct sdhci_host *host) * 00 = Delay3 (inverter delay) * 10 = Delay4 (inverter delay + 2ns) */ - val = SDHCI_CTRL3_FCSEL3 | SDHCI_CTRL3_FCSEL1; + val = SDHCI_CTRL3_FCSEL0 | SDHCI_CTRL3_FCSEL1; sdhci_writel(host, val, SDHCI_CONTROL3); /* @@ -82,7 +82,8 @@ int s5p_sdhci_init(u32 regbase, u32 max_clk, u32 min_clk, u32 quirks) host->ioaddr = (void *)regbase; host->quirks = quirks; - host->quirks |= SDHCI_QUIRK_NO_HISPD_BIT | SDHCI_QUIRK_BROKEN_VOLTAGE; + host->quirks |= SDHCI_QUIRK_NO_HISPD_BIT | SDHCI_QUIRK_BROKEN_VOLTAGE | + SDHCI_QUIRK_BROKEN_R1B | SDHCI_QUIRK_32BIT_DMA_ADDR; host->voltages = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195; if (quirks & SDHCI_QUIRK_REG32_RW) host->version = sdhci_readl(host, SDHCI_HOST_VERSION - 2) >> 16;