diff options
Diffstat (limited to 'arch/powerpc/sysdev/fsl_soc.h')
-rw-r--r-- | arch/powerpc/sysdev/fsl_soc.h | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/arch/powerpc/sysdev/fsl_soc.h b/arch/powerpc/sysdev/fsl_soc.h index 2ece02beb8ff..c6d00736f07f 100644 --- a/arch/powerpc/sysdev/fsl_soc.h +++ b/arch/powerpc/sysdev/fsl_soc.h | |||
@@ -22,15 +22,24 @@ struct device_node; | |||
22 | extern void fsl_rstcr_restart(char *cmd); | 22 | extern void fsl_rstcr_restart(char *cmd); |
23 | 23 | ||
24 | #if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE) | 24 | #if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE) |
25 | |||
26 | /* The different ports that the DIU can be connected to */ | ||
27 | enum fsl_diu_monitor_port { | ||
28 | FSL_DIU_PORT_DVI, /* DVI */ | ||
29 | FSL_DIU_PORT_LVDS, /* Single-link LVDS */ | ||
30 | FSL_DIU_PORT_DLVDS /* Dual-link LVDS */ | ||
31 | }; | ||
32 | |||
25 | struct platform_diu_data_ops { | 33 | struct platform_diu_data_ops { |
26 | unsigned int (*get_pixel_format) (unsigned int bits_per_pixel, | 34 | u32 (*get_pixel_format)(enum fsl_diu_monitor_port port, |
27 | int monitor_port); | 35 | unsigned int bpp); |
28 | void (*set_gamma_table) (int monitor_port, char *gamma_table_base); | 36 | void (*set_gamma_table)(enum fsl_diu_monitor_port port, |
29 | void (*set_monitor_port) (int monitor_port); | 37 | char *gamma_table_base); |
30 | void (*set_pixel_clock) (unsigned int pixclock); | 38 | void (*set_monitor_port)(enum fsl_diu_monitor_port port); |
31 | ssize_t (*show_monitor_port) (int monitor_port, char *buf); | 39 | void (*set_pixel_clock)(unsigned int pixclock); |
32 | int (*set_sysfs_monitor_port) (int val); | 40 | enum fsl_diu_monitor_port (*valid_monitor_port) |
33 | void (*release_bootmem) (void); | 41 | (enum fsl_diu_monitor_port port); |
42 | void (*release_bootmem)(void); | ||
34 | }; | 43 | }; |
35 | 44 | ||
36 | extern struct platform_diu_data_ops diu_ops; | 45 | extern struct platform_diu_data_ops diu_ops; |