diff options
author | David Schalig <dschalig@nvidia.com> | 2011-10-06 20:24:07 +0900 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:49:14 -0800 |
commit | 80225d4761a7afb4ad16cc2a15e5c5ac16283d30 (patch) | |
tree | 2153cc57461ceb3eb0cbab664c67f2b3c3b533c4 /arch/arm/mach-tegra/include/mach/dc.h | |
parent | f8b65fb54494b360a3263cc4176a7f1f47277c45 (diff) |
video: tegra: dc: add ioctl for setting gamma lut
Adds ioctl TEGRA_DC_EXT_SET_LUT to dc_ext driver for setting
a DC window's color palette.
Bug 868060
Change-Id: I57ffcf3a3f91e76efd1c7f1f972b73c2edbaed82
Reviewed-on: http://git-master/r/56392
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Rebase-Id: R712c71151d0c3e3d274279f334bedf312e26e75d
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/dc.h')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/dc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/dc.h b/arch/arm/mach-tegra/include/mach/dc.h index 277c38df4d8c..72d6750d24e7 100644 --- a/arch/arm/mach-tegra/include/mach/dc.h +++ b/arch/arm/mach-tegra/include/mach/dc.h @@ -364,6 +364,13 @@ struct tegra_dc_csc { unsigned short kvb; }; +/* palette lookup table */ +struct tegra_dc_lut { + u8 r[256]; + u8 g[256]; + u8 b[256]; +}; + struct tegra_dc_win { u8 idx; u8 fmt; @@ -394,6 +401,7 @@ struct tegra_dc_win { struct nvmap_handle_ref *cur_handle; unsigned bandwidth; unsigned new_bandwidth; + struct tegra_dc_lut lut; }; @@ -502,6 +510,8 @@ 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); + /* * In order to get a dc's current EDID, first call tegra_dc_get_edid() from an * interruptible context. The returned value (if non-NULL) points to a |