From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB

---
 kernel/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h |   20 ++++----------------
 1 files changed, 4 insertions(+), 16 deletions(-)

diff --git a/kernel/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h b/kernel/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h
index dbbc5b3..c863900 100644
--- a/kernel/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h
+++ b/kernel/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h
@@ -13,12 +13,7 @@
 #include <drm/drm_encoder.h>
 #include <drm/drm_mipi_dsi.h>
 
-struct sun6i_dphy {
-	struct clk		*bus_clk;
-	struct clk		*mod_clk;
-	struct regmap		*regs;
-	struct reset_control	*reset;
-};
+#define SUN6I_DSI_TCON_DIV	4
 
 struct sun6i_dsi {
 	struct drm_connector	connector;
@@ -28,12 +23,13 @@
 	struct clk		*bus_clk;
 	struct clk		*mod_clk;
 	struct regmap		*regs;
+	struct regulator	*regulator;
 	struct reset_control	*reset;
-	struct sun6i_dphy	*dphy;
+	struct phy		*dphy;
 
 	struct device		*dev;
-	struct sun4i_drv	*drv;
 	struct mipi_dsi_device	*device;
+	struct drm_device	*drm;
 	struct drm_panel	*panel;
 };
 
@@ -51,13 +47,5 @@
 {
 	return container_of(encoder, struct sun6i_dsi, encoder);
 };
-
-int sun6i_dphy_probe(struct sun6i_dsi *dsi, struct device_node *node);
-int sun6i_dphy_remove(struct sun6i_dsi *dsi);
-
-int sun6i_dphy_init(struct sun6i_dphy *dphy, unsigned int lanes);
-int sun6i_dphy_power_on(struct sun6i_dphy *dphy, unsigned int lanes);
-int sun6i_dphy_power_off(struct sun6i_dphy *dphy);
-int sun6i_dphy_exit(struct sun6i_dphy *dphy);
 
 #endif /* _SUN6I_MIPI_DSI_H_ */

--
Gitblit v1.6.2