History

drm/sun4i: Disable unused DE2 sub-engines

Some sub-engines are unused. Disable them explicitly.

Jernej Skrabec committed 8 years ago

Commit 97eb57f1 parent 218d6a32 files · +11 −2Browse files

Unified · Split

2 files
  1. drivers/gpu/drm/sun4i/sun8i_mixer.c +9 −0
  2. drivers/gpu/drm/sun4i/sun8i_mixer.h +2 −2
drivers/gpu/drm/sun4i/sun8i_mixer.c+9−0
@@ -463,6 +463,15 @@ static int sun8i_mixer_bind(struct device *dev, struct device *master, · 462 unmodified lines
463463 for (i = 0; i < DE2_MIXER_UNIT_SIZE; i += 4)
464464 regmap_write(mixer->engine.regs, i, 0);
465465
466+ /* Disable unused sub-engines */
467+ regmap_write(mixer->engine.regs, SUN8I_MIXER_FCE_EN, 0);
468+ regmap_write(mixer->engine.regs, SUN8I_MIXER_BWS_EN, 0);
469+ regmap_write(mixer->engine.regs, SUN8I_MIXER_LTI_EN, 0);
470+ regmap_write(mixer->engine.regs, SUN8I_MIXER_PEAK_EN, 0);
471+ regmap_write(mixer->engine.regs, SUN8I_MIXER_ASE_EN, 0);
472+ regmap_write(mixer->engine.regs, SUN8I_MIXER_FCC_EN, 0);
473+ regmap_write(mixer->engine.regs, SUN8I_MIXER_DCSC_EN, 0);
474+
466475 /* Enable the mixer */
467476 regmap_write(mixer->engine.regs, SUN8I_MIXER_GLOBAL_CTL,
468477 SUN8I_MIXER_GLOBAL_CTL_RT_EN);
drivers/gpu/drm/sun4i/sun8i_mixer.h+2−2
@@ -101,8 +101,8 @@ · 100 unmodified lines
101101 #define SUN8I_MIXER_FBFMT_YUV411 14
102102
103103 /*
104− * These sub-engines are still unknown now, the EN registers are here only to
105− * be used to disable these sub-engines.
104+ * Sub-engines listed bellow are unused for now. The EN registers are here only
105+ * to be used to disable these sub-engines.
106106 */
107107 #define SUN8I_MIXER_FCE_EN 0xa0000
108108 #define SUN8I_MIXER_BWS_EN 0xa2000

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t