mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-03 08:47:13 +08:00
NixOS kernels don't have pinctrl_tigerlake built-in, we need to make sure it loads before soc_button_array. Adding it to the initrd ensures that. Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
14 lines
393 B
Nix
14 lines
393 B
Nix
{ config, lib, ... }:
|
|
{
|
|
imports = [
|
|
../common
|
|
../../../common/cpu/intel
|
|
];
|
|
|
|
# If this module isn't built into the kernel, we need to make sure it loads
|
|
# before soc_button_array. Otherwise the tablet mode gpio doesn't work.
|
|
# If correctly loaded, dmesg should show
|
|
# input: gpio-keys as /devices/platform/INT33D3:00
|
|
boot.initrd.kernelModules = [ "pinctrl_tigerlake" ];
|
|
}
|