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: 28733 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f69.google.com (mail-pb0-f69.google.com [209.85.160.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B66132032B for ; Mon, 21 Apr 2014 21:47:49 +0000 (UTC) Received: by mail-pb0-f69.google.com with SMTP id md12sf21194299pbc.8 for ; Mon, 21 Apr 2014 14:47:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=205xuMRkvFANwRs/gmdvZzX2Oyd8HazOVePnM0CJXZk=; b=EdPKdkT8vM+bDG+C7eB9xQppoPBgzfFIDp/xMX80h8c/sSh8k3lVmJYOmbCl3R4Ws8 nY36gRMhlcqFSu5XFeXvN01yMmKLJUTUEb0Ifdt5E0hqoYYGOVk8ecSS2nnizmDvBQMj b0zNoHi5+VNRbqRM38Tjm2+abMMJ9GkG51WzA/7wqvR92VlFtQ2QAupjQ/mFlbjvkv9X 4EEud7vtSF9E796SiraZIo/GpnKF/4vuTxQamo+VnCuefwGTjz7diVPQ+ntymZQu42Bn mImFIKCg3zseOGrhbNUuh8Ozt98kU/UOoDK+YzKFm3FmscWhZ3x32KFMEsx0my9zSAgt +wAg== X-Gm-Message-State: ALoCoQlgwiok6E7Bd0rlgnLpeOJAsBJqI+0l4oX+lIdmU+g0D9bufhBePWajWjRnxgNAZ1K5IHZs X-Received: by 10.68.216.230 with SMTP id ot6mr20256020pbc.3.1398116869236; Mon, 21 Apr 2014 14:47:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.212 with SMTP id z78ls2745096qgz.93.gmail; Mon, 21 Apr 2014 14:47:49 -0700 (PDT) X-Received: by 10.221.29.137 with SMTP id ry9mr33276049vcb.6.1398116869102; Mon, 21 Apr 2014 14:47:49 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id tq2si6462273vdc.57.2014.04.21.14.47.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 14:47:49 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id il7so1629205vcb.32 for ; Mon, 21 Apr 2014 14:47:49 -0700 (PDT) X-Received: by 10.52.126.107 with SMTP id mx11mr405343vdb.41.1398116869026; Mon, 21 Apr 2014 14:47:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp320744vcb; Mon, 21 Apr 2014 14:47:48 -0700 (PDT) X-Received: by 10.68.163.100 with SMTP id yh4mr6099131pbb.122.1398116868336; Mon, 21 Apr 2014 14:47:48 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si21510945paw.127.2014.04.21.14.47.47; Mon, 21 Apr 2014 14:47:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754770AbaDUVrh (ORCPT + 7 others); 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-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: list List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 }, };