From patchwork Fri Jan 20 09:50:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 9527855 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 278D56020B for ; Fri, 20 Jan 2017 09:51:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1854628618 for ; Fri, 20 Jan 2017 09:51:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0CF7D28653; Fri, 20 Jan 2017 09:51:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00BC928641 for ; Fri, 20 Jan 2017 09:51:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751459AbdATJvw (ORCPT ); Fri, 20 Jan 2017 04:51:52 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:59844 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751606AbdATJvu (ORCPT ); Fri, 20 Jan 2017 04:51:50 -0500 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OK200DCLONOB310@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Fri, 20 Jan 2017 18:50:12 +0900 (KST) Received: from epsmges5p1.samsung.com (unknown [182.195.40.64]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170120095012epcas1p2b5e4573ec79810bf3ed093137ddd73d7~bcfgdek4m0810208102epcas1p2F; Fri, 20 Jan 2017 09:50:12 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p1.samsung.com (EPCPMTA) with SMTP id FC.2A.14952.45DD1885; Fri, 20 Jan 2017 18:50:12 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20170120095012epcas5p436242f1882d319fe958f0084dea71628~bcfgOY1pD1594615946epcas5p48; Fri, 20 Jan 2017 09:50:12 +0000 (GMT) X-AuditID: b6c32a2c-f79bc6d000003a68-1b-5881dd542eb2 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 97.BB.26370.45DD1885; Fri, 20 Jan 2017 18:50:12 +0900 (KST) Received: from localhost.localdomain ([10.113.62.216]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OK2008EQONN0MC0@mmp1.samsung.com>; Fri, 20 Jan 2017 18:50:12 +0900 (KST) From: Jaehoon Chung To: linux-mmc@vger.kernel.org Cc: ulf.hansson@linaro.org, adrian.hunter@intel.com, Jaehoon Chung Subject: [PATCH 2/3] mmc: sdhci-s3c: remove the unnecessary defined values Date: Fri, 20 Jan 2017 18:50:03 +0900 Message-id: <20170120095004.14509-3-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.2 In-reply-to: <20170120095004.14509-1-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLKsWRmVeSWpSXmKPExsWy7bCmpm7I3cYIg97zShYnn6xhs7jxq43V 4sj/fkaL42vDHVg8Fu95yeRx59oeNo++LasYPT5vkgtgiUq1yUhNTEktUkjNS85PycxLt1Xy Do53jjc1MzDUNbS0MFdSyEvMTbVVcv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q2NC4gbGB 8apYFyMnh4SAicSkabfYIGwxiQv31oPZQgJLGSUerhDpYuQCsn8wStyYN4sJJMEmoCOx/dtx MFtEQFbi558LYA3MArES0z4cZgaxhQW8JJqbFzOC2CwCqhLz705jBbF5Bawlft07ygyxTF5i 4fkjYHM4BWwkdt94wQqx2FpiyYPNLBMYeRcwMqxilEgtSC4oTkrPNcpLLdcrTswtLs1L10vO z93ECA7UZ9I7GA/vcj/EKMDBqMTDmyHRGCHEmlhWXJl7iFGCg1lJhPfJTaAQb0piZVVqUX58 UWlOavEhRlOgwyYyS4km5wOjKK8k3tDE3MTc2MDC3NLSxEhJnLdx9rNwIYH0xJLU7NTUgtQi mD4mDk6pBsb2F5ufcB5/+CvsIlOOp87N/1v7dV1fb5n4+1sbu4nUso/sHZvVlP5722oY9Vdz r5pguin41MpupSey3Fv2WU6UqFlzxXKZ0pSQ+gXGP1tYHv7fWZ+gq3MhZ4mI4b3JHzZuet40 /+HC0w8tq/iXi6nPmbSCeUmcx3wj/ry0f18Wse3fcOF8o9MSJZbijERDLeai4kQAHh1EaWoC AAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170120095012epcas5p436242f1882d319fe958f0084dea71628 X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?7KCV7J6s7ZuIG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbUzUo7LGF7J6EKS/ssYXsnoQ=?= X-Global-Sender: =?UTF-8?B?SmFlaG9vbiBDaHVuZxtUaXplbiBQbGF0Zm9ybSBMYWIuG1Nh?= =?UTF-8?B?bXN1bmcgRWxlY3Ryb25pY3MbUzUvU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170120095012epcas5p436242f1882d319fe958f0084dea71628 X-RootMTR: 20170120095012epcas5p436242f1882d319fe958f0084dea71628 References: <20170120095004.14509-1-jh80.chung@samsung.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some defined value don't use anywhere. It doesn't need to maintain anywhere. Just keeps the minimum values what is using and needs. Signed-off-by: Jaehoon Chung --- drivers/mmc/host/sdhci-s3c.c | 50 ++------------------------------------------ 1 file changed, 2 insertions(+), 48 deletions(-) diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c index 7a230a1..e8b57cd 100644 --- a/drivers/mmc/host/sdhci-s3c.c +++ b/drivers/mmc/host/sdhci-s3c.c @@ -34,74 +34,28 @@ #define MAX_BUS_CLK (4) #define S3C_SDHCI_CONTROL2 (0x80) -#define S3C_SDHCI_CONTROL3 (0x84) -#define S3C64XX_SDHCI_CONTROL4 (0x8C) - #define S3C64XX_SDHCI_CTRL2_ENSTAASYNCCLR (1 << 31) #define S3C64XX_SDHCI_CTRL2_ENCMDCNFMSK (1 << 30) -#define S3C_SDHCI_CTRL2_CDINVRXD3 (1 << 29) -#define S3C_SDHCI_CTRL2_SLCARDOUT (1 << 28) - -#define S3C_SDHCI_CTRL2_FLTCLKSEL_MASK (0xf << 24) -#define S3C_SDHCI_CTRL2_FLTCLKSEL_SHIFT (24) -#define S3C_SDHCI_CTRL2_FLTCLKSEL(_x) ((_x) << 24) - -#define S3C_SDHCI_CTRL2_LVLDAT_MASK (0xff << 16) -#define S3C_SDHCI_CTRL2_LVLDAT_SHIFT (16) -#define S3C_SDHCI_CTRL2_LVLDAT(_x) ((_x) << 16) - -#define S3C_SDHCI_CTRL2_ENFBCLKTX (1 << 15) #define S3C_SDHCI_CTRL2_ENFBCLKRX (1 << 14) -#define S3C_SDHCI_CTRL2_SDCDSEL (1 << 13) -#define S3C_SDHCI_CTRL2_SDSIGPC (1 << 12) -#define S3C_SDHCI_CTRL2_ENBUSYCHKTXSTART (1 << 11) - #define S3C_SDHCI_CTRL2_DFCNT_MASK (0x3 << 9) #define S3C_SDHCI_CTRL2_DFCNT_SHIFT (9) #define S3C_SDHCI_CTRL2_DFCNT_NONE (0x0 << 9) #define S3C_SDHCI_CTRL2_DFCNT_4SDCLK (0x1 << 9) #define S3C_SDHCI_CTRL2_DFCNT_16SDCLK (0x2 << 9) #define S3C_SDHCI_CTRL2_DFCNT_64SDCLK (0x3 << 9) - #define S3C_SDHCI_CTRL2_ENCLKOUTHOLD (1 << 8) -#define S3C_SDHCI_CTRL2_RWAITMODE (1 << 7) -#define S3C_SDHCI_CTRL2_DISBUFRD (1 << 6) #define S3C_SDHCI_CTRL2_SELBASECLK_MASK (0x3 << 4) #define S3C_SDHCI_CTRL2_SELBASECLK_SHIFT (4) -#define S3C_SDHCI_CTRL2_PWRSYNC (1 << 3) -#define S3C_SDHCI_CTRL2_ENCLKOUTMSKCON (1 << 1) -#define S3C_SDHCI_CTRL2_HWINITFIN (1 << 0) +#define S3C_SDHCI_CONTROL3 (0x84) #define S3C_SDHCI_CTRL3_FCSEL3 (1 << 31) #define S3C_SDHCI_CTRL3_FCSEL2 (1 << 23) #define S3C_SDHCI_CTRL3_FCSEL1 (1 << 15) #define S3C_SDHCI_CTRL3_FCSEL0 (1 << 7) -#define S3C_SDHCI_CTRL3_FIA3_MASK (0x7f << 24) -#define S3C_SDHCI_CTRL3_FIA3_SHIFT (24) -#define S3C_SDHCI_CTRL3_FIA3(_x) ((_x) << 24) - -#define S3C_SDHCI_CTRL3_FIA2_MASK (0x7f << 16) -#define S3C_SDHCI_CTRL3_FIA2_SHIFT (16) -#define S3C_SDHCI_CTRL3_FIA2(_x) ((_x) << 16) - -#define S3C_SDHCI_CTRL3_FIA1_MASK (0x7f << 8) -#define S3C_SDHCI_CTRL3_FIA1_SHIFT (8) -#define S3C_SDHCI_CTRL3_FIA1(_x) ((_x) << 8) - -#define S3C_SDHCI_CTRL3_FIA0_MASK (0x7f << 0) -#define S3C_SDHCI_CTRL3_FIA0_SHIFT (0) -#define S3C_SDHCI_CTRL3_FIA0(_x) ((_x) << 0) - -#define S3C64XX_SDHCI_CONTROL4_DRIVE_MASK (0x3 << 16) -#define S3C64XX_SDHCI_CONTROL4_DRIVE_SHIFT (16) -#define S3C64XX_SDHCI_CONTROL4_DRIVE_2mA (0x0 << 16) -#define S3C64XX_SDHCI_CONTROL4_DRIVE_4mA (0x1 << 16) -#define S3C64XX_SDHCI_CONTROL4_DRIVE_7mA (0x2 << 16) +#define S3C64XX_SDHCI_CONTROL4 (0x8C) #define S3C64XX_SDHCI_CONTROL4_DRIVE_9mA (0x3 << 16) -#define S3C64XX_SDHCI_CONTROL4_BUSY (1) - /** * struct sdhci_s3c - S3C SDHCI instance * @host: The SDHCI host created