From patchwork Mon Oct 31 12:19:23 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: 13255 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2279185wru; Mon, 31 Oct 2022 05:21:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ffRrsasp0mXE48Tzr5KTnrjuLQe832EltRPkCxgS3XmhTMnIwObE+hEYS+H3mIHzr3vcg X-Received: by 2002:a05:6402:94e:b0:463:525e:8738 with SMTP id h14-20020a056402094e00b00463525e8738mr5953058edz.154.1667218874967; Mon, 31 Oct 2022 05:21:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667218874; cv=none; d=google.com; s=arc-20160816; b=LP6LidhotebIkdVcBcOF1lRajKWUzvPBjlT9GAXHu0WyYRXiu6qpfZgjw2lHVJRUHT AQsIMW+V+9sm+acbSHzGJeBkKR6KC8X6UcgIEAX7IBoxVs8+0iEhHqxdtSKmj3Znc24+ qwoBkMejTJ+iSsxOW62MThlycA/4R76DEgrHALe2ESVqWlCROm7O2kpP9f4eKQ5S4mxZ evPuY1+uij3HoyjtsoUJecnvve2zB4Zht/psU7Dypiv3aukENS3Bew5kRrvoVm4Ja5Y3 UsP0LrvZMfv4euNNnIqhkF2R9sse4ysIqz9LcCRgSqZCJR9YeMfcN5pUY5E30UJQF+g4 pEWg== 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=NBJxvBVjov5U+2QtHayc0g076j9wo59TATuPpmy9c6g=; b=QDovqKzGACt9lQWkhCFSoDn3HSbq+oLiWbozDiBtE4pV6EUAvsnZYc1l4pQeerEKQ/ 5/rdeZ5jmPUvR/OsZjYkZ1u98uPR1Ucf+cD6srfI7OiFYAt2aj2lfOY57MTtAElr6hoT cwScDEaYRv/9k5Lq4B5Au+EdRMpL/O5y53JXsk/JLCqRHBqKzOpk1UXCJFBU3OvooyXR DacCo3+ZUzaAqOhHD6cT4lq2TnIY5+sFSBoMYVzDQ+9P5cjryRQ7d/zGN/Lft7f4gnUK OfsKCZHion/GcWqo2dDMdMSj90itrG3hSYE0VjvT5A8G8UEECfuT4B5vAVQFlS4Jv0yc FNaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CjwXSyN6; 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 w1-20020a1709067c8100b007417c6edb0asi5635162ejo.402.2022.10.31.05.20.48; Mon, 31 Oct 2022 05:21: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=CjwXSyN6; 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 S231335AbiJaMUB (ORCPT + 99 others); Mon, 31 Oct 2022 08:20:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231318AbiJaMT5 (ORCPT ); Mon, 31 Oct 2022 08:19:57 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51B20E6C; Mon, 31 Oct 2022 05:19:55 -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 29VCJZKO084876; Mon, 31 Oct 2022 07:19:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1667218775; bh=NBJxvBVjov5U+2QtHayc0g076j9wo59TATuPpmy9c6g=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=CjwXSyN6ZqRgCmqm/rr3tu1ooFxf77jX/d4GZqEmgNsMAQi5LSZuMylagKJXn47Hn 3PfJxg1zpOibCOV1/cKT7khm3Gq+igZHjJI0qlJIqvpyit+DIdwRaLkAyVtFoAUtac sw4xZ6OqhhnRkh8oGAuoedRGq/pVp8B6NEGk/uDk= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29VCJZkb041848 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 31 Oct 2022 07:19:35 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Mon, 31 Oct 2022 07:19:34 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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.6 via Frontend Transport; Mon, 31 Oct 2022 07:19:34 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29VCJX8B061347; Mon, 31 Oct 2022 07:19:34 -0500 From: Rahul T R To: , , , CC: , , , , , , , , , , , , , , , , , Rahul T R Subject: [PATCH v9 4/5] drm/bridge: cdns-dsi: Create a header file Date: Mon, 31 Oct 2022 17:49:23 +0530 Message-ID: <20221031121924.29974-5-r-ravikumar@ti.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221031121924.29974-1-r-ravikumar@ti.com> References: <20221031121924.29974-1-r-ravikumar@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.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?1748205699135372004?= X-GMAIL-MSGID: =?utf-8?q?1748205699135372004?= 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