dev_info(&tc35876x_client->dev, "clock = %d\n", mode->clock);
}
+/* DV1 Active area 216.96 x 135.6 mm */
+#define DV1_PANEL_WIDTH 217
+#define DV1_PANEL_HEIGHT 136
+
+int tc35876x_bridge_get_panel_info(struct drm_device *dev, int pipe,
+ struct panel_info *pi)
+{
+ if (!dev || !pi)
+ return -EINVAL;
+
+ pi->width_mm = DV1_PANEL_WIDTH;
+ pi->height_mm = DV1_PANEL_HEIGHT;
+
+ return 0;
+}
+
static int tc35876x_bridge_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
void tc35876x_toshiba_bridge_panel_off(void);
void tc35876x_toshiba_bridge_panel_on(void);
void tc35876x_bridge_get_display_params(struct drm_display_mode *mode);
+int tc35876x_bridge_get_panel_info(struct drm_device *dev, int pipe,
+ struct panel_info *pi);
int tc35876x_bridge_init(void);
void tc35876x_bridge_exit(void);
p_funcs->encoder_helper_funcs = &mdfld_tpo_dpi_encoder_helper_funcs;
p_funcs->get_config_mode = &tmd_vid_get_config_mode;
p_funcs->update_fb = NULL;
- p_funcs->get_panel_info = tmd_vid_get_panel_info;
if (get_panel_type(dev, 0) != TC35876X) { /* FIXME: pipe */
+ p_funcs->get_panel_info = tmd_vid_get_panel_info;
p_funcs->reset = mdfld_dsi_panel_reset;
p_funcs->drv_ic_init = mdfld_dsi_tmd_drv_ic_init;
+ } else {
+ p_funcs->get_panel_info = tc35876x_bridge_get_panel_info;
}
}