| .. | .. |
|---|
| 13 | 13 | #include <drm/drm_encoder.h> |
|---|
| 14 | 14 | #include <drm/drm_mipi_dsi.h> |
|---|
| 15 | 15 | |
|---|
| 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 |
|---|
| 22 | 17 | |
|---|
| 23 | 18 | struct sun6i_dsi { |
|---|
| 24 | 19 | struct drm_connector connector; |
|---|
| .. | .. |
|---|
| 28 | 23 | struct clk *bus_clk; |
|---|
| 29 | 24 | struct clk *mod_clk; |
|---|
| 30 | 25 | struct regmap *regs; |
|---|
| 26 | + struct regulator *regulator; |
|---|
| 31 | 27 | struct reset_control *reset; |
|---|
| 32 | | - struct sun6i_dphy *dphy; |
|---|
| 28 | + struct phy *dphy; |
|---|
| 33 | 29 | |
|---|
| 34 | 30 | struct device *dev; |
|---|
| 35 | | - struct sun4i_drv *drv; |
|---|
| 36 | 31 | struct mipi_dsi_device *device; |
|---|
| 32 | + struct drm_device *drm; |
|---|
| 37 | 33 | struct drm_panel *panel; |
|---|
| 38 | 34 | }; |
|---|
| 39 | 35 | |
|---|
| .. | .. |
|---|
| 51 | 47 | { |
|---|
| 52 | 48 | return container_of(encoder, struct sun6i_dsi, encoder); |
|---|
| 53 | 49 | }; |
|---|
| 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); |
|---|
| 62 | 50 | |
|---|
| 63 | 51 | #endif /* _SUN6I_MIPI_DSI_H_ */ |
|---|