diff options
author | Jani Nikula <jani.nikula@intel.com> | 2022-11-09 16:42:06 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2022-11-17 16:12:56 +0200 |
commit | 03120feffb21703bb4d61ae85c574889c6cb13d7 (patch) | |
tree | 8a9b08c25598a9cc2f380c7829b2d184751ac103 /drivers/gpu/drm/i915/display/intel_hti.h | |
parent | 164312df95a6704da99e528b652720d007500413 (diff) | |
download | linux-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.h')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_hti.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_hti.h b/drivers/gpu/drm/i915/display/intel_hti.h new file mode 100644 index 000000000000..2893d6668657 --- /dev/null +++ b/drivers/gpu/drm/i915/display/intel_hti.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: MIT */ +/* + * Copyright © 2022 Intel Corporation + */ + +#ifndef __INTEL_HTI_H__ +#define __INTEL_HTI_H__ + +#include <linux/types.h> + +struct drm_i915_private; +enum phy; + +void intel_hti_init(struct drm_i915_private *i915); +bool intel_hti_uses_phy(struct drm_i915_private *i915, enum phy phy); +u32 intel_hti_dpll_mask(struct drm_i915_private *i915); + +#endif /* __INTEL_HTI_H__ */ |