For example, if the project you compiled is isinstru, you can follow the steps below(the new lcd is "hx8264 wvga video):
Step 1: Add kernel file to the below path. kernel/arch/arm/boot/dts/qcom/dsi-panel-hx8264-wvga-video.dtsi Step 2: Modify file "kernel/arch/arm/boot/dts/qcom/isinstru.dtsi", add the below context: #include "dsi-panel-hx8264-wvga-video.dtsi" Step 3: Add lk file to the below path. bootable/bootloader/lk/dev/gcdb/display/include/panel_hx8264_wvga_video.h Step 4: Modify file "bootable/bootloader/lk/target/isinstru/oem_panel.c", you can reference resources already have in this file. Below is some key places. (1) Add a define in a enum type. HX8264_WVGA_VIDEO_PANEL, (2) Add in "struct panel_list" {"hx8264_wvga_video",HX8264_WVGA_VIDEO_PANEL}, (3) Mod return value in lcd_select(), to select the lcd you added. static uint32_t lcd_select() { return HX8264_WVGA_VIDEO_PANEL; } If the function is not defined, define one, and the search "panel_id", Mod below: panel_id = lcd_select(); (4) Add interface. case HX8264_WVGA_VIDEO_PANEL: panelstruct->paneldata = &hx8264_wvga_video_panel_data; panelstruct->panelres = &hx8264_wvga_video_panel_res; panelstruct->color = &hx8264_wvga_video_color; panelstruct->videopanel = &hx8264_wvga_video_video_panel; panelstruct->commandpanel = &hx8264_wvga_video_command_panel; panelstruct->state = &hx8264_wvga_video_state; panelstruct->laneconfig = &hx8264_wvga_video_lane_config; panelstruct->paneltiminginfo = &hx8264_wvga_video_timing_info; panelstruct->panelresetseq = &hx8264_wvga_video_reset_seq; panelstruct->backlightinfo = &hx8264_wvga_video_backlight; pinfo->mipi.panel_cmds = hx8264_wvga_video_on_command; pinfo->mipi.num_of_panel_cmds = HX8264_WVGA_VIDEO_ON_COMMAND; memcpy(phy_db->timing, hx8264_wvga_video_timings, TIMING_SIZE);break;