forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h
....@@ -13,12 +13,7 @@
1313 #include <drm/drm_encoder.h>
1414 #include <drm/drm_mipi_dsi.h>
1515
16
-struct sun6i_dphy {
17
- struct clk *bus_clk;
18
- struct clk *mod_clk;
19
- struct regmap *regs;
20
- struct reset_control *reset;
21
-};
16
+#define SUN6I_DSI_TCON_DIV 4
2217
2318 struct sun6i_dsi {
2419 struct drm_connector connector;
....@@ -28,12 +23,13 @@
2823 struct clk *bus_clk;
2924 struct clk *mod_clk;
3025 struct regmap *regs;
26
+ struct regulator *regulator;
3127 struct reset_control *reset;
32
- struct sun6i_dphy *dphy;
28
+ struct phy *dphy;
3329
3430 struct device *dev;
35
- struct sun4i_drv *drv;
3631 struct mipi_dsi_device *device;
32
+ struct drm_device *drm;
3733 struct drm_panel *panel;
3834 };
3935
....@@ -51,13 +47,5 @@
5147 {
5248 return container_of(encoder, struct sun6i_dsi, encoder);
5349 };
54
-
55
-int sun6i_dphy_probe(struct sun6i_dsi *dsi, struct device_node *node);
56
-int sun6i_dphy_remove(struct sun6i_dsi *dsi);
57
-
58
-int sun6i_dphy_init(struct sun6i_dphy *dphy, unsigned int lanes);
59
-int sun6i_dphy_power_on(struct sun6i_dphy *dphy, unsigned int lanes);
60
-int sun6i_dphy_power_off(struct sun6i_dphy *dphy);
61
-int sun6i_dphy_exit(struct sun6i_dphy *dphy);
6250
6351 #endif /* _SUN6I_MIPI_DSI_H_ */