diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-06-21 02:34:30 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-07-01 05:07:13 -0400 |
commit | 3c07cae2cccc4e40ff66521701a3c8eeda8726e1 (patch) | |
tree | c9f1b652db85bdbfbb435355009742200ca3753d /include/video | |
parent | 4df9d104d5bbe356b26bcf221d61f92f1948850e (diff) |
OMAP: DSS2: Add Color Phase Rotation support
Add Color Phase Rotation (CPR) support and sysfs files to enable CPR and
to set the CPR coefficient matrix.
CPR is enabled via manager?/cpr_enable file, and the coefficient matrix
is set via manager?/cpr_coef file. The values in cpr_coef are in the
following order:
RR RG RB GR GG GB BR BG BB
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/omapdss.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/video/omapdss.h b/include/video/omapdss.h index 388577d10ab8..c804bda059d5 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h | |||
@@ -292,6 +292,12 @@ extern const struct omap_video_timings omap_dss_pal_timings; | |||
292 | extern const struct omap_video_timings omap_dss_ntsc_timings; | 292 | extern const struct omap_video_timings omap_dss_ntsc_timings; |
293 | #endif | 293 | #endif |
294 | 294 | ||
295 | struct omap_dss_cpr_coefs { | ||
296 | s16 rr, rg, rb; | ||
297 | s16 gr, gg, gb; | ||
298 | s16 br, bg, bb; | ||
299 | }; | ||
300 | |||
295 | struct omap_overlay_info { | 301 | struct omap_overlay_info { |
296 | bool enabled; | 302 | bool enabled; |
297 | 303 | ||
@@ -351,6 +357,9 @@ struct omap_overlay_manager_info { | |||
351 | bool trans_enabled; | 357 | bool trans_enabled; |
352 | 358 | ||
353 | bool alpha_enabled; | 359 | bool alpha_enabled; |
360 | |||
361 | bool cpr_enable; | ||
362 | struct omap_dss_cpr_coefs cpr_coefs; | ||
354 | }; | 363 | }; |
355 | 364 | ||
356 | struct omap_overlay_manager { | 365 | struct omap_overlay_manager { |