Merge xburst target.
[openwrt/openwrt.git] / target / linux / xburst / files-2.6.32 / include / linux / jz4740_fb.h
1 /*
2 * Copyright (C) 2009, Lars-Peter Clausen <lars@metafoo.de>
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * You should have received a copy of the GNU General Public License along
10 * with this program; if not, write to the Free Software Foundation, Inc.,
11 * 675 Mass Ave, Cambridge, MA 02139, USA.
12 *
13 */
14
15 #ifndef __LINUX_JZ4740_FB_H
16 #define __LINUX_JZ4740_FB_H
17
18 #include <linux/fb.h>
19
20 enum jz4740_fb_lcd_type {
21 JZ_LCD_TYPE_GENERIC_16_18_BIT = 0,
22 JZ_LCD_TYPE_SPECIAL_TFT_1 = 1,
23 JZ_LCD_TYPE_SPECIAL_TFT_2 = 2,
24 JZ_LCD_TYPE_SPECIAL_TFT_3 = 3,
25 JZ_LCD_TYPE_NON_INTERLACED_CCIR656 = 5,
26 JZ_LCD_TYPE_INTERLACED_CCIR656 = 7,
27 JZ_LCD_TYPE_SINGLE_COLOR_STN = 8,
28 JZ_LCD_TYPE_SINGLE_MONOCHROME_STN = 9,
29 JZ_LCD_TYPE_DUAL_COLOR_STN = 10,
30 JZ_LCD_TYPE_8BIT_SERIAL = 11,
31 };
32
33 /*
34 * width: width of the lcd display in mm
35 * height: height of the lcd display in mm
36 * num_modes: size of modes
37 * modes: list of valid video modes
38 * bpp: bits per pixel for the lcd
39 * lcd_type: lcd type
40 */
41
42 struct jz4740_fb_platform_data {
43 unsigned int width;
44 unsigned int height;
45
46 size_t num_modes;
47 struct fb_videomode *modes;
48 int bpp;
49 enum jz4740_fb_lcd_type lcd_type;
50 };
51
52 #endif