From patchwork Thu Jan 24 18:20:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongjin Kim X-Patchwork-Id: 2034131 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 2E3D3DF264 for ; Thu, 24 Jan 2013 18:21:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751992Ab3AXSVQ (ORCPT ); Thu, 24 Jan 2013 13:21:16 -0500 Received: from mail-pa0-f52.google.com ([209.85.220.52]:65212 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751919Ab3AXSVP (ORCPT ); Thu, 24 Jan 2013 13:21:15 -0500 Received: by mail-pa0-f52.google.com with SMTP id fb1so5645599pad.25 for ; Thu, 24 Jan 2013 10:21:15 -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=251h04D/x4puBLyhPBPsBsoQk0Y1OaCv+/M7VJPiKMo=; b=cptOE9h06acfM6XS3yJQssLsdd1WfSrLc731tbIm+rE8BPsTsjO7WHVzCjL3IkIPhk ZnkNqFFrsBonbkyV154dRle2KKRXXQLE8k8t1o0bDr8rBuW4HQxYRoymi0nX0kJQVmqe hN3kjjyaOCMhq+1DHQkV5vX9J9XK6iC0pHEflKMIbExNfcYdTHpHC+aO78I5qGCIJcTK mU0dFORXkH1PfJPrXMUJcxrZJy32DdkST6aT1RmHXsbzGeGmD0il0DPi2RYa0RuU0Lv1 E5B+K+rs2TBXp0eT/A//5OjHagW9WZguyI+Sw0wiOiI5gtmH8AtiAi95Zr33JrMeu6DO 6Nqg== X-Received: by 10.66.73.105 with SMTP id k9mr6933750pav.37.1359051675006; Thu, 24 Jan 2013 10:21:15 -0800 (PST) Received: from localhost.localdomain ([222.120.78.37]) by mx.google.com with ESMTPS id nt5sm15274236pbb.59.2013.01.24.10.21.10 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jan 2013 10:21:13 -0800 (PST) From: Dongjin Kim Cc: Dongjin Kim , Chris Ball , Arnd Bergmann , Thomas Abraham , Will Newton , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] mmc: dw_mmc: Add MSHC compatible for Exynos4412 Date: Fri, 25 Jan 2013 03:20:33 +0900 Message-Id: <1359051650-16822-1-git-send-email-tobetter@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1358954692-5625-1-git-send-email-tobetter@gmail.com> References: <1358954692-5625-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 share the controller specific properties with Exynos5250 since they have same features. Its driver data name is changed to exynos5_drv_data not to use SoC specific name. 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..8238a00 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 exynos5_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 exynos5_drv_data = { + .caps = exynos5_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 = &exynos5_drv_data, }, { .compatible = "samsung,exynos5250-dw-mshc", - .data = &exynos5250_drv_data, }, + .data = &exynos5_drv_data, }, {}, }; MODULE_DEVICE_TABLE(of, dw_mci_exynos_match);