purism/librem_skl: remove 13v3 target, clean up Kconfig

Remove the Librem 13v3 as a separate board; instead build a
single firmware image for the 13 v2/v3 boards.

Clean up Kconfig options:
- remove entries for 13v3 board
- fold entries into a single line where possible
- remove redundant MAINBOARD_VERSION option (will default to 1.0)
- remove unused microcode length/location (only needed for FSP CAR)

Test: build/boot Librem 13 v2/v3 boards with same image

Change-Id: Ic09b8ec5c576f4c4c48ef30ee3f60a4c2c286cd3
Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32515
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Matt DeVillier 2019-04-29 16:03:12 -05:00 committed by Patrick Georgi
parent 32f48a2d56
commit 6a4a026e13
2 changed files with 7 additions and 37 deletions

View File

@ -19,11 +19,8 @@ config IRQ_SLOT_COUNT
config VARIANT_DIR config VARIANT_DIR
string string
default "librem13v2" if BOARD_PURISM_LIBREM13_V2 default "librem13v2" if BOARD_PURISM_LIBREM13_V2 || BOARD_PURISM_LIBREM13_V4
default "librem13v2" if BOARD_PURISM_LIBREM13_V3 default "librem15v3" if BOARD_PURISM_LIBREM15_V3 || BOARD_PURISM_LIBREM15_V4
default "librem15v3" if BOARD_PURISM_LIBREM15_V3
default "librem13v2" if BOARD_PURISM_LIBREM13_V4
default "librem15v3" if BOARD_PURISM_LIBREM15_V4
config MAINBOARD_VENDOR config MAINBOARD_VENDOR
string string
@ -31,28 +28,16 @@ config MAINBOARD_VENDOR
config MAINBOARD_FAMILY config MAINBOARD_FAMILY
string string
default "Librem 13" if BOARD_PURISM_LIBREM13_V2 default "Librem 13" if BOARD_PURISM_LIBREM13_V2 || BOARD_PURISM_LIBREM13_V4
default "Librem 13" if BOARD_PURISM_LIBREM13_V3 default "Librem 15" if BOARD_PURISM_LIBREM15_V3 || BOARD_PURISM_LIBREM15_V4
default "Librem 15" if BOARD_PURISM_LIBREM15_V3
default "Librem 13" if BOARD_PURISM_LIBREM13_V4
default "Librem 15" if BOARD_PURISM_LIBREM15_V4
config MAINBOARD_PART_NUMBER config MAINBOARD_PART_NUMBER
string string
default "Librem 13 v2" if BOARD_PURISM_LIBREM13_V2 default "Librem 13 v2" if BOARD_PURISM_LIBREM13_V2
default "Librem 13 v2" if BOARD_PURISM_LIBREM13_V3
default "Librem 15 v3" if BOARD_PURISM_LIBREM15_V3 default "Librem 15 v3" if BOARD_PURISM_LIBREM15_V3
default "Librem 13 v4" if BOARD_PURISM_LIBREM13_V4 default "Librem 13 v4" if BOARD_PURISM_LIBREM13_V4
default "Librem 15 v4" if BOARD_PURISM_LIBREM15_V4 default "Librem 15 v4" if BOARD_PURISM_LIBREM15_V4
config MAINBOARD_VERSION
string
default "2.0" if BOARD_PURISM_LIBREM13_V2
default "3.0" if BOARD_PURISM_LIBREM13_V3
default "3.0" if BOARD_PURISM_LIBREM15_V3
default "4.0" if BOARD_PURISM_LIBREM13_V4
default "4.0" if BOARD_PURISM_LIBREM15_V4
config MAINBOARD_DIR config MAINBOARD_DIR
string string
default "purism/librem_skl" default "purism/librem_skl"
@ -67,11 +52,8 @@ config MAX_CPUS
config VGA_BIOS_ID config VGA_BIOS_ID
string string
default "8086,1916" if BOARD_PURISM_LIBREM13_V2 default "8086,1916" if BOARD_PURISM_LIBREM13_V2 || BOARD_PURISM_LIBREM15_V3
default "8086,1916" if BOARD_PURISM_LIBREM13_V3 default "8086,5916" if BOARD_PURISM_LIBREM13_V4 || BOARD_PURISM_LIBREM15_V4
default "8086,1916" if BOARD_PURISM_LIBREM15_V3
default "8086,5916" if BOARD_PURISM_LIBREM13_V4
default "8086,5916" if BOARD_PURISM_LIBREM15_V4
config DIMM_MAX config DIMM_MAX
int int
@ -81,14 +63,6 @@ config DIMM_SPD_SIZE
int int
default 512 default 512
config CPU_MICROCODE_CBFS_LEN
hex
default 0x18000
config CPU_MICROCODE_CBFS_LOC
hex
default 0xFFE115A0
config CBFS_SIZE config CBFS_SIZE
hex hex
default 0xe00000 default 0xe00000

View File

@ -1,9 +1,5 @@
config BOARD_PURISM_LIBREM13_V2 config BOARD_PURISM_LIBREM13_V2
bool "Librem 13 v2" bool "Librem 13 v2/v3"
select BOARD_PURISM_BASEBOARD_LIBREM_SKL
config BOARD_PURISM_LIBREM13_V3
bool "Librem 13 v3"
select BOARD_PURISM_BASEBOARD_LIBREM_SKL select BOARD_PURISM_BASEBOARD_LIBREM_SKL
config BOARD_PURISM_LIBREM15_V3 config BOARD_PURISM_LIBREM15_V3