summaryrefslogtreecommitdiff
path: root/src/mainboard/clevo/kbl-u
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2020-12-04 09:05:48 +0100
committerMichael Niewöhner <foss@mniewoehner.de>2020-12-06 11:23:47 +0000
commiteb6bde07f006d69a068ccec681a3372471ec4a41 (patch)
treec3eeebefd7cfbdc0610e5a4ef0667186d498a81a /src/mainboard/clevo/kbl-u
parent42551478a787dec70d94df22f59c6466f566e07a (diff)
mb/clevo/kbl-u: Add a seperate method for early GPIOs
Add variant_configure_early_gpios() configuring early GPIOs to make the difference clear. Change-Id: I6e7c8c32963c9eeab4399947dac511442987cb45 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48298 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/clevo/kbl-u')
-rw-r--r--src/mainboard/clevo/kbl-u/bootblock.c2
-rw-r--r--src/mainboard/clevo/kbl-u/include/variant/gpio.h1
-rw-r--r--src/mainboard/clevo/kbl-u/variants/n13xwu/gpio_early.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/mainboard/clevo/kbl-u/bootblock.c b/src/mainboard/clevo/kbl-u/bootblock.c
index 8f085bee98..b351fbd8ef 100644
--- a/src/mainboard/clevo/kbl-u/bootblock.c
+++ b/src/mainboard/clevo/kbl-u/bootblock.c
@@ -5,5 +5,5 @@
void bootblock_mainboard_early_init(void)
{
- variant_configure_gpios();
+ variant_configure_early_gpios();
}
diff --git a/src/mainboard/clevo/kbl-u/include/variant/gpio.h b/src/mainboard/clevo/kbl-u/include/variant/gpio.h
index 4258325cf9..95d576294f 100644
--- a/src/mainboard/clevo/kbl-u/include/variant/gpio.h
+++ b/src/mainboard/clevo/kbl-u/include/variant/gpio.h
@@ -3,6 +3,7 @@
#ifndef VARIANT_GPIO_H
#define VARIANT_GPIO_H
+void variant_configure_early_gpios(void);
void variant_configure_gpios(void);
#endif
diff --git a/src/mainboard/clevo/kbl-u/variants/n13xwu/gpio_early.c b/src/mainboard/clevo/kbl-u/variants/n13xwu/gpio_early.c
index 46b9ff0bf0..dc55aae6d3 100644
--- a/src/mainboard/clevo/kbl-u/variants/n13xwu/gpio_early.c
+++ b/src/mainboard/clevo/kbl-u/variants/n13xwu/gpio_early.c
@@ -11,7 +11,7 @@ static const struct pad_config early_gpio_table[] = {
_PAD_CFG_STRUCT(GPP_C21, 0x44000700, 0x0)
};
-void variant_configure_gpios(void)
+void variant_configure_early_gpios(void)
{
gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
}