From patchwork Wed Jul 12 02:40:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikandan Muralidharan X-Patchwork-Id: 118784 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp877524vqm; Tue, 11 Jul 2023 20:03:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlFGmVI0AkFUHv0sFFQxqSquTJXDH0+FegkaMfgmj0rXinXQPYgnBysg4CLA2L41f/qKjgNk X-Received: by 2002:a05:6358:4192:b0:135:48d9:eb90 with SMTP id w18-20020a056358419200b0013548d9eb90mr10232218rwc.13.1689131000355; Tue, 11 Jul 2023 20:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689131000; cv=none; d=google.com; s=arc-20160816; b=eKpYP4G/E4K43Q2aHvEOut3haWTEJyJ8U4RFVxq3pF6QzNZC1XCX98CM6mlChkmiAG UuEx1kRe6xsfuw0xZEY4AWEvvb5nhd5zhH7O7F6U+2rOiCFLdSVnzjioJjAXR+qPms+z hdY5+G+4xlruTNHoFHyLQ04e+wxnIBginUF5klNsZy46boC6v6rJePugoSYrkvFO2eFH hO8jNDhNyU++v0QlKnBeffkbOErfh0+kWV36WPUB8Ex+JnflRa9xeKwvdORg3JIIxynA XXBdmTzpdKFxrxYxe+bwqZs27OLEBRqhtpyT73vKy6FChm+UiIClbjxaOXNo5Y92L821 bPLg== 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 :dkim-signature; bh=IRhA5mfzRP2j+t+9P5jpJHHECQL9Srq0TS6vlRBw42s=; fh=hqXxddZ8DLUwbnM3H43PrOHn+E+g1mOk3ANyl5S2DLo=; b=PY+pj0cWwujCC8l8Xe1muSpMuOs3mjfK4IyWDmCdRkP/MG6sqfstYwjugIwrivtfYw KuqZ7GrKL7g/gV9783kZx4xvYafiX79KkT/O8hjq6v/ne6UyzLO3QF8l3AnH5N4Nc+L7 uYl6tiRo6YsnNutTncoWQh4ul8BBsc+F01bpvbkVUUNikxcOoQ3UeeLUtE4V/Q7B4339 HwS04LxrnvMa74GvucRy7NpxkFT5r8ThWYnQXIBIj7QBR7detFRXyIeqvLsJY/fvqiju xkQWKkyUwsePSR08tmqxCYDn7tpu/UQnlE7KzRwOjebwtst6bHSrJN2rmV+4jajmLed2 z/Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=hSaNeelZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b25-20020a631b59000000b00553a56f7b36si2360774pgm.522.2023.07.11.20.03.06; Tue, 11 Jul 2023 20:03:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=hSaNeelZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231706AbjGLClZ (ORCPT + 99 others); Tue, 11 Jul 2023 22:41:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231678AbjGLClU (ORCPT ); Tue, 11 Jul 2023 22:41:20 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5B871733; Tue, 11 Jul 2023 19:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1689129678; x=1720665678; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6aOaMtJTiIJ9T6N93TEgDZWLDHpyfendla0pMWkd2/w=; b=hSaNeelZypSzO3bUrV7qBN6MS/CmtuEmEkbrCfJk9P/PjIJ1yno/oril /pkamMsLS68yZzktSEUByGGPBjb8838oLBwz3p7HngqoCYIRQUPQpefb5 wGH53EfZC7eBWydMcQZcH+ObAb2KU2CKqAO/5gcGuer62j2WZQL7gcKyt 2V0mBygah9UYrV/2sfKe96WAcZF1yTHq9VJm1gwDc+V2Ll8ptZgaWUKX7 ln4sZSv/bKFnEmUfaTIHWhCrBPxT98Vjk9nEEmisCa5WgsRxWXC6LDSiz Ok+sSYuK13NS7lI/0ZZLWK2E5KIyCs66dS+rE8oh1rkv6tx6oCmXVemlc A==; X-IronPort-AV: E=Sophos;i="6.01,198,1684825200"; d="scan'208";a="160935547" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Jul 2023 19:41:17 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 11 Jul 2023 19:41:09 -0700 Received: from che-lt-i67131.amer.actel.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Tue, 11 Jul 2023 19:41:01 -0700 From: Manikandan Muralidharan To: , , , , , , , , , , , , , , CC: , , , , , , , Manikandan Muralidharan Subject: [PATCH v2 3/9] drm: atmel-hlcdc: add flag to differentiate XLCDC and HLCDC IP Date: Wed, 12 Jul 2023 08:10:11 +0530 Message-ID: <20230712024017.218921-4-manikandan.m@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230712024017.218921-1-manikandan.m@microchip.com> References: <20230712024017.218921-1-manikandan.m@microchip.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771182227498750574 X-GMAIL-MSGID: 1771182227498750574 Add is_xlcdc flag in driver data to differentiate XLCDC and HLCDC code within the atmel-hlcdc driver files. Signed-off-by: Manikandan Muralidharan --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h index 5b5c774e0edf..d68c79a6eae7 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h @@ -304,6 +304,7 @@ atmel_hlcdc_layer_to_plane(struct atmel_hlcdc_layer *layer) * @conflicting_output_formats: true if RGBXXX output formats conflict with * each other. * @fixed_clksrc: true if clock source is fixed + * @is_xlcdc: true if XLCDC IP is supported * @layers: a layer description table describing available layers * @nlayers: layer description table size */ @@ -317,6 +318,7 @@ struct atmel_hlcdc_dc_desc { int max_hpw; bool conflicting_output_formats; bool fixed_clksrc; + bool is_xlcdc; const struct atmel_hlcdc_layer_desc *layers; int nlayers; };