Commit c6036854 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman

gma500: Fix DPU build

Fix up the merge build
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3a970ac1
...@@ -69,6 +69,12 @@ struct mdfld_dsi_dbi_output { ...@@ -69,6 +69,12 @@ struct mdfld_dsi_dbi_output {
bool dbi_panel_on; bool dbi_panel_on;
bool first_boot; bool first_boot;
struct panel_funcs *p_funcs; struct panel_funcs *p_funcs;
/* DPU */
u32 *dbi_cb_addr;
u32 dbi_cb_phy;
spinlock_t cb_lock;
u32 cb_write;
}; };
#define MDFLD_DSI_DBI_OUTPUT(dsi_encoder) \ #define MDFLD_DSI_DBI_OUTPUT(dsi_encoder) \
......
...@@ -418,7 +418,7 @@ static int mdfld_dpu_update_pipe(struct mdfld_dsi_dbi_output *dbi_output, ...@@ -418,7 +418,7 @@ static int mdfld_dpu_update_pipe(struct mdfld_dsi_dbi_output *dbi_output,
* added it so that text console could boot smoothly * added it so that text console could boot smoothly
*/ */
/* Clean pending flags on this pipe */ /* Clean pending flags on this pipe */
if (!ret && dev_priv->b_dsr_enable) { if (!ret && dev_priv->dsr_enable) {
dpu_info->pending &= ~plane_mask; dpu_info->pending &= ~plane_mask;
/* Reset overlay pipe damage rect */ /* Reset overlay pipe damage rect */
mdfld_dpu_init_damage(dpu_info, pipe); mdfld_dpu_init_damage(dpu_info, pipe);
...@@ -527,7 +527,7 @@ static int __mdfld_dbi_exit_dsr(struct mdfld_dsi_dbi_output *dbi_output, ...@@ -527,7 +527,7 @@ static int __mdfld_dbi_exit_dsr(struct mdfld_dsi_dbi_output *dbi_output,
if (!dbi_output) if (!dbi_output)
return 0; return 0;
/*if mode setting on-going, back off*/ /* If mode setting on-going, back off */
if ((dbi_output->mode_flags & MODE_SETTING_ON_GOING) || if ((dbi_output->mode_flags & MODE_SETTING_ON_GOING) ||
(psb_crtc && psb_crtc->mode_flags & MODE_SETTING_ON_GOING)) (psb_crtc && psb_crtc->mode_flags & MODE_SETTING_ON_GOING))
return -EAGAIN; return -EAGAIN;
...@@ -542,7 +542,7 @@ static int __mdfld_dbi_exit_dsr(struct mdfld_dsi_dbi_output *dbi_output, ...@@ -542,7 +542,7 @@ static int __mdfld_dbi_exit_dsr(struct mdfld_dsi_dbi_output *dbi_output,
reg_offset = MIPIC_REG_OFFSET; reg_offset = MIPIC_REG_OFFSET;
} }
if (!ospm_power_using_hw_begin(OSPM_DISPLAY_ISLAND, true)) if (!gma_power_begin(dev, true))
return -EAGAIN; return -EAGAIN;
/* Enable DPLL */ /* Enable DPLL */
...@@ -585,9 +585,9 @@ static int __mdfld_dbi_exit_dsr(struct mdfld_dsi_dbi_output *dbi_output, ...@@ -585,9 +585,9 @@ static int __mdfld_dbi_exit_dsr(struct mdfld_dsi_dbi_output *dbi_output,
udelay(500); udelay(500);
} }
ospm_power_using_hw_end(OSPM_DISPLAY_ISLAND); gma_power_end(dev);
/*clean IN_DSR flag*/ /* Clean IN_DSR flag */
dbi_output->mode_flags &= ~MODE_SETTING_IN_DSR; dbi_output->mode_flags &= ~MODE_SETTING_IN_DSR;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment