From f064889bba674399ee981762a5ed9ef10c667a60 Mon Sep 17 00:00:00 2001 From: David Schalig Date: Thu, 13 Oct 2011 12:50:14 +0900 Subject: 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 Tested-by: David Schalig Reviewed-by: Jon Mayo Reviewed-by: Robert Morell Rebase-Id: Rf6081a9372ba7d6e53a66b9b58a50a62ad409d9a --- include/video/tegra_dc_ext.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'include/video') diff --git a/include/video/tegra_dc_ext.h b/include/video/tegra_dc_ext.h index 77d4e62d70f6..6c1a4e3e59c6 100644 --- a/include/video/tegra_dc_ext.h +++ b/include/video/tegra_dc_ext.h @@ -180,13 +180,16 @@ struct tegra_dc_ext_csc { */ struct tegra_dc_ext_lut { __u32 win_index; /* window index to set lut for */ + __u32 flags; /* Flag bitmask, see TEGRA_DC_EXT_LUT_FLAGS_* */ __u32 start; /* start index to update lut from */ __u32 len; /* number of valid lut entries */ - __u16* r; /* array of size 16-bit red values */ - __u16* g; /* array of size 16-bit green values */ - __u16* b; /* array of size 16-bit blue values */ + __u16 *r; /* array of 16-bit red values, 0 to reset */ + __u16 *g; /* array of 16-bit green values, 0 to reset */ + __u16 *b; /* array of 16-bit blue values, 0 to reset */ }; +/* tegra_dc_ext_lut.flags - override fb device palette. Default is multiply. */ +#define TEGRA_DC_EXT_LUT_FLAGS_FBOVERRIDE 0x01 #define TEGRA_DC_EXT_FLAGS_ENABLED 1 struct tegra_dc_ext_status { @@ -229,7 +232,7 @@ struct tegra_dc_ext_status { _IOR('D', 0x09, __u32) #define TEGRA_DC_EXT_SET_LUT \ - _IOR('D', 0x0A, struct tegra_dc_ext_lut) + _IOW('D', 0x0A, struct tegra_dc_ext_lut) enum tegra_dc_ext_control_output_type { TEGRA_DC_EXT_DSI, -- cgit v1.2.3