diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_hdmi_tx.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_hdmi_tx.c b/drivers/video/fbdev/msm/mdss_hdmi_tx.c index ca16e083d1de..5cb9a8c7ba26 100644 --- a/drivers/video/fbdev/msm/mdss_hdmi_tx.c +++ b/drivers/video/fbdev/msm/mdss_hdmi_tx.c @@ -39,6 +39,7 @@ #define COMPATIBLE_NAME "qcom,hdmi-tx" #define DEFAULT_VIDEO_RESOLUTION HDMI_VFRMT_640x480p60_4_3 +#define DEFAULT_HDMI_PRIMARY_RESOLUTION HDMI_VFRMT_1920x1080p60_16_9 /* HDMI PHY/PLL bit field macros */ #define SW_RESET BIT(2) @@ -3263,7 +3264,12 @@ static int hdmi_tx_register_panel(struct hdmi_tx_ctrl *hdmi_ctrl) hdmi_ctrl->panel_data.event_handler = hdmi_tx_panel_event_handler; - hdmi_ctrl->video_resolution = DEFAULT_VIDEO_RESOLUTION; + /* Default 1080p resolution for hdmi primary display */ + if (hdmi_ctrl->pdata.primary) + hdmi_ctrl->video_resolution = DEFAULT_HDMI_PRIMARY_RESOLUTION; + else + hdmi_ctrl->video_resolution = DEFAULT_VIDEO_RESOLUTION; + rc = hdmi_tx_init_panel_info(hdmi_ctrl->video_resolution, &hdmi_ctrl->panel_data.panel_info); if (rc) { |
