void display_init(void)
{
    struct fbcon_config *fb_cfg;
#if DISPLAY_TYPE_LCDC
    struct lcdc_timing_parameters *lcd_timing;
    mdp_clock_init();
    if (board_machtype() == LINUX_MACHTYPE_8660_FLUID) {
        mmss_pixel_clock_configure(PIXEL_CLK_INDEX_25M);
    } else {
        mmss_pixel_clock_configure(PIXEL_CLK_INDEX_54M);
    }
    lcd_timing = get_lcd_timing();
    fb_cfg = lcdc_init_set( lcd_timing );
    fbcon_setup(fb_cfg);
    fbcon_clear();
    panel_poweron();
#endif
#if DISPLAY_TYPE_MIPI
    mdp_clock_init();
    configure_dsicore_dsiclk();
    configure_dsicore_byteclk();
    configure_dsicore_pclk();

    fb_cfg = mipi_init();
    fbcon_setup(fb_cfg);
#endif

}
void display_init(void)
{
#if DISPLAY_TYPE_MDDI
    fb_config = mddi_init();
    ASSERT(fb_config);
    fbcon_setup(fb_config);
#endif
#if DISPLAY_TYPE_LCDC
    fb_config = lcdc_init();
    ASSERT(fb_config);
    fbcon_setup(fb_config);
#endif
}
void display_init(void)
{
    struct fbcon_config *fb_cfg;
#if DISPLAY_TYPE_LCDC
    mdp_clock_init();
    fb_cfg = lcdc_init();
    panel_poweron();
    fbcon_setup(fb_cfg);
#endif
#if DISPLAY_TYPE_MIPI
    mdp_clock_init();
    fb_cfg = mipi_init();
    fbcon_setup(fb_cfg);
#endif

}
Beispiel #4
0
void display_init(void)
{
#if defined(TCC_LCD_USE)
	fb_config = lcdc_init();
	ASSERT(fb_config);
	fbcon_setup(fb_config);	
#endif
}
Beispiel #5
0
void display_init(void)
{
#if DISPLAY_TYPE_MDDI
	fb_config = mddi_init();
	ASSERT(fb_config);
	fbcon_setup(fb_config);
#endif
#if DISPLAY_TYPE_LCDC
	fb_config = lcdc_init();
	ASSERT(fb_config);
	fbcon_setup(fb_config);
#endif
#if DISPLAY_TYPE_MIPI
	dprintf(SPEW, "display_init()\n");
	panel_dsi_init();
	fb_config = mipi_init();
	ASSERT(fb_config);
	fbcon_setup(fb_config);
#endif
}
void display_init(void){
    struct fbcon_config *fb_cfg;

    panel_backlight_on();

    mipi_dsi_panel_power_on();
    mipi_panel_reset();

    mdp_clock_init();
    mmss_clock_init();

    fb_cfg = mipi_init();
    fbcon_setup(fb_cfg);
}
Beispiel #7
0
void target_display_init(const char *panel_name)
{
	uint32_t fb_addr = MIPI_FB_ADDR;

	struct fbcon_config *config = NULL;
	config = (struct fbcon_config*)malloc(sizeof(struct fbcon_config));

	config->base = fb_addr;
	config->width = 540;
	config->height = 960;
	config->stride = config->width;
	config->bpp = 24;
	config->format = DSI_VIDEO_DST_FORMAT_RGB888;
	config->update_start = NULL;
	config->update_done = NULL;

	fbcon_setup(config);
	display_image_on_screen();

}
Beispiel #8
0
int msm_display_init(struct msm_fb_panel_data *pdata)
{
	int ret = NO_ERROR;

	panel = pdata;
	if (!panel) {
		ret = ERR_INVALID_ARGS;
		goto msm_display_init_out;
	}

	/* Enable clock */
	if (pdata->clk_func)
		ret = pdata->clk_func(1);

	if (ret)
		goto msm_display_init_out;

	/* Turn on panel */
	if (pdata->power_func)
		ret = pdata->power_func(1);

	if (ret)
		goto msm_display_init_out;

	ret = msm_fb_alloc(&(panel->fb));
	if (ret)
		goto msm_display_init_out;

	fbcon_setup(&(panel->fb));
	display_image_on_screen();
	ret = msm_display_config();
	if (ret)
		goto msm_display_init_out;

	ret = msm_display_on();
	if (ret)
		goto msm_display_init_out;

msm_display_init_out:
	return ret;
}
Beispiel #9
0
void display_init(void)
{
	static int runonce = 0;
	static struct fbcon_config fb_cfg = {
		.base = (void *)0x7f600000, 
		.height = 768,
		.width = 1024,
		/* stride, format, bpp NOT USED for DISPLAY_TYPE_TOUCHPAD */
		.stride = 4,                /* not used */
		.format = FB_FORMAT_RGB888, /* not used */
		.bpp = 24,                  /* not used */
		.update_start = NULL,
		.update_done = NULL,
	};


    if (runonce == 1)
        return;
    else
        runonce = 1;

	gfxconsole_start_on_display();
    fbcon_setup(&fb_cfg);
}
Beispiel #10
0
void display_init(void)
{
        struct fbcon_config *fb_cfg;
        fb_cfg = lcdc_init();
        fbcon_setup(fb_cfg);
}
Beispiel #11
0
void display_init(void)
{
	fb_config = lcdc_init();
	ASSERT(fb_config);
	fbcon_setup(fb_config);	
}