make oldconfig will rebuild these...
[linux-2.4.21-pre4.git] / drivers / video / tx3912fb.h
1 /*
2  *  drivers/video/tx3912fb.h
3  *
4  *  Copyright (C) 2001 Steven Hill (sjhill@realitydiluted.com)
5  *
6  * This file is subject to the terms and conditions of the GNU General Public
7  * License. See the file COPYING in the main directory of this archive for
8  * more details.
9  *
10  *  Includes for TMPR3912/05 and PR31700 LCD controller registers
11  */
12 #include <linux/config.h>
13
14 /*
15  * Begin platform specific configurations
16  */
17 #if defined(CONFIG_NINO_4MB) || defined(CONFIG_NINO_8MB)
18 #define FB_X_RES       240
19 #define FB_Y_RES       320
20 #if defined(CONFIG_FBCON_CFB4)
21 #define FB_BPP         4
22 #else
23 #if defined(CONFIG_FBCON_CFB2)
24 #define FB_BPP         2
25 #else
26 #define FB_BPP         1
27 #endif
28 #endif
29 #define FB_IS_GREY     1
30 #define FB_IS_INVERSE  0
31 #endif
32
33 #ifdef CONFIG_NINO_16MB
34 #define FB_X_RES       240
35 #define FB_Y_RES       320
36 #define FB_BPP         8
37 #define FB_IS_GREY     0
38 #define FB_IS_INVERSE  0
39 #endif
40
41 /*
42  * Define virtual resolutions if necessary
43  */
44 #ifndef FB_X_VIRTUAL_RES
45 #define FB_X_VIRTUAL_RES FB_X_RES
46 #endif
47 #ifndef FB_Y_VIRTUAL_RES
48 #define FB_Y_VIRTUAL_RES FB_Y_RES
49 #endif
50
51 /*
52  * Framebuffer address and size
53  */
54 u_long tx3912fb_paddr = 0;
55 u_long tx3912fb_vaddr = 0;
56 u_long tx3912fb_size = (FB_X_RES * FB_Y_RES * FB_BPP / 8);
57
58 /*
59  * Framebuffer info structure
60  */
61 static struct fb_var_screeninfo tx3912fb_info = {
62         FB_X_RES, FB_Y_RES,
63         FB_X_VIRTUAL_RES, FB_Y_VIRTUAL_RES,
64         0, 0,
65         FB_BPP, FB_IS_GREY,
66         {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0},
67         0, FB_ACTIVATE_NOW,
68         -1, -1, 0, 20000,
69         64, 64, 32, 32, 64, 2,
70         0, FB_VMODE_NONINTERLACED,
71         {0,0,0,0,0,0}
72 };
73
74 /*
75  * Framebuffer name
76  */
77 static char TX3912FB_NAME[16] = "tx3912fb";