From patchwork Mon Feb 18 18:06:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongjin Kim X-Patchwork-Id: 2159781 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 75DCB3FDF1 for ; Mon, 18 Feb 2013 18:06:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756732Ab3BRSGu (ORCPT ); Mon, 18 Feb 2013 13:06:50 -0500 Received: from mail-da0-f52.google.com ([209.85.210.52]:35748 "EHLO mail-da0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756253Ab3BRSGt (ORCPT ); Mon, 18 Feb 2013 13:06:49 -0500 Received: by mail-da0-f52.google.com with SMTP id f10so2526284dak.11 for ; Mon, 18 Feb 2013 10:06:49 -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; bh=0qlVCQ7ldfRO/CP6naIcB36ZfQdprgE4CeVn/693548=; b=phvtZIaOWlwBEuZitnXC5d9W6mZvhNEsnCbJlI2EGVwzI7aEOG1yMa+Arlek0nv2im 4Cb0w8W7XrmdblkqWuZlo22tFQcm9hLlngEggSkKroPe8DdOsnjiV05Mpde5S9EFVrgM 4rGJU7Y5wSSQNWCaqrNu+D6w6hHEPkUmtj9a5pDYO/6Tum7c5eG1hDidSGRC/R3Il5Qj EVyPftGdMjOsWTdcucqy4nuSlBofVttQo+Gcuv1lXHrHwbf4Wl6mQORMLM8KSc15JTRN UQOn18RYSDCMm4PpBUhppPoeQ+oyGrAZ1l/yczX11WkYyWO7n8i9ClGRSRwGEoqAJnwE JmNw== X-Received: by 10.68.211.69 with SMTP id na5mr32212099pbc.71.1361210809200; Mon, 18 Feb 2013 10:06:49 -0800 (PST) Received: from localhost.localdomain ([222.120.78.75]) by mx.google.com with ESMTPS id w2sm99053073pax.22.2013.02.18.10.06.44 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Feb 2013 10:06:47 -0800 (PST) From: Dongjin Kim Cc: Dongjin Kim , Jaehoon Chung , Sachin Kamat , Chris Ball , Arnd Bergmann , Thomas Abraham , Will Newton , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] mmc: dw_mmc: Add MSHC compatible for Exynos4412 Date: Tue, 19 Feb 2013 03:06:14 +0900 Message-Id: <1361210793-5710-1-git-send-email-tobetter@gmail.com> X-Mailer: git-send-email 1.7.10.4 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 share the controller specific properties with Exynos5250 since they have same features. Its driver data name is changed to exynos_drv_data instead SoC specific name. Cc: Jaehoon Chung Cc: Sachin Kamat Signed-off-by: Dongjin Kim --- 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..38cd03c 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] = { +/* Exynos4412/Exynos5250 controller specific capabilities */ +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);