int  m6g04_lcd_init(void)
{
    int err;
	lcd_tcon_config(&m6g04_lcd_config);
	lcd_setup_gamma_table(&m6g04_lcd_config);
	lcd_video_adjust(&m6g04_lcd_config);	
    meson_lcd_set_platdata(&m6g04_lcd_data, sizeof(struct aml_lcd_platform));
    err = platform_add_devices(m6g04_lcd_devices, ARRAY_SIZE(m6g04_lcd_devices));
    return err;
}
Esempio n. 2
0
int m6g24_lcd_init(void)
{
    int err;
	printk("\nload panel model: %s\n", PANEL_MODEL);
	lcd_tcon_config(&m6g24_lcd_config);
	lcd_setup_gamma_table(&m6g24_lcd_config);
	lcd_video_adjust(&m6g24_lcd_config);	
    meson_lcd_set_platdata(&m6g24_lcd_data, sizeof(struct aml_lcd_platform));
    err = platform_add_devices(m6g24_lcd_devices, ARRAY_SIZE(m6g24_lcd_devices));
    return err;
}