mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-04 15:03:29 +01:00
rockchip/rk3399: init
This commit is contained in:
1 parent
c5666d9cd6
commit
52047449bf
4 files changed
+129
No files matched your search
@@ -0,0 +1,33 @@
|
||||
{ lib
|
||||
, pkgs
|
||||
, config
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
cfg = config.hardware.rockchip;
|
||||
in {
|
||||
options.hardware.rockchip = {
|
||||
enable = lib.mkEnableOption "Rockchip SoC support";
|
||||
diskoImageName = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "main.raw";
|
||||
description = ''
|
||||
The output image name for Disko.
|
||||
Can be used by diskoExtraPostVM.
|
||||
'';
|
||||
};
|
||||
diskoExtraPostVM = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = ''
|
||||
The post VM hook for Disko's Image Builder.
|
||||
Can be used to install platform firmware like U-Boot.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
boot = {
|
||||
kernelParams = [ "console=ttyS2,1500000n8" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user