Пример #1
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);
}
Пример #2
0
static void gfxconsole_init_hook(uint level)
{
    gfxconsole_start_on_display();
}