#ifndef _RK610_LCD_H
#define _RK610_LCD_H
#include <linux/mfd/rk610_core.h>
-#include "../screen/screen.h"
#include <linux/earlysuspend.h>
#define ENABLE 1
#define DISABLE 0
-/* LVDS config */
-/* LVDS ÍⲿÁ¬Ïß½Ó·¨ */
-/* LVDS_8BIT_1 LVDS_8BIT_2 LVDS_8BIT_3 LVDS_6BIT
-----------------------------------------------------------------------
- TX0 R0 R2 R2 R0
- TX1 R1 R3 R3 R1
- TX2 R2 R4 R4 R2
-Y TX3 R3 R5 R5 R3
-0 TX4 R4 R6 R6 R4
- TX6 R5 R7 R7 R5
- TX7 G0 G2 G2 G0
-----------------------------------------------------------------------
- TX8 G1 G3 G3 G1
- TX9 G2 G4 G4 G2
-Y TX12 G3 G5 G5 G3
-1 TX13 G4 G6 G6 G4
- TX14 G5 G7 G7 G5
- TX15 B0 B2 B2 B0
- TX18 B1 B3 B3 B1
-----------------------------------------------------------------------
- TX19 B2 B4 B4 B2
- TX20 B3 B5 B5 B3
- TX21 B4 B6 B6 B4
-Y TX22 B5 B7 B7 B5
-2 TX24 HSYNC HSYNC HSYNC HSYNC
- TX25 VSYNC VSYNC VSYNC VSYNC
- TX26 ENABLE ENABLE ENABLE ENABLE
-----------------------------------------------------------------------
- TX27 R6 R0 GND GND
- TX5 R7 R1 GND GND
- TX10 G6 G0 GND GND
-Y TX11 G7 G1 GND GND
-3 TX16 B6 B0 GND GND
- TX17 B7 B1 GND GND
- TX23 RSVD RSVD RSVD RSVD
-----------------------------------------------------------------------
-*/
-#define LVDS_8BIT_1 0
-#define LVDS_8BIT_2 1
-#define LVDS_8BIT_3 2
-#define LVDS_6BIT 3
//LVDS lane input format
#define DATA_D0_MSB 0
#define DATA_D7_MSB 1
#define FROM_LCDC0 0
#define FROM_LCDC1 1
-
-#define LVDS_8BIT_1 0
-#define LVDS_8BIT_2 1
-#define LVDS_8BIT_3 2
-#define LVDS_6BIT 3
-/* LVDS config
- * LVDS 外部连线接法
- * LVDS_8BIT_1 LVDS_8BIT_2 LVDS_8BIT_3 LVDS_6BIT
-----------------------------------------------------------------------
- TX0 R0 R2 R2 R0
- TX1 R1 R3 R3 R1
- TX2 R2 R4 R4 R2
-Y TX3 R3 R5 R5 R3
-0 TX4 R4 R6 R6 R4
- TX6 R5 R7 R7 R5
- TX7 G0 G2 G2 G0
-----------------------------------------------------------------------
- TX8 G1 G3 G3 G1
- TX9 G2 G4 G4 G2
-Y TX12 G3 G5 G5 G3
-1 TX13 G4 G6 G6 G4
- TX14 G5 G7 G7 G5
- TX15 B0 B2 B2 B0
- TX18 B1 B3 B3 B1
-----------------------------------------------------------------------
- TX19 B2 B4 B4 B2
- TX20 B3 B5 B5 B3
- TX21 B4 B6 B6 B4
-Y TX22 B5 B7 B7 B5
-2 TX24 HSYNC HSYNC HSYNC HSYNC
- TX25 VSYNC VSYNC VSYNC VSYNC
- TX26 ENABLE ENABLE ENABLE ENABLE
-----------------------------------------------------------------------
- TX27 R6 R0 GND GND
- TX5 R7 R1 GND GND
- TX10 G6 G0 GND GND
-Y TX11 G7 G1 GND GND
-3 TX16 B6 B0 GND GND
- TX17 B7 B1 GND GND
- TX23 RSVD RSVD RSVD RSVD
-----------------------------------------------------------------------
-*/
-
-
extern int rk_lvds_register(rk_screen *screen);
#endif
#ifndef _SCREEN_H
#define _SCREEN_H
+#define LVDS_8BIT_1 0
+#define LVDS_8BIT_2 1
+#define LVDS_8BIT_3 2
+#define LVDS_6BIT 3
+/* lvds connect config
+ *
+ * LVDS_8BIT_1 LVDS_8BIT_2 LVDS_8BIT_3 LVDS_6BIT
+----------------------------------------------------------------------
+ TX0 R0 R2 R2 R0
+ TX1 R1 R3 R3 R1
+ TX2 R2 R4 R4 R2
+Y TX3 R3 R5 R5 R3
+0 TX4 R4 R6 R6 R4
+ TX6 R5 R7 R7 R5
+ TX7 G0 G2 G2 G0
+----------------------------------------------------------------------
+ TX8 G1 G3 G3 G1
+ TX9 G2 G4 G4 G2
+Y TX12 G3 G5 G5 G3
+1 TX13 G4 G6 G6 G4
+ TX14 G5 G7 G7 G5
+ TX15 B0 B2 B2 B0
+ TX18 B1 B3 B3 B1
+----------------------------------------------------------------------
+ TX19 B2 B4 B4 B2
+ TX20 B3 B5 B5 B3
+ TX21 B4 B6 B6 B4
+Y TX22 B5 B7 B7 B5
+2 TX24 HSYNC HSYNC HSYNC HSYNC
+ TX25 VSYNC VSYNC VSYNC VSYNC
+ TX26 ENABLE ENABLE ENABLE ENABLE
+----------------------------------------------------------------------
+ TX27 R6 R0 GND GND
+ TX5 R7 R1 GND GND
+ TX10 G6 G0 GND GND
+Y TX11 G7 G1 GND GND
+3 TX16 B6 B0 GND GND
+ TX17 B7 B1 GND GND
+ TX23 RSVD RSVD RSVD RSVD
+----------------------------------------------------------------------
+*/
+
typedef enum _SCREEN_TYPE {
SCREEN_NULL = 0,
SCREEN_RGB,