middleware: support MILKV_8HD for sample_panel
Signed-off-by: carbon <carbon@milkv.io>
This commit is contained in:
@ -38,6 +38,7 @@ typedef enum {
|
||||
DSI_PANEL_3AML069LP01G,
|
||||
DSI_PANEL_GM8775C,
|
||||
DSI_PANEL_HX8394_EVB,
|
||||
DSI_PANEL_MILKV_8HD,
|
||||
DSI_PANEL_HX8399_1080P,
|
||||
DSI_PANEL_ICN9707,
|
||||
DSI_PANEL_ILI9881C,
|
||||
@ -101,6 +102,7 @@ static char *s_panel_model_type_arr[] = {
|
||||
"3AML069LP01G",
|
||||
"GM8775C",
|
||||
"HX8394_EVB",
|
||||
"MILKV_8HD",
|
||||
"HX8399_1080P",
|
||||
"ICN9707",
|
||||
"ILI9881C",
|
||||
@ -538,6 +540,13 @@ void SAMPLE_SET_PANEL_DESC(void)
|
||||
g_panel_desc.stdsicfg.dsi_init_cmds = dsi_init_cmds_hx8394_720x1280;
|
||||
g_panel_desc.stdsicfg.dsi_init_cmds_size = ARRAY_SIZE(dsi_init_cmds_hx8394_720x1280);
|
||||
break;
|
||||
case DSI_PANEL_MILKV_8HD:
|
||||
g_panel_desc.panel_type = PANEL_MODE_DSI;
|
||||
g_panel_desc.stdsicfg.dev_cfg = &dev_cfg_milkv_8hd_800x1280;
|
||||
g_panel_desc.stdsicfg.hs_timing_cfg = &hs_timing_cfg_milkv_8hd_800x1280;
|
||||
g_panel_desc.stdsicfg.dsi_init_cmds = dsi_init_cmds_milkv_8hd_800x1280;
|
||||
g_panel_desc.stdsicfg.dsi_init_cmds_size = ARRAY_SIZE(dsi_init_cmds_milkv_8hd_800x1280);
|
||||
break;
|
||||
case LVDS_PANEL_LCM185X56:
|
||||
g_panel_desc.panel_type = PANEL_MODE_LVDS;
|
||||
g_panel_desc.stVoPubAttr.enIntfType = VO_INTF_LCD_24BIT;
|
||||
@ -785,4 +794,4 @@ EXIT1:
|
||||
SAMPLE_PRT("sample_panel exit abnormally!\n");
|
||||
|
||||
return CVI_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
@ -16,6 +16,7 @@ extern "C" {
|
||||
|
||||
#include <linux/cvi_comm_vo.h>
|
||||
#include "dsi_hx8394_evb.h"
|
||||
#include "dsi_milkv_8hd.h"
|
||||
#include "dsi_ili9881c.h"
|
||||
#include "dsi_ili9881d.h"
|
||||
#include "dsi_jd9366ab.h"
|
||||
|
||||
Reference in New Issue
Block a user