From patchwork Thu Jul 17 08:31:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: prakash.burla@smartplayin.com X-Patchwork-Id: 4573391 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 4E4779F1D6 for ; Thu, 17 Jul 2014 08:41:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5FFD820125 for ; Thu, 17 Jul 2014 08:41:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 93F6C20122 for ; Thu, 17 Jul 2014 08:41:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755372AbaGQIlh (ORCPT ); Thu, 17 Jul 2014 04:41:37 -0400 Received: from smtp116.iad3a.emailsrvr.com ([173.203.187.116]:35137 "EHLO smtp116.iad3a.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755365AbaGQIlf convert rfc822-to-8bit (ORCPT ); Thu, 17 Jul 2014 04:41:35 -0400 X-Greylist: delayed 597 seconds by postgrey-1.27 at vger.kernel.org; Thu, 17 Jul 2014 04:41:35 EDT Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp23.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id CA996280E50; Thu, 17 Jul 2014 04:31:32 -0400 (EDT) X-Virus-Scanned: OK Received: from app14.wa-webapps.iad3a (relay.iad3a.rsapps.net [172.27.255.110]) by smtp23.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id A0BA7280E4E; Thu, 17 Jul 2014 04:31:32 -0400 (EDT) Received: from smartplayin.com (localhost.localdomain [127.0.0.1]) by app14.wa-webapps.iad3a (Postfix) with ESMTP id 8CC9C8005E; Thu, 17 Jul 2014 04:31:32 -0400 (EDT) Received: by apps.rackspace.com (Authenticated sender: prakash.burla@smartplayin.com, from: prakash.burla@smartplayin.com) with HTTP; Thu, 17 Jul 2014 04:31:32 -0400 (EDT) Date: Thu, 17 Jul 2014 04:31:32 -0400 (EDT) Subject: RE: Fwd: [PATCH v6 12/12] mmc: mmci: Add Qualcomm Id to amba id table From: prakash.burla@smartplayin.com To: srinivas.kandagatla@linaro.org Cc: ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linus.walleij@linaro.org MIME-Version: 1.0 Importance: Normal X-Priority: 3 (Normal) X-Type: plain In-Reply-To: References: <1401699818-11329-1-git-send-email-srinivas.kandagatla@linaro.org> <1401700213-11917-1-git-send-email-srinivas.kandagatla@linaro.org> Message-ID: <1405585892.574323701@apps.rackspace.com> X-Mailer: webmail7.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 tested-by: Prakash Burla This driver tested on AP806X with mmc Driver. -------------------------------------------------------------------- From: Date: Mon, Jun 2, 2014 at 2:40 PM Subject: [PATCH v6 12/12] mmc: mmci: Add Qualcomm Id to amba id table 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 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 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 08ff8d2..fa851d5 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -190,6 +190,23 @@ 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, + .clkreg_enable = MCI_QCOM_CLK_FLOWENA | + MCI_QCOM_CLK_SELECT_IN_FBCLK, + .clkreg_8bit_bus_enable = MCI_QCOM_CLK_WIDEBUS_8, + .datactrl_mask_ddrmode = MCI_QCOM_CLK_SELECT_IN_DDR_MODE, + .data_cmd_enable = MCI_QCOM_CSPM_DATCMD, + .blksz_datactrl4 = true, + .datalength_bits = 24, + .pwrreg_powerup = MCI_PWR_UP, + .f_max = 208000000, + .explicit_mclk_control = true, + .qcom_fifo = true, +}; + static int mmci_card_busy(struct mmc_host *mmc) { struct mmci_host *host = mmc_priv(mmc); @@ -1831,6 +1848,12 @@ static struct amba_id mmci_ids[] = { .mask = 0xf0ffffff, .data = &variant_ux500v2, }, + /* Qualcomm variants */ + { + .id = 0x00051180, + .mask = 0x000fffff, + .data = &variant_qcom, + }, { 0, 0 }, };