summaryrefslogtreecommitdiff
path: root/bsp/raspberry-pi
diff options
context:
space:
mode:
authorbigmagic <[email protected]>2020-10-27 12:58:37 +0800
committerbigmagic <[email protected]>2020-10-27 12:58:37 +0800
commit3532ad3e3ad5712ab0c582a6635841ab8197110b (patch)
tree9bffc604456284e22712b029320b627bb485b5f6 /bsp/raspberry-pi
parentc97f33d11d87e1e93e79d20cbc3ecbe7baf8dafe (diff)
add hdmi menuconfig
Diffstat (limited to 'bsp/raspberry-pi')
-rw-r--r--bsp/raspberry-pi/raspi4-32/.config3
-rw-r--r--bsp/raspberry-pi/raspi4-32/driver/drv_hdmi.c2
-rw-r--r--bsp/raspberry-pi/raspi4-32/rtconfig.h2
3 files changed, 6 insertions, 1 deletions
diff --git a/bsp/raspberry-pi/raspi4-32/.config b/bsp/raspberry-pi/raspi4-32/.config
index f1ba7ebfa5..c8d0b96d86 100644
--- a/bsp/raspberry-pi/raspi4-32/.config
+++ b/bsp/raspberry-pi/raspi4-32/.config
@@ -530,4 +530,5 @@ CONFIG_BSP_USING_WDT=y
#
# Board Peripheral Drivers
#
-# CONFIG_BSP_USING_HDMI is not set
+CONFIG_BSP_USING_HDMI=y
+CONFIG_BSP_USING_HDMI_DISPLAY=y
diff --git a/bsp/raspberry-pi/raspi4-32/driver/drv_hdmi.c b/bsp/raspberry-pi/raspi4-32/driver/drv_hdmi.c
index 1296624291..a8d68fd9cf 100644
--- a/bsp/raspberry-pi/raspi4-32/driver/drv_hdmi.c
+++ b/bsp/raspberry-pi/raspi4-32/driver/drv_hdmi.c
@@ -13,6 +13,7 @@
#include "mbox.h"
#include "drv_hdmi.h"
+#ifdef BSP_USING_HDMI
#define LCD_WIDTH (800)
#define LCD_HEIGHT (480)
#define LCD_DEPTH (32)
@@ -305,3 +306,4 @@ int hdmi_fb_init(void)
}
INIT_DEVICE_EXPORT(hdmi_fb_init);
+#endif /*BSP_USING_HDMI */
diff --git a/bsp/raspberry-pi/raspi4-32/rtconfig.h b/bsp/raspberry-pi/raspi4-32/rtconfig.h
index 536fa1a2d8..4fd529234d 100644
--- a/bsp/raspberry-pi/raspi4-32/rtconfig.h
+++ b/bsp/raspberry-pi/raspi4-32/rtconfig.h
@@ -183,5 +183,7 @@
/* Board Peripheral Drivers */
+#define BSP_USING_HDMI
+#define BSP_USING_HDMI_DISPLAY
#endif