Skip to content

Commit 5869d90

Browse files
wensmripard
authored andcommitted
drm/sun4i: tcon: Rename Dithering related register macros
Dithering is only supported for TCON channel 0. Throughout the datasheet all the names associated with these register are prefixed "TCON0", instead of "TCON". The only exception is the control register "TCON_FRM_CTL_REG". Rename the macros to reflect this. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180907041948.19913-3-wens@csie.org
1 parent 79891d5 commit 5869d90

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

drivers/gpu/drm/sun4i/sun4i_tcon.h

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,21 @@
3737
#define SUN4I_TCON_GINT1_REG 0x8
3838

3939
#define SUN4I_TCON_FRM_CTL_REG 0x10
40-
#define SUN4I_TCON_FRM_CTL_EN BIT(31)
41-
42-
#define SUN4I_TCON_FRM_SEED_PR_REG 0x14
43-
#define SUN4I_TCON_FRM_SEED_PG_REG 0x18
44-
#define SUN4I_TCON_FRM_SEED_PB_REG 0x1c
45-
#define SUN4I_TCON_FRM_SEED_LR_REG 0x20
46-
#define SUN4I_TCON_FRM_SEED_LG_REG 0x24
47-
#define SUN4I_TCON_FRM_SEED_LB_REG 0x28
48-
#define SUN4I_TCON_FRM_TBL0_REG 0x2c
49-
#define SUN4I_TCON_FRM_TBL1_REG 0x30
50-
#define SUN4I_TCON_FRM_TBL2_REG 0x34
51-
#define SUN4I_TCON_FRM_TBL3_REG 0x38
40+
#define SUN4I_TCON0_FRM_CTL_EN BIT(31)
41+
#define SUN4I_TCON0_FRM_CTL_MODE_R BIT(6)
42+
#define SUN4I_TCON0_FRM_CTL_MODE_G BIT(5)
43+
#define SUN4I_TCON0_FRM_CTL_MODE_B BIT(4)
44+
45+
#define SUN4I_TCON0_FRM_SEED_PR_REG 0x14
46+
#define SUN4I_TCON0_FRM_SEED_PG_REG 0x18
47+
#define SUN4I_TCON0_FRM_SEED_PB_REG 0x1c
48+
#define SUN4I_TCON0_FRM_SEED_LR_REG 0x20
49+
#define SUN4I_TCON0_FRM_SEED_LG_REG 0x24
50+
#define SUN4I_TCON0_FRM_SEED_LB_REG 0x28
51+
#define SUN4I_TCON0_FRM_TBL0_REG 0x2c
52+
#define SUN4I_TCON0_FRM_TBL1_REG 0x30
53+
#define SUN4I_TCON0_FRM_TBL2_REG 0x34
54+
#define SUN4I_TCON0_FRM_TBL3_REG 0x38
5255

5356
#define SUN4I_TCON0_CTL_REG 0x40
5457
#define SUN4I_TCON0_CTL_TCON_ENABLE BIT(31)

0 commit comments

Comments
 (0)