Browse Source

add hdmi menuconfig

bigmagic 4 years ago
parent
commit
3532ad3e3a

+ 2 - 1
bsp/raspberry-pi/raspi4-32/.config

@@ -530,4 +530,5 @@ CONFIG_BSP_USING_WDT=y
 #
 #
 # Board Peripheral Drivers
 # Board Peripheral Drivers
 #
 #
-# CONFIG_BSP_USING_HDMI is not set
+CONFIG_BSP_USING_HDMI=y
+CONFIG_BSP_USING_HDMI_DISPLAY=y

+ 2 - 0
bsp/raspberry-pi/raspi4-32/driver/drv_hdmi.c

@@ -13,6 +13,7 @@
 #include "mbox.h"
 #include "mbox.h"
 #include "drv_hdmi.h"
 #include "drv_hdmi.h"
 
 
+#ifdef BSP_USING_HDMI
 #define LCD_WIDTH     (800)
 #define LCD_WIDTH     (800)
 #define LCD_HEIGHT    (480)
 #define LCD_HEIGHT    (480)
 #define LCD_DEPTH     (32)
 #define LCD_DEPTH     (32)
@@ -305,3 +306,4 @@ int hdmi_fb_init(void)
 }
 }
 
 
 INIT_DEVICE_EXPORT(hdmi_fb_init);
 INIT_DEVICE_EXPORT(hdmi_fb_init);
+#endif /*BSP_USING_HDMI */

+ 2 - 0
bsp/raspberry-pi/raspi4-32/rtconfig.h

@@ -183,5 +183,7 @@
 
 
 /* Board Peripheral Drivers */
 /* Board Peripheral Drivers */
 
 
+#define BSP_USING_HDMI
+#define BSP_USING_HDMI_DISPLAY
 
 
 #endif
 #endif