diff options
author | David Schalig <dschalig@nvidia.com> | 2011-10-13 12:50:14 +0900 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:49:23 -0800 |
commit | f064889bba674399ee981762a5ed9ef10c667a60 (patch) | |
tree | d6dea9eeedfac4e1c10d107e9f58dcb1df87ee58 /arch/arm/mach-tegra/include/mach/dc.h | |
parent | 601e1d16240cbe24c6d4fa72c6afacfbde13022e (diff) |
video: tegra: dc: ioctl for setting gamma lut
- enable gamma look-up hardware only when needed to save power
- add flags field to ioctl TEGRA_DC_EXT_SET_LUT for forward compatibility
Bug 868060
Change-Id: I690f8b8856e0b1acd6215907ca8bd78ecaf30b17
Reviewed-on: http://git-master/r/57736
Reviewed-by: David Schalig <dschalig@nvidia.com>
Tested-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Robert Morell <rmorell@nvidia.com>
Rebase-Id: Rf6081a9372ba7d6e53a66b9b58a50a62ad409d9a
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/dc.h')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/dc.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/include/mach/dc.h b/arch/arm/mach-tegra/include/mach/dc.h index 72d6750d24e7..600df748fc56 100644 --- a/arch/arm/mach-tegra/include/mach/dc.h +++ b/arch/arm/mach-tegra/include/mach/dc.h @@ -374,6 +374,7 @@ struct tegra_dc_lut { struct tegra_dc_win { u8 idx; u8 fmt; + u8 ppflags; /* see TEGRA_WIN_PPFLAG* */ u32 flags; void *virt_addr; @@ -404,6 +405,8 @@ struct tegra_dc_win { struct tegra_dc_lut lut; }; +#define TEGRA_WIN_PPFLAG_CP_ENABLE (1 << 0) /* enable RGB color lut */ +#define TEGRA_WIN_PPFLAG_CP_FBOVERRIDE (1 << 1) /* override fbdev color lut */ #define TEGRA_WIN_FLAG_ENABLED (1 << 0) #define TEGRA_WIN_FLAG_BLEND_PREMULT (1 << 1) @@ -414,6 +417,7 @@ struct tegra_dc_win { #define TEGRA_WIN_FLAG_H_FILTER (1 << 6) #define TEGRA_WIN_FLAG_V_FILTER (1 << 7) + #define TEGRA_WIN_BLEND_FLAGS_MASK \ (TEGRA_WIN_FLAG_BLEND_PREMULT | TEGRA_WIN_FLAG_BLEND_COVERAGE) @@ -510,7 +514,7 @@ void tegra_dc_config_pwm(struct tegra_dc *dc, struct tegra_dc_pwm_params *cfg); int tegra_dc_update_csc(struct tegra_dc *dc, int win_index); -int tegra_dc_update_lut(struct tegra_dc *dc, int win_index, int start, int len); +int tegra_dc_update_lut(struct tegra_dc *dc, int win_index, int fboveride); /* * In order to get a dc's current EDID, first call tegra_dc_get_edid() from an |