board: brxre1: fix building errors
authorDario Binacchi <dariobin@libero.it>
Sat, 22 Feb 2020 13:05:49 +0000 (14:05 +0100)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 3 Mar 2020 07:38:14 +0000 (13:08 +0530)
Fix building errors if CONFIG_DM_VIDEO is enabled. This is the only
u-boot board that enables CONFIG_AM335X_LCD and from which I started
to develop the version of the frame buffer driver that supports the
driver model.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
board/BuR/common/br_resetc.c
board/BuR/common/bur_common.h
board/BuR/common/common.c
include/configs/brxre1.h

index c0e7fb65b298facd00b7a1dd753083a792cdaea5..70ad8322ef4ae7fb881cb727b189b28788297af7 100644 (file)
@@ -22,7 +22,7 @@
 #define BMODE_PME              12
 #define BMODE_DIAG             15
 
-#ifdef CONFIG_LCD
+#if CONFIG_IS_ENABLED(LCD) && !CONFIG_IS_ENABLED(DM_VIDEO)
 #include <lcd.h>
 #define LCD_SETCURSOR(x, y)    lcd_position_cursor(x, y)
 #define LCD_PUTS(x)            lcd_puts(x)
index 2591bf4bb3ed54a319fc5224f5e2bac9c5db6daa..618cebc1a58aa7d5fc8a815bf3310a9264be4575 100644 (file)
 #ifndef _BUR_COMMON_H_
 #define _BUR_COMMON_H_
 
+#if !CONFIG_IS_ENABLED(DM_VIDEO)
 #include <../../../drivers/video/am335x-fb.h>
 
 int load_lcdtiming(struct am335x_lcdpanel *panel);
+#endif
+
 void br_summaryscreen(void);
 void pmicsetup(u32 mpupll, unsigned int bus);
 void enable_uart0_pin_mux(void);
index 148fc9075e4fffb098b6e61d599ff66d0bcc71c3..de8d455c27d9803dac6cf328a52348c7acefbe3c 100644 (file)
@@ -20,7 +20,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 /* --------------------------------------------------------------------------*/
 #if defined(CONFIG_LCD) && defined(CONFIG_AM335X_LCD) && \
-       !defined(CONFIG_SPL_BUILD)
+       !defined(CONFIG_DM_VIDEO) && !defined(CONFIG_SPL_BUILD)
 #include <asm/arch/hardware.h>
 #include <asm/arch/cpu.h>
 #include <asm/gpio.h>
index ea15912c900ede719f4feb62f871f53d08fa23e9..006663373bafcc6a400ebf91f4677ab289de13c4 100644 (file)
@@ -14,7 +14,9 @@
 #include <configs/bur_cfg_common.h>
 #include <configs/bur_am335x_common.h>
 /* ------------------------------------------------------------------------- */
+#if !defined(CONFIG_AM335X_LCD)
 #define CONFIG_AM335X_LCD
+#endif
 #define LCD_BPP                                LCD_COLOR32
 
 /* memory */