From patchwork Fri Oct 21 17:18:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul T R X-Patchwork-Id: 6895 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp818283wrr; Fri, 21 Oct 2022 10:28:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4MUGDAxtf/1OstamfIGOE5Ipiyp++/hFwB8PJUpOwINZY6iLiLGkROsDMlW7O3FWHREYl1 X-Received: by 2002:a17:907:a054:b0:78d:7822:3108 with SMTP id gz20-20020a170907a05400b0078d78223108mr16184239ejc.764.1666373294684; Fri, 21 Oct 2022 10:28:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666373294; cv=none; d=google.com; s=arc-20160816; b=TZWQaPS+80q8pciQvOXU1AQCCZO6Rv11Xs7UZfIAi7UJzI9K8+A0/WIsH8eyc1HKzV JZP2Rh48OoW9Y/fJ/YARr+uawYBJtIuosnXuvVzMzydWQeg8mHXncMpgcwhERbXRYgRa 0sGNjIMFMkzwyeHcloCWTHw2AS4d6nurQHZ3RODuCkOaTMCMuDCJ83HkcwOE/8tRIFDk QhxF3Fm0hEujMAuL6HECItG5qBx5yDM9ErxlnTFhI5VTrRF9J4JjqNma8ZruYGVnR8XJ h2TtwK6eElxV+cEHjPg3yadmhHvJeMZ78XNrNsySoeV3reL8I/0IABfTvncW00tf3FIf 2CZQ== 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=9aCI1sgVGYjuVlnYmx7KARm9I9HiDrQgihhTQArhaeM=; b=d3H5mpj4JDYQ7qeRUj2O9sfjdGWDOv+mOYPsoxElsIZn9HTZcIZGGv6BY/AC4Sa9/x kfWzAA+yKjdBZL6Qs+GPouvi+LV+9pLGHfaRfTBPjdJGj+SKDq17enIiyscgZ70mBoib p8ZtOtXyu3GJTtW3MkLhuSfYt5OTzzuFKp7g3iEnJqVdagtsXUT9TzJEqfgynR/bXLfV FikpfSvTlcXBz8rjzZO/SNK5zwmVSkGoePOwzzmf1EZ13+ctY+q9jngz25OmLfUvzPKG YqGuqAvV3onvCL+2xbfQBnv2JKU/kIzjQ40Mc5ahhnQBwTIIHisM87mjguZNza5dm9jv jWDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cnnbL3mo; 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=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n21-20020aa7c795000000b004513abe8f74si17367640eds.249.2022.10.21.10.27.49; Fri, 21 Oct 2022 10:28:14 -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=@ti.com header.s=ti-com-17Q1 header.b=cnnbL3mo; 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=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231250AbiJURT0 (ORCPT + 99 others); Fri, 21 Oct 2022 13:19:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231172AbiJURTL (ORCPT ); Fri, 21 Oct 2022 13:19:11 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3473B1ABA3C; Fri, 21 Oct 2022 10:19:08 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29LHIXPp045962; Fri, 21 Oct 2022 12:18:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1666372714; bh=9aCI1sgVGYjuVlnYmx7KARm9I9HiDrQgihhTQArhaeM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=cnnbL3moz4XoSYSgWffbcmgDTsjOgdnFGzzByuVjcdgSmgqO4hfYATskuYHjMVo8Q 7dz5/jaf0bLvfipGF2t3lk7KUKp3vj2E2LG3a0/Jm26RIRvPzKzhKVVOTV0AKJauSo uWSw17f1mmj3Hg3q0i8mEF9r8qdxF9bmQDFxo6oo= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29LHIXX0101276 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 21 Oct 2022 12:18:33 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Fri, 21 Oct 2022 12:18:33 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Fri, 21 Oct 2022 12:18:33 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29LHIWEA037363; Fri, 21 Oct 2022 12:18:32 -0500 From: Rahul T R To: , , , CC: , , , , , , , , , , , , , , , , , Rahul T R Subject: [PATCH v8 4/5] drm/bridge: cdns-dsi: Create a header file Date: Fri, 21 Oct 2022 22:48:19 +0530 Message-ID: <20221021171820.15984-5-r-ravikumar@ti.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221021171820.15984-1-r-ravikumar@ti.com> References: <20221021171820.15984-1-r-ravikumar@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,UPPERCASE_50_75,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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747319044044938473?= X-GMAIL-MSGID: =?utf-8?q?1747319044044938473?= Create a header file for cdns dsi and move register offsets and structure to header, to prepare for adding j721e wrapper support Signed-off-by: Rahul T R Reviewed-by: Tomi Valkeinen --- .../gpu/drm/bridge/cadence/cdns-dsi-core.c | 446 +---------------- .../gpu/drm/bridge/cadence/cdns-dsi-core.h | 458 ++++++++++++++++++ 2 files changed, 459 insertions(+), 445 deletions(-) create mode 100644 drivers/gpu/drm/bridge/cadence/cdns-dsi-core.h diff --git a/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c b/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c index 20bece84ff8c..cba91247ab26 100644 --- a/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c +++ b/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c @@ -6,10 +6,7 @@ */ #include -#include #include -#include -#include #include #include