diff options
author | Eric Anholt <eric@anholt.net> | 2016-04-01 03:38:20 +0200 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2016-05-03 01:17:10 +0200 |
commit | e582b6c7e7f9d0b1e30e8017e4082d3a9ede3310 (patch) | |
tree | 0ab5994a6920b71815ed153573e0db989282c591 /drivers/gpu/drm/vc4/vc4_regs.h | |
parent | drm/vc4: Fix NULL deref in HDMI init error path (diff) | |
download | linux-e582b6c7e7f9d0b1e30e8017e4082d3a9ede3310.tar.xz linux-e582b6c7e7f9d0b1e30e8017e4082d3a9ede3310.zip |
drm/vc4: Add support for gamma ramps.
We could possibly save a bit of power by not requesting gamma
conversion when the ramp happens to be 1:1, but at least if all the
CRTCs are off the SRAM will be disabled.
This should fix brightness sliders in a lot of fullscreen games.
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_regs.h')
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_regs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_regs.h b/drivers/gpu/drm/vc4/vc4_regs.h index bf42a8e87111..6163b95c5411 100644 --- a/drivers/gpu/drm/vc4/vc4_regs.h +++ b/drivers/gpu/drm/vc4/vc4_regs.h @@ -390,6 +390,12 @@ #define SCALER_DISPBASE2 0x0000006c #define SCALER_DISPALPHA2 0x00000070 #define SCALER_GAMADDR 0x00000078 +# define SCALER_GAMADDR_AUTOINC BIT(31) +/* Enables all gamma ramp SRAMs, not just those of CRTCs with gamma + * enabled. + */ +# define SCALER_GAMADDR_SRAMENB BIT(30) + #define SCALER_GAMDATA 0x000000e0 #define SCALER_DLIST_START 0x00002000 #define SCALER_DLIST_SIZE 0x00004000 |