forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/tegra/hub.h
....@@ -1,15 +1,11 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2017 NVIDIA CORPORATION. All rights reserved.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 */
85
96 #ifndef TEGRA_HUB_H
107 #define TEGRA_HUB_H 1
118
12
-#include <drm/drmP.h>
139 #include <drm/drm_plane.h>
1410
1511 #include "plane.h"
....@@ -21,7 +17,7 @@
2117 struct mutex lock;
2218
2319 unsigned int index;
24
- struct device *parent;
20
+ struct host1x_client *parent;
2521 struct reset_control *rst;
2622 };
2723
....@@ -38,6 +34,7 @@
3834
3935 struct tegra_display_hub_soc {
4036 unsigned int num_wgrps;
37
+ bool supports_dsc;
4138 };
4239
4340 struct tegra_display_hub {
....@@ -48,6 +45,9 @@
4845 struct clk *clk_hub;
4946 struct reset_control *rst;
5047
48
+ unsigned int num_heads;
49
+ struct clk **clk_heads;
50
+
5151 const struct tegra_display_hub_soc *soc;
5252 struct tegra_windowgroup *wgrps;
5353 };