Skip to content

Commit b4335ec

Browse files
author
Manasi Navare
committed
drm/i915/icl: Fix the macros for DFLEXDPMLE register bits
This patch fixes the macros used for defining the DFLEXDPMLE register bit fields. This accounts for changes in the spec. Fixes: a2bc69a ("drm/i915/icl: Add register definition for DFLEXDPMLE") Cc: Animesh Manna <animesh.manna@intel.com> Cc: Paulo Zanoni <paulo.r.zanoni@intel.com> Cc: Jose Roberto de Souza <jose.souza@intel.com> Cc: <stable@vger.kernel.org> # v4.19+ Signed-off-by: Manasi Navare <manasi.d.navare@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181023191248.26418-1-manasi.d.navare@intel.com
1 parent 17a3b15 commit b4335ec

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/gpu/drm/i915/i915_reg.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,8 +2059,12 @@ enum i915_power_well_id {
20592059

20602060
/* ICL PHY DFLEX registers */
20612061
#define PORT_TX_DFLEXDPMLE1 _MMIO(0x1638C0)
2062-
#define DFLEXDPMLE1_DPMLETC_MASK(n) (0xf << (4 * (n)))
2063-
#define DFLEXDPMLE1_DPMLETC(n, x) ((x) << (4 * (n)))
2062+
#define DFLEXDPMLE1_DPMLETC_MASK(tc_port) (0xf << (4 * (tc_port)))
2063+
#define DFLEXDPMLE1_DPMLETC_ML0(tc_port) (1 << (4 * (tc_port)))
2064+
#define DFLEXDPMLE1_DPMLETC_ML1_0(tc_port) (3 << (4 * (tc_port)))
2065+
#define DFLEXDPMLE1_DPMLETC_ML3(tc_port) (8 << (4 * (tc_port)))
2066+
#define DFLEXDPMLE1_DPMLETC_ML3_2(tc_port) (12 << (4 * (tc_port)))
2067+
#define DFLEXDPMLE1_DPMLETC_ML3_0(tc_port) (15 << (4 * (tc_port)))
20642068

20652069
/* BXT PHY Ref registers */
20662070
#define _PORT_REF_DW3_A 0x16218C

0 commit comments

Comments
 (0)