From patchwork Wed May 28 13:46:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 31062 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f198.google.com (mail-ig0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BDBAD20068 for ; Wed, 28 May 2014 13:46:39 +0000 (UTC) Received: by mail-ig0-f198.google.com with SMTP id uq10sf7598595igb.5 for ; Wed, 28 May 2014 06:46:39 -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=g7zFEkv9v6TkTMLw+rhcKA+eYZZ5hUxJQmE37R6N4I0=; b=j+qkJyTVy1YX1RUiEAVaL/GVNP34PteIwnbRP3xLWGO4QgPgrZb0p1ZWHpsoVA+AEk iA9oQ53G8Iw5doFMLbBxJOTWIsw2Yf1ykfZNydDj7DMYwm0FwAdAEjRVHOCzOZspZ4Op 0WZitGreGAC9WI4IVOgNEbkgpX3FsGwX8dykcEtKISbVQPuE/eFeBhR5Cq7/esHa7pe0 fLFLFh2qsx/vCDInAL1cDAP1CN4DKusfpu7w/Nkkq4l4vpVag9SNE+apJC8fsbk04K7/ 4p553GQTmzpKwUYfik6Ch0gFaV54Bi1B9Rq1OG0prxrBh7mnTjt2jswNh+52f+OtGLLO vOsg== X-Gm-Message-State: ALoCoQk0EIK/je4pzDpcLBy19J9nsuq7388aXU1+OAkC/I91YFuj988uaXrZLvIR+r4Ulwh9rzwj X-Received: by 10.182.66.33 with SMTP id c1mr763480obt.39.1401284799265; Wed, 28 May 2014 06:46:39 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.32.67 with SMTP id g61ls138240qgg.12.gmail; Wed, 28 May 2014 06:46:39 -0700 (PDT) X-Received: by 10.52.13.98 with SMTP id g2mr1614094vdc.46.1401284799101; Wed, 28 May 2014 06:46:39 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id c2si10563032vcn.74.2014.05.28.06.46.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 06:46:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.171 as permitted sender) client-ip=209.85.128.171; Received: by mail-ve0-f171.google.com with SMTP id oz11so12555435veb.30 for ; Wed, 28 May 2014 06:46:39 -0700 (PDT) X-Received: by 10.58.245.2 with SMTP id xk2mr34430447vec.9.1401284799004; Wed, 28 May 2014 06:46:39 -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 ib8csp204317vcb; Wed, 28 May 2014 06:46:38 -0700 (PDT) X-Received: by 10.68.197.134 with SMTP id iu6mr23007850pbc.164.1401284797510; Wed, 28 May 2014 06:46:37 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yc9si3816677pab.221.2014.05.28.06.46.36 for ; Wed, 28 May 2014 06:46:36 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-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 S1753971AbaE1Nq2 (ORCPT + 27 others); Wed, 28 May 2014 09:46:28 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:56106 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753884AbaE1NqY (ORCPT ); Wed, 28 May 2014 09:46:24 -0400 Received: by mail-wi0-f178.google.com with SMTP id cc10so3743971wib.17 for ; Wed, 28 May 2014 06:46:23 -0700 (PDT) X-Received: by 10.180.212.48 with SMTP id nh16mr49304830wic.49.1401284783020; Wed, 28 May 2014 06:46:23 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-78-149-4-211.as13285.net. [78.149.4.211]) by mx.google.com with ESMTPSA id f6sm16987830wiy.19.2014.05.28.06.46.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 May 2014 06:46:22 -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 v4 03/13] mmc: mmci: Add Qualcomm Id to amba id table Date: Wed, 28 May 2014 14:46:19 +0100 Message-Id: <1401284779-16563-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1401284608-16428-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1401284608-16428-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.171 as permitted sender) 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 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index a38e714..86f25a9 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -160,6 +160,14 @@ 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, + .pwrreg_powerup = MCI_PWR_UP, +}; + static int mmci_card_busy(struct mmc_host *mmc) { struct mmci_host *host = mmc_priv(mmc); @@ -1750,6 +1758,12 @@ static struct amba_id mmci_ids[] = { .mask = 0xf0ffffff, .data = &variant_ux500v2, }, + /* Qualcomm variants */ + { + .id = 0x00051180, + .mask = 0x000fffff, + .data = &variant_qcom, + }, { 0, 0 }, };