diff options
author | Jernej Skrabec <jernej.skrabec@siol.net> | 2018-11-04 19:26:48 +0100 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2018-11-05 10:35:27 +0100 |
commit | 97eb57feda80b7bf63ae9f74683b38ea21166eb9 (patch) | |
tree | b1e63f41575b829c53195db68b1d2f930c9fd2a2 /drivers/gpu/drm/sun4i/sun8i_mixer.c | |
parent | 218d6a3cfc960b066a321ae55de79e6b8e98263f (diff) | |
download | linux-stable-97eb57feda80b7bf63ae9f74683b38ea21166eb9.tar.gz linux-stable-97eb57feda80b7bf63ae9f74683b38ea21166eb9.tar.bz2 linux-stable-97eb57feda80b7bf63ae9f74683b38ea21166eb9.zip |
drm/sun4i: Disable unused DE2 sub-engines
Some sub-engines are unused. Disable them explicitly.
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181104182705.18047-12-jernej.skrabec@siol.net
Diffstat (limited to 'drivers/gpu/drm/sun4i/sun8i_mixer.c')
-rw-r--r-- | drivers/gpu/drm/sun4i/sun8i_mixer.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.c b/drivers/gpu/drm/sun4i/sun8i_mixer.c index 6769ec08c0d3..3c2ce2781fc8 100644 --- a/drivers/gpu/drm/sun4i/sun8i_mixer.c +++ b/drivers/gpu/drm/sun4i/sun8i_mixer.c @@ -463,6 +463,15 @@ static int sun8i_mixer_bind(struct device *dev, struct device *master, for (i = 0; i < DE2_MIXER_UNIT_SIZE; i += 4) regmap_write(mixer->engine.regs, i, 0); + /* Disable unused sub-engines */ + regmap_write(mixer->engine.regs, SUN8I_MIXER_FCE_EN, 0); + regmap_write(mixer->engine.regs, SUN8I_MIXER_BWS_EN, 0); + regmap_write(mixer->engine.regs, SUN8I_MIXER_LTI_EN, 0); + regmap_write(mixer->engine.regs, SUN8I_MIXER_PEAK_EN, 0); + regmap_write(mixer->engine.regs, SUN8I_MIXER_ASE_EN, 0); + regmap_write(mixer->engine.regs, SUN8I_MIXER_FCC_EN, 0); + regmap_write(mixer->engine.regs, SUN8I_MIXER_DCSC_EN, 0); + /* Enable the mixer */ regmap_write(mixer->engine.regs, SUN8I_MIXER_GLOBAL_CTL, SUN8I_MIXER_GLOBAL_CTL_RT_EN); |