s5pc_fimd_lcd_init(vid);
}
-static void lcd_test(void)
+static void dual_lcd_test(void)
{
+ int x1 = 100, y1 = 0, x2 = 100, y2 = 0;
+
/* red */
- read_image32((char *)lcd_base, 0, 0, 960, 200,
+ read_image32((char *)lcd_base, 0+x1, 0+y1, 960-x2, 200-y2,
makepixel8888(0, 255, 0, 0));
/* green */
- read_image32((char *)lcd_base, 0, 200, 960, 400,
+ read_image32((char *)lcd_base, 0+x1, 200+y1, 960-x2, 400-y2,
makepixel8888(0, 0, 255, 0));
/* blue */
- read_image32((char *)lcd_base, 0, 400, 960, 600,
+ read_image32((char *)lcd_base, 0+x1, 400+y1, 960-x2, 600-y2,
makepixel8888(0, 0, 0, 255));
/* write */
- read_image32((char *)lcd_base, 0, 600, 960, 800,
+ read_image32((char *)lcd_base, 0+x1, 600+y1, 960-x2, 800-y2,
makepixel8888(0, 255, 255, 255));
}
memset(lcdbase, 0, panel_info.vl_col *
panel_info.vl_row * S5P_LCD_BPP >> 3);
- lcd_test();
+ dual_lcd_test();
} else {
memset(lcdbase, 0, panel_info.vl_col *
panel_info.vl_row * S5P_LCD_BPP >> 3);
/* set gpio configuration pin for MLCD_ON */
writel(readl(0xE0200260) & 0xFFFF0FFF, 0xE0200260);
- writel(readl(0xE0200260) | 0xFFFF1000, 0xE0200260);
+ writel(readl(0xE0200260) | 0x00001000, 0xE0200260);
writel(readl(0xE0200264) & 0xf7, 0xE0200264);
/* set gpio configuration pin for DISPLAY_CS, DISPLAY_CLK, DISPLSY_SI and LCD_ID */