From patchwork Sun May 26 21:20:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Karlman X-Patchwork-Id: 10961899 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 84A80912 for ; Sun, 26 May 2019 21:20:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CA8528924 for ; Sun, 26 May 2019 21:20:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C8EA28A22; Sun, 26 May 2019 21:20:44 +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 D6AC828924 for ; Sun, 26 May 2019 21:20:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0EC2789733; Sun, 26 May 2019 21:20:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-oln040092067051.outbound.protection.outlook.com [40.92.67.51]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3FC2389733 for ; Sun, 26 May 2019 21:20:41 +0000 (UTC) Received: from VE1EUR02FT016.eop-EUR02.prod.protection.outlook.com (10.152.12.57) by VE1EUR02HT120.eop-EUR02.prod.protection.outlook.com (10.152.13.63) 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:39 +0000 Received: from VI1PR03MB4206.eurprd03.prod.outlook.com (10.152.12.55) by VE1EUR02FT016.mail.protection.outlook.com (10.152.12.90) 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:39 +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:39 +0000 From: Jonas Karlman To: "a.hajda@samsung.com" , "Laurent.pinchart@ideasonboard.com" Subject: [PATCH 4/4] drm/sun4i: Enable DRM InfoFrame support on H6 Thread-Topic: [PATCH 4/4] drm/sun4i: Enable DRM InfoFrame support on H6 Thread-Index: AQHVFAjd+8FRSaD9s06/eG9Vpeitjg== Date: Sun, 26 May 2019 21:20:38 +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: AM6PR0202CA0018.eurprd02.prod.outlook.com (2603:10a6:209:15::31) To VI1PR03MB4206.eurprd03.prod.outlook.com (2603:10a6:803:51::23) x-incomingtopheadermarker: OriginalChecksum:39FDC37F0D6079638BEBDC4B6495A92E1FFE3068C06548128ADA719A139E386A; UpperCasedChecksum:4E0C77E1B0E4F7AB2251787617D700249A49BF8898BC910E9254900F4B98C5D3; SizeAsReceived:8091; Count:50 x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-tmn: [vP+N9OTlA2i0XOtrhUj0j49BqiSlFZhC] x-microsoft-original-message-id: <20190526212029.32049-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)(2017031322404)(2017031323274)(2017031324274)(1601125500)(1603101475)(1701031045); SRVR:VE1EUR02HT120; x-ms-traffictypediagnostic: VE1EUR02HT120: x-microsoft-antispam-message-info: DwfEtM1U/LPIbKulFrNml/1YpEh91v8Yy9Ye7COkwcN+pVsIcdgZhftt/zFcdBRoTmkPvZUz28+oGrRZbewv6NAxrRlEO1AaVpF4WxCNEfGOQuyHqFCLFSeDGNFjZ2zwnzirnuG96JrSR6WEQhjyhQKID4stVttn6wzzxQFdf2voWHovyFvgLrstyz4P8otF 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: e1f35009-a6f0-4b72-2d11-08d6e21ffff8 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 May 2019 21:20:38.9439 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT120 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 H6. Cc: Maxime Ripard Cc: Jernej Skrabec Signed-off-by: Jonas Karlman Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 2 ++ drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c index 39d8509d96a0..b80164dd8ad8 100644 --- a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c +++ b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c @@ -189,6 +189,7 @@ static int sun8i_dw_hdmi_bind(struct device *dev, struct device *master, sun8i_hdmi_phy_init(hdmi->phy); plat_data->mode_valid = hdmi->quirks->mode_valid; + plat_data->drm_infoframe = hdmi->quirks->drm_infoframe; sun8i_hdmi_phy_set_ops(hdmi->phy, plat_data); platform_set_drvdata(pdev, hdmi); @@ -255,6 +256,7 @@ static const struct sun8i_dw_hdmi_quirks sun8i_a83t_quirks = { static const struct sun8i_dw_hdmi_quirks sun50i_h6_quirks = { .mode_valid = sun8i_dw_hdmi_mode_valid_h6, + .drm_infoframe = true, }; static const struct of_device_id sun8i_dw_hdmi_dt_ids[] = { diff --git a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h index 720c5aa8adc1..2a0ec08ee236 100644 --- a/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h +++ b/drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h @@ -178,6 +178,7 @@ struct sun8i_dw_hdmi_quirks { enum drm_mode_status (*mode_valid)(struct drm_connector *connector, const struct drm_display_mode *mode); unsigned int set_rate : 1; + unsigned int drm_infoframe : 1; }; struct sun8i_dw_hdmi {