[ARM] 3848/1: pxafb: Add option of fixing video modes and spitz QVGA mode support
Add the ability to have pxafb use only certain fixed video modes (selected on a per platform basis). This is useful on production hardware such as the Zaurus cxx00 models where the valid modes are known in advance and any other modes could result in hardware damage. Following this, add support for the cxx00 QVGA mode. Mode information is passed to the lcd_power call to allowing the panel drivers to configure the display hardware accordingly (corgi_lcd already contains the functionality for the cxx00 panel). This mirrors the setup already used by w100fb. Signed-off-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
committed by
Russell King
parent
c5d311c7e9
commit
d14b272bc6
@@ -12,12 +12,14 @@
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#include <linux/fb.h>
|
||||
|
||||
/*
|
||||
* This structure describes the machine which we are running on.
|
||||
* It is set in linux/arch/arm/mach-pxa/machine_name.c and used in the probe routine
|
||||
* of linux/drivers/video/pxafb.c
|
||||
*/
|
||||
struct pxafb_mach_info {
|
||||
struct pxafb_mode_info {
|
||||
u_long pixclock;
|
||||
|
||||
u_short xres;
|
||||
@@ -34,6 +36,14 @@ struct pxafb_mach_info {
|
||||
u_char sync;
|
||||
|
||||
u_int cmap_greyscale:1,
|
||||
unused:31;
|
||||
};
|
||||
|
||||
struct pxafb_mach_info {
|
||||
struct pxafb_mode_info *modes;
|
||||
unsigned int num_modes;
|
||||
|
||||
u_int fixed_modes:1,
|
||||
cmap_inverse:1,
|
||||
cmap_static:1,
|
||||
unused:29;
|
||||
@@ -62,7 +72,7 @@ struct pxafb_mach_info {
|
||||
u_int lccr3;
|
||||
|
||||
void (*pxafb_backlight_power)(int);
|
||||
void (*pxafb_lcd_power)(int);
|
||||
void (*pxafb_lcd_power)(int, struct fb_var_screeninfo *);
|
||||
|
||||
};
|
||||
void set_pxa_fb_info(struct pxafb_mach_info *hard_pxa_fb_info);
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
#define __ASM_ARCH_SPITZ_H 1
|
||||
#endif
|
||||
|
||||
#include <linux/fb.h>
|
||||
|
||||
/* Spitz/Akita GPIOs */
|
||||
|
||||
#define SPITZ_GPIO_KEY_INT (0) /* Key Interrupt */
|
||||
@@ -155,4 +157,4 @@ extern struct platform_device spitzscoop2_device;
|
||||
extern struct platform_device spitzssp_device;
|
||||
extern struct sharpsl_charger_machinfo spitz_pm_machinfo;
|
||||
|
||||
extern void spitz_lcd_power(int on);
|
||||
extern void spitz_lcd_power(int on, struct fb_var_screeninfo *var);
|
||||
|
||||
Reference in New Issue
Block a user