1
0
Fork 0
mirror of https://github.com/samueldr/wip-pinebook-pro.git synced 2024-11-27 05:19:44 +01:00
wip-pinebook-pro/kernel/latest/default.nix
Samuel Dionne-Riel 3d97b020e1 linux_pinebookpro_latest: workaround for display init
And follow latest from Nixpkgs
2020-07-26 20:44:34 -04:00

39 lines
1 KiB
Nix

{ pkgs, lib, linux_5_7, kernelPatches, ... } @ args:
linux_5_7.override({
kernelPatches = lib.lists.unique (kernelPatches ++ [
pkgs.kernelPatches.bridge_stp_helper
pkgs.kernelPatches.request_key_helper
pkgs.kernelPatches.export_kernel_fpu_functions."5.3"
{
name = "pinebookpro-5.7.patch";
patch = ./pinebookpro-5.7.patch;
}
{
name = "0001-HACK-Revert-pwm-Read-initial-hardware-state-at-reque.patch";
patch = ./0001-HACK-Revert-pwm-Read-initial-hardware-state-at-reque.patch;
}
{
name = "pinebookpro-config-fixes";
patch = null;
extraConfig = ''
PCIE_ROCKCHIP y
PCIE_ROCKCHIP_HOST y
PCIE_DW_PLAT y
PCIE_DW_PLAT_HOST y
PHY_ROCKCHIP_PCIE y
PHY_ROCKCHIP_INNO_HDMI y
PHY_ROCKCHIP_DP y
ROCKCHIP_MBOX y
STAGING_MEDIA y
VIDEO_HANTRO y
VIDEO_HANTRO_ROCKCHIP y
USB_DWC2_PCI y
ROCKCHIP_LVDS y
ROCKCHIP_RGB y
'';
}
]);
})
//
(args.argsOverride or {})