summaryrefslogtreecommitdiff
path: root/drivers/video/exynos_fb.c
diff options
context:
space:
mode:
authorAmar <amarendra.xt@samsung.com>2013-04-27 11:42:57 +0530
committerMinkyu Kang <mk7.kang@samsung.com>2013-06-13 17:35:14 +0900
commit752f4c4a9c232bba6f27a70db587aebd3dd6bb3f (patch)
tree86dc09ed44a3db90f2ced722c5d9c165c59c6343 /drivers/video/exynos_fb.c
parent2b81c26b7c43f01cfaa5c4c50571b6854eece656 (diff)
SMDK5250: Initialise and Enable DWMMC, support FDT and non-FDT
This patch enables and initialises DWMMC for SMDK5250. Supports both FDT and non-FDT. This patch creates a new file 'exynos5-dt.c' meant for FDT support. exynos5-dt.c: This file shall contain all code which supports FDT. Any addition of FDT support for any module needs to be added in this file. smdk5250.c: This file shall contain the code which supports non-FDT. version. Any addition of non-FDT support for any module needs to be added in this file. May be, the file smdk5250.c can be removed in near future when non-FDT is not required. The Makefile is updated to compile only one of the files exynos5-dt.c / smdk5250.c based on FDT configuration. NOTE: Please note that all additions corresponding to FDT need to be added into the file exynos5-dt.c. At same time if non-FDT support is required then add the corresponding updations into smdk5250.c. Signed-off-by: Amar <amarendra.xt@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'drivers/video/exynos_fb.c')
-rw-r--r--drivers/video/exynos_fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/exynos_fb.c b/drivers/video/exynos_fb.c
index ed0823bf97..c3606d5b02 100644
--- a/drivers/video/exynos_fb.c
+++ b/drivers/video/exynos_fb.c
@@ -319,10 +319,10 @@ void lcd_ctrl_init(void *lcdbase)
#ifdef CONFIG_OF_CONTROL
if (exynos_fimd_parse_dt(gd->fdt_blob))
debug("Can't get proper panel info\n");
-#endif
+#else
/* initialize parameters which is specific to panel. */
init_panel_info(&panel_info);
-
+#endif
panel_width = panel_info.vl_width;
panel_height = panel_info.vl_height;