Message ID | ebf5d89e4e523436b972202ca8c02f733a11ef7a.1692178020.git.geert+renesas@glider.be |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp2372485vqi; Sun, 20 Aug 2023 01:08:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2YKYxZr30JuOTxoSKdFNeSvKPAC2/2h5GcIo9WL811dn9lRhm3/AxO8oeBIZ5iGI7J3BL X-Received: by 2002:a05:6e02:13e4:b0:349:851b:3e48 with SMTP id w4-20020a056e0213e400b00349851b3e48mr4824645ilj.28.1692518913816; Sun, 20 Aug 2023 01:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692518913; cv=none; d=google.com; s=arc-20160816; b=qBv/Q2sB3MSIndzBne8qRD/3CDQRmYbrsZVoW/8bEJWoBTyyFIw97L4wDAyavHo9e8 ttJPXd1sruyCdwNrqrCAfszbzahRWX93brm/ukrkfPOOLxgAbQcJ2ZTWPCKzzuaQDpOC 4vZKX/fA1CVYiCML86MY8y4ls4DhHBiCiTJhl2nIO1wjzO8sEuhIUdAZJz7wZbOo9uQC bd5Go2bGRtLj0niiDerCHQ4idXqe4Pp25nCWwNtpvmlpBsnHLn8ZkUpVtfrfT2S3FZ1N fHRaD0ZBFafIS6R9Fn+jrWiFhxdl67navxAysGm/cQbw0BB9z/KCBoRFBrqWLuJ2Mue4 AmTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ImiHQCTl78Rpg7uyrA3HkXgJ3FaVgvYzg3QpsIxBezg=; fh=OmmZDJEp3pl7jaFV8O2/yN66VkuJIFqajAiD2ZUHFno=; b=JEk7DSClQtwDaCHruIV53NuLC3RoaIkDmyV8rFFur0UJRfVB72n4UXIzLUcADcjkca EnrfpsRvWFg1Q/mnzL7gNWFTV8BNk5/ltyDStYg3IXR1vbRHHou2QG91Eg6auFwgRmh2 MSaTD8oxHp3TEAW8XHcpMRYjZdU5wUCoHvzx5v1PFeajbg8LfalYBaMs8NBh/j88AybK noSWbRroWEYnd0mig2g8ZE6cipid3kw1tGkKYfX+cvtyh3P2x9S7+ZFunoQH+x3yWxRL uWij8JbWiA9XbmUHfRKrJkUjG4bikeC5yCY5tXd621IPsh10D4xpCy80J0MXmEQ/tZyh xqOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id lf16-20020a170902fb5000b001bbfa153483si4582539plb.418.2023.08.20.01.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 01:08:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5D71627AD3A; Sat, 19 Aug 2023 11:41:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244295AbjHPKqA (ORCPT <rfc822;274620705z@gmail.com> + 99 others); Wed, 16 Aug 2023 06:46:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244122AbjHPKpS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 16 Aug 2023 06:45:18 -0400 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3B1C26B9 for <linux-kernel@vger.kernel.org>; Wed, 16 Aug 2023 03:44:58 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:5d0c:f209:12a7:4ce5]) by michel.telenet-ops.be with bizsmtp id aAkh2A00y45ualL06Akh1v; Wed, 16 Aug 2023 12:44:43 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from <geert@linux-m68k.org>) id 1qWE0x-000ost-Dq; Wed, 16 Aug 2023 12:44:41 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from <geert@linux-m68k.org>) id 1qWDAw-00674t-Hu; Wed, 16 Aug 2023 11:50:50 +0200 From: Geert Uytterhoeven <geert+renesas@glider.be> To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Thomas Zimmermann <tzimmermann@suse.de>, Magnus Damm <magnus.damm@gmail.com> Cc: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven <geert+renesas@glider.be>, Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Subject: [PATCH v3 10/41] drm: renesas: shmobile: Add missing YCbCr formats Date: Wed, 16 Aug 2023 11:50:17 +0200 Message-Id: <ebf5d89e4e523436b972202ca8c02f733a11ef7a.1692178020.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: <cover.1692178020.git.geert+renesas@glider.be> References: <cover.1692178020.git.geert+renesas@glider.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774734712691291058 X-GMAIL-MSGID: 1774734712691291058 |
Series |
drm: renesas: shmobile: Atomic conversion + DT support
|
|
Commit Message
Geert Uytterhoeven
Aug. 16, 2023, 9:50 a.m. UTC
The primary plane supports various YCbCr formats, and the CRTC code already knows how to handle them. Enable support for the missing formats by adding them to the table of supported modes. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> --- v3: - No changes, v2: - Add Reviewed-by. --- drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c b/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c index 2d9ae0c6ab7b18a8..a0e1a49c84d5691a 100644 --- a/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c +++ b/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c @@ -460,6 +460,12 @@ static const uint32_t modeset_formats[] = { DRM_FORMAT_RGB888, DRM_FORMAT_ARGB8888, DRM_FORMAT_XRGB8888, + DRM_FORMAT_NV12, + DRM_FORMAT_NV21, + DRM_FORMAT_NV16, + DRM_FORMAT_NV61, + DRM_FORMAT_NV24, + DRM_FORMAT_NV42, }; static const struct drm_plane_funcs primary_plane_funcs = {