summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx5/displays/vga.h
blob: 3e5a913c643a81827c6ae344eefe2e41049faf42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
 * arch/arm/mach-mx5/displays/vga.h
 *
 * Copyright (C) 2010 by Digi International Inc.
 * All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 as published by
 * the Free Software Foundation.
 */

#ifndef __ASM_ARCH_MXC_CCWMX51_DISPLAYS_VGA_H__
#define __ASM_ARCH_MXC_CCWMX51_DISPLAYS_VGA_H__

static struct fb_videomode vga_custom_1 = {
	.name		= "custom1",
	.refresh	= 0,
	.xres		= 0,
	.yres		= 0,
	.pixclock	= 0,
	.left_margin	= 0,
	.right_margin	= 0,
	.upper_margin	= 0,
	.lower_margin	= 0,
	.hsync_len	= 0,
	.vsync_len	= 0,
	.vmode		= FB_VMODE_NONINTERLACED,
	.sync		= FB_SYNC_EXT,
};

static struct fb_videomode vga_custom_2 = {
	.name		= "custom1",
	.refresh	= 0,
	.xres		= 0,
	.yres		= 0,
	.pixclock	= 0,
	.left_margin	= 0,
	.right_margin	= 0,
	.upper_margin	= 0,
	.lower_margin	= 0,
	.hsync_len	= 0,
	.vsync_len	= 0,
	.vmode		= FB_VMODE_NONINTERLACED,
	.sync		= FB_SYNC_EXT,
};

struct ccwmx51_lcd_pdata vga_panel_list[] = {
	{
		.fb_pdata = {
			.interface_pix_fmt = VIDEO_PIX_FMT,
			.mode_str = "custom1",
			.mode = &vga_custom_1,
		},
		.bl_enable = NULL,
	}, {
		.fb_pdata = {
			.interface_pix_fmt = VIDEO_PIX_FMT,
			.mode_str = "custom2",
			.mode = &vga_custom_2,
		},
		.bl_enable = NULL,
	},
};
#endif /* __ASM_ARCH_MXC_CCWMX51_DISPLAYS_VGA_H__ */