From patchwork Sun May 26 21:20:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Karlman X-Patchwork-Id: 10961895 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A44F6912 for ; Sun, 26 May 2019 21:20:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FC3126E78 for ; Sun, 26 May 2019 21:20:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D3B2287CB; Sun, 26 May 2019 21:20:13 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1E40526E78 for ; Sun, 26 May 2019 21:20:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3EEE1897F0; Sun, 26 May 2019 21:20:09 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-oln040092070048.outbound.protection.outlook.com [40.92.70.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id 92789897F0 for ; Sun, 26 May 2019 21:20:07 +0000 (UTC) Received: from VE1EUR03FT043.eop-EUR03.prod.protection.outlook.com (10.152.18.59) by VE1EUR03HT097.eop-EUR03.prod.protection.outlook.com (10.152.19.239) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1922.16; Sun, 26 May 2019 21:20:05 +0000 Received: from VI1PR03MB4206.eurprd03.prod.outlook.com (10.152.18.55) by VE1EUR03FT043.mail.protection.outlook.com (10.152.19.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1922.16 via Frontend Transport; Sun, 26 May 2019 21:20:05 +0000 Received: from VI1PR03MB4206.eurprd03.prod.outlook.com ([fe80::883e:1bd6:cd36:5fb0]) by VI1PR03MB4206.eurprd03.prod.outlook.com ([fe80::883e:1bd6:cd36:5fb0%4]) with mapi id 15.20.1922.021; Sun, 26 May 2019 21:20:05 +0000 From: Jonas Karlman To: "a.hajda@samsung.com" , "Laurent.pinchart@ideasonboard.com" Subject: [PATCH 2/4] drm/rockchip: Enable DRM InfoFrame support on RK3328 and RK3399 Thread-Topic: [PATCH 2/4] drm/rockchip: Enable DRM InfoFrame support on RK3328 and RK3399 Thread-Index: AQHVFAjJPuRdg1EVp0Kx4o5U/y99+A== Date: Sun, 26 May 2019 21:20:05 +0000 Message-ID: References: In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5P194CA0019.EURP194.PROD.OUTLOOK.COM (2603:10a6:203:8f::29) To VI1PR03MB4206.eurprd03.prod.outlook.com (2603:10a6:803:51::23) x-incomingtopheadermarker: OriginalChecksum:2F9F864FFCCD18FEB82CD8CE03ED9C81B70E449B994933EE67F2C1E3545D9379; UpperCasedChecksum:B7EF89375F1E3B7E4FC9FFC33B9C9C28F0E10F88B54E27966938B966C93A7B84; SizeAsReceived:8123; Count:50 x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-tmn: [AWzaq9EL1xXMxZ6bhr9jhEiwqzG1hkEr] x-microsoft-original-message-id: <20190526211954.31938-1-jonas@kwiboo.se> x-ms-publictraffictype: Email x-incomingheadercount: 50 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(5050001)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031323274)(2017031324274)(2017031322404)(1601125500)(1603101475)(1701031045); SRVR:VE1EUR03HT097; x-ms-traffictypediagnostic: VE1EUR03HT097: x-microsoft-antispam-message-info: MMDAyrF7XEnELdmqEZ7is35MB6Ef37uM4MABUUhEdqSY23p7lrqr8HNNHLa0N/ghA59EYLVKKhotYcJPU+8Rz2/ITpbCv+KY0B3kJsXJiP1OcPdyoRQqyssFAZBDiOobXswfjEmbNOspqZ7VJbWqbB73DCtkzniD1V79mIJ4ShSzXvw2AwjDpz5kjaE1l3tB MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 739633f3-2928-4fc0-32c8-08d6e21febc2 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 May 2019 21:20:05.1227 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR03HT097 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "jernej.skrabec@siol.net" , "narmstrong@baylibre.com" , "maxime.ripard@bootlin.com" , "khilman@baylibre.com" , Jonas Karlman , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "wens@csie.org" , "zhengyang@rock-chips.com" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch enables Dynamic Range and Mastering InfoFrame on RK3328 and RK3399. Cc: Sandy Huang Cc: Heiko Stuebner Signed-off-by: Jonas Karlman Reviewed-by: Heiko Stuebner Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c index 4cdc9f86c2e5..1f31f3726f04 100644 --- a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c @@ -405,6 +405,7 @@ static const struct dw_hdmi_plat_data rk3328_hdmi_drv_data = { .phy_ops = &rk3328_hdmi_phy_ops, .phy_name = "inno_dw_hdmi_phy2", .phy_force_vendor = true, + .drm_infoframe = true, }; static struct rockchip_hdmi_chip_data rk3399_chip_data = { @@ -419,6 +420,7 @@ static const struct dw_hdmi_plat_data rk3399_hdmi_drv_data = { .cur_ctr = rockchip_cur_ctr, .phy_config = rockchip_phy_config, .phy_data = &rk3399_chip_data, + .drm_infoframe = true, }; static const struct of_device_id dw_hdmi_rockchip_dt_ids[] = {