浏览代码

sh: enable deferred io LCDC on Migo-R

Enable LCDC deferred io on Migo-R using 1s delay.

As with other deferred io frame buffers user space code should
use fsync() on the frame buffer device to trigger an update.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Magnus Damm 16 年之前
父节点
当前提交
b5868e8cde
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/sh/boards/mach-migor/setup.c

+ 2 - 0
arch/sh/boards/mach-migor/setup.c

@@ -262,6 +262,8 @@ static struct sh_mobile_lcdc_info sh_mobile_lcdc_info = {
 		.sys_bus_cfg = {
 		.sys_bus_cfg = {
 			.ldmt2r = 0x06000a09,
 			.ldmt2r = 0x06000a09,
 			.ldmt3r = 0x180e3418,
 			.ldmt3r = 0x180e3418,
+			/* set 1s delay to encourage fsync() */
+			.deferred_io_msec = 1000,
 		},
 		},
 	}
 	}
 #endif
 #endif