purism/librem13v2: convert to variant setup
Convert the Purism Librem13v2 board to a variant setup,
in preparation of adding the librem15v3 as a new variant.
The 13v2 and 15v3 are nearly identical, so this minimizes new
code to add support for the latter.
Change-Id: I5d648cdb8f63c03de5474253203b3d0853673294
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/22047
Reviewed-by: Youness Alaoui <snifikino@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/mainboard/purism/librem_skl/Kconfig b/src/mainboard/purism/librem_skl/Kconfig
new file mode 100644
index 0000000..de6b167
--- /dev/null
+++ b/src/mainboard/purism/librem_skl/Kconfig
@@ -0,0 +1,80 @@
+config BOARD_PURISM_BASEBOARD_LIBREM_SKL
+ def_bool n
+ select SYSTEM_TYPE_LAPTOP
+ select BOARD_ROMSIZE_KB_16384
+ select HAVE_ACPI_RESUME
+ select HAVE_ACPI_TABLES
+ select SOC_INTEL_SKYLAKE
+ # Workaround for EC/KBC IRQ1
+ select SERIRQ_CONTINUOUS_MODE
+ select MAINBOARD_USES_FSP2_0
+
+if BOARD_PURISM_BASEBOARD_LIBREM_SKL
+
+config IRQ_SLOT_COUNT
+ int
+ default 18
+
+config VARIANT_DIR
+ string
+ default "librem13v2" if BOARD_PURISM_LIBREM13_V2
+
+config MAINBOARD_VENDOR
+ string
+ default "Purism"
+
+config MAINBOARD_FAMILY
+ string
+ default "Librem 13" if BOARD_PURISM_LIBREM13_V2
+
+config MAINBOARD_PART_NUMBER
+ string
+ default "Librem 13 v2" if BOARD_PURISM_LIBREM13_V2
+
+config MAINBOARD_VERSION
+ string
+ default "2.0" if BOARD_PURISM_LIBREM13_V2
+
+config MAINBOARD_DIR
+ string
+ default "purism/librem_skl"
+
+config DEVICETREE
+ string
+ default "variants/librem13v2/devicetree.cb" if BOARD_PURISM_LIBREM13_V2
+
+config MAX_CPUS
+ int
+ default 8
+
+config NO_POST
+ def_bool y
+ help
+ This platform does not have any way to see POST codes
+ so disable them by default.
+
+config VGA_BIOS_ID
+ string
+ default "8086,1916"
+
+config DIMM_MAX
+ int
+ default 1
+
+config DIMM_SPD_SIZE
+ int
+ default 512
+
+config CPU_MICROCODE_CBFS_LEN
+ hex
+ default 0x18000
+
+config CPU_MICROCODE_CBFS_LOC
+ hex
+ default 0xFFE115A0
+
+config CBFS_SIZE
+ hex
+ default 0x5c0000
+
+endif