summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/display/intel_hti_regs.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2022-11-09 16:42:06 +0200
committerJani Nikula <jani.nikula@intel.com>2022-11-17 16:12:56 +0200
commit03120feffb21703bb4d61ae85c574889c6cb13d7 (patch)
tree8a9b08c25598a9cc2f380c7829b2d184751ac103 /drivers/gpu/drm/i915/display/intel_hti_regs.h
parent164312df95a6704da99e528b652720d007500413 (diff)
downloadlinux-03120feffb21703bb4d61ae85c574889c6cb13d7.tar.gz
linux-03120feffb21703bb4d61ae85c574889c6cb13d7.tar.bz2
linux-03120feffb21703bb4d61ae85c574889c6cb13d7.zip
drm/i915/hti: abstract hti handling
The HTI or HDPORT handling is sprinkled around. Centralize to one place. Add a note about how subtle the mapping from HDPORT_STATE register to dpll mask actually is. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221109144209.3624739-1-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_hti_regs.h')
-rw-r--r--drivers/gpu/drm/i915/display/intel_hti_regs.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_hti_regs.h b/drivers/gpu/drm/i915/display/intel_hti_regs.h
new file mode 100644
index 000000000000..e206f2837fc8
--- /dev/null
+++ b/drivers/gpu/drm/i915/display/intel_hti_regs.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2022 Intel Corporation
+ */
+
+#ifndef __INTEL_HTI_REGS_H__
+#define __INTEL_HTI_REGS_H__
+
+#include "i915_reg_defs.h"
+
+#define HDPORT_STATE _MMIO(0x45050)
+#define HDPORT_DPLL_USED_MASK REG_GENMASK(15, 12)
+#define HDPORT_DDI_USED(phy) REG_BIT(2 * (phy) + 1)
+#define HDPORT_ENABLED REG_BIT(0)
+
+#endif /* __INTEL_HTI_REGS_H__ */