From patchwork Mon Apr 21 21:47:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 4026401 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 E74139F387 for ; Mon, 21 Apr 2014 21:47:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 17D6A20357 for ; Mon, 21 Apr 2014 21:47:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3A9ED20213 for ; Mon, 21 Apr 2014 21:47:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754770AbaDUVrh (ORCPT ); Mon, 21 Apr 2014 17:47:37 -0400 Received: from mail-we0-f171.google.com ([74.125.82.171]:49060 "EHLO mail-we0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754742AbaDUVrc (ORCPT ); Mon, 21 Apr 2014 17:47:32 -0400 Received: by mail-we0-f171.google.com with SMTP id t61so4240315wes.30 for ; Mon, 21 Apr 2014 14:47:31 -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=HNR3F5R+Nkkaj1jK5m1g6QqiqpTtlnRfPBZkc3NTt/s=; b=mAqoMBvEQnVPNEzmChmvdAUGubeSCecKk+TDnmVaL7r1pnvAtL4S62BlrNQHFx1rfq S//+BK9+wwG4bF1DD+RC7jcsNnm5+QthwTNkuXqMqkLRj2iQvyV3Jh/1RoOkofoikheu +x/lwxDZvlOb5DESYKDJt+87GQMtAD24XOjp42HXubTZTqKL9y+5vZ14B1etNwqu5ivh 67bn4vb3UhvhgGcHPRmMd2V+bMDvM1EvEinRVQ8XAiaSuHxqLx7WGnjYjpfjkYQHalv5 MvAN9f1m49+tVwFJmRnvQNzE8acrCQqLiha9Ekq4/aWUb5THCyOJ0O1M0rK3QW6exLyF synw== X-Gm-Message-State: ALoCoQmyrUB2tX/hnS9XKkbVhXHNEIj1SYpCeDpikKabblgwM7Wn5dfPjxUoiudvs7/qOYx3DuG2 X-Received: by 10.180.95.4 with SMTP id dg4mr15577971wib.9.1398116851240; Mon, 21 Apr 2014 14:47:31 -0700 (PDT) Received: from srinivas-Inspiron-N5050.dlink.com (host-78-149-8-254.as13285.net. [78.149.8.254]) by mx.google.com with ESMTPSA id g13sm58829839wjn.15.2014.04.21.14.47.29 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 14:47:30 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: linux-mmc@vger.kernel.org Cc: Russell King , Chris Ball , Ulf Hansson , linux-kernel@vger.kernel.org, agross@quicinc.com, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH RFC 02/12] mmc: mmci: Add Qualcomm Id to amba id table Date: Mon, 21 Apr 2014 22:47:23 +0100 Message-Id: <1398116843-31276-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398116624-31052-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1398116624-31052-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 --- 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 771c60a..391e8d4 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -158,6 +158,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); @@ -1908,6 +1917,12 @@ static struct amba_id mmci_ids[] = { .mask = 0xf0ffffff, .data = &variant_ux500v2, }, + /* Qualcomm variants */ + { + .id = 0x00051180, + .mask = 0x000fffff, + .data = &variant_qcom, + }, { 0, 0 }, };