Files
linux/drivers/gpu/drm/i915/i915_freq.h
Jani Nikula 2d74a09360 drm/i915: split out i915_freq.[ch]
The i915 core only needs three rather specific functions from
soc/intel_dram.[ch]: i9xx_fsb_freq(), ilk_fsb_freq(), and
ilk_mem_freq(). Add new i915_freq.[ch] and duplicate those functions for
i915 to reduce the dependency on soc/ code.

Wile duplication in general is bad, here it's a tradeoff to simplify the
i915, xe and display interactions.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/7bac1b194afdc20cd45e625a0a32fcbcd0b1136e.1763578288.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2025-11-21 12:11:49 +02:00

14 lines
358 B
C

/* SPDX-License-Identifier: MIT */
/* Copyright © 2025 Intel Corporation */
#ifndef __I915_FREQ_H__
#define __I915_FREQ_H__
struct drm_i915_private;
unsigned int i9xx_fsb_freq(struct drm_i915_private *i915);
unsigned int ilk_fsb_freq(struct drm_i915_private *i915);
unsigned int ilk_mem_freq(struct drm_i915_private *i915);
#endif /* __I915_FREQ_H__ */