summaryrefslogtreecommitdiff
path: root/include/dt-bindings
diff options
context:
space:
mode:
authorMin-wuk Lee <mlee@nvidia.com>2014-02-14 10:55:15 +0900
committerMin-wuk Lee <mlee@nvidia.com>2014-02-20 18:00:29 -0800
commit2564cf73de0075a3ed8c2d74223ffe02dd9b0c94 (patch)
tree9124742f60f6f0dab236ddc7f46e7fd8a81c9a67 /include/dt-bindings
parent99e134ae9eb37e2ec6a16701303d508cb97bddbf (diff)
arm: dts: prepare tegra dc macros
Since the device tree macro is supported, add tegra dc macros to improve the readability of device tree source for display system. Bug 1371533 Change-Id: If36707f9589055aac61e3769add76663b4307f69 Signed-off-by: Min-wuk Lee <mlee@nvidia.com> Reviewed-on: http://git-master/r/367473 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Animesh Kishore <ankishore@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'include/dt-bindings')
-rw-r--r--include/dt-bindings/display/tegra-dc.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/include/dt-bindings/display/tegra-dc.h b/include/dt-bindings/display/tegra-dc.h
new file mode 100644
index 000000000000..6f5c316dba15
--- /dev/null
+++ b/include/dt-bindings/display/tegra-dc.h
@@ -0,0 +1,75 @@
+/*
+ * include/dt-bindings/display/tegra-dc.h
+ *
+ * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __TEGRA_DC_H
+#define __TEGRA_DC_H
+
+/* tegra_dc_out.type */
+#define TEGRA_DC_OUT_RGB 0
+#define TEGRA_DC_OUT_HDMI 1
+#define TEGRA_DC_OUT_DSI 2
+#define TEGRA_DC_OUT_DP 3
+#define TEGRA_DC_OUT_LVDS 4
+#define TEGRA_DC_OUT_NVSR_DP 5
+
+/* tegra_dc_out.dither */
+#define TEGRA_DC_UNDEFINED_DITHER 0
+#define TEGRA_DC_DISABLE_DITHER 1
+#define TEGRA_DC_ORDERED_DITHER 2
+#define TEGRA_DC_ERRDIFF_DITHER 3
+#define TEGRA_DC_TEMPORAL_DITHER 4
+
+/* bits for tegra_dc_out.flags */
+#define TEGRA_DC_OUT_HOTPLUG_HIGH (0 << 1)
+#define TEGRA_DC_OUT_HOTPLUG_LOW (1 << 1)
+#define TEGRA_DC_OUT_NVHDCP_POLICY_ALWAYS_ON (0 << 2)
+#define TEGRA_DC_OUT_NVHDCP_POLICY_ON_DEMAND (1 << 2)
+#define TEGRA_DC_OUT_CONTINUOUS_MODE (0 << 3)
+#define TEGRA_DC_OUT_ONE_SHOT_MODE (1 << 3)
+#define TEGRA_DC_OUT_N_SHOT_MODE (1 << 4)
+#define TEGRA_DC_OUT_ONE_SHOT_LP_MODE (1 << 5)
+#define TEGRA_DC_OUT_INITIALIZED_MODE (1 << 6)
+/* Makes hotplug GPIO a LP0 wakeup source */
+#define TEGRA_DC_OUT_HOTPLUG_WAKE_LP0 (1 << 7)
+
+/* tegra_dc_out.align */
+#define TEGRA_DC_ALIGN_MSB 0
+#define TEGRA_DC_ALIGN_LSB 1
+
+/* tegra_dc_out.order */
+#define TEGRA_DC_ORDER_RED_BLUE 0
+#define TEGRA_DC_ORDER_BLUE_RED 1
+
+/* tegra_fb_data.flags */
+#define TEGRA_FB_FLIP_ON_PROBE (1 << 0)
+
+/* tegra_dc_platform_data.flags */
+#define TEGRA_DC_FLAG_ENABLED (1 << 0)
+
+/* tegra_dc_out_pin.name */
+#define TEGRA_DC_OUT_PIN_DATA_ENABLE 0
+#define TEGRA_DC_OUT_PIN_H_SYNC 1
+#define TEGRA_DC_OUT_PIN_V_SYNC 2
+#define TEGRA_DC_OUT_PIN_PIXEL_CLOCK 3
+
+/* tegra_dc_out_pin.pol */
+#define TEGRA_DC_OUT_PIN_POL_LOW 0
+#define TEGRA_DC_OUT_PIN_POL_HIGH 1
+
+#endif /* __TEGRA_DC_H */
+