summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2018-11-03 15:57:37 +0100
committerFelix Held <felix-coreboot@felixheld.de>2018-11-17 15:28:36 +0000
commite0e98eb11db3de9477eeabc3c41bf08d11985772 (patch)
tree0d8123bc61a6263cc78db31772432e3dfbb781db /src/mainboard
parent68aed91eb953fa4cab8c802c41c4d6d980d953c1 (diff)
downloadcoreboot-e0e98eb11db3de9477eeabc3c41bf08d11985772.tar.xz
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 <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/29447 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/asus/p5qc/Kconfig4
-rw-r--r--src/mainboard/asus/p5qc/Makefile.inc4
2 files changed, 7 insertions, 1 deletions
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)