s5pc110: fb: code clean.
authordaeinki <inki.dae@samsung.com>
Thu, 3 Dec 2009 10:37:59 +0000 (19:37 +0900)
committerdaeinki <inki.dae@samsung.com>
Thu, 3 Dec 2009 10:37:59 +0000 (19:37 +0900)
Signed-off-by: daeinki <inki.dae@samsung.com>
drivers/video/s5p-fb.c
drivers/video/s5p-fimd.c
include/lcd.h

index dd00583..3e220e9 100644 (file)
@@ -92,12 +92,7 @@ static void read_image32(char* pImg, int x1pos, int y1pos, int x2pos,
 }
 
 /* LCD Panel data */
-vidinfo_t panel_info = {
-               .vl_lbw         = 0,
-               .vl_splt        = 0,
-               .vl_clor        = 1,
-               .vl_tft         = 1,
-};
+vidinfo_t panel_info;
 
 struct lcd_panel_operation {
        void (*lcd_panel_init)(void);
@@ -236,6 +231,7 @@ static void s5pc_init_panel_info(vidinfo_t *vid, struct lcd_panel_operation *cal
                return;
        }
 #if 1
+       vid->vl_freq    = 60;
        vid->vl_col     = 480,
        vid->vl_row     = 800,
        vid->vl_width   = 480,
@@ -260,6 +256,7 @@ static void s5pc_init_panel_info(vidinfo_t *vid, struct lcd_panel_operation *cal
        calls->lcd_panel_enable = s6e63m0_lcd_panel_enable;
 #endif
 #if 0
+       vid->vl_freq    = 60;
        vid->vl_col     = 480,
        vid->vl_row     = 800,
        vid->vl_width   = 480,
@@ -284,6 +281,7 @@ static void s5pc_init_panel_info(vidinfo_t *vid, struct lcd_panel_operation *cal
        calls->lcd_panel_enable = /* */;
 #endif
 #if 0
+       vid->vl_freq    = 60;
        vid->vl_col     = 1024,
        vid->vl_row     = 600,
        vid->vl_width   = 1024,
index d8e2b6a..c87e335 100644 (file)
@@ -45,8 +45,6 @@
 
 #define MPLL 1
 
-#define S5P_VFRAME_FREQ                60
-
 static unsigned int ctrl_base;
 static unsigned long *lcd_base_addr;
 static vidinfo_t *pvid = NULL;
@@ -186,7 +184,7 @@ static void s5pc_fimd_set_clock(void)
 
        max_clock = 66 * 1000000;
 
-       pixel_clock = S5P_VFRAME_FREQ * (pvid->vl_hpw + pvid->vl_blw +
+       pixel_clock = pvid->vl_freq * (pvid->vl_hpw + pvid->vl_blw +
                pvid->vl_elw + pvid->vl_width) * (pvid->vl_vpw +
                    pvid->vl_bfw + pvid->vl_efw + pvid->vl_height);
 
index f09e28e..3d8acca 100644 (file)
@@ -190,16 +190,13 @@ typedef struct vidinfo {
        ushort  vl_height;      /* Height of display area in millimeters */
 
        /* LCD configuration register */
+       u_char  vl_freq;        /* Frequency */
        u_char  vl_clkp;        /* Clock polarity */
        u_char  vl_oep;         /* Output Enable polarity */
        u_char  vl_hsp;         /* Horizontal Sync polarity */
        u_char  vl_vsp;         /* Vertical Sync polarity */
        u_char  vl_dp;          /* Data polarity */
        u_char  vl_bpix;        /* Bits per pixel, 0 = 1, 1 = 2, 2 = 4, 3 = 8, 4 = 16 */
-       u_char  vl_lbw;         /* LCD Bus width, 0 = 4, 1 = 8 */
-       u_char  vl_splt;        /* Split display, 0 = single-scan, 1 = dual-scan */
-       u_char  vl_clor;        /* Color, 0 = mono, 1 = color */
-       u_char  vl_tft;         /* 0 = passive, 1 = TFT */
 
        /* Horizontal control register. Timing from data sheet */
        ushort  vl_hpw;         /* Horz sync pulse width */
@@ -212,8 +209,6 @@ typedef struct vidinfo {
        u_char  vl_efw;         /* Wait end of frame */
 } vidinfo_t;
 
-extern vidinfo_t panel_info;
-
 #else
 
 typedef struct vidinfo {