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: 4085611 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 F1C659F169 for ; Tue, 29 Apr 2014 08:19:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 27CB4201F5 for ; Tue, 29 Apr 2014 08:19:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 48A4A201F2 for ; Tue, 29 Apr 2014 08:19:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756763AbaD2IT2 (ORCPT ); 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-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=j+qYyrWUV/E1Ri6QJPL+L9y8HuAGd+nmXXO3jkCKLsV0TiHERgDjdDVtobUUJ0AAMd i8Bir+O9HRN+Ty4AYZ/6F7VYSNWpWg9rfccKTi+uSBJJy9jfiRsIjyClHeyKj3hj0JkI bUQlrZZ3mETGV92JYRmQWXZej6i3C7Lz6gkTJvRO0FTFFV3/3hwQ8KDlANNXc+2A1bgg ppIKJ1mOR4DFlJ+LJHLeufLhHskRNItXPE9oGxe+h491efAUhHYmnMqWKbG4i0CYzNEG jTjzSb57aENk8BTWAKiYyYm65+BTXIWRsRgMaDn+Uji8t5C2PDlnDy9jIMD5S/4Ssv9C LtvA== X-Gm-Message-State: ALoCoQnBCNZFasIRlENqELayVSSXQ5FIYPfkCFMHU0RyBuBWsn6j7M6agck/fgYzBts2jmwHFePx 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: 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 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 }, };