diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 12:35:27 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 12:35:27 -0400 |
| commit | 8127b39e700f965a60fca443d23f3e171bf7c3a9 (patch) | |
| tree | 435e3e4b640cb6e0c2428d2d84bfde39304be5ed /include/linux/platform_data | |
| parent | 96a3e8af5a54c324535472ca946215d5bafe6539 (diff) | |
| parent | 9bf9d47a29afbf7a43eae74a988a4aefe88ccbfd (diff) | |
Merge tag 'fbdev-for-3.10' of git://gitorious.org/linux-omap-dss2/linux
Pull fbdev updates from Tomi Valkeinen:
- use vm_iomap_memory() in various fb drivers to map the fb memory to
userspace
- Cleanups for the videomode and display_timing features
- Updates to vt8500, wm8505 and auo-k190x fb drivers
* tag 'fbdev-for-3.10' of git://gitorious.org/linux-omap-dss2/linux: (36 commits)
fbdev: fix check for fb_mmap's mmio availability
fbdev: improve fb_mmap bounds checks
fbdev/ps3fb: use vm_iomap_memory()
fbdev/sgivwfb: use vm_iomap_memory()
fbdev/vermillion: use vm_iomap_memory()
fbdev/sa1100fb: use vm_iomap_memory()
fbdev/fb-puv3: use vm_iomap_memory()
fbdev/controlfb: use vm_iomap_memory()
fbdev/omapfb: use vm_iomap_memory()
video: vt8500: fix Kconfig for videomode
video/s3c: move platform_data out of arch/arm
video/exynos: remove unnecessary header inclusions
drivers/video: fsl-diu-fb: add hardware cursor support
drivers: video: use module_platform_driver_probe()
ARM: OMAP: remove "config FB_OMAP_CONSISTENT_DMA_SIZE"
video: wm8505fb: Convert to devm_ioremap_resource()
AUO-K190x: Add resolutions for portrait displays
AUO-K190x: add framebuffer rotation support
AUO-K190x: add a 16bit truecolor mode
AUO-K190x: make color handling more flexible
...
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/video-vt8500lcdfb.h | 31 | ||||
| -rw-r--r-- | include/linux/platform_data/video_s3c.h | 54 |
2 files changed, 54 insertions, 31 deletions
diff --git a/include/linux/platform_data/video-vt8500lcdfb.h b/include/linux/platform_data/video-vt8500lcdfb.h deleted file mode 100644 index 7f399c370fe0..000000000000 --- a/include/linux/platform_data/video-vt8500lcdfb.h +++ /dev/null | |||
| @@ -1,31 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * VT8500/WM8505 Frame Buffer platform data definitions | ||
| 3 | * | ||
| 4 | * Copyright (C) 2010 Ed Spiridonov <edo.rus@gmail.com> | ||
| 5 | * | ||
| 6 | * This software is licensed under the terms of the GNU General Public | ||
| 7 | * License version 2, as published by the Free Software Foundation, and | ||
| 8 | * may be copied, distributed, and modified under those terms. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | */ | ||
| 15 | |||
| 16 | #ifndef _VT8500FB_H | ||
| 17 | #define _VT8500FB_H | ||
| 18 | |||
| 19 | #include <linux/fb.h> | ||
| 20 | |||
| 21 | struct vt8500fb_platform_data { | ||
| 22 | struct fb_videomode mode; | ||
| 23 | u32 xres_virtual; | ||
| 24 | u32 yres_virtual; | ||
| 25 | u32 bpp; | ||
| 26 | unsigned long video_mem_phys; | ||
| 27 | void *video_mem_virt; | ||
| 28 | unsigned long video_mem_len; | ||
| 29 | }; | ||
| 30 | |||
| 31 | #endif /* _VT8500FB_H */ | ||
diff --git a/include/linux/platform_data/video_s3c.h b/include/linux/platform_data/video_s3c.h new file mode 100644 index 000000000000..48883995f47f --- /dev/null +++ b/include/linux/platform_data/video_s3c.h | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | #ifndef __PLATFORM_DATA_VIDEO_S3C | ||
| 2 | #define __PLATFORM_DATA_VIDEO_S3C | ||
| 3 | |||
| 4 | /* S3C_FB_MAX_WIN | ||
| 5 | * Set to the maximum number of windows that any of the supported hardware | ||
| 6 | * can use. Since the platform data uses this for an array size, having it | ||
| 7 | * set to the maximum of any version of the hardware can do is safe. | ||
| 8 | */ | ||
| 9 | #define S3C_FB_MAX_WIN (5) | ||
| 10 | |||
| 11 | /** | ||
| 12 | * struct s3c_fb_pd_win - per window setup data | ||
| 13 | * @xres : The window X size. | ||
| 14 | * @yres : The window Y size. | ||
| 15 | * @virtual_x: The virtual X size. | ||
| 16 | * @virtual_y: The virtual Y size. | ||
| 17 | */ | ||
| 18 | struct s3c_fb_pd_win { | ||
| 19 | unsigned short default_bpp; | ||
| 20 | unsigned short max_bpp; | ||
| 21 | unsigned short xres; | ||
| 22 | unsigned short yres; | ||
| 23 | unsigned short virtual_x; | ||
| 24 | unsigned short virtual_y; | ||
| 25 | }; | ||
| 26 | |||
| 27 | /** | ||
| 28 | * struct s3c_fb_platdata - S3C driver platform specific information | ||
| 29 | * @setup_gpio: Setup the external GPIO pins to the right state to transfer | ||
| 30 | * the data from the display system to the connected display | ||
| 31 | * device. | ||
| 32 | * @vidcon0: The base vidcon0 values to control the panel data format. | ||
| 33 | * @vidcon1: The base vidcon1 values to control the panel data output. | ||
| 34 | * @vtiming: Video timing when connected to a RGB type panel. | ||
| 35 | * @win: The setup data for each hardware window, or NULL for unused. | ||
| 36 | * @display_mode: The LCD output display mode. | ||
| 37 | * | ||
| 38 | * The platform data supplies the video driver with all the information | ||
| 39 | * it requires to work with the display(s) attached to the machine. It | ||
| 40 | * controls the initial mode, the number of display windows (0 is always | ||
| 41 | * the base framebuffer) that are initialised etc. | ||
| 42 | * | ||
| 43 | */ | ||
| 44 | struct s3c_fb_platdata { | ||
| 45 | void (*setup_gpio)(void); | ||
| 46 | |||
| 47 | struct s3c_fb_pd_win *win[S3C_FB_MAX_WIN]; | ||
| 48 | struct fb_videomode *vtiming; | ||
| 49 | |||
| 50 | u32 vidcon0; | ||
| 51 | u32 vidcon1; | ||
| 52 | }; | ||
| 53 | |||
| 54 | #endif | ||
