lcd: fix c3 compile error [1/1]

PD#SWPL-181732

Problem:
c3 not define VOUT2

Solution:
add macro on vout2 func

Verify:
c3

Change-Id: I0aa5985e5767544d787019c7fbaf67f6baf239d0
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
This commit is contained in:
lizhi.hu
2024-08-30 10:50:26 +08:00
committed by gerrit autosubmit
parent 008821577c
commit 17bb6230de
@@ -1019,17 +1019,23 @@ void lcd_tablet_vout_server_init(struct aml_lcd_drv_s *pdrv)
char *curr_vout_connector, *curr_vout_mode;
char lcd_connector[10];
char lagecy_name[8] = "panel\0\0";
#if (defined(CONFIG_AMLOGIC_VOUT_SERVE) || defined(CONFIG_AMLOGIC_VOUT2_SERVE))
char *init_mode;
#endif
if (pdrv->index)
lagecy_name[5] = '0' + pdrv->index;
#ifdef CONFIG_AMLOGIC_VOUT_SERVE
init_mode = get_vout_mode_uboot();
if (strncmp(init_mode, "panel", 5) == 0)
lcd_legacy_panel_disp_mode = 1;
#endif
#ifdef CONFIG_AMLOGIC_VOUT2_SERVE
init_mode = get_vout2_mode_uboot();
if (strncmp(init_mode, "panel", 5) == 0)
lcd_legacy_panel_disp_mode = 1;
#endif
if (lcd_type == LCD_LVDS || lcd_type == LCD_MLVDS)
cnt_idx = 0;