summaryrefslogtreecommitdiff
path: root/src/mainboard/clevo/kbl-u/variants
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2020-12-04 09:04:14 +0100
committerMichael Niewöhner <foss@mniewoehner.de>2020-12-06 11:23:35 +0000
commit42551478a787dec70d94df22f59c6466f566e07a (patch)
tree505f62e70c4b7e12d07452e2aea7fe2030f0b14b /src/mainboard/clevo/kbl-u/variants
parenteefa32184c8bc3ccb40fe1693abcae527355d961 (diff)
mb/clevo/kbl-u: Move mainboard/gpio.h to variant/gpio.h
Move mainboard/gpio.h to variant/gpio.h and rename its methods to make clear that these methods are implemented on variant level. Change-Id: Ibcb6322067285984bad70761fce34cfcb6ed8e0f Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48297 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/variants')
-rw-r--r--src/mainboard/clevo/kbl-u/variants/n13xwu/gpio.c4
-rw-r--r--src/mainboard/clevo/kbl-u/variants/n13xwu/gpio_early.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mainboard/clevo/kbl-u/variants/n13xwu/gpio.c b/src/mainboard/clevo/kbl-u/variants/n13xwu/gpio.c
index e7aadcccfc..4b25993843 100644
--- a/src/mainboard/clevo/kbl-u/variants/n13xwu/gpio.c
+++ b/src/mainboard/clevo/kbl-u/variants/n13xwu/gpio.c
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <mainboard/gpio.h>
#include <soc/gpio.h>
+#include <variant/gpio.h>
static const struct pad_config gpio_table[] = {
// RCIN#
@@ -497,7 +497,7 @@ static const struct pad_config gpio_table[] = {
_PAD_CFG_STRUCT(GPP_G7, 0x44000702, 0x0)
};
-void mainboard_configure_gpios(void)
+void variant_configure_gpios(void)
{
gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table));
}
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 00246a42e5..46b9ff0bf0 100644
--- a/src/mainboard/clevo/kbl-u/variants/n13xwu/gpio_early.c
+++ b/src/mainboard/clevo/kbl-u/variants/n13xwu/gpio_early.c
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <mainboard/gpio.h>
#include <soc/gpio.h>
+#include <variant/gpio.h>
static const struct pad_config early_gpio_table[] = {
// UART2_RXD
@@ -11,7 +11,7 @@ static const struct pad_config early_gpio_table[] = {
_PAD_CFG_STRUCT(GPP_C21, 0x44000700, 0x0)
};
-void mainboard_configure_gpios(void)
+void variant_configure_gpios(void)
{
gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
}