summaryrefslogtreecommitdiff
path: root/include/video
diff options
context:
space:
mode:
authorKevin Huang <kevinh@nvidia.com>2013-02-19 15:25:58 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:01:09 -0700
commite239c2db8413a4a7299a3f4d4e8b24bd0b34ce3c (patch)
treed16b3c3055b1fa264d533c6dbd26d0cbef1e6d3a /include/video
parent4a7584d29c046a252e72744466c5b9ec27deb890 (diff)
video: tegra: dc: support cmu read in ioctl.
Added two interfaces for cmu read. In kernel, the initial cmu values derive from either default cmu table (identical mapping) or the board file. TEGRA_DC_EXT_GET_CMU returns the cached cmu values which are the same as hw values. TEGRA_DC_EXT_GET_CUSTOM_CMU returns the cmu custom values if they are set in board file; otherwise return error. Notice for TEGRA_DC_EXT_GET_CMU, in the case cmu is off by default, we don't write cmu registers. So it returns zeros unless it is enabled. Bug 1221681 Change-Id: Ie976700b9d1f073e84d83fbdb2f25ecb5d7149db Signed-off-by: Kevin Huang <kevinh@nvidia.com> Reviewed-on: http://git-master/r/202202 Reviewed-by: Harshada Kale <hkale@nvidia.com> Tested-by: Harshada Kale <hkale@nvidia.com>
Diffstat (limited to 'include/video')
-rw-r--r--include/video/tegra_dc_ext.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/video/tegra_dc_ext.h b/include/video/tegra_dc_ext.h
index e42537d378ca..05ad5d97ab3b 100644
--- a/include/video/tegra_dc_ext.h
+++ b/include/video/tegra_dc_ext.h
@@ -288,6 +288,11 @@ struct tegra_dc_ext_feature {
#define TEGRA_DC_EXT_FLIP2 \
_IOWR('D', 0x0E, struct tegra_dc_ext_flip_2)
+#define TEGRA_DC_EXT_GET_CMU \
+ _IOR('D', 0x0F, struct tegra_dc_ext_cmu)
+
+#define TEGRA_DC_EXT_GET_CUSTOM_CMU \
+ _IOR('D', 0x10, struct tegra_dc_ext_cmu)
enum tegra_dc_ext_control_output_type {
TEGRA_DC_EXT_DSI,