]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915: add new "soc" sub-directory and move PCH and DRAM code there
authorJani Nikula <jani.nikula@intel.com>
Thu, 8 Dec 2022 14:23:47 +0000 (16:23 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 13 Dec 2022 13:16:27 +0000 (15:16 +0200)
Add a new sub-directory for things that aren't specifically about the
GPU and don't really belong in the i915 driver top level, but also don't
belong under any of the existing sub-directories either.

Name it "soc", and move the PCH and DRAM code there.

Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221208142347.602726-1-jani.nikula@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/i915_driver.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/soc/intel_dram.c [moved from drivers/gpu/drm/i915/intel_dram.c with 100% similarity]
drivers/gpu/drm/i915/soc/intel_dram.h [moved from drivers/gpu/drm/i915/intel_dram.h with 100% similarity]
drivers/gpu/drm/i915/soc/intel_pch.c [moved from drivers/gpu/drm/i915/intel_pch.c with 100% similarity]
drivers/gpu/drm/i915/soc/intel_pch.h [moved from drivers/gpu/drm/i915/intel_pch.h with 100% similarity]

index cb8232bd315bede3c6319a24514fb44dc60bd721..0ed5985c03b5bb8d17c92c40d975b459ff85d8e2 100644 (file)
@@ -48,9 +48,7 @@ i915-y += i915_driver.o \
          i915_sysfs.o \
          i915_utils.o \
          intel_device_info.o \
-         intel_dram.o \
          intel_memory_region.o \
-         intel_pch.o \
          intel_pcode.o \
          intel_pm.o \
          intel_region_ttm.o \
@@ -62,6 +60,11 @@ i915-y += i915_driver.o \
          vlv_sideband.o \
          vlv_suspend.o
 
+# core peripheral code
+i915-y += \
+       soc/intel_dram.o \
+       soc/intel_pch.o
+
 # core library code
 i915-y += \
        i915_memcpy.o \
index c3d43f9b1e45dbaefcb341a27436889ea44464bf..9ceea52ad9db6b2a418e4c97a8c4bcbfb0c184ff 100644 (file)
@@ -75,6 +75,8 @@
 
 #include "pxp/intel_pxp_pm.h"
 
+#include "soc/intel_dram.h"
+
 #include "i915_file_private.h"
 #include "i915_debugfs.h"
 #include "i915_driver.h"
@@ -93,7 +95,6 @@
 #include "i915_sysfs.h"
 #include "i915_utils.h"
 #include "i915_vgpu.h"
-#include "intel_dram.h"
 #include "intel_gvt.h"
 #include "intel_memory_region.h"
 #include "intel_pci_config.h"
index 5d2c54456cc1f422b61113b55e26f3363e9bfd39..05b84196216c43c90149e14729ff1c40fcebc5b6 100644 (file)
@@ -49,6 +49,8 @@
 #include "gt/intel_workarounds.h"
 #include "gt/uc/intel_uc.h"
 
+#include "soc/intel_pch.h"
+
 #include "i915_drm_client.h"
 #include "i915_gem.h"
 #include "i915_gpu_error.h"
@@ -58,7 +60,6 @@
 #include "i915_utils.h"
 #include "intel_device_info.h"
 #include "intel_memory_region.h"
-#include "intel_pch.h"
 #include "intel_runtime_pm.h"
 #include "intel_step.h"
 #include "intel_uncore.h"