cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling LCD in u-boot give compile error

OskarM
Associate III

Dear All,

I am trying to minimize the u-boot and started to remove some features I don't need.

I tried to remove whole video & LCD support, but run into issue that stm32mp1.c has a large patch, that applies LCD automatic recognition and extern reference to panel drivers. I am using Kirkstone, but it is also in the patch for Scarthgap.

Patch: 0002-ARM-v2021.10-stm32mp-r1-BOARD.patch

stm32mp1.c:

extern U_BOOT_DRIVER(rm68200_panel);
extern U_BOOT_DRIVER(hx8394_panel);

(...)

Here are feature I'd like to disable, but removing i.e. VIDEO_LCD_xxx features gives me a compile error for missing extern reference to rm68200_panel. 

CONFIG_CMD_ADC=y
CONFIG_STM32_ADC=y
CONFIG_FDT_SIMPLEFB=y
CONFIG_DM_VIDEO=y
CONFIG_BACKLIGHT_GPIO=y
CONFIG_VIDEO_LCD_ORISETECH_OTM8009A=y
CONFIG_VIDEO_LCD_RAYDIUM_RM68200=y
CONFIG_VIDEO_LCD_ROCKTECH_HX8394=y
CONFIG_VIDEO_STM32=y
CONFIG_VIDEO_STM32_DSI=y

I tried different things to remove, but neither works. Removing and/or modifing the whole patch is rather not worth the result, but maybe there is a better approach to this?

Thanks

Oskar

 

1 REPLY 1
OskarM
Associate III

From the above actually these one are causing issue:

CONFIG_DM_VIDEO=y
CONFIG_VIDEO_LCD_ORISETECH_OTM8009A=y
CONFIG_VIDEO_LCD_RAYDIUM_RM68200=y
CONFIG_VIDEO_LCD_ROCKTECH_HX8394=y

Other can be disabled.

b.r.