Skip to content

Commit c559c2a

Browse files
committed
drm/i915/cnl: Fix aux selection for WA 1178
Current code always select _CNL_AUX_ANAOVRD1_B register regardless the pw in use. CNL_DISP_PW_AUX_B = 9 CNL_DISP_PW_AUX_C = 10 CNL_DISP_PW_AUX_D = 11 And for pick we want B = 0 C = 1 D = 2 Fixes: ddd39e4 ("drm/i915/cnl: apply Display WA raspberrypi#1178 to fix type C dongles") Cc: Lucas De Marchi <[email protected]> Signed-off-by: Rodrigo Vivi <[email protected]> Acked-by: Lucas De Marchi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent a8e6f38 commit c559c2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/i915_reg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8420,7 +8420,7 @@ enum skl_power_gate {
84208420
#define SKL_PW_TO_PG(pw) ((pw) - SKL_DISP_PW_1 + SKL_PG1)
84218421
#define SKL_FUSE_PG_DIST_STATUS(pg) (1 << (27 - (pg)))
84228422

8423-
#define _CNL_AUX_REG_IDX(pw) ((pw - 1) >> 4)
8423+
#define _CNL_AUX_REG_IDX(pw) ((pw) - 9)
84248424
#define _CNL_AUX_ANAOVRD1_B 0x162250
84258425
#define _CNL_AUX_ANAOVRD1_C 0x162210
84268426
#define _CNL_AUX_ANAOVRD1_D 0x1622D0

0 commit comments

Comments
 (0)