diff options
author | Ye Li <ye.li@nxp.com> | 2018-07-17 19:13:13 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2018-07-19 20:56:37 -0700 |
commit | f7a9859569c3677f6f48dd4807da7d993b40a9bf (patch) | |
tree | 24e95020070594e771749055ba4826eab32a73d0 /include/mipi_dsi_northwest.h | |
parent | 2880a49732e3ecfd048a324df18975b79aa7a8e2 (diff) |
MLK-18945-2 video: Update mipi dsi northwest to implement bridge interface
Update the mipi_dsi_northwest driver to implement mipi dsi bridge interfaces
and register it as a bridge controller. Users can call bridge common interfaces
to access the northwest driver, don't need to call its private driver functions.
We also add a kconfig entry for this driver, the name is changed to
CONFIG_IMX_NORTHWEST_MIPI_DSI
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit a668cdb1ef5bcef4a574640f5c06ff07520254df)
Diffstat (limited to 'include/mipi_dsi_northwest.h')
-rw-r--r-- | include/mipi_dsi_northwest.h | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/include/mipi_dsi_northwest.h b/include/mipi_dsi_northwest.h index 8795ede1ef..9be24984c7 100644 --- a/include/mipi_dsi_northwest.h +++ b/include/mipi_dsi_northwest.h @@ -11,78 +11,7 @@ #include <linux/fb.h> -#define DSI_CMD_BUF_MAXSIZE (128) - -/* - * device structure for mipi-dsi based lcd panel. - * - * @name: name of the device to use with this device, - * the name will be used for binding driver. - * @mode: video mode parameters for the panel. - * @bpp: bits per pixel. only 24 bits is supported. - * @virtual_ch_id: virtual channel id for this dsi device. - * @data_lane_num: the data lane number, max is 2. - * @host: pointer to the host driver instance, will be setup - * during register device. - */ -struct mipi_dsi_northwest_panel_device { - const char *name; - struct fb_videomode mode; - int bpp; - u32 virtual_ch_id; - u32 data_lane_num; - - struct mipi_dsi_northwest_info *host; -}; - - -/* - * driver structure for mipi-dsi based lcd panel. - * - * this structure should be registered by lcd panel driver. - * mipi-dsi driver seeks lcd panel registered through name field - * and calls these callback functions in appropriate time. - * - * @name: name of the driver to use with this device, or an - * alias for that name. - * @mipi_panel_setup: callback pointer for initializing lcd panel based on mipi - * dsi interface. - */ -struct mipi_dsi_northwest_panel_driver { - const char *name; - - int (*mipi_panel_setup)(struct mipi_dsi_northwest_panel_device *panel_dev); -}; - -/* - * mipi-dsi northwest driver information structure, holds useful data for the driver. - */ -struct mipi_dsi_northwest_info { - u32 mmio_base; - u32 sim_base; - int enabled; - struct mipi_dsi_northwest_panel_device *dsi_panel_dev; - struct mipi_dsi_northwest_panel_driver *dsi_panel_drv; - - int (*mipi_dsi_pkt_write)(struct mipi_dsi_northwest_info *mipi_dsi, - u8 data_type, const u32 *buf, int len); -}; - /* Setup mipi dsi host driver instance, with base address and SIM address provided */ int mipi_dsi_northwest_setup(u32 base_addr, u32 sim_addr); -/* Create a LCD panel device, will search the panel driver to bind with them */ -int mipi_dsi_northwest_register_panel_device(struct mipi_dsi_northwest_panel_device *panel_dev); - -/* Register a LCD panel driver, will search the panel device to bind with them */ -int mipi_dsi_northwest_register_panel_driver(struct mipi_dsi_northwest_panel_driver *panel_drv); - -/* Enable the mipi dsi display */ -int mipi_dsi_northwest_enable(void); - -/* Disable and shutdown the mipi dsi display */ -int mipi_dsi_northwest_shutdown(void); - -void hx8363_init(void); - #endif |