[PATCH 13/23] add new dispaly mode, such as extended mode, dualview, clone mode
Brad Figg
brad.figg at canonical.com
Thu Aug 27 23:20:53 UTC 2009
From: Green Wan <gwan at marvell.com>
Signed-off-by: Green Wan <gwan at marvell.com>
Signed-off-by: Saeed Bishara <saeed at marvell.com>
Signed-off-by: Brad Figg <brad.figg at canonical.com>
---
include/video/dovefb_display.h | 56 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 56 insertions(+), 0 deletions(-)
create mode 100644 include/video/dovefb_display.h
diff --git a/include/video/dovefb_display.h b/include/video/dovefb_display.h
new file mode 100644
index 0000000..d70f6f1
--- /dev/null
+++ b/include/video/dovefb_display.h
@@ -0,0 +1,56 @@
+/*
+ * linux/include/video/dovefb_display.h -- Marvell display configuration driver
+ *
+ * Copyright (C) Marvell Semiconductor Company. All rights reserved.
+ *
+ * Written by Green Wan <gwan at marvell.com>
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file COPYING in the main directory of this archive for
+ * more details.
+ */
+#ifndef _DOVEDISPLAY_H_
+#define _DOVEDISPLAY_H_
+
+#include <linux/fb.h>
+#include <video/dovedcon.h>
+#include <video/dovefb.h>
+#include <video/dovefbreg.h>
+
+struct dcon_config {
+ unsigned char dcon_disable;
+ unsigned char lcd_disable;
+ unsigned char vga_disable;
+ unsigned char mode_porta;
+ unsigned char mode_portb;
+};
+
+#define DISPLAY_NORMAL 0
+#define DISPLAY_CLONE 1
+#define DISPLAY_DUALVIEW 2
+#define DISPLAY_EXTENDED 3
+
+struct display_settings {
+ unsigned char display_mode; /* 0: normal mode.
+ * 1: clone mode.
+ * 2: dualview mode.
+ * 3: extended mode.
+ */
+
+ unsigned extend_ratio; /*
+ * 1~4, default is 2.
+ * 1st portion width
+ * = src_width * (extend_ratio/4).
+ */
+ struct fb_info *lcd0_gfx;
+ struct fb_info *lcd0_vid;
+ struct fb_info *lcd1_gfx;
+ struct fb_info *lcd1_vid;
+};
+
+
+
+#ifdef __KERNEL__
+#endif
+
+#endif
--
1.6.0.4
More information about the kernel-team
mailing list