Commit 4f324311 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Paul Mundt

sh: ms7724se: add 1280x720 lcdc output support

There was no big meaning in the support of SVGA,
but 720p support is necessary for ms7724se board.
So, this patch support 720p instead of SVGA.
Signed-off-by: default avatarKuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 133b170f
...@@ -39,7 +39,15 @@ ...@@ -39,7 +39,15 @@
* SW41 : abxx xxxx -> a = 0 : Analog monitor * SW41 : abxx xxxx -> a = 0 : Analog monitor
* 1 : Digital monitor * 1 : Digital monitor
* b = 0 : VGA * b = 0 : VGA
* 1 : SVGA * 1 : 720p
*/
/*
* about 720p
*
* When you use 1280 x 720 lcdc output,
* you should change OSC6 lcdc clock from 25.175MHz to 74.25MHz,
* and change SW41 to use 720p
*/ */
/* Heartbeat */ /* Heartbeat */
...@@ -546,15 +554,15 @@ static int __init devices_setup(void) ...@@ -546,15 +554,15 @@ static int __init devices_setup(void)
sh_eth_init(); sh_eth_init();
if (sw & SW41_B) { if (sw & SW41_B) {
/* SVGA */ /* 720p */
lcdc_info.ch[0].lcd_cfg.xres = 800; lcdc_info.ch[0].lcd_cfg.xres = 1280;
lcdc_info.ch[0].lcd_cfg.yres = 600; lcdc_info.ch[0].lcd_cfg.yres = 720;
lcdc_info.ch[0].lcd_cfg.left_margin = 142; lcdc_info.ch[0].lcd_cfg.left_margin = 220;
lcdc_info.ch[0].lcd_cfg.right_margin = 52; lcdc_info.ch[0].lcd_cfg.right_margin = 110;
lcdc_info.ch[0].lcd_cfg.hsync_len = 96; lcdc_info.ch[0].lcd_cfg.hsync_len = 40;
lcdc_info.ch[0].lcd_cfg.upper_margin = 24; lcdc_info.ch[0].lcd_cfg.upper_margin = 20;
lcdc_info.ch[0].lcd_cfg.lower_margin = 2; lcdc_info.ch[0].lcd_cfg.lower_margin = 5;
lcdc_info.ch[0].lcd_cfg.vsync_len = 2; lcdc_info.ch[0].lcd_cfg.vsync_len = 5;
} else { } else {
/* VGA */ /* VGA */
lcdc_info.ch[0].lcd_cfg.xres = 640; lcdc_info.ch[0].lcd_cfg.xres = 640;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment