From 3532ad3e3ad5712ab0c582a6635841ab8197110b Mon Sep 17 00:00:00 2001 From: bigmagic Date: Tue, 27 Oct 2020 12:58:37 +0800 Subject: [PATCH] add hdmi menuconfig --- bsp/raspberry-pi/raspi4-32/.config | 3 ++- bsp/raspberry-pi/raspi4-32/driver/drv_hdmi.c | 2 ++ bsp/raspberry-pi/raspi4-32/rtconfig.h | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bsp/raspberry-pi/raspi4-32/.config b/bsp/raspberry-pi/raspi4-32/.config index f1ba7ebfa..c8d0b96d8 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 129662429..a8d68fd9c 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 536fa1a2d..4fd529234 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 -- GitLab