summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/include/mach/fb.h
diff options
context:
space:
mode:
authorErik Gilling <konkers@android.com>2010-07-11 17:06:28 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 01:16:38 -0700
commit9571b5b5af778268b938d2af4243c42a36f29e10 (patch)
tree33d286ea77125d32ba27e911d28a80679e0fc046 /arch/arm/mach-tegra/include/mach/fb.h
parent6bd3f7e3672575a264e1ab00c7766670ea2debee (diff)
video: tegra: add tegra display controller driver
Notable ommisions: * support for anything but lvds panels * inegration with nvhost driver to sync updates with 3D * FB physical geometry is not set * lacks interface to set overlay/window x,y offset v2 changes: * suspend/resume support * move code into drivers/video/tegra/dc * modularize output support * clean register dumping, add debugfs register file * code review feedback * make the display controller register the framebuffer devices Signed-off-by: Erik Gilling <konkers@android.com> Rebase-Id: R60c893ea0a72a178569f24f9471baa6ad618d9f2
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/fb.h')
-rw-r--r--arch/arm/mach-tegra/include/mach/fb.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/fb.h b/arch/arm/mach-tegra/include/mach/fb.h
new file mode 100644
index 000000000000..a8f4013de11c
--- /dev/null
+++ b/arch/arm/mach-tegra/include/mach/fb.h
@@ -0,0 +1,39 @@
+/*
+ * arch/arm/mach-tegra/include/mach/fb.h
+ *
+ * Copyright (C) 2010 Google, Inc.
+ *
+ * Author:
+ * Erik Gilling <konkers@google.com>
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that 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.
+ *
+ */
+
+#ifndef __MACH_TEGRA_FB_H
+#define __MACH_TEGRA_FB_H
+
+#ifdef CONFIG_FB_TEGRA
+struct tegra_fb_info *tegra_fb_register(struct platform_device *pdev, struct tegra_dc *dc,
+ struct tegra_fb_data *fb_data, struct resource *fb_mem);
+void tegra_fb_unregister(struct tegra_fb_info *fb_info);
+#else
+static inline struct tegra_fb_info *tegra_fb_register(struct platform_device *pdev, struct tegra_dc *dc,
+ struct tegra_fb_data *fb_data, struct resource *fb_mem)
+{
+ return NULL;
+}
+
+static inline void tegra_fb_unregister(struct tegra_fb_info *fb_info)
+{
+}
+#endif
+
+#endif