Loading drivers/gpu/drm/msm/hdmi-staging/sde_hdmi_util.c +7 −2 Original line number Diff line number Diff line Loading @@ -874,14 +874,19 @@ void sde_hdmi_ddc_config(void *hdmi_display) { struct sde_hdmi *display = (struct sde_hdmi *)hdmi_display; struct hdmi *hdmi = display->ctrl.ctrl; uint32_t ddc_speed; if (!hdmi) { pr_err("Invalid parameters\n"); return; } ddc_speed = hdmi_read(hdmi, REG_HDMI_DDC_SPEED); ddc_speed |= HDMI_DDC_SPEED_THRESHOLD(2); ddc_speed |= HDMI_DDC_SPEED_PRESCALE(12); hdmi_write(hdmi, REG_HDMI_DDC_SPEED, HDMI_DDC_SPEED_THRESHOLD(2) | HDMI_DDC_SPEED_PRESCALE(10)); ddc_speed); hdmi_write(hdmi, REG_HDMI_DDC_SETUP, HDMI_DDC_SETUP_TIMEOUT(0xff)); Loading drivers/gpu/drm/msm/hdmi/hdmi_util.c +9 −3 Original line number Diff line number Diff line /* * Copyright (c) 2017 The Linux Foundation. All rights reserved. * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by Loading @@ -19,14 +19,20 @@ void init_ddc(struct hdmi *hdmi) { uint32_t ddc_speed; hdmi_write(hdmi, REG_HDMI_DDC_CTRL, HDMI_DDC_CTRL_SW_STATUS_RESET); hdmi_write(hdmi, REG_HDMI_DDC_CTRL, HDMI_DDC_CTRL_SOFT_RESET); ddc_speed = hdmi_read(hdmi, REG_HDMI_DDC_SPEED); ddc_speed |= HDMI_DDC_SPEED_THRESHOLD(2); ddc_speed |= HDMI_DDC_SPEED_PRESCALE(12); hdmi_write(hdmi, REG_HDMI_DDC_SPEED, HDMI_DDC_SPEED_THRESHOLD(2) | HDMI_DDC_SPEED_PRESCALE(10)); ddc_speed); hdmi_write(hdmi, REG_HDMI_DDC_SETUP, HDMI_DDC_SETUP_TIMEOUT(0xff)); Loading Loading
drivers/gpu/drm/msm/hdmi-staging/sde_hdmi_util.c +7 −2 Original line number Diff line number Diff line Loading @@ -874,14 +874,19 @@ void sde_hdmi_ddc_config(void *hdmi_display) { struct sde_hdmi *display = (struct sde_hdmi *)hdmi_display; struct hdmi *hdmi = display->ctrl.ctrl; uint32_t ddc_speed; if (!hdmi) { pr_err("Invalid parameters\n"); return; } ddc_speed = hdmi_read(hdmi, REG_HDMI_DDC_SPEED); ddc_speed |= HDMI_DDC_SPEED_THRESHOLD(2); ddc_speed |= HDMI_DDC_SPEED_PRESCALE(12); hdmi_write(hdmi, REG_HDMI_DDC_SPEED, HDMI_DDC_SPEED_THRESHOLD(2) | HDMI_DDC_SPEED_PRESCALE(10)); ddc_speed); hdmi_write(hdmi, REG_HDMI_DDC_SETUP, HDMI_DDC_SETUP_TIMEOUT(0xff)); Loading
drivers/gpu/drm/msm/hdmi/hdmi_util.c +9 −3 Original line number Diff line number Diff line /* * Copyright (c) 2017 The Linux Foundation. All rights reserved. * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by Loading @@ -19,14 +19,20 @@ void init_ddc(struct hdmi *hdmi) { uint32_t ddc_speed; hdmi_write(hdmi, REG_HDMI_DDC_CTRL, HDMI_DDC_CTRL_SW_STATUS_RESET); hdmi_write(hdmi, REG_HDMI_DDC_CTRL, HDMI_DDC_CTRL_SOFT_RESET); ddc_speed = hdmi_read(hdmi, REG_HDMI_DDC_SPEED); ddc_speed |= HDMI_DDC_SPEED_THRESHOLD(2); ddc_speed |= HDMI_DDC_SPEED_PRESCALE(12); hdmi_write(hdmi, REG_HDMI_DDC_SPEED, HDMI_DDC_SPEED_THRESHOLD(2) | HDMI_DDC_SPEED_PRESCALE(10)); ddc_speed); hdmi_write(hdmi, REG_HDMI_DDC_SETUP, HDMI_DDC_SETUP_TIMEOUT(0xff)); Loading