enable, lcdc_id, screen->type, dev_drv->cur_screen->type);
mutex_lock(&dev_drv->switch_screen);
+ dev_drv->hot_plug_state = enable;
hdmi_switch_state = 0;
dev_drv->hdmi_switch = 1;
if (!dev_drv->uboot_logo) {
return snprintf(buf, PAGE_SIZE, "%d\n", dev_drv->dsp_mode);
}
+static ssize_t show_hot_plug_state(struct device *dev,
+ struct device_attribute *attr,
+ char *buf)
+{
+ struct fb_info *fbi = dev_get_drvdata(dev);
+ struct rk_fb_par *fb_par = (struct rk_fb_par *)fbi->par;
+ struct rk_lcdc_driver *dev_drv = fb_par->lcdc_drv;
+
+ return snprintf(buf, PAGE_SIZE, "%d\n", dev_drv->hot_plug_state);
+}
+
static ssize_t show_win_property(struct device *dev,
struct device_attribute *attr,
char *buf)
__ATTR(win_property, S_IRUGO, show_win_property, NULL),
__ATTR(car_reverse, S_IWUSR, NULL, set_car_reverse),
__ATTR(dsp_mode, S_IRUGO, show_dsp_mode, NULL),
+ __ATTR(hot_plug_state, S_IRUGO, show_hot_plug_state, NULL),
};
int rkfb_create_sysfs(struct fb_info *fbi)