summaryrefslogtreecommitdiff
path: root/board/BuR
diff options
context:
space:
mode:
authorDario Binacchi <dariobin@libero.it>2020-02-22 14:05:49 +0100
committerLokesh Vutla <lokeshvutla@ti.com>2020-03-03 13:08:14 +0530
commit449c5e52110e7cd91c9f32a041ca6428cadf6807 (patch)
tree805d0872c05e0ff0acaeb79bbaa71b49c9fb859b /board/BuR
parent0aff8e261547f761b0c20a75e7cdd59c46d2478b (diff)
downloadu-boot-449c5e52110e7cd91c9f32a041ca6428cadf6807.tar.gz
u-boot-449c5e52110e7cd91c9f32a041ca6428cadf6807.tar.bz2
u-boot-449c5e52110e7cd91c9f32a041ca6428cadf6807.zip
board: brxre1: fix building errors
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>
Diffstat (limited to 'board/BuR')
-rw-r--r--board/BuR/common/br_resetc.c2
-rw-r--r--board/BuR/common/bur_common.h3
-rw-r--r--board/BuR/common/common.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/board/BuR/common/br_resetc.c b/board/BuR/common/br_resetc.c
index c0e7fb65b2..70ad8322ef 100644
--- a/board/BuR/common/br_resetc.c
+++ b/board/BuR/common/br_resetc.c
@@ -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)
diff --git a/board/BuR/common/bur_common.h b/board/BuR/common/bur_common.h
index 2591bf4bb3..618cebc1a5 100644
--- a/board/BuR/common/bur_common.h
+++ b/board/BuR/common/bur_common.h
@@ -11,9 +11,12 @@
#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);
diff --git a/board/BuR/common/common.c b/board/BuR/common/common.c
index 148fc9075e..de8d455c27 100644
--- a/board/BuR/common/common.c
+++ b/board/BuR/common/common.c
@@ -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>