aboutsummaryrefslogtreecommitdiff
path: root/include/video/mcde_fb.h
diff options
context:
space:
mode:
authorJimmy Rubin <ejimrub@steludxu031.lud.stericsson.com>2010-05-27 15:25:41 +0200
committerJohn Rigby <john.rigby@linaro.org>2010-09-02 22:45:30 -0600
commit1453f8259ef4100ca689884d5d754761cc10a64f (patch)
tree4a61257b603468c878b3e7cf7c5eea59fb9b2c9e /include/video/mcde_fb.h
parent63cfdf397fd4502644ea06bcb764e9c4179f7cd3 (diff)
downloadlinux-2.6.34-ux500-1453f8259ef4100ca689884d5d754761cc10a64f.tar.gz
MCDE: Adding new MCDE display, AB8500 Denc and AV8100 driver
This patch does the following: * Removes display support on ED! * Removes the old MCDE display driver and adds the new MCDE drivers to drivers/video/mcde. * Removes the old AV8100 driver and adds the new AV8100 drivers to drivers/video/av8100. * Moves the mcde and av8100 specific header files from machine to include/video. * Adds AB8500 Denc driver to drivers/misc/ab8500_denc. * Power management support added to the MCDE display driver. * Removes old MCDE specific configurations. * Adds new menuconfig selection SystemType/Display Selection where it is possbile to choose display types. * Updated standard configurations (mop500_defconfig, mop500_power_defconfig and mop500_USB_HOST_defconfig). * Landscape mode removed from menuconfig for main display. ST Ericsson Change-ID: WP259355 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/369 Reviewed-by: Dan JOHANSSON <dan.johansson@stericsson.com> Tested-by: Dan JOHANSSON <dan.johansson@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: I0c5e5c0f80fde304d8b96e3faee0e8b1819d1ae7 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2378 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'include/video/mcde_fb.h')
-rw-r--r--include/video/mcde_fb.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/video/mcde_fb.h b/include/video/mcde_fb.h
new file mode 100644
index 00000000000..871b0225c46
--- /dev/null
+++ b/include/video/mcde_fb.h
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) ST-Ericsson AB 2010
+ *
+ * ST-Ericsson MCDE display sub system frame buffer driver
+ *
+ * Author: Marcus Lorentzon <marcus.xm.lorentzon@stericsson.com>
+ * for ST-Ericsson.
+ *
+ * License terms: GNU General Public License (GPL), version 2.
+ */
+#ifndef __MCDE_FB__H__
+#define __MCDE_FB__H__
+
+#include <linux/fb.h>
+
+#include "mcde_dss.h"
+
+#define to_mcde_fb(x) ((struct mcde_fb *)(x)->par)
+
+#define MCDE_FB_MAX_NUM_OVERLAYS 3
+
+struct mcde_fb {
+ int num_ovlys;
+ struct mcde_overlay *ovlys[MCDE_FB_MAX_NUM_OVERLAYS];
+ u32 pseudo_palette[17];
+ enum mcde_ovly_pix_fmt pix_fmt;
+};
+
+/* MCDE fbdev API */
+struct fb_info *mcde_fb_create(struct mcde_display_device *ddev,
+ u16 w, u16 h, u16 vw, u16 vh, enum mcde_ovly_pix_fmt pix_fmt,
+ u32 rotate, bool display_initialized);
+int mcde_fb_attach_overlay(struct fb_info *fb_info,
+ struct mcde_overlay *ovl);
+void mcde_fb_destroy(struct fb_info *fb_info);
+
+/* MCDE fb driver */
+int mcde_fb_init(void);
+void mcde_fb_exit(void);
+
+#endif /* __MCDE_FB__H__ */
+