Add out_ops operation to notify the interface layer
of when a modeset has occurred.
Change-Id: Id39b6a1e80a8bd6fbce09b159213423c9a864038
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/300068
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
* during OSidle.
*/
bool (*osidle)(struct tegra_dc *dc);
+ /* callback after new mode is programmed.
+ * dc clocks are on at this point */
+ void (*modeset_notifier)(struct tegra_dc *dc);
};
struct tegra_dc_shift_clk_div {
tegra_dc_writel(dc, GENERAL_UPDATE, DC_CMD_STATE_CONTROL);
tegra_dc_writel(dc, GENERAL_ACT_REQ, DC_CMD_STATE_CONTROL);
+ if (dc->out_ops && dc->out_ops->modeset_notifier)
+ dc->out_ops->modeset_notifier(dc);
+
dc->mode_dirty = false;
trace_display_mode(dc, &dc->mode);