diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2009-05-23 18:12:47 +0000 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2009-05-23 18:12:47 +0000 |
commit | a183bf954c5b586ac31b8dd5b7f3577c153b8232 (patch) | |
tree | 6ccd24342588df3cd4759ba6d7a67209dd093657 /target/linux/s3c24xx/files-2.6.30/arch | |
parent | 94808e01087d84b3479a0f4fc4f840d134247b47 (diff) | |
download | upstream-a183bf954c5b586ac31b8dd5b7f3577c153b8232.tar.gz upstream-a183bf954c5b586ac31b8dd5b7f3577c153b8232.tar.bz2 upstream-a183bf954c5b586ac31b8dd5b7f3577c153b8232.zip |
fix glamo modesetting.
SVN-Revision: 16015
Diffstat (limited to 'target/linux/s3c24xx/files-2.6.30/arch')
-rw-r--r-- | target/linux/s3c24xx/files-2.6.30/arch/arm/mach-s3c2442/mach-gta02.c | 56 |
1 files changed, 33 insertions, 23 deletions
diff --git a/target/linux/s3c24xx/files-2.6.30/arch/arm/mach-s3c2442/mach-gta02.c b/target/linux/s3c24xx/files-2.6.30/arch/arm/mach-s3c2442/mach-gta02.c index 3ae2a81238..f099c6446f 100644 --- a/target/linux/s3c24xx/files-2.6.30/arch/arm/mach-s3c2442/mach-gta02.c +++ b/target/linux/s3c24xx/files-2.6.30/arch/arm/mach-s3c2442/mach-gta02.c @@ -1399,33 +1399,43 @@ static void gta02_glamo_external_reset(int level) s3c2410_gpio_cfgpin(GTA02_GPIO_3D_RESET, S3C2410_GPIO_OUTPUT); } +static struct fb_videomode gta02_glamo_modes[] = { + { + .name = "480x640", + .xres = 480, + .yres = 640, + .pixclock = 40816, + .left_margin = 8, + .right_margin = 16, + .upper_margin = 2, + .lower_margin = 16, + .hsync_len = 8, + .vsync_len = 2, + .vmode = FB_VMODE_NONINTERLACED, + }, { + .name = "240x320", + .xres = 240, + .yres = 320, + .pixclock = 40816, + .left_margin = 8, + .right_margin = 16, + .upper_margin = 2, + .lower_margin = 16, + .hsync_len = 8, + .vsync_len = 2, + .vmode = FB_VMODE_NONINTERLACED, + } +}; + + static struct glamofb_platform_data gta02_glamo_pdata = { .width = 43, .height = 58, - /* 24.5MHz --> 40.816ns */ - .pixclock = 40816, - .left_margin = 8, - .right_margin = 16, - .upper_margin = 2, - .lower_margin = 16, - .hsync_len = 8, - .vsync_len = 2, .fb_mem_size = 0x400000, /* glamo has 8 megs of SRAM. we use 4 */ - .xres = { - .min = 240, - .max = 640, - .defval = 480, - }, - .yres = { - .min = 320, - .max = 640, - .defval = 640, - }, - .bpp = { - .min = 16, - .max = 16, - .defval = 16, - }, + + .num_modes = ARRAY_SIZE(gta02_glamo_modes), + .modes = gta02_glamo_modes, + //.spi_info = &glamo_spi_cfg, .spigpio_info = &glamo_spigpio_cfg, |