diff options
author | Milan Pässler <milan@petabyte.dev> | 2020-10-10 16:57:52 +0200 |
---|---|---|
committer | Milan Pässler <milan@petabyte.dev> | 2020-10-10 16:57:52 +0200 |
commit | 19ac914c4ec5a40165c50ed9d41f7490a2383fa4 (patch) | |
tree | 99bf23701df2016e5fc391ea8de3436c86d8ea6a /configs | |
parent | 38ab1843819e461543749c8a849a2d876ed6002e (diff) |
.
Diffstat (limited to 'configs')
-rw-r--r-- | configs/boards/t440p.nix | 8 | ||||
-rw-r--r-- | configs/boards/t60.nix | 6 | ||||
-rw-r--r-- | configs/boards/x1c.nix | 6 | ||||
-rw-r--r-- | configs/boards/x220.nix | 6 | ||||
-rw-r--r-- | configs/boards/x230-fhd.nix | 9 | ||||
-rw-r--r-- | configs/boards/x230.nix | 6 | ||||
-rw-r--r-- | configs/boards/x230t.nix | 4 | ||||
-rw-r--r-- | configs/common.nix | 11 | ||||
-rw-r--r-- | configs/milan-x1c.nix | 15 |
9 files changed, 71 insertions, 0 deletions
diff --git a/configs/boards/t440p.nix b/configs/boards/t440p.nix new file mode 100644 index 000000000000..5d3f29e7e68f --- /dev/null +++ b/configs/boards/t440p.nix @@ -0,0 +1,8 @@ +{ ... }: + +{ + CONFIG_VENDOR_LENOVO = "y"; + CONFIG_BOARD_LENOVO_THINKPAD_T440P = "y"; + + # TODO: fetch mrc.bin +} diff --git a/configs/boards/t60.nix b/configs/boards/t60.nix new file mode 100644 index 000000000000..9af80af158ff --- /dev/null +++ b/configs/boards/t60.nix @@ -0,0 +1,6 @@ +{ ... }: + +{ + CONFIG_VENDOR_LENOVO = "y"; + CONFIG_BOARD_LENOVO_T60 = "y"; +} diff --git a/configs/boards/x1c.nix b/configs/boards/x1c.nix new file mode 100644 index 000000000000..c2a3774dadc2 --- /dev/null +++ b/configs/boards/x1c.nix @@ -0,0 +1,6 @@ +{ ... }: + +{ + CONFIG_VENDOR_LENOVO = "y"; + CONFIG_BOARD_LENOVO_X1_CARBON_GEN1 = "y"; +} diff --git a/configs/boards/x220.nix b/configs/boards/x220.nix new file mode 100644 index 000000000000..4db72bcbb94d --- /dev/null +++ b/configs/boards/x220.nix @@ -0,0 +1,6 @@ +{ ... }: + +{ + CONFIG_VENDOR_LENOVO = "y"; + CONFIG_BOARD_LENOVO_X220 = "y"; +} diff --git a/configs/boards/x230-fhd.nix b/configs/boards/x230-fhd.nix new file mode 100644 index 000000000000..bb198aba4826 --- /dev/null +++ b/configs/boards/x230-fhd.nix @@ -0,0 +1,9 @@ +{ ... }: + +{ + imports = [ + ./x230.nix + ]; + + # TODO: modify vbt to hide LVDS +} diff --git a/configs/boards/x230.nix b/configs/boards/x230.nix new file mode 100644 index 000000000000..5563f11fdbad --- /dev/null +++ b/configs/boards/x230.nix @@ -0,0 +1,6 @@ +{ ... }: + +{ + CONFIG_VENDOR_LENOVO = "y"; + CONFIG_BOARD_LENOVO_X230 = "y"; +} diff --git a/configs/boards/x230t.nix b/configs/boards/x230t.nix new file mode 100644 index 000000000000..884b314b96b3 --- /dev/null +++ b/configs/boards/x230t.nix @@ -0,0 +1,4 @@ +{ + CONFIG_VENDOR_LENOVO = "y"; + CONFIG_BOARD_LENOVO_X230T = "y"; +} diff --git a/configs/common.nix b/configs/common.nix new file mode 100644 index 000000000000..113860f7ea7e --- /dev/null +++ b/configs/common.nix @@ -0,0 +1,11 @@ +{ ... }: + +{ + coreboot.corebootConfig = { + CONFIG_PAYLOAD_NONE = "y"; # payload is added later + CONFIG_CBFS_SIZE = lib.mkDefault "0x300000"; + CONFIG_USE_OPTION_TABLE = lib.mkDefault "y"; + CONFIG_PCIEXP_CLK_PM = lib.mkDefault "y"; + CONFIG_GENERIC_LINEAR_FRAMEBUFFER = lib.mkDefault "y"; + }; +} diff --git a/configs/milan-x1c.nix b/configs/milan-x1c.nix new file mode 100644 index 000000000000..b88474a210f8 --- /dev/null +++ b/configs/milan-x1c.nix @@ -0,0 +1,15 @@ +{ ... }: + +{ + imports = [ + ./common.nix + ./boards/x1c.nix + ]; + + coreboot.corebootConfig = { + CONFIG_LINEAR_FRAMEBUFFER_MAX_WIDTH = "1600"; + CONFIG_LINEAR_FRAMEBUFFER_MAX_HEIGHT = "900"; + }; + + grub2.enable = true; +} |