mb/clevo/l140cu: Make usage of variant mechanism
Clevo mainboards can be grouped by their common platform. Therefore, restructure the mainboard directory as a first step, so that the variant mechanism is used. This moves most of the code into the variant dir, since the L140CU is the only variant at the moment. Change-Id: I9ad1c06f9db854cac1dd420c53dc0c9f010ed716 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45664 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
a25eaffb69
commit
1f4b3cdeb0
12 changed files with 22 additions and 13 deletions
|
@ -27,19 +27,23 @@ config MAINBOARD_DIR
|
|||
|
||||
config MAINBOARD_PART_NUMBER
|
||||
string
|
||||
default "L140CU"
|
||||
default "L140CU" if BOARD_CLEVO_L140CU
|
||||
|
||||
config MAINBOARD_SMBIOS_PRODUCT_NAME
|
||||
string
|
||||
default "L140CU"
|
||||
default "L140CU" if BOARD_CLEVO_L140CU
|
||||
|
||||
config MAINBOARD_VERSION
|
||||
string
|
||||
default "2.1A"
|
||||
default "2.1A" if BOARD_CLEVO_L140CU
|
||||
|
||||
config DEVICETREE
|
||||
string
|
||||
default "variants/$(CONFIG_VARIANT_DIR)/devicetree.cb"
|
||||
|
||||
config CBFS_SIZE
|
||||
hex
|
||||
default 0xc00000
|
||||
default 0xc00000 if BOARD_CLEVO_L140CU
|
||||
|
||||
config CONSOLE_POST
|
||||
bool
|
||||
|
@ -51,11 +55,11 @@ config UART_FOR_CONSOLE
|
|||
|
||||
config MAX_CPUS
|
||||
int
|
||||
default 8
|
||||
default 8 if BOARD_CLEVO_L140CU
|
||||
|
||||
config DIMM_MAX
|
||||
int
|
||||
default 2
|
||||
default 2 if BOARD_CLEVO_L140CU
|
||||
|
||||
config DIMM_SPD_SIZE
|
||||
int
|
||||
|
@ -71,10 +75,14 @@ config VGA_BIOS_ID
|
|||
|
||||
config TPM_PIRQ
|
||||
hex
|
||||
default 0x10 # GPP_A7/PIRQA#
|
||||
default 0x10 if BOARD_CLEVO_L140CU # GPP_A7/PIRQA#
|
||||
|
||||
config POST_DEVICE
|
||||
bool
|
||||
default n
|
||||
|
||||
config VARIANT_DIR
|
||||
string
|
||||
default "l140cu" if BOARD_CLEVO_L140CU
|
||||
|
||||
endif
|
||||
|
|
|
@ -1,4 +1 @@
|
|||
bootblock-y += bootblock.c
|
||||
ramstage-y += ramstage.c
|
||||
ramstage-y += hda_verb.c
|
||||
SPD_SOURCES = samsung-K4AAG165WA-BCTD
|
||||
subdirs-y += variants/$(VARIANT_DIR)
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
Vendor name: Clevo
|
||||
Board name: L140CU
|
||||
Category: laptop
|
||||
Release year: 2020
|
||||
ROM package: SOIC-8
|
||||
ROM protocol: SPI
|
||||
ROM socketed: n
|
||||
|
|
4
src/mainboard/clevo/l140cu/variants/l140cu/Makefile.inc
Normal file
4
src/mainboard/clevo/l140cu/variants/l140cu/Makefile.inc
Normal file
|
@ -0,0 +1,4 @@
|
|||
bootblock-y += bootblock.c
|
||||
ramstage-y += ramstage.c
|
||||
ramstage-y += hda_verb.c
|
||||
SPD_SOURCES = samsung-K4AAG165WA-BCTD
|
|
@ -0,0 +1,2 @@
|
|||
Board name: L140CU
|
||||
Release year: 2020
|
Loading…
Reference in a new issue