2018-06-17 02:21:41 +03:00
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
2018-06-17 03:43:19 +03:00
|
|
|
|
let
|
|
|
|
|
cfg = config.mobile.hardware.socs;
|
|
|
|
|
in
|
2018-06-17 02:21:41 +03:00
|
|
|
|
{
|
|
|
|
|
options.mobile = {
|
2018-07-02 00:58:30 +03:00
|
|
|
|
hardware.socs.qualcomm-apq8064-1aa.enable = mkOption {
|
|
|
|
|
type = types.bool;
|
|
|
|
|
default = false;
|
|
|
|
|
description = "enable when SOC is APQ8064–1AA";
|
|
|
|
|
};
|
2018-11-18 02:17:31 +03:00
|
|
|
|
hardware.socs.qualcomm-msm8953.enable = mkOption {
|
|
|
|
|
type = types.bool;
|
|
|
|
|
default = false;
|
|
|
|
|
description = "enable when SOC is msm8953";
|
|
|
|
|
};
|
2018-06-17 03:43:19 +03:00
|
|
|
|
hardware.socs.qualcomm-msm8939.enable = mkOption {
|
2018-06-17 02:21:41 +03:00
|
|
|
|
type = types.bool;
|
|
|
|
|
default = false;
|
|
|
|
|
description = "enable when SOC is msm8939";
|
|
|
|
|
};
|
2019-10-05 07:06:40 +03:00
|
|
|
|
hardware.socs.qualcomm-msm8996.enable = mkOption {
|
|
|
|
|
type = types.bool;
|
|
|
|
|
default = false;
|
|
|
|
|
description = "enable when SOC is msm8996";
|
|
|
|
|
};
|
2019-11-18 21:39:08 +03:00
|
|
|
|
hardware.socs.qualcomm-msm8998.enable = mkOption {
|
|
|
|
|
type = types.bool;
|
|
|
|
|
default = false;
|
|
|
|
|
description = "enable when SOC is msm8998";
|
|
|
|
|
};
|
2019-11-23 07:41:28 +03:00
|
|
|
|
hardware.socs.qualcomm-sdm660.enable = mkOption {
|
|
|
|
|
type = types.bool;
|
|
|
|
|
default = false;
|
|
|
|
|
description = "enable when SOC is SDM660";
|
|
|
|
|
};
|
2018-06-17 02:21:41 +03:00
|
|
|
|
};
|
|
|
|
|
|
2018-07-02 00:58:30 +03:00
|
|
|
|
config = mkMerge [
|
|
|
|
|
{
|
|
|
|
|
mobile = mkIf cfg.qualcomm-msm8939.enable {
|
2019-09-18 23:55:15 +03:00
|
|
|
|
system.system = "aarch64-linux";
|
2018-07-07 02:53:57 +03:00
|
|
|
|
quirks.qualcomm.msm-fb-handle.enable = true;
|
2018-07-02 00:58:30 +03:00
|
|
|
|
};
|
|
|
|
|
}
|
2018-11-18 02:17:31 +03:00
|
|
|
|
{
|
|
|
|
|
mobile = mkIf cfg.qualcomm-msm8953.enable {
|
2019-09-18 23:55:15 +03:00
|
|
|
|
system.system = "aarch64-linux";
|
2018-11-18 02:17:31 +03:00
|
|
|
|
quirks.qualcomm.msm-fb-handle.enable = true;
|
|
|
|
|
};
|
|
|
|
|
}
|
2019-10-05 07:06:40 +03:00
|
|
|
|
{
|
|
|
|
|
mobile = mkIf cfg.qualcomm-msm8996.enable {
|
|
|
|
|
system.system = "aarch64-linux";
|
|
|
|
|
quirks.qualcomm.msm-fb-handle.enable = true;
|
|
|
|
|
};
|
|
|
|
|
}
|
2019-11-18 21:39:08 +03:00
|
|
|
|
{
|
|
|
|
|
mobile = mkIf cfg.qualcomm-msm8998.enable {
|
|
|
|
|
system.system = "aarch64-linux";
|
|
|
|
|
quirks.qualcomm.msm-fb-handle.enable = true;
|
|
|
|
|
};
|
|
|
|
|
}
|
2019-11-23 07:41:28 +03:00
|
|
|
|
{
|
|
|
|
|
mobile = mkIf cfg.qualcomm-sdm660.enable {
|
|
|
|
|
system.system = "aarch64-linux";
|
|
|
|
|
quirks.qualcomm.msm-fb-handle.enable = true;
|
|
|
|
|
};
|
|
|
|
|
}
|
2018-07-02 00:58:30 +03:00
|
|
|
|
{
|
|
|
|
|
mobile = mkIf cfg.qualcomm-apq8064-1aa.enable {
|
2019-09-18 23:55:15 +03:00
|
|
|
|
system.system = "armv7l-linux";
|
2019-06-09 21:34:07 +03:00
|
|
|
|
quirks.qualcomm.msm-fb-refresher.enable = true;
|
2018-07-02 00:58:30 +03:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
];
|
2018-06-17 02:21:41 +03:00
|
|
|
|
}
|