From patchwork Thu May 23 09:09:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuvaraj CD X-Patchwork-Id: 2605751 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 8467240077 for ; Thu, 23 May 2013 09:09:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757835Ab3EWJJq (ORCPT ); Thu, 23 May 2013 05:09:46 -0400 Received: from mail-da0-f47.google.com ([209.85.210.47]:35176 "EHLO mail-da0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757834Ab3EWJJo (ORCPT ); Thu, 23 May 2013 05:09:44 -0400 Received: by mail-da0-f47.google.com with SMTP id k13so1585956dae.20 for ; Thu, 23 May 2013 02:09:44 -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; bh=8uaSoTAzMPtBu3LuBwsMfR4LCS/6pg2I6j/rKnEzmhg=; b=eQIp1nn5g7Jc5tjptM7wfmcwFh+F9JZXin1nbc0ur0W7gX4j2QG2m/Xx1wcQnNnUno AW6lVcSyVBJ6vvR2Y2QjfMjoHvSl7kJazUIMtvPSf3VjoDoqXyKhe9JIwoJWb76K2r5T eG65VV2a54DBgExlsCUoW3tWF7mr/rTvz1Jwb78rSRPwrlDA55lnY5D/czzlgiHshGmt hdQE2uaGRKsPxUvVrdGRVZTtvQlcLZxDnOOFpK3Zc2KdwtLwi7qd0FnA8lbNMAdJ1zzQ +zhh7IGflGDw6ktzYf1uDDr9ZIZNv9sIe0zabkAHFRyKDQun8RBNsLYzXxBwtHcw1RF8 0qag== X-Received: by 10.66.253.74 with SMTP id zy10mr12265134pac.123.1369300183999; Thu, 23 May 2013 02:09:43 -0700 (PDT) Received: from yuvaraj-ubuntu.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id wt5sm10940113pbc.38.2013.05.23.02.09.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 May 2013 02:09:43 -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] mmc: dw_mmc: exynos: Add a new compatible string for exynos5420 Date: Thu, 23 May 2013 14:39:27 +0530 Message-Id: <1369300167-2590-1-git-send-email-yuvaraj.cd@samsung.com> X-Mailer: git-send-email 1.7.9.5 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 --- 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);