diff options
Diffstat (limited to 'include/asm-arm/arch-pxa')
-rw-r--r-- | include/asm-arm/arch-pxa/pxafb.h | 14 | ||||
-rw-r--r-- | include/asm-arm/arch-pxa/spitz.h | 4 | ||||
-rw-r--r-- | include/asm-arm/arch-pxa/udc.h | 8 |
3 files changed, 23 insertions, 3 deletions
diff --git a/include/asm-arm/arch-pxa/pxafb.h b/include/asm-arm/arch-pxa/pxafb.h index aba9b30f4249..81c3928d608c 100644 --- a/include/asm-arm/arch-pxa/pxafb.h +++ b/include/asm-arm/arch-pxa/pxafb.h | |||
@@ -12,12 +12,14 @@ | |||
12 | * published by the Free Software Foundation. | 12 | * published by the Free Software Foundation. |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <linux/fb.h> | ||
16 | |||
15 | /* | 17 | /* |
16 | * This structure describes the machine which we are running on. | 18 | * This structure describes the machine which we are running on. |
17 | * It is set in linux/arch/arm/mach-pxa/machine_name.c and used in the probe routine | 19 | * It is set in linux/arch/arm/mach-pxa/machine_name.c and used in the probe routine |
18 | * of linux/drivers/video/pxafb.c | 20 | * of linux/drivers/video/pxafb.c |
19 | */ | 21 | */ |
20 | struct pxafb_mach_info { | 22 | struct pxafb_mode_info { |
21 | u_long pixclock; | 23 | u_long pixclock; |
22 | 24 | ||
23 | u_short xres; | 25 | u_short xres; |
@@ -34,6 +36,14 @@ struct pxafb_mach_info { | |||
34 | u_char sync; | 36 | u_char sync; |
35 | 37 | ||
36 | u_int cmap_greyscale:1, | 38 | u_int cmap_greyscale:1, |
39 | unused:31; | ||
40 | }; | ||
41 | |||
42 | struct pxafb_mach_info { | ||
43 | struct pxafb_mode_info *modes; | ||
44 | unsigned int num_modes; | ||
45 | |||
46 | u_int fixed_modes:1, | ||
37 | cmap_inverse:1, | 47 | cmap_inverse:1, |
38 | cmap_static:1, | 48 | cmap_static:1, |
39 | unused:29; | 49 | unused:29; |
@@ -62,7 +72,7 @@ struct pxafb_mach_info { | |||
62 | u_int lccr3; | 72 | u_int lccr3; |
63 | 73 | ||
64 | void (*pxafb_backlight_power)(int); | 74 | void (*pxafb_backlight_power)(int); |
65 | void (*pxafb_lcd_power)(int); | 75 | void (*pxafb_lcd_power)(int, struct fb_var_screeninfo *); |
66 | 76 | ||
67 | }; | 77 | }; |
68 | void set_pxa_fb_info(struct pxafb_mach_info *hard_pxa_fb_info); | 78 | void set_pxa_fb_info(struct pxafb_mach_info *hard_pxa_fb_info); |
diff --git a/include/asm-arm/arch-pxa/spitz.h b/include/asm-arm/arch-pxa/spitz.h index 62e1fe4d025f..4953dd324d4d 100644 --- a/include/asm-arm/arch-pxa/spitz.h +++ b/include/asm-arm/arch-pxa/spitz.h | |||
@@ -15,6 +15,8 @@ | |||
15 | #define __ASM_ARCH_SPITZ_H 1 | 15 | #define __ASM_ARCH_SPITZ_H 1 |
16 | #endif | 16 | #endif |
17 | 17 | ||
18 | #include <linux/fb.h> | ||
19 | |||
18 | /* Spitz/Akita GPIOs */ | 20 | /* Spitz/Akita GPIOs */ |
19 | 21 | ||
20 | #define SPITZ_GPIO_KEY_INT (0) /* Key Interrupt */ | 22 | #define SPITZ_GPIO_KEY_INT (0) /* Key Interrupt */ |
@@ -155,4 +157,4 @@ extern struct platform_device spitzscoop2_device; | |||
155 | extern struct platform_device spitzssp_device; | 157 | extern struct platform_device spitzssp_device; |
156 | extern struct sharpsl_charger_machinfo spitz_pm_machinfo; | 158 | extern struct sharpsl_charger_machinfo spitz_pm_machinfo; |
157 | 159 | ||
158 | extern void spitz_lcd_power(int on); | 160 | extern void spitz_lcd_power(int on, struct fb_var_screeninfo *var); |
diff --git a/include/asm-arm/arch-pxa/udc.h b/include/asm-arm/arch-pxa/udc.h index 30548a30c773..121cd241115d 100644 --- a/include/asm-arm/arch-pxa/udc.h +++ b/include/asm-arm/arch-pxa/udc.h | |||
@@ -12,6 +12,14 @@ struct pxa2xx_udc_mach_info { | |||
12 | void (*udc_command)(int cmd); | 12 | void (*udc_command)(int cmd); |
13 | #define PXA2XX_UDC_CMD_CONNECT 0 /* let host see us */ | 13 | #define PXA2XX_UDC_CMD_CONNECT 0 /* let host see us */ |
14 | #define PXA2XX_UDC_CMD_DISCONNECT 1 /* so host won't see us */ | 14 | #define PXA2XX_UDC_CMD_DISCONNECT 1 /* so host won't see us */ |
15 | |||
16 | /* Boards following the design guidelines in the developer's manual, | ||
17 | * with on-chip GPIOs not Lubbock's wierd hardware, can have a sane | ||
18 | * VBUS IRQ and omit the methods above. Store the GPIO number | ||
19 | * here; for GPIO 0, also mask in one of the pxa_gpio_mode() bits. | ||
20 | */ | ||
21 | u16 gpio_vbus; /* high == vbus present */ | ||
22 | u16 gpio_pullup; /* high == pullup activated */ | ||
15 | }; | 23 | }; |
16 | 24 | ||
17 | extern void pxa_set_udc_info(struct pxa2xx_udc_mach_info *info); | 25 | extern void pxa_set_udc_info(struct pxa2xx_udc_mach_info *info); |