diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2007-10-11 04:31:51 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-10-12 14:05:17 +1000 |
commit | b4d6a7268fc754eefb196cabc0ccfa2e97022af2 (patch) | |
tree | 406af23412b9a984b91804c9ca956c8f3dda0a22 /include | |
parent | 01ba1e9d26fcd29f3ad4f3a5bcf40c0fbc40ee81 (diff) | |
download | lwn-b4d6a7268fc754eefb196cabc0ccfa2e97022af2.tar.gz lwn-b4d6a7268fc754eefb196cabc0ccfa2e97022af2.zip |
[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')
-rw-r--r-- | include/linux/xilinxfb.h | 6 |
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 @@ /* ML300/403 reference design framebuffer driver platform data struct */ struct xilinxfb_platform_data { - u32 rotate_screen; - u32 screen_height_mm; + u32 rotate_screen; /* Flag to rotate display 180 degrees */ + u32 screen_height_mm; /* Physical dimentions of screen in mm */ u32 screen_width_mm; + u32 xres, yres; /* resolution of screen in pixels */ + u32 xvirt, yvirt; /* resolution of memory buffer */ }; #endif /* __XILINXFB_H__ */ |