aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/xilinxfb.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2007-10-10 14:31:51 -0400
committerPaul Mackerras <paulus@samba.org>2007-10-12 00:05:17 -0400
commitb4d6a7268fc754eefb196cabc0ccfa2e97022af2 (patch)
tree406af23412b9a984b91804c9ca956c8f3dda0a22 /include/linux/xilinxfb.h
parent01ba1e9d26fcd29f3ad4f3a5bcf40c0fbc40ee81 (diff)
[POWERPC] XilinxFB: Add support for custom screen resolution
Some custom implementations of the xilinx fb can use resolutions other than 640x480. This patch allows the resolution to be specified in the device tree or the xilinx_platform_data structure. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/linux/xilinxfb.h')
-rw-r--r--include/linux/xilinxfb.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/xilinxfb.h b/include/linux/xilinxfb.h
index 9ad984d22c38..199a1eedf223 100644
--- a/include/linux/xilinxfb.h
+++ b/include/linux/xilinxfb.h
@@ -15,9 +15,11 @@
15 15
16/* ML300/403 reference design framebuffer driver platform data struct */ 16/* ML300/403 reference design framebuffer driver platform data struct */
17struct xilinxfb_platform_data { 17struct xilinxfb_platform_data {
18 u32 rotate_screen; 18 u32 rotate_screen; /* Flag to rotate display 180 degrees */
19 u32 screen_height_mm; 19 u32 screen_height_mm; /* Physical dimentions of screen in mm */
20 u32 screen_width_mm; 20 u32 screen_width_mm;
21 u32 xres, yres; /* resolution of screen in pixels */
22 u32 xvirt, yvirt; /* resolution of memory buffer */
21}; 23};
22 24
23#endif /* __XILINXFB_H__ */ 25#endif /* __XILINXFB_H__ */