mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-23 14:13:58 +08:00
drm/sun4i: Make COEF_RDY conditional
The COEF_RDY bit isn't found in all the SoCs featuring some variant of the frontend. Add it to our quirks structure. Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190118145133.21281-21-paul.kocialkowski@bootlin.com
This commit is contained in:
parent
c2c7560f7a
commit
38ffb167fd
@ -96,10 +96,11 @@ static void sun4i_frontend_scaler_init(struct sun4i_frontend *frontend)
|
|||||||
sun4i_frontend_vert_coef[i]);
|
sun4i_frontend_vert_coef[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
regmap_write_bits(frontend->regs,
|
if (frontend->data->has_coef_rdy)
|
||||||
SUN4I_FRONTEND_FRM_CTRL_REG,
|
regmap_write_bits(frontend->regs,
|
||||||
SUN4I_FRONTEND_FRM_CTRL_COEF_RDY,
|
SUN4I_FRONTEND_FRM_CTRL_REG,
|
||||||
SUN4I_FRONTEND_FRM_CTRL_COEF_RDY);
|
SUN4I_FRONTEND_FRM_CTRL_COEF_RDY,
|
||||||
|
SUN4I_FRONTEND_FRM_CTRL_COEF_RDY);
|
||||||
}
|
}
|
||||||
|
|
||||||
int sun4i_frontend_init(struct sun4i_frontend *frontend)
|
int sun4i_frontend_init(struct sun4i_frontend *frontend)
|
||||||
|
@ -114,6 +114,7 @@ struct reset_control;
|
|||||||
|
|
||||||
struct sun4i_frontend_data {
|
struct sun4i_frontend_data {
|
||||||
bool has_coef_access_ctrl;
|
bool has_coef_access_ctrl;
|
||||||
|
bool has_coef_rdy;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct sun4i_frontend {
|
struct sun4i_frontend {
|
||||||
|
Loading…
Reference in New Issue
Block a user