微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > 高通手机平台交流 > 求救:8x16 oem_panel.c 內部設定

求救:8x16 oem_panel.c 內部設定

时间:10-02 整理:3721RD 点击:
現在在使用高通8X16平台搭配一塊DSI面板
根據手冊中所說一段設定如下,但我看不出程式在何處有判斷 hw_subtype 與 panel_id

請問有沒有人知道平台是如何判斷這兩個參數的嗎?
4. Add the <vendor>_<resolution>_VIDEO_PANEL case to the init_panel_data function.
static void init_panel_data(struct panel_struct *panelstruct,
struct msm_panel_info *pinfo,
struct mdss_dsi_phy_ctrl *phy_db)
{
switch (panel_id) {
+case NT35521_720P_VIDEO_PANEL:
+ panelstruct->paneldata = &nt35521_720p_video_panel_data;
+ panelstruct->panelres = &nt35521_720p_video_panel_res;
+ panelstruct->color = &nt35521_720p_video_color;
+ panelstruct->videopanel = &nt35521_720p_video_video_panel;
+ panelstruct->commandpanel = &nt35521_720p_video_command_panel;
+ panelstruct->state = &nt35521_720p_video_state;
+ panelstruct->laneconfig = &nt35521_720p_video_lane_config;
+ panelstruct->paneltiminginfo
= &nt35521_720p_video_timing_info;
+ panelstruct->panelresetseq
= &nt35521_720p_video_panel_reset_seq;
+ panelstruct->backlightinfo = &nt35521_720p_video_backlight;
+ pinfo->mipi.panel_cmds
= nt35521_720p_video_on_command;
+ pinfo->mipi.num_of_panel_cmds
= NT35521_720P_VIDEO_ON_COMMAND;
+ meMCPy(phy_db->timing,
nt35521_720p_video_timings, TIMING_SIZE);

5.Select the panel ID according to hw_id in the oem_panel_select function.
enum target_subtype {
HW_PLATFORM_SUBTYPE_SKUAA = 0,
HW_PLATFORM_SUBTYPE_SKUF = 1,
HW_PLATFORM_SUBTYPE_SKUAB = 2,
HW_PLATFORM_SUBTYPE_SKUG = 3,
+HW_PLATFORM_SUBTYPE_720P = 5,
};
switch (hw_id) {
case HW_PLATFORM_MTP:
case HW_PLATFORM_QRD:
if (hw_subtype == HW_PLATFORM_SUBTYPE_720P)
+ panel_id = NT35521_720P_VIDEO_PANEL;
else
panel_id = nt35590_panel_id;
break;
default:
dprintf(CRITICAL, "Display not enabled for %d HW type\n"
, hw_id);
return false;

求指点怎么才能拿到金币

好好好给我给我

好好好给我给我好好好给我给我

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top