From patchwork Mon Jan 2 10:09:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul T R X-Patchwork-Id: 38063 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4095810wrt; Mon, 2 Jan 2023 02:14:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXso8ZMq4OtY/tp7abnl3WaxAIlidkn6d7m2/VwaiMXLPKxFnlZPP0te/HZBECsz8q9vcLQY X-Received: by 2002:aa7:cd83:0:b0:45c:835b:9448 with SMTP id x3-20020aa7cd83000000b0045c835b9448mr31610866edv.4.1672654446993; Mon, 02 Jan 2023 02:14:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672654446; cv=none; d=google.com; s=arc-20160816; b=UxU5d9DGeX1iqrMBbwiErU4b7uV2HF2f1TXXb3qfs3mMyfIKuhd/3XVxXnrseyZVCW NfxXB92kN5LPBCBGPKjYXVHb5awdsEsur87Km+Z/Ihwgjd+f1rSId71o76ZbkFdHg2Y8 oYfEvWnrPHc83hKKM05EbR5Mqj9fAiHfnjymHWXMefiiAIukLALEMKPZljo4c/ARGfZX mu3+dRVMVyzdiX3AyjG43cXzmd7zjFS6mVlOSkUC9khqeWie37wSQZXjkHHIpokEAy/U 57eEoyj2m4AKAiq55JB+flxHQLnZtkrO3DvMOWh5Ib8zsaONe6G+Lp3xhLrv4dy+5p37 5YYQ== 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=MArPEbqCjnykZoIY3Kxfa2MGa2fS/cjJQ8+dICbD88U=; b=Nx5TePlgzpa09yKFwjyoYU6xEUpjNpV47na3ckQxZE2ipCeunsGWlTEaFaZPJPF1X8 fz4BDqLFX3KYepeXM2YpW9OpACVXtBChbKFYhhc6o0E3qLgM83kN3J29wbCNQXNTq5p9 T0Ks2R6DftnNFcbavNtTs0Jd9+igvpW4LETSs/uVtOQEHlq+uWC9zZQql/oYnPmqENXX S+SdtilQbM0YyXXgSM7q+GV1ATSZFjTwqzNnYQPnP6QjBaPJGBKY+Zycsej8q2v6hQwz ZyhKRnClf3UXuEFDLZNjr16f/AaLANJX0MaePIECEzFuN4PwrJL7UqkqUv/2NX57otGO Rdxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aRIv5Bho; 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 r28-20020a056402035c00b00443088b40b7si21866766edw.123.2023.01.02.02.13.42; Mon, 02 Jan 2023 02:14:06 -0800 (PST) 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=aRIv5Bho; 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 S232597AbjABKK2 (ORCPT + 99 others); Mon, 2 Jan 2023 05:10:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232420AbjABKKQ (ORCPT ); Mon, 2 Jan 2023 05:10:16 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82E961DF; Mon, 2 Jan 2023 02:10:12 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 302A9uK5020609; Mon, 2 Jan 2023 04:09:56 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1672654196; bh=MArPEbqCjnykZoIY3Kxfa2MGa2fS/cjJQ8+dICbD88U=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=aRIv5Bhopi1dWAg6Gumn7IJv1UP8IuS1SLjXtrJP/DF0ZmxmoZ27h1EYQ2nDLttME KJGXK5kHE1Z8dFnw+vi4ZiHDVfC2L6jkfskBvCCKQXnFXZxZtC5ltBzyPCg32r+yvk ynt3eyYvX6kE5bpvdAG2HhV6R9oT3NSJJUIGiA+M= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 302A9u6W054912 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 2 Jan 2023 04:09:56 -0600 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 2 Jan 2023 04:09:55 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Mon, 2 Jan 2023 04:09:55 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 302A9sGQ022468; Mon, 2 Jan 2023 04:09:55 -0600 From: Rahul T R To: , , , CC: , , , , , , , , , , , , , , , , , Rahul T R Subject: [PATCH v10 4/5] drm/bridge: cdns-dsi: Create a header file Date: Mon, 2 Jan 2023 15:39:41 +0530 Message-ID: <20230102100942.1828-5-r-ravikumar@ti.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230102100942.1828-1-r-ravikumar@ti.com> References: <20230102100942.1828-1-r-ravikumar@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 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 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?1753905309496260956?= X-GMAIL-MSGID: =?utf-8?q?1753905309496260956?= 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