From patchwork Mon Oct 7 19:21:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Karlman X-Patchwork-Id: 11178357 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2CA371747 for ; Mon, 7 Oct 2019 19:21:59 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 14C4E2070B for ; Mon, 7 Oct 2019 19:21:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 14C4E2070B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kwiboo.se Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 058456E17B; Mon, 7 Oct 2019 19:21:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-oln040092068022.outbound.protection.outlook.com [40.92.68.22]) by gabe.freedesktop.org (Postfix) with ESMTPS id CDF296E17B for ; Mon, 7 Oct 2019 19:21:55 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GnoD+86XFqVf4Yy/M/EJPHUCCP9/h1kPqs7mkxQfblqYKAl7ZxAq6iYdBNUF6L9fW/zoonhVBUd7I8mlXRLPvZiOYX35Q6yLFoZYOT698opg6Rv3IxXetXRw5azS6xp2oKAU2zT0C987am0ugrih9XQ0zsKv1sHykI50dhJLfb4i6i9mwmKup+LXkltKJp/wHeU5ypakbNNKQ2dczYDQLIdyd9S9rCr1M3vQCUGge5dLSL633ZMMQ5WZJDEjpaI8KW1MBR76w76EPggop8zvfRJ2G8Qgk0rJQGqVpaDuC91Dj6rFSjc10JxjIQzSuA+HiS3io/oqY9Xn4AejokOVUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dnXj0bICwjFFFTZYWcocvCHmrP5bwb9fqSgT6TUAkSk=; b=G0mSLlJ4/zhOVgF5Mt8hiLPmfvUQIxekmc073k5om7Fvu3o8Ea6FfQ98cgNKq0HKh6bi4wMRKbXnM9Nd+rxuhwAjPDh78aZyZJfuXltztlSQbQ/7RMFegzAn5QjaMIadJLfVm/QXs3ryRybDM8RTzG2QWd74x6lafe34QPZrYV0J5GpLjzJuzp2c4Fuy20+QnZAAgv12HaVkguIB5pmynNCpho1JxWJxa6QKCT+teR4v0ogSVXMmEQGqpqfynbsOmMt8+WY86u/rGyuZskDj0uAPa2Itu7o0FhF0VnRKNG++2mb17FkjGw53+fL9w/EZsDv7l3QCdRTZlQ8t6KIjDQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from AM5EUR02FT039.eop-EUR02.prod.protection.outlook.com (10.152.8.53) by AM5EUR02HT237.eop-EUR02.prod.protection.outlook.com (10.152.8.235) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2327.20; Mon, 7 Oct 2019 19:21:49 +0000 Received: from HE1PR06MB4011.eurprd06.prod.outlook.com (10.152.8.55) by AM5EUR02FT039.mail.protection.outlook.com (10.152.9.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2327.20 via Frontend Transport; Mon, 7 Oct 2019 19:21:49 +0000 Received: from HE1PR06MB4011.eurprd06.prod.outlook.com ([fe80::5c5a:1160:a2e0:43d8]) by HE1PR06MB4011.eurprd06.prod.outlook.com ([fe80::5c5a:1160:a2e0:43d8%4]) with mapi id 15.20.2305.023; Mon, 7 Oct 2019 19:21:49 +0000 From: Jonas Karlman To: Andrzej Hajda , Neil Armstrong Subject: [PATCH v2 2/4] drm/rockchip: Enable DRM InfoFrame support on RK3328 and RK3399 Thread-Topic: [PATCH v2 2/4] drm/rockchip: Enable DRM InfoFrame support on RK3328 and RK3399 Thread-Index: AQHVfUR3JXY5xQIOykGs74DZOna4XQ== Date: Mon, 7 Oct 2019 19:21:49 +0000 Message-ID: References: <20191007192135.4525-1-jonas@kwiboo.se> In-Reply-To: <20191007192135.4525-1-jonas@kwiboo.se> Accept-Language: sv-SE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1P18901CA0018.EURP189.PROD.OUTLOOK.COM (2603:10a6:3:8b::28) To HE1PR06MB4011.eurprd06.prod.outlook.com (2603:10a6:7:9c::32) x-incomingtopheadermarker: OriginalChecksum:5B4191A7D513587D91584953D25E71089F789E8C9B84D3AB94C404A59F6E4FB4; UpperCasedChecksum:4C7E7BF373A2D39586CBA1A8B452FB28FAB477C199FA7A95DEEC584251568002; SizeAsReceived:8097; Count:51 x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-tmn: [Ik4UVVWh8enDFLkh6mvDKU4vxxATQVVJ] x-microsoft-original-message-id: <20191007192135.4525-2-jonas@kwiboo.se> x-ms-publictraffictype: Email x-incomingheadercount: 51 x-eopattributedmessage: 0 x-ms-traffictypediagnostic: AM5EUR02HT237: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Ow4zPY79ymRpJptUu+nFn5y3wmL2LexQoFASdvU3V/4aIMrRTA0IXM+lrIg+RffJe0L0bJ36SsYVwus3gMIuk35CkEo+QDS7i/0pG/4gMI5WizynHOc5GuldcQmkgUw0TNe628UkgeQUsfbuPj03sfS9n61mgxYbKLgpYLW4h0OSqwVU1C3PRGwyhBQ6Njmx x-ms-exchange-transport-forked: True 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: 46408731-acc1-47b7-c856-08d74b5b99e1 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Oct 2019 19:21:49.5660 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR02HT237 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 , Jonas Karlman , Kevin Hilman , "dri-devel@lists.freedesktop.org" , Maxime Ripard , "linux-kernel@vger.kernel.org" , Chen-Yu Tsai , Laurent Pinchart , "zhengyang@rock-chips.com" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 906891b03a38..7f56d8c3491d 100644 --- a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c @@ -450,6 +450,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, + .use_drm_infoframe = true, }; static struct rockchip_hdmi_chip_data rk3399_chip_data = { @@ -464,6 +465,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, + .use_drm_infoframe = true, }; static const struct of_device_id dw_hdmi_rockchip_dt_ids[] = {