From patchwork Tue Apr 29 08:19:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 29304 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f199.google.com (mail-yk0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1E327202FE for ; Tue, 29 Apr 2014 08:19:33 +0000 (UTC) Received: by mail-yk0-f199.google.com with SMTP id 200sf15197903ykr.10 for ; Tue, 29 Apr 2014 01:19:32 -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=frsBMQGRcjuoUcjnt0Vr3IL+zEZ+HvNQhdVgkqfZHphtredGAtXc+WKHRYtdFnoy50 t/oxjnEUzDAIp5a2eZrKyCcTbWkXfsdfhFD9dtgIuPFoYhJ7CUxMw9Y9D9TrM24WlP21 m25XN6CSZDSt843HlvBAtW3fs0knxW55Au9W2XvoCMyEsZir//YBcqUnCimbs7KliQml hdO+Y2mxaWB++HGWz9JQfxsBQMPH9fIj7KkZOra/xVSH7SpuI7aKm/XmK3eawrdWD8Cj incf4B2+37ILmOJ+rdDvRMz4MXZieVR2oFim6o1mz2Gjnei9AlqNhWPLbPsrEotqrnCb MjPg== X-Gm-Message-State: ALoCoQnhpFoX/weDQ/AmNOsZJUkbOfn6MvyVqvYvvjOgVoa+/+xou4MC+A4NQVSMZbuiXyZpKFUt X-Received: by 10.58.161.175 with SMTP id xt15mr15779959veb.19.1398759572741; Tue, 29 Apr 2014 01:19:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.170 with SMTP id p39ls2873610qgd.49.gmail; Tue, 29 Apr 2014 01:19:32 -0700 (PDT) X-Received: by 10.52.69.146 with SMTP id e18mr24081533vdu.15.1398759572631; Tue, 29 Apr 2014 01:19:32 -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 e9si4332083vct.142.2014.04.29.01.19.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Apr 2014 01:19:32 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id ik5so5159818vcb.4 for ; Tue, 29 Apr 2014 01:19:32 -0700 (PDT) X-Received: by 10.58.187.78 with SMTP id fq14mr27893335vec.9.1398759572554; Tue, 29 Apr 2014 01:19:32 -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 ib8csp178094vcb; Tue, 29 Apr 2014 01:19:32 -0700 (PDT) X-Received: by 10.66.216.137 with SMTP id oq9mr30672235pac.97.1398759571827; Tue, 29 Apr 2014 01:19:31 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yd10si12146279pab.125.2014.04.29.01.19.31; Tue, 29 Apr 2014 01:19:31 -0700 (PDT) Received-SPF: none (google.com: linux-mmc-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756763AbaD2IT2 (ORCPT + 7 others); Tue, 29 Apr 2014 04:19:28 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:39292 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756766AbaD2IT0 (ORCPT ); Tue, 29 Apr 2014 04:19:26 -0400 Received: by mail-wi0-f181.google.com with SMTP id f8so4076wiw.2 for ; Tue, 29 Apr 2014 01:19:25 -0700 (PDT) X-Received: by 10.194.92.7 with SMTP id ci7mr23313480wjb.7.1398759565133; Tue, 29 Apr 2014 01:19:25 -0700 (PDT) Received: from srinivas-Inspiron-N5050.dlink.com (host-78-147-6-229.as13285.net. [78.147.6.229]) by mx.google.com with ESMTPSA id l4sm3487159wiy.0.2014.04.29.01.19.23 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Apr 2014 01:19:24 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Russell King , linux-mmc@vger.kernel.org Cc: Chris Ball , Ulf Hansson , linux-kernel@vger.kernel.org, agross@quicinc.com, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v1 02/11] mmc: mmci: Add Qualcomm Id to amba id table Date: Tue, 29 Apr 2014 09:19:16 +0100 Message-Id: <1398759556-13056-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398759492-12970-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1398759492-12970-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: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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 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 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 }, };