// set AHB access rule and disable all windows
LcdWrReg(inf, SYS_CONFIG, 0x60000000);
LcdWrReg(inf, SWAP_CTRL, 0);
- LcdWrReg(inf, FIFO_WATER_MARK, 0x00000864);//68
+ LcdWrReg(inf, FIFO_WATER_MARK, 0x00000862);//68
LcdWrReg(inf, AXI_MS_ID, 0x54321);
// and mcu holdmode; and set win1 top.
break;
case FBIOPUT_FBPHYADD:
return info->fix.smem_start;
+ case FBIOGET_OVERLAY_STATE:
+ return inf->video_mode;
+
case FBIOPUT_SET_CURSOR_EN:
{
int en;
par->addr_seted = 0;
inf->video_mode = 1;
wq_condition2 = 1;
-
+ memset(inf->fb0->screen_base, 0, inf->fb0->fix.smem_len);
if(par->refcount) {
printk(">>>>>> fb1 has opened! \n");
return -EACCES;
#define FBIOPUT_SET_CURSOR_CMAP 0x460c
#define FBIOPUT_GET_CURSOR_RESOLUTION 0x460d
#define FBIOPUT_GET_CURSOR_EN 0x460e
+#define FBIOGET_OVERLAY_STATE 0X460f
#ifdef __KERNEL__
#define FBIO_CURSOR _IOWR('F', 0x08, struct fb_cursor_user)
#else