From 871480933a1c28f8a9fed4c4d34d06c439a7a422 Mon Sep 17 00:00:00 2001
From: Srikant Patnaik
Date: Sun, 11 Jan 2015 12:28:04 +0530
Subject: Moved, renamed, and deleted files
The original directory structure was scattered and unorganized.
Changes are basically to make it look like kernel structure.
---
drivers/video/wmt/lcd.h | 105 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 105 insertions(+)
create mode 100755 drivers/video/wmt/lcd.h
(limited to 'drivers/video/wmt/lcd.h')
diff --git a/drivers/video/wmt/lcd.h b/drivers/video/wmt/lcd.h
new file mode 100755
index 00000000..46925e9f
--- /dev/null
+++ b/drivers/video/wmt/lcd.h
@@ -0,0 +1,105 @@
+/*++
+ * linux/drivers/video/wmt/lcd.h
+ * WonderMedia video post processor (VPP) driver
+ *
+ * Copyright c 2014 WonderMedia Technologies, Inc.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ * WonderMedia Technologies, Inc.
+ * 4F, 533, Chung-Cheng Road, Hsin-Tien, Taipei 231, R.O.C
+--*/
+
+#ifndef LCD_H
+/* To assert that only one occurrence is included */
+#define LCD_H
+/*-------------------- MODULE DEPENDENCY -------------------------------------*/
+#include "vpp.h"
+
+/* following is the C++ header */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*-------------------- EXPORTED PRIVATE CONSTANTS ----------------------------*/
+/* #define LCD_XXXX 1 *//*Example*/
+
+/*-------------------- EXPORTED PRIVATE TYPES---------------------------------*/
+/* typedef void lcd_xxx_t; *//*Example*/
+enum lcd_panel_t {
+ LCD_WMT_OEM,
+ LCD_CHILIN_LW0700AT9003,
+ LCD_INNOLUX_AT070TN83,
+ LCD_AUO_A080SN01,
+ LCD_EKING_EK08009,
+ LCD_HANNSTAR_HSD101PFW2,
+ LCD_LVDS_1024x600,
+ LCD_GL5001W,
+ LCD_B079XAN01,
+ LCD_TPO_TJ015NC02AA,
+ LCD_PANEL_MAX
+};
+enum {
+ LCD_POWER_OFF = 0,
+ LCD_POWER_ON,
+};
+
+#define LCD_CAP_CLK_HI BIT(0)
+#define LCD_CAP_HSYNC_HI BIT(1)
+#define LCD_CAP_VSYNC_HI BIT(2)
+#define LCD_CAP_DE_LO BIT(3)
+struct lcd_parm_t {
+ int bits_per_pixel;
+ unsigned int capability;
+ struct fb_videomode vmode;
+ int width; /* width of picture in mm */
+ int height; /* height of picture in mm */
+
+ void (*initial)(void);
+ void (*uninitial)(void);
+};
+
+/*-------------------- EXPORTED PRIVATE VARIABLES ---------------------------*/
+#ifdef LCD_C /* allocate memory for variables only in vout.c */
+#define EXTERN
+#else
+#define EXTERN extern
+#endif /* ifdef LCD_C */
+
+/* EXTERN int lcd_xxx; *//*Example*/
+
+EXTERN struct lcd_parm_t *p_lcd;
+#undef EXTERN
+
+/*--------------------- EXPORTED PRIVATE MACROS ------------------------------*/
+/* #define LCD_XXX_YYY xxxx *//*Example*/
+/*--------------------- EXPORTED PRIVATE FUNCTIONS --------------------------*/
+/* extern void lcd_xxx(void); *//*Example*/
+
+int lcd_panel_register(int no, void (*get_parm)(int mode));
+struct lcd_parm_t *lcd_get_parm(enum lcd_panel_t id, unsigned int arg);
+void lcd_set_parm(int id, int bpp);
+struct lcd_parm_t *lcd_get_oem_parm(int resx, int resy);
+void lcd_set_lvds_id(int id);
+int lcd_get_lvds_id(void);
+void lcd_set_type(int type);
+int lcd_get_type(void);
+void lcd_set_enable(int enable);
+void lcd_enable_signal(int enable);
+
+/* LCD back light */
+#ifdef __cplusplus
+}
+#endif
+#endif /* ifndef LCD_H */
--
cgit
From 63058268f9ab1c96396d3d138aefc3f7b0f72869 Mon Sep 17 00:00:00 2001
From: Srikant Patnaik
Date: Sun, 11 Jan 2015 20:10:08 +0530
Subject: Fix white screen issue during bootup
Signed-off-by: Manish Patel
---
drivers/video/wmt/lcd.h | 25 +++++++++----------------
1 file changed, 9 insertions(+), 16 deletions(-)
mode change 100755 => 100644 drivers/video/wmt/lcd.h
(limited to 'drivers/video/wmt/lcd.h')
diff --git a/drivers/video/wmt/lcd.h b/drivers/video/wmt/lcd.h
old mode 100755
new mode 100644
index 46925e9f..a2a5ecce
--- a/drivers/video/wmt/lcd.h
+++ b/drivers/video/wmt/lcd.h
@@ -2,7 +2,7 @@
* linux/drivers/video/wmt/lcd.h
* WonderMedia video post processor (VPP) driver
*
- * Copyright c 2014 WonderMedia Technologies, Inc.
+ * Copyright c 2013 WonderMedia Technologies, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -37,7 +37,7 @@ extern "C" {
/*-------------------- EXPORTED PRIVATE TYPES---------------------------------*/
/* typedef void lcd_xxx_t; *//*Example*/
-enum lcd_panel_t {
+typedef enum {
LCD_WMT_OEM,
LCD_CHILIN_LW0700AT9003,
LCD_INNOLUX_AT070TN83,
@@ -45,30 +45,23 @@ enum lcd_panel_t {
LCD_EKING_EK08009,
LCD_HANNSTAR_HSD101PFW2,
LCD_LVDS_1024x600,
- LCD_GL5001W,
LCD_B079XAN01,
- LCD_TPO_TJ015NC02AA,
+ LCD_BP080WX7,
LCD_PANEL_MAX
-};
-enum {
- LCD_POWER_OFF = 0,
- LCD_POWER_ON,
-};
+} lcd_panel_t;
#define LCD_CAP_CLK_HI BIT(0)
#define LCD_CAP_HSYNC_HI BIT(1)
#define LCD_CAP_VSYNC_HI BIT(2)
#define LCD_CAP_DE_LO BIT(3)
-struct lcd_parm_t {
+typedef struct {
int bits_per_pixel;
unsigned int capability;
struct fb_videomode vmode;
- int width; /* width of picture in mm */
- int height; /* height of picture in mm */
void (*initial)(void);
void (*uninitial)(void);
-};
+} lcd_parm_t;
/*-------------------- EXPORTED PRIVATE VARIABLES ---------------------------*/
#ifdef LCD_C /* allocate memory for variables only in vout.c */
@@ -79,7 +72,7 @@ struct lcd_parm_t {
/* EXTERN int lcd_xxx; *//*Example*/
-EXTERN struct lcd_parm_t *p_lcd;
+EXTERN lcd_parm_t *p_lcd;
#undef EXTERN
/*--------------------- EXPORTED PRIVATE MACROS ------------------------------*/
@@ -88,9 +81,9 @@ EXTERN struct lcd_parm_t *p_lcd;
/* extern void lcd_xxx(void); *//*Example*/
int lcd_panel_register(int no, void (*get_parm)(int mode));
-struct lcd_parm_t *lcd_get_parm(enum lcd_panel_t id, unsigned int arg);
+lcd_parm_t *lcd_get_parm(lcd_panel_t id, unsigned int arg);
void lcd_set_parm(int id, int bpp);
-struct lcd_parm_t *lcd_get_oem_parm(int resx, int resy);
+lcd_parm_t *lcd_get_oem_parm(int resx, int resy);
void lcd_set_lvds_id(int id);
int lcd_get_lvds_id(void);
void lcd_set_type(int type);
--
cgit