diff options
author | Xin Ji <xji@analogixsemi.com> | 2022-09-03 16:08:33 +0300 |
---|---|---|
committer | Robert Foss <robert.foss@linaro.org> | 2022-09-06 15:09:01 +0300 |
commit | 8e3d857c70dd317cb71301d9b49f0506ce409a1e (patch) | |
tree | 18248441d57b074ed20367dcb2e0206c7fb24ad7 /drivers/gpu/drm/bridge/analogix/anx7625.h | |
parent | 396369d6754993e40f1c84b2e22e40e92dfa4c49 (diff) | |
download | linux-8e3d857c70dd317cb71301d9b49f0506ce409a1e.tar.xz |
drm/bridge: anx7625: Set HPD irq detect window to 2ms
Some panels trigger HPD irq due to noise, the HPD debounce
may be 1.8ms, exceeding the default irq detect window, ~1.4ms.
This patch set HPD irq detection window to 2ms to
tolerate the HPD noise.
Signed-off-by: Xin Ji <xji@analogixsemi.com>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220903130833.541463-1-xji@analogixsemi.com
Diffstat (limited to 'drivers/gpu/drm/bridge/analogix/anx7625.h')
-rw-r--r-- | drivers/gpu/drm/bridge/analogix/anx7625.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.h b/drivers/gpu/drm/bridge/analogix/anx7625.h index e257a84db962..14f33d6be289 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.h +++ b/drivers/gpu/drm/bridge/analogix/anx7625.h @@ -132,6 +132,12 @@ #define I2S_SLAVE_MODE 0x08 #define AUDIO_LAYOUT 0x01 +#define HPD_DET_TIMER_BIT0_7 0xea +#define HPD_DET_TIMER_BIT8_15 0xeb +#define HPD_DET_TIMER_BIT16_23 0xec +/* HPD debounce time 2ms for 27M clock */ +#define HPD_TIME 54000 + #define AUDIO_CONTROL_REGISTER 0xe6 #define TDM_TIMING_MODE 0x08 |