From patchwork Fri May 24 10:04:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuvaraj CD X-Patchwork-Id: 2610251 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 38781DF24C for ; Fri, 24 May 2013 10:05:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760328Ab3EXKFP (ORCPT ); Fri, 24 May 2013 06:05:15 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:53741 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760009Ab3EXKFP (ORCPT ); Fri, 24 May 2013 06:05:15 -0400 Received: by mail-pa0-f41.google.com with SMTP id rl6so4139474pac.14 for ; Fri, 24 May 2013 03:05:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=8LT4dxJ8Ltc5YYjhqRm6YXuKqa2kkyO/0uLyjprudnc=; b=VJKXv3r6kL9dH/gW0KHAHV8PC4dCyV/YhwkeFvXjoAiT2kDWCa2kDSSTRkTRRqpfS1 DauAXDocf2wFjTfFaDezqr83h64ZBT986FsH0kLB0SNnCOfVi87rX0YFs3lDzzd9xh3E kS9WyK8rrSFJ7X4mY+1xJFUiwOryhefKRuDU3q6xO8zvxJ1enhM2U95xXH5sy5ZsvFxA V3R9RHORn0M4F060cYKtpkIR5ezKlKfWlOMn6+wLTC3exAkM2QdBPFSFoVqftA40rfc6 bANmzAtzDnAMuMktHWTBROgpZsTOetGj0HTQwq+hG5LRgtVBF2Tp0D6mt+kTk4TWscyH /4ww== X-Received: by 10.67.5.131 with SMTP id cm3mr17192197pad.80.1369389914550; Fri, 24 May 2013 03:05:14 -0700 (PDT) Received: from yuvaraj-ubuntu.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id fm2sm16837458pab.13.2013.05.24.03.05.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 24 May 2013 03:05:13 -0700 (PDT) From: Yuvaraj Kumar C D To: linux-mmc@vger.kernel.org, cjb@laptop.org, jh80.chung@samsung.com, tgih.jun@samsung.com, thomas.ab@samsung.com Cc: Yuvaraj Kumar C D , Abhilash Kesavan Subject: [PATCH 1/2] mmc: dw_mmc: exynos: Add a new compatible string for exynos5420 Date: Fri, 24 May 2013 15:34:32 +0530 Message-Id: <1369389873-15018-2-git-send-email-yuvaraj.cd@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1369389873-15018-1-git-send-email-yuvaraj.cd@samsung.com> References: <1369389873-15018-1-git-send-email-yuvaraj.cd@samsung.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org The Exynos5420 has a DWMMC controller which is different from prior versions.This patch adds a new compatible string for Exynos5420. Signed-off-by: Abhilash Kesavan Reviewed-by: Alim Akhtar Signed-off-by: Yuvaraj Kumar C D Acked-by: Jaehoon Chung --- drivers/mmc/host/dw_mmc-exynos.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c index f013e7e..f883b17 100644 --- a/drivers/mmc/host/dw_mmc-exynos.c +++ b/drivers/mmc/host/dw_mmc-exynos.c @@ -41,6 +41,7 @@ enum dw_mci_exynos_type { DW_MCI_TYPE_EXYNOS4210, DW_MCI_TYPE_EXYNOS4412, DW_MCI_TYPE_EXYNOS5250, + DW_MCI_TYPE_EXYNOS5420, }; /* Exynos implementation specific driver private data */ @@ -64,6 +65,9 @@ static struct dw_mci_exynos_compatible { }, { .compatible = "samsung,exynos5250-dw-mshc", .ctrl_type = DW_MCI_TYPE_EXYNOS5250, + }, { + .compatible = "samsung,exynos5420-dw-mshc", + .ctrl_type = DW_MCI_TYPE_EXYNOS5420, }, }; @@ -92,7 +96,8 @@ static int dw_mci_exynos_setup_clock(struct dw_mci *host) { struct dw_mci_exynos_priv_data *priv = host->priv; - if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS5250) + if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS5250 || + priv->ctrl_type == DW_MCI_TYPE_EXYNOS5420) host->bus_hz /= (priv->ciu_div + 1); else if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS4412) host->bus_hz /= EXYNOS4412_FIXED_CIU_CLK_DIV; @@ -175,6 +180,8 @@ static const struct of_device_id dw_mci_exynos_match[] = { .data = &exynos_drv_data, }, { .compatible = "samsung,exynos5250-dw-mshc", .data = &exynos_drv_data, }, + { .compatible = "samsung,exynos5420-dw-mshc", + .data = &exynos_drv_data, }, {}, }; MODULE_DEVICE_TABLE(of, dw_mci_exynos_match);