![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 #ifndef __PLATFORM_DATA_VIDEO_S3C 0003 #define __PLATFORM_DATA_VIDEO_S3C 0004 0005 /* S3C_FB_MAX_WIN 0006 * Set to the maximum number of windows that any of the supported hardware 0007 * can use. Since the platform data uses this for an array size, having it 0008 * set to the maximum of any version of the hardware can do is safe. 0009 */ 0010 #define S3C_FB_MAX_WIN (5) 0011 0012 /** 0013 * struct s3c_fb_pd_win - per window setup data 0014 * @xres : The window X size. 0015 * @yres : The window Y size. 0016 * @virtual_x: The virtual X size. 0017 * @virtual_y: The virtual Y size. 0018 */ 0019 struct s3c_fb_pd_win { 0020 unsigned short default_bpp; 0021 unsigned short max_bpp; 0022 unsigned short xres; 0023 unsigned short yres; 0024 unsigned short virtual_x; 0025 unsigned short virtual_y; 0026 }; 0027 0028 /** 0029 * struct s3c_fb_platdata - S3C driver platform specific information 0030 * @setup_gpio: Setup the external GPIO pins to the right state to transfer 0031 * the data from the display system to the connected display 0032 * device. 0033 * @vidcon0: The base vidcon0 values to control the panel data format. 0034 * @vidcon1: The base vidcon1 values to control the panel data output. 0035 * @vtiming: Video timing when connected to a RGB type panel. 0036 * @win: The setup data for each hardware window, or NULL for unused. 0037 * @display_mode: The LCD output display mode. 0038 * 0039 * The platform data supplies the video driver with all the information 0040 * it requires to work with the display(s) attached to the machine. It 0041 * controls the initial mode, the number of display windows (0 is always 0042 * the base framebuffer) that are initialised etc. 0043 * 0044 */ 0045 struct s3c_fb_platdata { 0046 void (*setup_gpio)(void); 0047 0048 struct s3c_fb_pd_win *win[S3C_FB_MAX_WIN]; 0049 struct fb_videomode *vtiming; 0050 0051 u32 vidcon0; 0052 u32 vidcon1; 0053 }; 0054 0055 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |