|
@@ -290,7 +290,7 @@ struct omap_dss_dsi_videomode_timings {
|
|
struct omap_dss_dsi_config {
|
|
struct omap_dss_dsi_config {
|
|
enum omap_dss_dsi_mode mode;
|
|
enum omap_dss_dsi_mode mode;
|
|
enum omap_dss_dsi_pixel_format pixel_format;
|
|
enum omap_dss_dsi_pixel_format pixel_format;
|
|
- const struct omap_video_timings *timings;
|
|
|
|
|
|
+ const struct videomode *timings;
|
|
|
|
|
|
unsigned long hs_clk_min, hs_clk_max;
|
|
unsigned long hs_clk_min, hs_clk_max;
|
|
unsigned long lp_clk_min, lp_clk_max;
|
|
unsigned long lp_clk_min, lp_clk_max;
|
|
@@ -299,35 +299,12 @@ struct omap_dss_dsi_config {
|
|
enum omap_dss_dsi_trans_mode trans_mode;
|
|
enum omap_dss_dsi_trans_mode trans_mode;
|
|
};
|
|
};
|
|
|
|
|
|
-struct omap_video_timings {
|
|
|
|
- /* Unit: pixels */
|
|
|
|
- u32 hactive;
|
|
|
|
- /* Unit: pixels */
|
|
|
|
- u32 vactive;
|
|
|
|
- /* Unit: Hz */
|
|
|
|
- unsigned long pixelclock;
|
|
|
|
- /* Unit: pixel clocks */
|
|
|
|
- u32 hsync_len; /* Horizontal synchronization pulse width */
|
|
|
|
- /* Unit: pixel clocks */
|
|
|
|
- u32 hfront_porch; /* Horizontal front porch */
|
|
|
|
- /* Unit: pixel clocks */
|
|
|
|
- u32 hback_porch; /* Horizontal back porch */
|
|
|
|
- /* Unit: line clocks */
|
|
|
|
- u32 vsync_len; /* Vertical synchronization pulse width */
|
|
|
|
- /* Unit: line clocks */
|
|
|
|
- u32 vfront_porch; /* Vertical front porch */
|
|
|
|
- /* Unit: line clocks */
|
|
|
|
- u32 vback_porch; /* Vertical back porch */
|
|
|
|
-
|
|
|
|
- enum display_flags flags;
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
/* Hardcoded timings for tv modes. Venc only uses these to
|
|
/* Hardcoded timings for tv modes. Venc only uses these to
|
|
* identify the mode, and does not actually use the configs
|
|
* identify the mode, and does not actually use the configs
|
|
* itself. However, the configs should be something that
|
|
* itself. However, the configs should be something that
|
|
* a normal monitor can also show */
|
|
* a normal monitor can also show */
|
|
-extern const struct omap_video_timings omap_dss_pal_timings;
|
|
|
|
-extern const struct omap_video_timings omap_dss_ntsc_timings;
|
|
|
|
|
|
+extern const struct videomode omap_dss_pal_timings;
|
|
|
|
+extern const struct videomode omap_dss_ntsc_timings;
|
|
|
|
|
|
struct omap_dss_cpr_coefs {
|
|
struct omap_dss_cpr_coefs {
|
|
s16 rr, rg, rb;
|
|
s16 rr, rg, rb;
|
|
@@ -489,11 +466,11 @@ struct omapdss_dpi_ops {
|
|
void (*disable)(struct omap_dss_device *dssdev);
|
|
void (*disable)(struct omap_dss_device *dssdev);
|
|
|
|
|
|
int (*check_timings)(struct omap_dss_device *dssdev,
|
|
int (*check_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
void (*set_timings)(struct omap_dss_device *dssdev,
|
|
void (*set_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
void (*get_timings)(struct omap_dss_device *dssdev,
|
|
void (*get_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
|
|
|
|
void (*set_data_lines)(struct omap_dss_device *dssdev, int data_lines);
|
|
void (*set_data_lines)(struct omap_dss_device *dssdev, int data_lines);
|
|
};
|
|
};
|
|
@@ -508,11 +485,11 @@ struct omapdss_sdi_ops {
|
|
void (*disable)(struct omap_dss_device *dssdev);
|
|
void (*disable)(struct omap_dss_device *dssdev);
|
|
|
|
|
|
int (*check_timings)(struct omap_dss_device *dssdev,
|
|
int (*check_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
void (*set_timings)(struct omap_dss_device *dssdev,
|
|
void (*set_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
void (*get_timings)(struct omap_dss_device *dssdev,
|
|
void (*get_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
|
|
|
|
void (*set_datapairs)(struct omap_dss_device *dssdev, int datapairs);
|
|
void (*set_datapairs)(struct omap_dss_device *dssdev, int datapairs);
|
|
};
|
|
};
|
|
@@ -527,11 +504,11 @@ struct omapdss_dvi_ops {
|
|
void (*disable)(struct omap_dss_device *dssdev);
|
|
void (*disable)(struct omap_dss_device *dssdev);
|
|
|
|
|
|
int (*check_timings)(struct omap_dss_device *dssdev,
|
|
int (*check_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
void (*set_timings)(struct omap_dss_device *dssdev,
|
|
void (*set_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
void (*get_timings)(struct omap_dss_device *dssdev,
|
|
void (*get_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
};
|
|
};
|
|
|
|
|
|
struct omapdss_atv_ops {
|
|
struct omapdss_atv_ops {
|
|
@@ -544,11 +521,11 @@ struct omapdss_atv_ops {
|
|
void (*disable)(struct omap_dss_device *dssdev);
|
|
void (*disable)(struct omap_dss_device *dssdev);
|
|
|
|
|
|
int (*check_timings)(struct omap_dss_device *dssdev,
|
|
int (*check_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
void (*set_timings)(struct omap_dss_device *dssdev,
|
|
void (*set_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
void (*get_timings)(struct omap_dss_device *dssdev,
|
|
void (*get_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
|
|
|
|
void (*set_type)(struct omap_dss_device *dssdev,
|
|
void (*set_type)(struct omap_dss_device *dssdev,
|
|
enum omap_dss_venc_type type);
|
|
enum omap_dss_venc_type type);
|
|
@@ -569,11 +546,11 @@ struct omapdss_hdmi_ops {
|
|
void (*disable)(struct omap_dss_device *dssdev);
|
|
void (*disable)(struct omap_dss_device *dssdev);
|
|
|
|
|
|
int (*check_timings)(struct omap_dss_device *dssdev,
|
|
int (*check_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
void (*set_timings)(struct omap_dss_device *dssdev,
|
|
void (*set_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
void (*get_timings)(struct omap_dss_device *dssdev,
|
|
void (*get_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
|
|
|
|
int (*read_edid)(struct omap_dss_device *dssdev, u8 *buf, int len);
|
|
int (*read_edid)(struct omap_dss_device *dssdev, u8 *buf, int len);
|
|
bool (*detect)(struct omap_dss_device *dssdev);
|
|
bool (*detect)(struct omap_dss_device *dssdev);
|
|
@@ -679,7 +656,7 @@ struct omap_dss_device {
|
|
} phy;
|
|
} phy;
|
|
|
|
|
|
struct {
|
|
struct {
|
|
- struct omap_video_timings timings;
|
|
|
|
|
|
+ struct videomode timings;
|
|
|
|
|
|
enum omap_dss_dsi_pixel_format dsi_pix_fmt;
|
|
enum omap_dss_dsi_pixel_format dsi_pix_fmt;
|
|
enum omap_dss_dsi_mode dsi_mode;
|
|
enum omap_dss_dsi_mode dsi_mode;
|
|
@@ -772,11 +749,11 @@ struct omap_dss_driver {
|
|
int (*get_recommended_bpp)(struct omap_dss_device *dssdev);
|
|
int (*get_recommended_bpp)(struct omap_dss_device *dssdev);
|
|
|
|
|
|
int (*check_timings)(struct omap_dss_device *dssdev,
|
|
int (*check_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
void (*set_timings)(struct omap_dss_device *dssdev,
|
|
void (*set_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
void (*get_timings)(struct omap_dss_device *dssdev,
|
|
void (*get_timings)(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
|
|
|
|
int (*set_wss)(struct omap_dss_device *dssdev, u32 wss);
|
|
int (*set_wss)(struct omap_dss_device *dssdev, u32 wss);
|
|
u32 (*get_wss)(struct omap_dss_device *dssdev);
|
|
u32 (*get_wss)(struct omap_dss_device *dssdev);
|
|
@@ -806,11 +783,6 @@ struct omap_dss_device *omap_dss_find_device(void *data,
|
|
int (*match)(struct omap_dss_device *dssdev, void *data));
|
|
int (*match)(struct omap_dss_device *dssdev, void *data));
|
|
const char *omapdss_get_default_display_name(void);
|
|
const char *omapdss_get_default_display_name(void);
|
|
|
|
|
|
-void videomode_to_omap_video_timings(const struct videomode *vm,
|
|
|
|
- struct omap_video_timings *ovt);
|
|
|
|
-void omap_video_timings_to_videomode(const struct omap_video_timings *ovt,
|
|
|
|
- struct videomode *vm);
|
|
|
|
-
|
|
|
|
int dss_feat_get_num_mgrs(void);
|
|
int dss_feat_get_num_mgrs(void);
|
|
int dss_feat_get_num_ovls(void);
|
|
int dss_feat_get_num_ovls(void);
|
|
enum omap_color_mode dss_feat_get_supported_color_modes(enum omap_plane plane);
|
|
enum omap_color_mode dss_feat_get_supported_color_modes(enum omap_plane plane);
|
|
@@ -839,7 +811,7 @@ void omapdss_default_get_resolution(struct omap_dss_device *dssdev,
|
|
u16 *xres, u16 *yres);
|
|
u16 *xres, u16 *yres);
|
|
int omapdss_default_get_recommended_bpp(struct omap_dss_device *dssdev);
|
|
int omapdss_default_get_recommended_bpp(struct omap_dss_device *dssdev);
|
|
void omapdss_default_get_timings(struct omap_dss_device *dssdev,
|
|
void omapdss_default_get_timings(struct omap_dss_device *dssdev,
|
|
- struct omap_video_timings *timings);
|
|
|
|
|
|
+ struct videomode *timings);
|
|
|
|
|
|
typedef void (*omap_dispc_isr_t) (void *arg, u32 mask);
|
|
typedef void (*omap_dispc_isr_t) (void *arg, u32 mask);
|
|
int omap_dispc_register_isr(omap_dispc_isr_t isr, void *arg, u32 mask);
|
|
int omap_dispc_register_isr(omap_dispc_isr_t isr, void *arg, u32 mask);
|
|
@@ -893,7 +865,7 @@ void dispc_mgr_go(enum omap_channel channel);
|
|
void dispc_mgr_set_lcd_config(enum omap_channel channel,
|
|
void dispc_mgr_set_lcd_config(enum omap_channel channel,
|
|
const struct dss_lcd_mgr_config *config);
|
|
const struct dss_lcd_mgr_config *config);
|
|
void dispc_mgr_set_timings(enum omap_channel channel,
|
|
void dispc_mgr_set_timings(enum omap_channel channel,
|
|
- const struct omap_video_timings *timings);
|
|
|
|
|
|
+ const struct videomode *timings);
|
|
void dispc_mgr_setup(enum omap_channel channel,
|
|
void dispc_mgr_setup(enum omap_channel channel,
|
|
const struct omap_overlay_manager_info *info);
|
|
const struct omap_overlay_manager_info *info);
|
|
u32 dispc_mgr_gamma_size(enum omap_channel channel);
|
|
u32 dispc_mgr_gamma_size(enum omap_channel channel);
|
|
@@ -906,7 +878,7 @@ bool dispc_ovl_enabled(enum omap_plane plane);
|
|
void dispc_ovl_set_channel_out(enum omap_plane plane,
|
|
void dispc_ovl_set_channel_out(enum omap_plane plane,
|
|
enum omap_channel channel);
|
|
enum omap_channel channel);
|
|
int dispc_ovl_setup(enum omap_plane plane, const struct omap_overlay_info *oi,
|
|
int dispc_ovl_setup(enum omap_plane plane, const struct omap_overlay_info *oi,
|
|
- bool replication, const struct omap_video_timings *mgr_timings,
|
|
|
|
|
|
+ bool replication, const struct videomode *mgr_timings,
|
|
bool mem_to_mem);
|
|
bool mem_to_mem);
|
|
|
|
|
|
enum omap_dss_output_id dispc_mgr_get_supported_outputs(enum omap_channel channel);
|
|
enum omap_dss_output_id dispc_mgr_get_supported_outputs(enum omap_channel channel);
|
|
@@ -921,7 +893,7 @@ struct dss_mgr_ops {
|
|
int (*enable)(enum omap_channel channel);
|
|
int (*enable)(enum omap_channel channel);
|
|
void (*disable)(enum omap_channel channel);
|
|
void (*disable)(enum omap_channel channel);
|
|
void (*set_timings)(enum omap_channel channel,
|
|
void (*set_timings)(enum omap_channel channel,
|
|
- const struct omap_video_timings *timings);
|
|
|
|
|
|
+ const struct videomode *timings);
|
|
void (*set_lcd_config)(enum omap_channel channel,
|
|
void (*set_lcd_config)(enum omap_channel channel,
|
|
const struct dss_lcd_mgr_config *config);
|
|
const struct dss_lcd_mgr_config *config);
|
|
int (*register_framedone_handler)(enum omap_channel channel,
|
|
int (*register_framedone_handler)(enum omap_channel channel,
|
|
@@ -938,7 +910,7 @@ int dss_mgr_connect(enum omap_channel channel,
|
|
void dss_mgr_disconnect(enum omap_channel channel,
|
|
void dss_mgr_disconnect(enum omap_channel channel,
|
|
struct omap_dss_device *dst);
|
|
struct omap_dss_device *dst);
|
|
void dss_mgr_set_timings(enum omap_channel channel,
|
|
void dss_mgr_set_timings(enum omap_channel channel,
|
|
- const struct omap_video_timings *timings);
|
|
|
|
|
|
+ const struct videomode *timings);
|
|
void dss_mgr_set_lcd_config(enum omap_channel channel,
|
|
void dss_mgr_set_lcd_config(enum omap_channel channel,
|
|
const struct dss_lcd_mgr_config *config);
|
|
const struct dss_lcd_mgr_config *config);
|
|
int dss_mgr_enable(enum omap_channel channel);
|
|
int dss_mgr_enable(enum omap_channel channel);
|