From patchwork Wed Oct 21 06:39:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 7454671 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 730759F1C3 for ; Wed, 21 Oct 2015 06:39:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 840AC20824 for ; Wed, 21 Oct 2015 06:39:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 860BF207A5 for ; Wed, 21 Oct 2015 06:39:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753502AbbJUGjV (ORCPT ); Wed, 21 Oct 2015 02:39:21 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:43920 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753501AbbJUGjU (ORCPT ); Wed, 21 Oct 2015 02:39:20 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NWK02G7255IVL30@mailout4.samsung.com>; Wed, 21 Oct 2015 15:39:18 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.116]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 83.7C.05385.61337265; Wed, 21 Oct 2015 15:39:18 +0900 (KST) X-AuditID: cbfee691-f79d66d000001509-88-5627331610c4 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 99.B5.18629.51337265; Wed, 21 Oct 2015 15:39:18 +0900 (KST) Received: from localhost.localdomain ([10.252.81.186]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NWK0055B55HMDC0@mmp2.samsung.com>; Wed, 21 Oct 2015 15:39:17 +0900 (KST) From: Jaehoon Chung To: linux-mmc@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: ulf.hansson@linaro.org, kgene@kernel.org, k.kozlowski@samsung.com, linux-arm-kernel@lists.infradead.org, Jaehoon Chung Subject: [PATCH 1/2] mmc: dw_mmc: exynos: Add the exynos3250 compatible Date: Wed, 21 Oct 2015 15:39:14 +0900 Message-id: <1445409555-1684-1-git-send-email-jh80.chung@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrALMWRmVeSWpSXmKPExsWyRsSkRFfMWD3M4OM/Losbv9pYLV6/MLTo f/ya2WLT42usFkf+9zNazDi/j8ni+NpwB3aPTas62TzuXNvD5rF5Sb1H35ZVjB6fN8kFsEZx 2aSk5mSWpRbp2yVwZbTM/shccESo4kXPP6YGxn38XYycHBICJhJrbr1lh7DFJC7cW8/WxcjF ISSwglFi+dceRpii86uvMkMkZjFKTNm6iQXC+cEocexrDytIFZuAjsT2b8eZuhg5OEQEHCRe nHcCqWEWmMoo0b58B1iNsIC7xLFPO5lBalgEVCXetueDhHkFXCVm7Oxng1gmJ3Hy2GRWkF4J gWZ2id+v+5lAEiwCAhLfJh9iAemVEJCV2HSAGaJeUuLgihssExgFFzAyrGIUTS1ILihOSi8y 1StOzC0uzUvXS87P3cQIDNjT/55N3MF4/4D1IUYBDkYlHt4PC9XChFgTy4orcw8xmgJtmMgs JZqcD4yLvJJ4Q2MzIwtTE1NjI3NLMyVxXh3pn8FCAumJJanZqakFqUXxRaU5qcWHGJk4OKUa GIPyWc+XiGdw6PrcOq7y4+flgn3ujQcu5wpn9TUvKM1Ye7/ownMLu2IhDvsAO80f24KD3i1Z yNTxVND4qsXd2sx1h21kZx+8eer9omdp2Y7eC2ruthxwcnhrvD209vnxizz8c+o1F+pt0u7K NZHgveDxpUj0fHl4oNx69jfvJU9vmF57puFBqxJLcUaioRZzUXEiAJr5/5VTAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeLIzCtJLcpLzFFi42I5/e+xoK6YsXqYwdN/TBY3frWxWrx+YWjR //g1s8Wmx9dYLY7872e0mHF+H5PF8bXhDuwem1Z1snncubaHzWPzknqPvi2rGD0+b5ILYI1q YLTJSE1MSS1SSM1Lzk/JzEu3VfIOjneONzUzMNQ1tLQwV1LIS8xNtVVy8QnQdcvMATpCSaEs MacUKBSQWFyspG+HaUJoiJuuBUxjhK5vSBBcj5EBGkhYw5jRMvsjc8ERoYoXPf+YGhj38Xcx cnJICJhInF99lRnCFpO4cG89WxcjF4eQwCxGiSlbN7FAOD8YJY597WEFqWIT0JHY/u04Uxcj B4eIgIPEi/NOIDXMAlMZJdqX7wCrERZwlzj2aSczSA2LgKrE2/Z8kDCvgKvEjJ39bBDL5CRO HpvMOoGRewEjwypGidSC5ILipPRco7zUcr3ixNzi0rx0veT83E2M4Kh4Jr2D8fAu90OMAhyM Sjy8HxaqhQmxJpYVV+YeYpTgYFYS4T2ipx4mxJuSWFmVWpQfX1Sak1p8iNEUaP9EZinR5Hxg xOaVxBsam5gZWRqZG1oYGZsrifPeOMQQJiSQnliSmp2aWpBaBNPHxMEp1cAYGd5uFXToko5/ ivDp/7L3Pj+22HX1inRCspbR0w1NH25WSoSuE1i9yrpgHvtJr8sRy+bcPDT1vEtcHlffmbln 7qcum9M8pzQ4+MfjTX+dl/E6zO7K4buyMavtwQ4NZ+eq6JQpL11+sRb81u96//jRTLeWnQ8d knRfLz376sdd0ZBHcWx6gc38SizFGYmGWsxFxYkAgbv5HqACAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP To check more exactly, add the exynos3250 compatible. Not use exynos5250 compatibility. Signed-off-by: Jaehoon Chung --- Documentation/devicetree/bindings/mmc/exynos-dw-mshc.txt | 2 ++ drivers/mmc/host/dw_mmc-exynos.c | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/exynos-dw-mshc.txt b/Documentation/devicetree/bindings/mmc/exynos-dw-mshc.txt index aad9844..cd22ac9 100644 --- a/Documentation/devicetree/bindings/mmc/exynos-dw-mshc.txt +++ b/Documentation/devicetree/bindings/mmc/exynos-dw-mshc.txt @@ -22,6 +22,8 @@ Required Properties: specific extensions. - "samsung,exynos7-dw-mshc-smu": for controllers with Samsung Exynos7 specific extensions having an SMU. + - "samsung,exynos3250-dw-mshc": for controllers with Samsung Exynos3250 + specific extensions. * samsung,dw-mshc-ciu-div: Specifies the divider value for the card interface unit (ciu) clock. This property is applicable only for Exynos5 SoC's and diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c index 1e75309..1c96218 100644 --- a/drivers/mmc/host/dw_mmc-exynos.c +++ b/drivers/mmc/host/dw_mmc-exynos.c @@ -32,6 +32,7 @@ enum dw_mci_exynos_type { DW_MCI_TYPE_EXYNOS5420_SMU, DW_MCI_TYPE_EXYNOS7, DW_MCI_TYPE_EXYNOS7_SMU, + DW_MCI_TYPE_EXYNOS3250, }; /* Exynos implementation specific driver private data */ @@ -73,6 +74,9 @@ static struct dw_mci_exynos_compatible { }, { .compatible = "samsung,exynos7-dw-mshc-smu", .ctrl_type = DW_MCI_TYPE_EXYNOS7_SMU, + }, { + .compatible = "samsung,exynos3250-dw-mshc", + .ctrl_type = DW_MCI_TYPE_EXYNOS3250, }, }; @@ -467,6 +471,7 @@ static int dw_mci_exynos_execute_tuning(struct dw_mci_slot *slot) } while (start_smpl != smpl); found = dw_mci_exynos_get_best_clksmpl(candiates); + if (found >= 0) { dw_mci_exynos_set_clksmpl(host, found); priv->tuned_sample = found; @@ -520,6 +525,8 @@ static const struct of_device_id dw_mci_exynos_match[] = { .data = &exynos_drv_data, }, { .compatible = "samsung,exynos7-dw-mshc-smu", .data = &exynos_drv_data, }, + { .compatible = "samsung,exynos3250-dw-mshc", + .data = &exynos_drv_data, }, {}, }; MODULE_DEVICE_TABLE(of, dw_mci_exynos_match);