return snprintf(buf, PAGE_SIZE, "%d\n", dev_drv->id);
}
+static ssize_t show_dsp_mode(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->dsp_mode);
+}
+
static ssize_t show_win_property(struct device *dev,
struct device_attribute *attr,
char *buf)
__ATTR(lcdcid, S_IRUGO, show_lcdc_id, NULL),
__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),
};
int rkfb_create_sysfs(struct fb_info *fbi)
#define ONE_DUAL 1
#define DUAL 2
#define DUAL_LCD 3
+
+#define DEFAULT_MODE 0
+#define ONE_VOP_DUAL_MIPI_HOR_SCAN 1
+#define ONE_VOP_DUAL_MIPI_VER_SCAN 2
+#define TWO_VOP_TWO_SCREEN 3
+
/********************************************************************
** display output interface supported by rockchip **
********************************************************************/