OSDN Git Service

drm/i915/dsi: Move vlv/icl_dphy_param_init call out of intel_dsi_vbt_init (v2)
authorHans de Goede <hdegoede@redhat.com>
Wed, 5 Jun 2019 18:17:34 +0000 (20:17 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sat, 8 Jun 2019 13:35:12 +0000 (15:35 +0200)
commit2def5ae7d7fb8578b53b0f8595d8ec90b8eb1aeb
treecf5a2be8cc7623e98169b56af60d72f9f9543250
parent0e29eb9d9160685a1c18534f05a28a260fbfadd5
drm/i915/dsi: Move vlv/icl_dphy_param_init call out of intel_dsi_vbt_init (v2)

The vlv/icl_dphy_param_init calls do various calculations to set dphy
parameters based on the pclk.

Move the calling of vlv/icl_dphy_param_init to vlv_dsi_init to give
vlv_dsi_init a chance to tweak the pclk before these calculations are done.

Changes in v2:
-Also moves the icl and vlv specific dphy_param_init functions from the
 generic intel_dsi_vbt.c file into the icl_ and vlv_dsi.c specific files.

Note icl_dphy_param_init() and vlv_dphy_param_init() are only moved,
otherwise they are completely unchanged.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190605181735.7020-2-hdegoede@redhat.com
drivers/gpu/drm/i915/icl_dsi.c
drivers/gpu/drm/i915/intel_dsi.h
drivers/gpu/drm/i915/intel_dsi_vbt.c
drivers/gpu/drm/i915/vlv_dsi.c