void __init exynos4_smdk4270_display_init(void)
{
	struct resource *res;

	s5p_dsim0_set_platdata(&dsim_platform_data);

	s5p_fimd0_set_platdata(&smdk4270_lcd0_pdata);

	platform_add_devices(smdk4270_display_devices,
			ARRAY_SIZE(smdk4270_display_devices));

	exynos4_fimd_setup_clock(&s5p_device_fimd0.dev, "sclk_fimd",
			"mout_mpll_user_top", 69 * MHZ);

#if !defined(CONFIG_S5P_LCD_INIT)
		exynos5_keep_disp_clock(&s5p_device_fimd0.dev);
#endif

	res = platform_get_resource(&s5p_device_fimd0, IORESOURCE_MEM, 1);
	if (res && bootloaderfb_start) {
		res->start = bootloaderfb_start;
		res->end = res->start + bootloaderfb_size - 1;
		pr_info("bootloader fb located at %8X-%8X\n", res->start,
				res->end);
	} else {
		pr_err("failed to find bootloader fb resource\n");
	}
}
void __init exynos5_universal5260_display_init(void)
{
	u32 reg;

	exynos5_setup_fb_info(&exynos_fb_info, &lcd_info);
#ifdef CONFIG_FB_MIPI_DSIM
	exynos5_setup_dsi_info(&dsim_lcd_info, &lcd_info);
	exynos5_setup_dsi_panel_info();
	s5p_dsim1_set_platdata(&dsim_platform_data);
	reg = readl(EXYNOS5260_DPTX_PHY_CONTROL);
	reg &= ~EXYNOS5260_DPTX_PHY_ENABLE;
	writel(reg, EXYNOS5260_DPTX_PHY_CONTROL);
#endif

	clk_add_alias("sclk_fimd", "exynos5-fb.1", "sclk_fimd1_128_extclkpl", &s5p_device_fimd1.dev);
	s5p_fimd1_set_platdata(&universal5260_lcd1_pdata);
	platform_add_devices(universal5260_display_devices, ARRAY_SIZE(universal5260_display_devices));

#if defined(CONFIG_LCD_MIPI_D6EA8061)
	exynos_fimd_set_rate(&s5p_device_fimd1.dev, "sclk_fimd", "sclk_disp_pixel", &lcd_info);
#endif
#if !defined(CONFIG_S5P_LCD_INIT)
	exynos5_keep_disp_clock(&s5p_device_fimd1.dev);
#endif
}
void __init exynos4_smdk4270_display_init(void)
{
	struct resource *res;
	unsigned int lcd_id = lcdtype & 0xF;

	/* REV.E change MIPI SPEED 500Mbps to 480Mbps for RF */
	if (lcd_id < 7 ) {
		dsim_info.p = 3;
		dsim_info.m = 125;
		dsim_info.s = 1;
	}

	s5p_dsim0_set_platdata(&dsim_platform_data);

	s5p_fimd0_set_platdata(&smdk4270_lcd0_pdata);

	platform_add_devices(smdk4270_display_devices,
			ARRAY_SIZE(smdk4270_display_devices));

	exynos4_fimd_setup_clock(&s5p_device_fimd0.dev, "sclk_fimd",
			"mout_mpll_user_top", 58 * MHZ);

#if !defined(CONFIG_S5P_LCD_INIT)
		exynos5_keep_disp_clock(&s5p_device_fimd0.dev);
#endif
#ifdef CONFIG_FB_S5P_MDNIE
		mdnie_device_register();
#endif

	res = platform_get_resource(&s5p_device_fimd0, IORESOURCE_MEM, 1);
	if (res && bootloaderfb_start) {
		res->start = bootloaderfb_start;
		res->end = res->start + bootloaderfb_size - 1;
		pr_info("bootloader fb located at %8X-%8X\n", res->start,
				res->end);
	} else {
		pr_err("failed to find bootloader fb resource\n");
	}
}