summaryrefslogtreecommitdiff
path: root/src/mainboard/clevo/cml-u/variants
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2020-12-04 08:56:25 +0100
committerMichael Niewöhner <foss@mniewoehner.de>2020-12-06 11:23:27 +0000
commiteefa32184c8bc3ccb40fe1693abcae527355d961 (patch)
tree1d14d49e5b4f674675ce4a16636fcec9528679a8 /src/mainboard/clevo/cml-u/variants
parentc07c7c963771b33d9dd94f6962feca04bbeb74d1 (diff)
mb/clevo/cml-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: I1ae9b54ed683000f65323b11747ce3280a1c7f2a Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48296 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/clevo/cml-u/variants')
-rw-r--r--src/mainboard/clevo/cml-u/variants/l140cu/gpio.c4
-rw-r--r--src/mainboard/clevo/cml-u/variants/l140cu/gpio_early.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mainboard/clevo/cml-u/variants/l140cu/gpio.c b/src/mainboard/clevo/cml-u/variants/l140cu/gpio.c
index 475c2d56da..d5744ef3db 100644
--- a/src/mainboard/clevo/cml-u/variants/l140cu/gpio.c
+++ b/src/mainboard/clevo/cml-u/variants/l140cu/gpio.c
@@ -1,8 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <mainboard/gpio.h>
#include <soc/gpe.h>
#include <soc/gpio.h>
+#include <variant/gpio.h>
/* Name format: <pad name> / <net/pin name in schematics> */
static const struct pad_config gpio_table[] = {
@@ -237,7 +237,7 @@ static const struct pad_config gpio_table[] = {
PAD_NC(GPP_H23, UP_20K),
};
-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/cml-u/variants/l140cu/gpio_early.c b/src/mainboard/clevo/cml-u/variants/l140cu/gpio_early.c
index 274efaf77f..3ea1c81e99 100644
--- a/src/mainboard/clevo/cml-u/variants/l140cu/gpio_early.c
+++ b/src/mainboard/clevo/cml-u/variants/l140cu/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>
/* Name format: <pad name> / <net/pin name in schematics> */
static const struct pad_config early_gpio_table[] = {
@@ -11,7 +11,7 @@ static const struct pad_config early_gpio_table[] = {
PAD_NC(GPP_C23, UP_20K),
};
-void mainboard_configure_early_gpios(void)
+void variant_configure_early_gpios(void)
{
gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
}