#ifdef CONFIG_LCD
-void fimd_clk_set()
+void fimd_clk_set(void)
{
struct s5pc110_clock *clk =
(struct s5pc110_clock *)samsung_get_base_clock();
extern void ld9040_cfg_ldo(void);
extern void ld9040_enable_ldo(unsigned int onoff);
extern void s3cfb_set_trigger(void);
-extern void s3cfb_is_i80_frame_done(void);
+extern int s3cfb_is_i80_frame_done(void);
int s5p_no_lcd_support(void)
{
return (red << 16 | green << 8 | blue);
}
+#if 0
void draw_bitmap(void *lcdbase, int x, int y, int w, int h, unsigned long *bmp)
{
int i, j;
*(fb + (j * panel_width) + i) = *(bmp + k++);
}
}
+#endif
void _draw_samsung_logo(void *lcdbase, int x, int y, int w, int h, unsigned short *bmp)
{
{
return s5pc_fimd_calc_fbsize();
}
-
-void s5pc1xxfb_test(void *lcdbase)
-{
- lcd_ctrl_init(lcdbase);
- lcd_enable();
-}
#include <asm/arch/gpio.h>
#include "s5p-fb.h"
-#define MPLL 1
-
static unsigned int ctrl_base;
static unsigned long *lcd_base_addr;
static vidinfo_t *pvid = NULL;
/* select register base according to cpu type */
ctrl_base = samsung_get_base_fimd();
- cfg = readl(ctrl_base + S5P_VIDCON0);
- cfg &= ~S5P_VIDCON0_VIDOUT_MASK;
-
- /* clock source is HCLK */
- cfg |= 0 << 2;
-
rgb_mode = MODE_RGB_P;
/* set display mode */
cfg = readl(ctrl_base + S5P_VIDCON0);
writel(cfg, ctrl_base + S5P_VIDCON1);
/* set timing */
- cfg = 0;
- cfg |= S5P_VIDTCON0_VFPD(pvid->vl_vfpd - 1);
+ cfg = S5P_VIDTCON0_VFPD(pvid->vl_vfpd - 1);
cfg |= S5P_VIDTCON0_VBPD(pvid->vl_vbpd - 1);
cfg |= S5P_VIDTCON0_VSPW(pvid->vl_vspw - 1);
writel(cfg, ctrl_base + S5P_VIDTCON0);
udebug("vidtcon0 = %x\n", cfg);
- cfg = 0;
- cfg |= S5P_VIDTCON1_HFPD(pvid->vl_hfpd - 1);
+ cfg = S5P_VIDTCON1_HFPD(pvid->vl_hfpd - 1);
cfg |= S5P_VIDTCON1_HBPD(pvid->vl_hbpd - 1);
cfg |= S5P_VIDTCON1_HSPW(pvid->vl_hspw - 1);
udebug("vidtcon1 = %x\n", cfg);
/* set lcd size */
- cfg = 0;
- cfg |= S5P_VIDTCON2_HOZVAL(pvid->vl_col - 1);
+ cfg = S5P_VIDTCON2_HOZVAL(pvid->vl_col - 1);
cfg |= S5P_VIDTCON2_LINEVAL(pvid->vl_row - 1);
writel(cfg, ctrl_base + S5P_VIDTCON2);
writel(cfg, ctrl_base + S5P_VIDCON0);
/* set lcd size */
- cfg = 0;
- cfg |= S5P_VIDTCON2_HOZVAL(pvid->vl_col - 1);
+ cfg = S5P_VIDTCON2_HOZVAL(pvid->vl_col - 1);
cfg |= S5P_VIDTCON2_LINEVAL(pvid->vl_row - 1);
writel(cfg, ctrl_base + S5P_VIDTCON2);
udebug("vidtcon2 = %x\n", cfg);
udebug("MIPI Command mode.\n");
}
-
/* set par */
s5pc_fimd_set_par(win_id);