From patchwork Mon Apr 18 15:50:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Rigby X-Patchwork-Id: 91795 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 D80C8B6F77 for ; Tue, 19 Apr 2011 01:51:01 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5CD6E2823E; Mon, 18 Apr 2011 17:50:50 +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 pcWuBXL+Xy98; Mon, 18 Apr 2011 17:50:50 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3EDBF2824D; Mon, 18 Apr 2011 17:50:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5EE542822D for ; Mon, 18 Apr 2011 17:50:41 +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 IjbvQGlXxNti for ; Mon, 18 Apr 2011 17:50:39 +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 mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by theia.denx.de (Postfix) with ESMTPS id 044B32822E for ; Mon, 18 Apr 2011 17:50:37 +0200 (CEST) Received: by pwi5 with SMTP id 5so2487967pwi.3 for ; Mon, 18 Apr 2011 08:50:35 -0700 (PDT) Received: by 10.68.20.71 with SMTP id l7mr7321995pbe.293.1303141835653; Mon, 18 Apr 2011 08:50:35 -0700 (PDT) Received: from localhost.localdomain (c-76-23-54-220.hsd1.ut.comcast.net [76.23.54.220]) by mx.google.com with ESMTPS id t9sm2374620pbo.3.2011.04.18.08.50.33 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Apr 2011 08:50:34 -0700 (PDT) From: John Rigby To: u-boot@lists.denx.de, Andy FLeming Date: Mon, 18 Apr 2011 09:50:09 -0600 Message-Id: <1303141809-29449-2-git-send-email-john.rigby@linaro.org> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1302795971-31659-1-git-send-email-john.rigby@linaro.org> References: <1302795971-31659-1-git-send-email-john.rigby@linaro.org> Cc: patches@linaro.org Subject: [U-Boot] [PATCHv2 2/2] mmc: omap_hsmmc.c: disable multiblock rw on old rev omap34xx silicon X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: John Rigby --- V2: split out omap_hsmmc use of b_max into separate patch drivers/mmc/omap_hsmmc.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index dcbde89..a2a6d55 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -467,6 +467,14 @@ int omap_mmc_init(int dev_index) mmc->b_max = 0; +#if defined(CONFIG_OMAP34XX) + /* + * Silicon revs 2.1 and older do not support multiblock transfers. + */ + if (get_cpu_rev() <= CPU_3XX_ES21) + mmc->b_max = 1; +#endif + mmc_register(mmc); return 0;