drm/bridge: analogix_dp: some rockchip chips need to flip REF_CLK bit setting
authorYakir Yang <ykk@rock-chips.com>
Wed, 29 Jun 2016 09:15:18 +0000 (17:15 +0800)
committerYakir Yang <ykk@rock-chips.com>
Tue, 5 Jul 2016 01:16:40 +0000 (09:16 +0800)
commit7bdc072086939093238a970f054e8e63d531253d
tree196452ddb8620fedcebafb39e672d922b94d0875
parentcb5571fcf809860c455f6b62bb5252f277b52e83
drm/bridge: analogix_dp: some rockchip chips need to flip REF_CLK bit setting

As vendor document indicate, when REF_CLK bit set 0, then DP
phy's REF_CLK should switch to 24M source clock.

But due to IC PHY layout mistaken, some chips need to flip this
bit(like RK3288), and unfortunately they didn't indicate in the
DP version register. That's why we have to make this little hack.

Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Reviewed-by: Tomasz Figa <tomasz.figa@chromium.com>
Tested-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c
drivers/gpu/drm/bridge/analogix/analogix_dp_reg.h
include/drm/bridge/analogix_dp.h