aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-pxa/pxafb.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-arm/arch-pxa/pxafb.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/asm-arm/arch-pxa/pxafb.h')
-rw-r--r--include/asm-arm/arch-pxa/pxafb.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/include/asm-arm/arch-pxa/pxafb.h b/include/asm-arm/arch-pxa/pxafb.h
new file mode 100644
index 000000000000..27d71e9d413b
--- /dev/null
+++ b/include/asm-arm/arch-pxa/pxafb.h
@@ -0,0 +1,68 @@
1/*
2 * linux/include/asm-arm/arch-pxa/pxafb.h
3 *
4 * Support for the xscale frame buffer.
5 *
6 * Author: Jean-Frederic Clere
7 * Created: Sep 22, 2003
8 * Copyright: jfclere@sinix.net
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13 */
14
15/*
16 * This structure describes the machine which we are running on.
17 * It is set in linux/arch/arm/mach-pxa/machine_name.c and used in the probe routine
18 * of linux/drivers/video/pxafb.c
19 */
20struct pxafb_mach_info {
21 u_long pixclock;
22
23 u_short xres;
24 u_short yres;
25
26 u_char bpp;
27 u_char hsync_len;
28 u_char left_margin;
29 u_char right_margin;
30
31 u_char vsync_len;
32 u_char upper_margin;
33 u_char lower_margin;
34 u_char sync;
35
36 u_int cmap_greyscale:1,
37 cmap_inverse:1,
38 cmap_static:1,
39 unused:29;
40
41 /* The following should be defined in LCCR0
42 * LCCR0_Act or LCCR0_Pas Active or Passive
43 * LCCR0_Sngl or LCCR0_Dual Single/Dual panel
44 * LCCR0_Mono or LCCR0_Color Mono/Color
45 * LCCR0_4PixMono or LCCR0_8PixMono (in mono single mode)
46 * LCCR0_DMADel(Tcpu) (optional) DMA request delay
47 *
48 * The following should not be defined in LCCR0:
49 * LCCR0_OUM, LCCR0_BM, LCCR0_QDM, LCCR0_DIS, LCCR0_EFM
50 * LCCR0_IUM, LCCR0_SFM, LCCR0_LDM, LCCR0_ENB
51 */
52 u_int lccr0;
53 /* The following should be defined in LCCR3
54 * LCCR3_OutEnH or LCCR3_OutEnL Output enable polarity
55 * LCCR3_PixRsEdg or LCCR3_PixFlEdg Pixel clock edge type
56 * LCCR3_Acb(X) AB Bias pin frequency
57 * LCCR3_DPC (optional) Double Pixel Clock mode (untested)
58 *
59 * The following should not be defined in LCCR3
60 * LCCR3_HSP, LCCR3_VSP, LCCR0_Pcd(x), LCCR3_Bpp
61 */
62 u_int lccr3;
63
64 void (*pxafb_backlight_power)(int);
65 void (*pxafb_lcd_power)(int);
66
67};
68void set_pxa_fb_info(struct pxafb_mach_info *hard_pxa_fb_info);