mb/clevo/kbl-u: Configure GPIOs using mainboard_ops

Hook up the mainboard_ops driver and configure the GPIOs using .init,
since mainboard_silicon_init_params() is meant for the configuration of
the FSP, not the GPIOs.

Change-Id: I82f1eaf6693d9b117fb211776047058cdc787288
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47825
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
This commit is contained in:
Felix Singer 2020-11-21 00:16:06 +00:00 committed by Michael Niewöhner
parent 12e5fda496
commit ec8f5c79a5

View file

@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <device/device.h>
#include <mainboard/gpio.h>
#include <soc/ramstage.h>
/*
* TODO:
@ -12,7 +12,11 @@
* - Make TBT port configurable (TBT <> DisplayPort)
*/
void mainboard_silicon_init_params(FSP_SIL_UPD *params)
static void init_mainboard(void *chip_info)
{
mainboard_configure_gpios();
}
struct chip_operations mainboard_ops = {
.init = init_mainboard,
};