本帖最后由 ocno 于 2015-7-19 10:57 编辑
在kernel/drivers/video/samsung/x4412_lcds.c中添加结构体vga_1920_1080
- /* VGA-1920X1080 */
- static struct s3cfb_lcd vga_1920_1080 = {
- .width = 1920,
- .height = 1080,
- .bpp = 32,
- .freq = 60,
- .timing = {
- .h_fp = 88,
- .h_bp = 148,
- .h_sw = 44,
- .v_fp = 1,
- .v_fpe = 1,
- .v_bp = 36,
- .v_bpe = 1,
- .v_sw = 5,
- },
-
- .polarity = {
- .rise_vclk = 1,
- .inv_hsync = 1,
- .inv_vsync = 1,
- .inv_vden = 0,
- },
-
- .init_ldi = NULL,
- };
复制代码
在结构体数组x4412_lcd_config中添加1920x1080的信息:
- x4412_lcd_config[] = {
- { "ek070tn93", &ek070tn93},
- { "vs070cxn", &vs070cxn},
- { "vga-1024x768", &vga_1024_768},
- { "vga-1440x900", &vga_1440_900},
- { "vga-1280x1024", &vga_1280_1024},
- { "vga-1920x1080", &vga_1920_1080},
- };
复制代码
修改uboot下的uboot/board/samsung/x4412/x4412.c 文件x4412_framebuffer_init(void)函数添加:
- else if(strstr(commandline, "lcd=vga-1920x1080"))
- {
- /* M = 756MHZ */
- //x4412_set_mpll(252, 8, 0);
- //exynos4412_fix_fimd(756 * 1000 * 1000);
- /* M = 800MHZ */
- x4412_set_mpll(100, 3, 0);
- exynos4412_fix_fimd(800 * 1000 * 1000);
- }
复制代码
修改uboot下的uboot/board/samsung/x4412/exynos4412-fb.c文件中的
- static struct exynos4412_fb_data_t vga_1920_1080 = {
- .regbase = EXYNOS4412_LCD_BASE,
- .width = 1920,
- .height = 1080,
- .bits_per_pixel = 32,
- .bytes_per_pixel = 4,
- .freq = 60,
- .output = EXYNOS4412_FB_OUTPUT_RGB,
- .rgb_mode = EXYNOS4412_FB_MODE_BGR_P,
- .bpp_mode = EXYNOS4412_FB_BPP_MODE_32BPP,
- .swap = EXYNOS4412_FB_SWAP_WORD,
- .rgba = {
- .r_mask = 8,
- .r_field = 0,
- .g_mask = 8,
- .g_field = 8,
- .b_mask = 8,
- .b_field = 16,
- .a_mask = 8,
- .a_field = 24,
- },
- .timing = {
- .h_fp = 88,
- .h_bp = 148,
- .h_sw = 44,
- .v_fp = 4,
- .v_fpe = 1,
- .v_bp = 36,
- .v_bpe = 1,
- .v_sw = 5,
- },
- .polarity = {
- .rise_vclk = 1,
- .inv_hsync = 1,
- .inv_vsync = 1,
- .inv_vden = 0,
- },
- .vram_front = &vram[0][0],
- .vram_back = &vram[1][0],
- .init = lcd_init,
- .backlight = lcd_backlight,
- };
复制代码
在void exynos4412_fb_initial(char * commandline)添加
- else if(strstr(commandline, "lcd=vga-1920x1080"))
- dat = &vga_1920_1080;
复制代码
|