From patchwork Fri May 23 12:51:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 30764 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DB8A32066E for ; Fri, 23 May 2014 12:51:26 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id l6sf22974754oag.3 for ; Fri, 23 May 2014 05:51:26 -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=VOVQoBzxBBASbnEQIelV8aBn8AU7TjLlIcNEBc7UXB8=; b=MToEDrenDnLTyw1yxr1oObhGXZqY8r81sTLJPirFbklKDuT9lieHTzulbp5IMpmCQ7 4zbAo0t/jCMXjlnqqwDEc7cRJkSJEniRkCHBpEphYKXk0oPgIqDA5Mnsmm+4YhUH8A1f XxmSpAsXiEr0HkDhAt8WvI/7RUieIG9+yI3B0+6e3rQ5nYnJY2cG7yANjvKd/n+BhuOs 774MRBKTFaeywEZiX6I00n2/vE0QF6/iVJJ4Y3aI1niPyqPYn2e97QJS0PdCg+geN8DF 9wyC3JYgWGxg5P3nI9lvLnTcfCuoPR+v9P9M7bAvBJzhHzWhb1MpzrCpk3YHZ5FORWPv y9YA== X-Gm-Message-State: ALoCoQlkds1d7s7QAn1gpz/bMny/SNDmYXrr1ZBSho/E2qFyGGKKATsaTxbHYkcqHRMbUon4OmGY X-Received: by 10.42.83.17 with SMTP id f17mr1806480icl.17.1400849486491; Fri, 23 May 2014 05:51:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.21.203 with SMTP id 69ls1628189qgl.35.gmail; Fri, 23 May 2014 05:51:26 -0700 (PDT) X-Received: by 10.220.139.198 with SMTP id f6mr203684vcu.47.1400849486376; Fri, 23 May 2014 05:51:26 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id yc10si1529092vec.103.2014.05.23.05.51.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 May 2014 05:51:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.181 as permitted sender) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id pa12so6105729veb.40 for ; Fri, 23 May 2014 05:51:26 -0700 (PDT) X-Received: by 10.220.7.131 with SMTP id d3mr209034vcd.45.1400849486287; Fri, 23 May 2014 05:51:26 -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 ib8csp28943vcb; Fri, 23 May 2014 05:51:25 -0700 (PDT) X-Received: by 10.68.166.131 with SMTP id zg3mr5448791pbb.165.1400849485296; Fri, 23 May 2014 05:51:25 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si3687839pbw.214.2014.05.23.05.51.24; Fri, 23 May 2014 05:51:24 -0700 (PDT) Received-SPF: none (google.com: linux-arm-msm-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 S1752326AbaEWMvW (ORCPT + 3 others); Fri, 23 May 2014 08:51:22 -0400 Received: from mail-we0-f175.google.com ([74.125.82.175]:41586 "EHLO mail-we0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752600AbaEWMvU (ORCPT ); Fri, 23 May 2014 08:51:20 -0400 Received: by mail-we0-f175.google.com with SMTP id t61so4726088wes.6 for ; Fri, 23 May 2014 05:51:19 -0700 (PDT) X-Received: by 10.180.91.114 with SMTP id cd18mr3158282wib.28.1400849479285; Fri, 23 May 2014 05:51:19 -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 l4sm2819689wiy.0.2014.05.23.05.51.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 May 2014 05:51:18 -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 v3 03/13] mmc: mmci: Add Qualcomm Id to amba id table Date: Fri, 23 May 2014 13:51:14 +0100 Message-Id: <1400849474-7177-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1400849362-7007-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1400849362-7007-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-arm-msm@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.181 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 | 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 }, };