From patchwork Fri Feb 22 15:17:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongjin Kim X-Patchwork-Id: 2176321 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 8E5A83FD4E for ; Fri, 22 Feb 2013 15:18:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756818Ab3BVPSj (ORCPT ); Fri, 22 Feb 2013 10:18:39 -0500 Received: from mail-pa0-f52.google.com ([209.85.220.52]:33613 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756743Ab3BVPSi (ORCPT ); Fri, 22 Feb 2013 10:18:38 -0500 Received: by mail-pa0-f52.google.com with SMTP id fb1so520673pad.39 for ; Fri, 22 Feb 2013 07:18:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=Ov+dbV/72cZaGPlKiaDQ0SaIsURaINjmqUj34IMNQrg=; b=pmch0MPexVdM2jNsWIn6n+z7vxE+LWfOYGKNSJ4mWEM+IYYvFlUTW1dzygCU9nIszT 6wofHSEAyfoyvzvz0n6v3Vy5gK7Tg80BgWoQQQtohCf3ggKSKYm2H7d7+lydk7RdKny3 59m5H4gbaCmem9YontsJqAlqvXthBKcZDHUr4MIN2QsogxI6oRM50XhLmzp9RA4tWYh9 qQt/ha3S5gTZBiy3hT9b3c+5CkDN+6yjTGS1qZFOCtu+rc8DzCWqlw8ZG1Sl91S+PgVU ubOQZyGNZjzCbNNNeVZlsJ3p3XcPvVjA+Vc+2R2iJou+CumD8xkKwtLYeD+Y9xUQGL46 gdqw== X-Received: by 10.68.248.74 with SMTP id yk10mr3693779pbc.38.1361546318361; Fri, 22 Feb 2013 07:18:38 -0800 (PST) Received: from localhost.localdomain ([222.120.78.75]) by mx.google.com with ESMTPS id wm3sm2820239pbc.4.2013.02.22.07.18.35 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Feb 2013 07:18:37 -0800 (PST) From: Dongjin Kim Cc: Dongjin Kim , Seungwon Jeon , Jaehoon Chung , Sachin Kamat , Chris Ball , Arnd Bergmann , Thomas Abraham , Will Newton , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4] mmc: dw_mmc: Add MSHC compatible for Exynos4412 Date: Sat, 23 Feb 2013 00:17:45 +0900 Message-Id: <1361546283-7479-1-git-send-email-tobetter@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1361210793-5710-1-git-send-email-tobetter@gmail.com> References: <1361210793-5710-1-git-send-email-tobetter@gmail.com> To: unlisted-recipients:; (no To-header on input) Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org This patch adds the compatible string for MSHC controller of Exynos4412. And exynos5250_dwmmc_caps is renamed to exynos_dwmmc_caps, since it has the capablities of common feature supported by Exynos4 and Exynos5. Cc: Seungwon Jeon Cc: Jaehoon Chung Cc: Sachin Kamat Signed-off-by: Dongjin Kim Acked-by: Seungwon Jeon --- drivers/mmc/host/dw_mmc-exynos.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c index 4d50da6..dd8f58c 100644 --- a/drivers/mmc/host/dw_mmc-exynos.c +++ b/drivers/mmc/host/dw_mmc-exynos.c @@ -199,8 +199,8 @@ static int dw_mci_exynos_setup_bus(struct dw_mci *host, return 0; } -/* Exynos5250 controller specific capabilities */ -static unsigned long exynos5250_dwmmc_caps[4] = { +/* Common capabilities of Exynos4/Exynos5 SoC */ +static unsigned long exynos_dwmmc_caps[4] = { MMC_CAP_UHS_DDR50 | MMC_CAP_1_8V_DDR | MMC_CAP_8_BIT_DATA | MMC_CAP_CMD23, MMC_CAP_CMD23, @@ -208,8 +208,8 @@ static unsigned long exynos5250_dwmmc_caps[4] = { MMC_CAP_CMD23, }; -static const struct dw_mci_drv_data exynos5250_drv_data = { - .caps = exynos5250_dwmmc_caps, +static const struct dw_mci_drv_data exynos_drv_data = { + .caps = exynos_dwmmc_caps, .init = dw_mci_exynos_priv_init, .setup_clock = dw_mci_exynos_setup_clock, .prepare_command = dw_mci_exynos_prepare_command, @@ -219,8 +219,10 @@ static const struct dw_mci_drv_data exynos5250_drv_data = { }; static const struct of_device_id dw_mci_exynos_match[] = { + { .compatible = "samsung,exynos4412-dw-mshc", + .data = &exynos_drv_data, }, { .compatible = "samsung,exynos5250-dw-mshc", - .data = &exynos5250_drv_data, }, + .data = &exynos_drv_data, }, {}, }; MODULE_DEVICE_TABLE(of, dw_mci_exynos_match);