printk(KERN_ALERT "[DISPLAY] %s: DPI Panel is Already Off\n", __func__);
return;
}
- tc35876x_toshiba_bridge_panel_off();
- tc35876x_set_bridge_reset_state(1);
+ tc35876x_toshiba_bridge_panel_off(dev);
+ tc35876x_set_bridge_reset_state(dev, 1);
dsi_set_pipe_plane_enable_state(dev, 0, pipe); //Disable pipe and plane
mdfld_dsi_dpi_shut_down(dpi_output, pipe); //Send shut down command
dsi_set_device_ready_state(dev, 0, pipe); //Clear Device Ready Bit
dsi_set_device_ready_state(dev, 1, pipe); //Set device ready state
- tc35876x_set_bridge_reset_state(0);
+ tc35876x_set_bridge_reset_state(dev, 0);
tc35876x_configure_lvds_bridge(dev);
mdfld_dsi_dpi_turn_on(dpi_output, pipe); //Send turn on command
dsi_set_pipe_plane_enable_state(dev, 1, pipe); //Enable plane and pipe
REG_WRITE(MIPI_CLK_LANE_SWITCH_TIME_CNT_REG(pipe), (0xa << 16) | 0x14);
if (get_panel_type(dev, pipe) == TC35876X)
- tc35876x_set_bridge_reset_state(0); /*Pull High Reset */
+ tc35876x_set_bridge_reset_state(dev, 0); /*Pull High Reset */
/*set device ready*/
REG_FLD_MOD(MIPI_DEVICE_READY_REG(pipe), 1, 0, 0);
*/
int timeout = 0;
- tc35876x_set_bridge_reset_state(0); /*Pull High Reset */
- tc35876x_toshiba_bridge_panel_on();
+ tc35876x_set_bridge_reset_state(dev, 0); /*Pull High Reset */
+ tc35876x_toshiba_bridge_panel_on(dev);
udelay(100);
/* Now start the DSI clock */
REG_WRITE(MRST_DPLL_A, 0x00);
return 0;
}
-void tc35876x_set_bridge_reset_state(int state)
+void tc35876x_set_bridge_reset_state(struct drm_device *dev, int state)
{
struct tc35876x_platform_data *pdata;
}
}
-void tc35876x_toshiba_bridge_panel_off(void)
+void tc35876x_toshiba_bridge_panel_off(struct drm_device *dev)
{
struct tc35876x_platform_data *pdata;
gpio_set_value_cansleep(pdata->gpio_panel_vadd, 0);
}
-void tc35876x_toshiba_bridge_panel_on(void)
+void tc35876x_toshiba_bridge_panel_on(struct drm_device *dev)
{
struct tc35876x_platform_data *pdata;
#ifndef __MDFLD_DSI_LVDS_BRIDGE_H__
#define __MDFLD_DSI_LVDS_BRIDGE_H__
-void tc35876x_set_bridge_reset_state(int state);
+void tc35876x_set_bridge_reset_state(struct drm_device *dev, int state);
void tc35876x_configure_lvds_bridge(struct drm_device *dev);
void tc35876x_brightness_control(struct drm_device *dev, int pipe, int level);
-void tc35876x_toshiba_bridge_panel_off(void);
-void tc35876x_toshiba_bridge_panel_on(void);
+void tc35876x_toshiba_bridge_panel_off(struct drm_device *dev);
+void tc35876x_toshiba_bridge_panel_on(struct drm_device *dev);
void tc35876x_init(struct drm_device *dev, struct panel_funcs *pf);
void tc35876x_exit(void);