diff options
author | Thierry Reding <treding@nvidia.com> | 2014-12-08 16:14:45 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-01-27 10:14:52 +0100 |
commit | ca915b108a39081edff1206ec00ecdb4136408ac (patch) | |
tree | be8c144ee09940e9dd31248e03c3114236e4909e /drivers/gpu/drm/tegra/drm.h | |
parent | 07866963b675b358d82baf8df73dba545d967a1d (diff) | |
download | op-kernel-dev-ca915b108a39081edff1206ec00ecdb4136408ac.zip op-kernel-dev-ca915b108a39081edff1206ec00ecdb4136408ac.tar.gz |
drm/tegra: dc: Store clock setup in atomic state
This allows the clock setup to be separated from the clock programming
and better matches the expectations of the atomic modesetting where no
code paths must fail during modeset.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/drm.h')
-rw-r--r-- | drivers/gpu/drm/tegra/drm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/drm.h b/drivers/gpu/drm/tegra/drm.h index bf1c47e..3db719d 100644 --- a/drivers/gpu/drm/tegra/drm.h +++ b/drivers/gpu/drm/tegra/drm.h @@ -180,6 +180,10 @@ void tegra_dc_cancel_page_flip(struct drm_crtc *crtc, struct drm_file *file); void tegra_dc_commit(struct tegra_dc *dc); int tegra_dc_setup_clock(struct tegra_dc *dc, struct clk *parent, unsigned long pclk, unsigned int div); +int tegra_dc_state_setup_clock(struct tegra_dc *dc, + struct drm_crtc_state *crtc_state, + struct clk *clk, unsigned long pclk, + unsigned int div); struct tegra_output { struct device_node *of_node; |