Commit 99e516295f4fae7bc0a1d7efaf3106c5ddd43fad

Authored by Ajay Kumar
Committed by Minkyu Kang
1 parent 5374d386f8

EXYNOS5: Make all display related code dependent on CONFIG_LCD

u-boot compilation fails for smdk5250 when we deselect CONFIG_LCD
from the main config file.

Following error was observed:
drivers/video/libvideo.o: In function `exynos_lcd_init':
/home/ajay/u-boot-samsung/drivers/video/exynos_fb.c:68: undefined reference to `lcd_set_flush_dcache'

This is because exynos video drivers have dependency on CONFIG_LCD.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>

Showing 2 changed files with 4 additions and 0 deletions Side-by-side Diff

board/samsung/smdk5250/smdk5250.c
... ... @@ -281,6 +281,7 @@
281 281 }
282 282 #endif
283 283  
  284 +#ifdef CONFIG_LCD
284 285 void cfg_lcd_gpio(void)
285 286 {
286 287 struct exynos5_gpio_part1 *gpio1 =
... ... @@ -374,4 +375,5 @@
374 375  
375 376 exynos_set_dp_platform_data(&dp_platform_data);
376 377 }
  378 +#endif
include/configs/exynos5250-dt.h
... ... @@ -299,11 +299,13 @@
299 299  
300 300 /* Display */
301 301 #define CONFIG_LCD
  302 +#ifdef CONFIG_LCD
302 303 #define CONFIG_EXYNOS_FB
303 304 #define CONFIG_EXYNOS_DP
304 305 #define LCD_XRES 2560
305 306 #define LCD_YRES 1600
306 307 #define LCD_BPP LCD_COLOR16
  308 +#endif
307 309  
308 310 #endif /* __CONFIG_H */