Michael Niewöhner has submitted this change. ( https://review.coreboot.org/c/coreboot/+/48298 )
Change subject: mb/clevo/kbl-u: Add a seperate method for early GPIOs ......................................................................
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 --- M src/mainboard/clevo/kbl-u/bootblock.c M src/mainboard/clevo/kbl-u/include/variant/gpio.h M src/mainboard/clevo/kbl-u/variants/n13xwu/gpio_early.c 3 files changed, 3 insertions(+), 2 deletions(-)
Approvals: build bot (Jenkins): Verified Michael Niewöhner: Looks good to me, approved
diff --git a/src/mainboard/clevo/kbl-u/bootblock.c b/src/mainboard/clevo/kbl-u/bootblock.c index 8f085be..b351fbd 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 4258325..95d5762 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 46b9ff0..dc55aae 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 @@ _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)); }