diff options
| author | bigmagic <[email protected]> | 2020-10-27 12:58:37 +0800 |
|---|---|---|
| committer | bigmagic <[email protected]> | 2020-10-27 12:58:37 +0800 |
| commit | 3532ad3e3ad5712ab0c582a6635841ab8197110b (patch) | |
| tree | 9bffc604456284e22712b029320b627bb485b5f6 /bsp/raspberry-pi | |
| parent | c97f33d11d87e1e93e79d20cbc3ecbe7baf8dafe (diff) | |
add hdmi menuconfig
Diffstat (limited to 'bsp/raspberry-pi')
| -rw-r--r-- | bsp/raspberry-pi/raspi4-32/.config | 3 | ||||
| -rw-r--r-- | bsp/raspberry-pi/raspi4-32/driver/drv_hdmi.c | 2 | ||||
| -rw-r--r-- | bsp/raspberry-pi/raspi4-32/rtconfig.h | 2 |
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 |
