summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorGabriel Ebner <gebner@gebner.org>2016-08-26 07:32:05 +0200
committerGabriel Ebner <gebner@gebner.org>2016-08-26 08:45:49 +0200
commit7b01df18a2a160c28c6f234c9d20a8cdeee02e64 (patch)
tree48a4f6ebb920ead7102ae7cab43e79c5540ba586 /pkgs/os-specific
parent8512747ca5120a4cf6cd41ad9e049866e37a351c (diff)
downloadnixlib-7b01df18a2a160c28c6f234c9d20a8cdeee02e64.tar
nixlib-7b01df18a2a160c28c6f234c9d20a8cdeee02e64.tar.gz
nixlib-7b01df18a2a160c28c6f234c9d20a8cdeee02e64.tar.bz2
nixlib-7b01df18a2a160c28c6f234c9d20a8cdeee02e64.tar.lz
nixlib-7b01df18a2a160c28c6f234c9d20a8cdeee02e64.tar.xz
nixlib-7b01df18a2a160c28c6f234c9d20a8cdeee02e64.tar.zst
nixlib-7b01df18a2a160c28c6f234c9d20a8cdeee02e64.zip
kernel: config: enable DRM_AMD_POWERPLAY
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index 509fb281195d..7cec276a4faf 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -181,6 +181,9 @@ with stdenv.lib;
   VGA_SWITCHEROO y # Hybrid graphics support
   DRM_GMA600 y
   DRM_GMA3600 y
+  ${optionalString (versionAtLeast version "4.5") ''
+    DRM_AMD_POWERPLAY y # necessary for amdgpu polaris support
+  ''}
 
   # Sound.
   SND_DYNAMIC_MINORS y