From e0e98eb11db3de9477eeabc3c41bf08d11985772 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Sat, 3 Nov 2018 15:57:37 +0100 Subject: src/mb/asus/p5qc/gpio.c: Allow specifying a gpio.c in Kconfig Even though these two mainboards use the same gpio.c file, other boards such as the p5ql_pro do not. Change-Id: I2f7c8c12cb1bdcf47f3b4d4cef0b11e44a5b8863 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/29447 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph Reviewed-by: Nico Huber --- src/mainboard/asus/p5qc/Kconfig | 4 ++++ src/mainboard/asus/p5qc/Makefile.inc | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mainboard/asus/p5qc/Kconfig b/src/mainboard/asus/p5qc/Kconfig index c3b287c301..8661fd6ccb 100644 --- a/src/mainboard/asus/p5qc/Kconfig +++ b/src/mainboard/asus/p5qc/Kconfig @@ -48,6 +48,10 @@ config DEVICETREE string default "variants/$(CONFIG_VARIANT_DIR)/devicetree.cb" +config GPIO_C + string + default "gpio.c" + config MAX_CPUS int default 4 diff --git a/src/mainboard/asus/p5qc/Makefile.inc b/src/mainboard/asus/p5qc/Makefile.inc index 630abda711..5c1d211ca7 100644 --- a/src/mainboard/asus/p5qc/Makefile.inc +++ b/src/mainboard/asus/p5qc/Makefile.inc @@ -11,5 +11,7 @@ # GNU General Public License for more details. # +CONFIG_GPIO_C:=$(call strip_quotes, $(CONFIG_GPIO_C)) + ramstage-y += cstates.c -romstage-y += gpio.c +romstage-y += $(CONFIG_GPIO_C) -- cgit v1.2.3