From patchwork Thu May 15 09:36:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 4180611 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B18D49F271 for ; Thu, 15 May 2014 09:42:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D84BE201C8 for ; Thu, 15 May 2014 09:41:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 42BC020306 for ; Thu, 15 May 2014 09:41:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752865AbaEOJgn (ORCPT ); Thu, 15 May 2014 05:36:43 -0400 Received: from mail-we0-f179.google.com ([74.125.82.179]:40510 "EHLO mail-we0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752653AbaEOJgl (ORCPT ); Thu, 15 May 2014 05:36:41 -0400 Received: by mail-we0-f179.google.com with SMTP id q59so773335wes.38 for ; Thu, 15 May 2014 02:36:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xGpj4OS37vc7XCZGNa2pC0TX7AtzwAZ6ugtGPtOt4Rc=; b=JD8HIkrxRGwBigLEgu/S+hyN9d7z9hu1D/pBQJ+BTpPds+3GvEOLGCtwEqfs6WDKOx hZNs8r53+0EiTPpgiR361V45DM3lukmBmTzAN/qJXJ2dw45jWGHtfFXQzdyRAL0GKV6P u6LsA87Zo4B4EP2NxB3T6L85eKghxL1BPptsI1Q0u/dRhEaw8UQQ1ULfijK/JrRswRPw Bk51uaMdUwf3vhfDfM2XI0FkEfSfKebD6S3xti2EQHJjQ/Ys9zNa1iSKR1LzBsCkUOev 6iNCo8iK1E12mbQDEniVHJKyAIl4xbdw5YDdNBAbLoDn/GxPmALqIjW5XQLPr7NjTPi2 yFrg== X-Gm-Message-State: ALoCoQktKDmH6ggbBfgRyoK1SJUYBhKoArxaqYN5zm5Sat1WAqOiJ9KDoT7IgNd3g6SIfhdvU4Uj X-Received: by 10.194.81.164 with SMTP id b4mr7741500wjy.2.1400146600385; Thu, 15 May 2014 02:36:40 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-78-145-240-98.as13285.net. [78.145.240.98]) by mx.google.com with ESMTPSA id fz11sm32638443wic.4.2014.05.15.02.36.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 May 2014 02:36:39 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Russell King , Ulf Hansson , linux-mmc@vger.kernel.org Cc: Chris Ball , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linus.walleij@linaro.org, Srinivas Kandagatla Subject: [PATCH v2 03/14] mmc: mmci: Add Qualcomm Id to amba id table Date: Thu, 15 May 2014 10:36:36 +0100 Message-Id: <1400146596-29929-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1400146447-29803-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1400146447-29803-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Srinivas Kandagatla This patch adds a fake Qualcomm ID 0x00051180 to the amba_ids, as Qualcomm SDCC controller is pl180, but amba id registers read 0x0's. The plan is to remove SDCC driver totally and use mmci as the main SD controller driver for Qualcomm SOCs. Signed-off-by: Srinivas Kandagatla Reviewed-by: Linus Walleij --- drivers/mmc/host/mmci.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index a38e714..7bdf4d3 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -160,6 +160,15 @@ static struct variant_data variant_ux500v2 = { .pwrreg_nopower = true, }; +static struct variant_data variant_qcom = { + .fifosize = 16 * 4, + .fifohalfsize = 8 * 4, + .clkreg = MCI_CLK_ENABLE, + .datalength_bits = 24, + .blksz_datactrl4 = true, + .pwrreg_powerup = MCI_PWR_UP, +}; + static int mmci_card_busy(struct mmc_host *mmc) { struct mmci_host *host = mmc_priv(mmc); @@ -1750,6 +1759,12 @@ static struct amba_id mmci_ids[] = { .mask = 0xf0ffffff, .data = &variant_ux500v2, }, + /* Qualcomm variants */ + { + .id = 0x00051180, + .mask = 0x000fffff, + .data = &variant_qcom, + }, { 0, 0 }, };