From patchwork Wed Feb 14 17:23:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 10219505 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 82AA460467 for ; Wed, 14 Feb 2018 17:24:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E383288F1 for ; Wed, 14 Feb 2018 17:24:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6315328F2C; Wed, 14 Feb 2018 17:24:48 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1343A288F1 for ; Wed, 14 Feb 2018 17:24:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: Message-id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:List-Owner; bh=OFyD0P9g77IdYahT9KW+ljpG7/eqwkqhqM5n6kc4o9Q=; b=HJ 6E9hIPvbSqjj4GOpr/MdWPvuWLqC3BDRhdPytHe/+ibSnP1H/BYJrWjTo3oBHotzmPy1G3qxnE5JX 5KGYA+2SAEE0/SUe6fjf0VH6lTyAtASKfpoNgzxu+/rRKdH02Y/tM1Y0QtCTIFM9xezaZn0w89v8y bx4QblZv5g9kQ7a/4z1yDHGgvGDv7jbP2F2f852HFdDhPoZOlGFq6ImlkBRQkfUEzU6ipTfRxYdvK 6PB/AeiMtkU+Csgp727mLTACVQfx3iCwauioBcOuPGCWaKD0d0rLUdTGyGweodn5sIgCaVuH7Jr84 XEzGe287tkWCMHchhvNgH/F+KnjcUxmg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1em0nN-0004ap-Qi; Wed, 14 Feb 2018 17:24:37 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1em0nH-0004TN-Iu for linux-arm-kernel@lists.infradead.org; Wed, 14 Feb 2018 17:24:34 +0000 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20180214172411epoutp042aeff94c9e6999090db670af7040d6cc~TQRN1B8DQ3055730557epoutp04h; Wed, 14 Feb 2018 17:24:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20180214172411epoutp042aeff94c9e6999090db670af7040d6cc~TQRN1B8DQ3055730557epoutp04h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1518629051; bh=fnPiBscOU8uIpwyR4B0DlerkWoLnrnEsl2Kh2VhJe60=; h=From:To:Cc:Subject:Date:References:From; b=qDS1D7BmCV0Imy4wueamBI0oy4yuXXj1o4pJSIBE9e8VL3mV4RRXrUhkwpT5SDO20 EXyqWEncgf3RrcKhJ8DZfWICHBu+anHKQ1D6hJWXIjiO4lVzGLOXMhQ5YI3/s9fxBP bLDZBP1yBTpcADz62WdAhzPuKY/8gbOwZczQDYwo= Received: from epsmges1p5.samsung.com (unknown [182.195.42.57]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20180214172410epcas1p1da10aba55b416cbc548184052ab5e522~TQRNcq2bQ0828308283epcas1p19; Wed, 14 Feb 2018 17:24:10 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id 24.7E.04037.AB0748A5; Thu, 15 Feb 2018 02:24:10 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20180214172410epcas1p25bc3b963d508a4d34666f25f325af54d~TQRNGoIHF0034200342epcas1p2Z; Wed, 14 Feb 2018 17:24:10 +0000 (GMT) X-AuditID: b6c32a39-467ff70000000fc5-83-5a8470bab999 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 44.98.03826.AB0748A5; Thu, 15 Feb 2018 02:24:10 +0900 (KST) Received: from AMDC3061.digital.local ([106.116.147.40]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P4500HKXHO0L770@mmp1.samsung.com>; Thu, 15 Feb 2018 02:24:10 +0900 (KST) From: Sylwester Nawrocki To: inki.dae@samsung.com Subject: [PATCH v2] drm: exynos: Use proper macro definition for HDMI_I2S_PIN_SEL_1 Date: Wed, 14 Feb 2018 18:23:56 +0100 Message-id: <20180214172356.7013-1-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.14.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNIsWRmVeSWpSXmKPExsWy7bCmru6ugpYog5VvtC02zljPanHl63s2 i0n3J7BYvLh3kcVi0+NrrBYzzu9jslh75C67xeE37UDu5JdsDpwe97uPM3lsXlLv0bdlFaPH 501yASxR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e18wQWyTl3i/4D7jBEauBYwMqxglUwuKc9Nzi40KDPNS y/WKE3OLS/PS9ZLzczcxAoNj22Gtvh2M95fEH2IU4GBU4uE1sGmJEmJNLCuuzD3EKMHBrCTC a3y+OUqINyWxsiq1KD++qDQntfgQozQHi5I47+28Y5FCAumJJanZqakFqUUwWSYOTqkGRu5Z 3a8F16sy1nb6vj79qU9w2dNz1jyXWw4Ky6zr7NtfkHg3JMdT/vo7Tg6uLUdkCza8Nwg4fnjK 5htlR9+n9U+5EH3snAmLoiCjRpkf8yTBd7s2mYjLrK25JKRRcHpbVGvb2+eijXNvnto9s1XM JJ99la11SXrTQcW51/5V23Z677Z1v3urSomlOCPRUIu5qDgRAG/N91cKAgAA X-CMS-MailID: 20180214172410epcas1p25bc3b963d508a4d34666f25f325af54d X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20180214172410epcas1p25bc3b963d508a4d34666f25f325af54d X-RootMTR: 20180214172410epcas1p25bc3b963d508a4d34666f25f325af54d References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180214_092432_145787_C2DC0732 X-CRM114-Status: GOOD ( 11.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, jy0922.shim@samsung.com, b.zolnierkie@samsung.com, sw0312.kim@samsung.com, dri-devel@lists.freedesktop.org, Sylwester Nawrocki , linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Bit field [2:0] of HDMI_I2S_PIN_SEL_1 corresponds to SDATA_0, not SDATA_2. This patch removes redefinition of HDMI_I2S_SEL_DATA2 constant and adds missing HDMI_I2S_SEL_DATA0. The value of bit field selecting SDATA_1 (pin_sel_3) is also changed, so it is 3 as suggested in the Exynos TRMs. Signed-off-by: Sylwester Nawrocki --- drivers/gpu/drm/exynos/exynos_hdmi.c | 7 +++++-- drivers/gpu/drm/exynos/regs-hdmi.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index a4b75a46f946..abd84cbcf1c2 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -1068,10 +1068,13 @@ static void hdmi_audio_config(struct hdmi_context *hdata) /* Configuration I2S input ports. Configure I2S_PIN_SEL_0~4 */ hdmi_reg_writeb(hdata, HDMI_I2S_PIN_SEL_0, HDMI_I2S_SEL_SCLK(5) | HDMI_I2S_SEL_LRCK(6)); - hdmi_reg_writeb(hdata, HDMI_I2S_PIN_SEL_1, HDMI_I2S_SEL_SDATA1(1) - | HDMI_I2S_SEL_SDATA2(4)); + + hdmi_reg_writeb(hdata, HDMI_I2S_PIN_SEL_1, HDMI_I2S_SEL_SDATA1(3) + | HDMI_I2S_SEL_SDATA0(4)); + hdmi_reg_writeb(hdata, HDMI_I2S_PIN_SEL_2, HDMI_I2S_SEL_SDATA3(1) | HDMI_I2S_SEL_SDATA2(2)); + hdmi_reg_writeb(hdata, HDMI_I2S_PIN_SEL_3, HDMI_I2S_SEL_DSD(0)); /* I2S_CON_1 & 2 */ diff --git a/drivers/gpu/drm/exynos/regs-hdmi.h b/drivers/gpu/drm/exynos/regs-hdmi.h index 04be0f7e8193..4420c203ac85 100644 --- a/drivers/gpu/drm/exynos/regs-hdmi.h +++ b/drivers/gpu/drm/exynos/regs-hdmi.h @@ -464,7 +464,7 @@ /* I2S_PIN_SEL_1 */ #define HDMI_I2S_SEL_SDATA1(x) (((x) & 0x7) << 4) -#define HDMI_I2S_SEL_SDATA2(x) ((x) & 0x7) +#define HDMI_I2S_SEL_SDATA0(x) ((x) & 0x7) /* I2S_PIN_SEL_2 */ #define HDMI_I2S_SEL_SDATA3(x) (((x) & 0x7) << 4)