aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/mach-se/7724/setup.c
diff options
context:
space:
mode:
authorKuninori Morimoto <morimoto.kuninori@renesas.com>2009-08-03 00:52:03 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-08-04 01:41:22 -0400
commit4f3243117ad42b4d1faeecd452f7b24306fcfc4a (patch)
treec8b318fac20e3f50855227ecf669d0a54747b6f9 /arch/sh/boards/mach-se/7724/setup.c
parent133b170f08d6c20578f25b1ae71f80a5e638ccb6 (diff)
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: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/mach-se/7724/setup.c')
-rw-r--r--arch/sh/boards/mach-se/7724/setup.c28
1 files changed, 18 insertions, 10 deletions
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c
index 4fb7e48e2843..957ed176ea2c 100644
--- a/arch/sh/boards/mach-se/7724/setup.c
+++ b/arch/sh/boards/mach-se/7724/setup.c
@@ -39,7 +39,15 @@
39 * SW41 : abxx xxxx -> a = 0 : Analog monitor 39 * SW41 : abxx xxxx -> a = 0 : Analog monitor
40 * 1 : Digital monitor 40 * 1 : Digital monitor
41 * b = 0 : VGA 41 * b = 0 : VGA
42 * 1 : SVGA 42 * 1 : 720p
43 */
44
45/*
46 * about 720p
47 *
48 * When you use 1280 x 720 lcdc output,
49 * you should change OSC6 lcdc clock from 25.175MHz to 74.25MHz,
50 * and change SW41 to use 720p
43 */ 51 */
44 52
45/* Heartbeat */ 53/* Heartbeat */
@@ -546,15 +554,15 @@ static int __init devices_setup(void)
546 sh_eth_init(); 554 sh_eth_init();
547 555
548 if (sw & SW41_B) { 556 if (sw & SW41_B) {
549 /* SVGA */ 557 /* 720p */
550 lcdc_info.ch[0].lcd_cfg.xres = 800; 558 lcdc_info.ch[0].lcd_cfg.xres = 1280;
551 lcdc_info.ch[0].lcd_cfg.yres = 600; 559 lcdc_info.ch[0].lcd_cfg.yres = 720;
552 lcdc_info.ch[0].lcd_cfg.left_margin = 142; 560 lcdc_info.ch[0].lcd_cfg.left_margin = 220;
553 lcdc_info.ch[0].lcd_cfg.right_margin = 52; 561 lcdc_info.ch[0].lcd_cfg.right_margin = 110;
554 lcdc_info.ch[0].lcd_cfg.hsync_len = 96; 562 lcdc_info.ch[0].lcd_cfg.hsync_len = 40;
555 lcdc_info.ch[0].lcd_cfg.upper_margin = 24; 563 lcdc_info.ch[0].lcd_cfg.upper_margin = 20;
556 lcdc_info.ch[0].lcd_cfg.lower_margin = 2; 564 lcdc_info.ch[0].lcd_cfg.lower_margin = 5;
557 lcdc_info.ch[0].lcd_cfg.vsync_len = 2; 565 lcdc_info.ch[0].lcd_cfg.vsync_len = 5;
558 } else { 566 } else {
559 /* VGA */ 567 /* VGA */
560 lcdc_info.ch[0].lcd_cfg.xres = 640; 568 lcdc_info.ch[0].lcd_cfg.xres = 640;