From d540d740b6e76ece7a3fbd5d8803f652a176b50c Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Mon, 23 Oct 2017 11:29:35 -0600 Subject: mainboard/google/kahlee: Prepare for variants Move files that are particularly specific to the mainboard into the variant directory. Files that only have small areas of mainboard specific pieces use #if to separate between the boards. Add memory.c to split out the variant board id into a weak function. Add baseboard/gpio.h to satisfy the build - this will be updated in the next commit. BUG=b:68293392 Change-Id: I7c1beb45f571f2547f3b5b0d7ec78923d0cec761 Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/22185 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/mainboard/google/kahlee/Kconfig | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/mainboard/google/kahlee/Kconfig') diff --git a/src/mainboard/google/kahlee/Kconfig b/src/mainboard/google/kahlee/Kconfig index 76e8eada8e..ddb1955c2b 100644 --- a/src/mainboard/google/kahlee/Kconfig +++ b/src/mainboard/google/kahlee/Kconfig @@ -35,9 +35,17 @@ config MAINBOARD_DIR string default google/kahlee +config VARIANT_DIR + string + default "kahlee" if BOARD_GOOGLE_KAHLEE + config MAINBOARD_PART_NUMBER string - default "Kahlee" + default "Kahlee" if BOARD_GOOGLE_KAHLEE + +config DEVICETREE + string + default "variants/${CONFIG_VARIANT_DIR}/devicetree.cb" config MAX_CPUS int @@ -66,7 +74,7 @@ config CHROMEOS config GBB_HWID string depends on CHROMEOS - default "KAHLEE TEST 6421" + default "KAHLEE TEST 6421" if BOARD_GOOGLE_KAHLEE config AMD_FWM_POSITION_INDEX int -- cgit v1.2.3