OLIMEX Teres-I: Init

Initial declaration of the device
This commit is contained in:
Jacob Hrbek 2023-10-04 23:30:04 +02:00 committed by mergify[bot]
parent f4ef5df944
commit 93fcc5fb82
2 changed files with 31 additions and 0 deletions

View file

@ -170,6 +170,7 @@
omen-15-en1007sa = import ./omen/15-en1007sa; omen-15-en1007sa = import ./omen/15-en1007sa;
omen-en00015p = import ./omen/en00015p; omen-en00015p = import ./omen/en00015p;
onenetbook-4 = import ./onenetbook/4; onenetbook-4 = import ./onenetbook/4;
olimex-teres_i = import ./olimex/teres_i;
pcengines-apu = import ./pcengines/apu; pcengines-apu = import ./pcengines/apu;
pine64-pinebook-pro = import ./pine64/pinebook-pro; pine64-pinebook-pro = import ./pine64/pinebook-pro;
pine64-rockpro64 = import ./pine64/rockpro64; pine64-rockpro64 = import ./pine64/rockpro64;

View file

@ -0,0 +1,30 @@
{ config, lib, pkgs, ...}:
{
hardware.deviceTree = {
name = lib.mkDefault "allwinner/sun50i-a64-teres-i.dts";
enable = lib.mkDefault true;
};
boot = {
consoleLogLevel = lib.mkDefault 7;
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
kernelParams = lib.mkDefault ["console=ttyS0,115200n8"];
extraModulePackages = lib.mkDefault [];
initrd = {
availableKernelModules = lib.mkDefault ["usbhid"];
kernelModules = lib.mkDefault [];
};
loader = {
grub.enable = lib.mkDefault false;
generic-extlinux-compatible.enable = lib.mkDefault true;
};
};
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
}