From patchwork Thu Jan 14 13:38:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 567390 X-Patchwork-Delegate: monstr@monstr.eu 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 8161E1402C4 for ; Fri, 15 Jan 2016 00:38:36 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b=gRoJWtHy; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AE4B9A75D8; Thu, 14 Jan 2016 14:38:33 +0100 (CET) X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" 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 D7TQL4hYtfCu; Thu, 14 Jan 2016 14:38:33 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5F178A768C; Thu, 14 Jan 2016 14:38:33 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 58803A75F5 for ; Thu, 14 Jan 2016 14:38:30 +0100 (CET) X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" 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 SlHIa3_Fg1fc for ; Thu, 14 Jan 2016 14:38:30 +0100 (CET) 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 mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by theia.denx.de (Postfix) with ESMTPS id 0C143A74D6 for ; Thu, 14 Jan 2016 14:38:25 +0100 (CET) Received: by mail-wm0-f68.google.com with SMTP id f206so43640302wmf.2 for ; Thu, 14 Jan 2016 05:38:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=txTp3yTuSg5kZS/ohNe/pbF8+rJHlzHfS6nU+6nCBm0=; b=gRoJWtHy5WhAZ2pXLHwQnFVrfzk5kylnrySHdX6866XCpOMsWVM1n7SBu9S4hhkMxi LLENrwo97tSLJXVY068saONoim7OZiZfTH+6lgC5yhLrT4xq34P+nlZOUmjbpLfad+Ts HyGf39a2Vfor7cyf8CU24Yopvmfm8c/f1BPIlkodkIu3xpXV2SdYbyAw/ZQhppqyYLQ0 nNZ0xbx9kEia5Qwhnc/OdaYmRYTIokEZZ3W/NBrxBIoEIU3WJ7GEv1sLGDDIC3IxrWD+ 92gNIwHIOQDBkLePEVW+jKwNCbDFLDf6oo3K7Bkgl86YCs5yyZGaH7U0ih/bY83zklPN C0+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=txTp3yTuSg5kZS/ohNe/pbF8+rJHlzHfS6nU+6nCBm0=; b=ABiqmkzrOIUGnmKu3Bn6+aqkk9+0vAGLH96fRkkaTL78UgNbES5ZctcjDkKt4aPjlM qElI8t6UiYOycAL7JQ7tuy8iN16GmKEfKVRoXYOVt8Sam6fCpGoe+ksKTs4In0jPWyIn Zww7QEf5kPOY4Xck9nfS1TXzZ3+/dGz0XEWgc6k6cSmQsbMfXMIAFV+XrZEWrn77frmG 8ThHgNDMcceYqu3bi18gZf/j5ieqgxxUu6ezuqJl/pjJmR9VTFVNvH5vSKIpKVcpz99M CqP/UfYh2YPXiF1G1GuuAKPJtnc5Di0ecXS48muric7V6dOUmg/kRzMz+YkhUnFR5gTj TaJQ== X-Gm-Message-State: ALoCoQlCtmE+Ld58GNypuvwZOkxsUgDXDWL1FtyzfqCgfp3WY5lanCtpBy1wPD4ENolu1qjeOJatHLKcL0x/vXh7bD7Z1ard8Q== X-Received: by 10.28.35.6 with SMTP id j6mr33474912wmj.80.1452778705302; Thu, 14 Jan 2016 05:38:25 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id s2sm6113775wjs.43.2016.01.14.05.38.24 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 14 Jan 2016 05:38:24 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de Date: Thu, 14 Jan 2016 14:38:22 +0100 Message-Id: <50fbaa30d47e947333e5015470f3b8bf9e84fed0.1452778699.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <3e754bf8642f443ac8170742cdbb6eadfc23f4d0.1452778699.git.michal.simek@xilinx.com> References: <3e754bf8642f443ac8170742cdbb6eadfc23f4d0.1452778699.git.michal.simek@xilinx.com> In-Reply-To: <3e754bf8642f443ac8170742cdbb6eadfc23f4d0.1452778699.git.michal.simek@xilinx.com> References: <3e754bf8642f443ac8170742cdbb6eadfc23f4d0.1452778699.git.michal.simek@xilinx.com> Cc: Pantelis Antoniou Subject: [U-Boot] [PATCH 2/2] mmc: zynq_sdhci: Added qurik to disable high speed X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Siva Durga Prasad Paladugu Add quirk to disable high speed incase the high speed was broken.This solves the issue where the the controller is used in High Speed Mode and the the hold time requirement for the JEDEC/MMC 4.41 specification is NOT met. This timing issue is not on all boards and hence provided config option to enable it when required. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Emil Lenchak Signed-off-by: Michal Simek --- drivers/mmc/zynq_sdhci.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index f21ea524af9f..039ec16e91fe 100644 --- a/drivers/mmc/zynq_sdhci.c +++ b/drivers/mmc/zynq_sdhci.c @@ -24,6 +24,11 @@ static int arasan_sdhci_probe(struct udevice *dev) host->quirks = SDHCI_QUIRK_WAIT_SEND_CMD | SDHCI_QUIRK_BROKEN_R1B; + +#ifdef CONFIG_ZYNQ_HISPD_BROKEN + host->quirks |= SDHCI_QUIRK_NO_HISPD_BIT; +#endif + host->version = sdhci_readw(host, SDHCI_HOST_VERSION); add_sdhci(host, CONFIG_ZYNQ_SDHCI_MAX_FREQ,