Root/
Source at commit 0aea73bcf352b359b796cba77b56ab75cabf6f83 created 12 years 9 months ago. By Maarten ter Huurne, MIPS: JZ4740: SLCD framebufer driver | |
---|---|
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 __ASM_MACH_JZ4740_JZ4740_FB_H__ |
16 | #define __ASM_MACH_JZ4740_JZ4740_FB_H__ |
17 | |
18 | #include <linux/fb.h> |
19 | |
20 | enum jz4740_fb_lcd_type { |
21 | JZ_LCD_TYPE_GENERIC_16_BIT = 0, |
22 | JZ_LCD_TYPE_GENERIC_18_BIT = 0 | (1 << 4), |
23 | JZ_LCD_TYPE_SPECIAL_TFT_1 = 1, |
24 | JZ_LCD_TYPE_SPECIAL_TFT_2 = 2, |
25 | JZ_LCD_TYPE_SPECIAL_TFT_3 = 3, |
26 | JZ_LCD_TYPE_NON_INTERLACED_CCIR656 = 5, |
27 | JZ_LCD_TYPE_INTERLACED_CCIR656 = 7, |
28 | JZ_LCD_TYPE_SINGLE_COLOR_STN = 8, |
29 | JZ_LCD_TYPE_SINGLE_MONOCHROME_STN = 9, |
30 | JZ_LCD_TYPE_DUAL_COLOR_STN = 10, |
31 | JZ_LCD_TYPE_DUAL_MONOCHROME_STN = 11, |
32 | JZ_LCD_TYPE_8BIT_SERIAL = 12, |
33 | JZ_LCD_TYPE_SMART_PARALLEL_8_BIT = 1 | (1 << 5), |
34 | JZ_LCD_TYPE_SMART_PARALLEL_16_BIT = 0 | (1 << 5), |
35 | JZ_LCD_TYPE_SMART_PARALLEL_18_BIT = 2 | (1 << 5), |
36 | JZ_LCD_TYPE_SMART_SERIAL_8_BIT = 1 | (3 << 5), |
37 | JZ_LCD_TYPE_SMART_SERIAL_16_BIT = 0 | (3 << 5), |
38 | JZ_LCD_TYPE_SMART_SERIAL_18_BIT = 2 | (3 << 5), |
39 | }; |
40 | |
41 | #define JZ4740_FB_SPECIAL_TFT_CONFIG(start, stop) (((start) << 16) | (stop)) |
42 | |
43 | /* |
44 | * width: width of the lcd display in mm |
45 | * height: height of the lcd display in mm |
46 | * num_modes: size of modes |
47 | * modes: list of valid video modes |
48 | * bpp: bits per pixel for the lcd |
49 | * lcd_type: lcd type |
50 | */ |
51 | |
52 | struct jz4740_fb_platform_data { |
53 | unsigned int width; |
54 | unsigned int height; |
55 | |
56 | size_t num_modes; |
57 | struct fb_videomode *modes; |
58 | |
59 | unsigned int bpp; |
60 | enum jz4740_fb_lcd_type lcd_type; |
61 | |
62 | struct { |
63 | uint32_t spl; |
64 | uint32_t cls; |
65 | uint32_t ps; |
66 | uint32_t rev; |
67 | } special_tft_config; |
68 | |
69 | unsigned pixclk_falling_edge:1; |
70 | unsigned date_enable_active_low:1; |
71 | unsigned chip_select_active_low:1; |
72 | unsigned register_select_active_low:1; |
73 | }; |
74 | |
75 | #endif |
76 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9