diff options
author | Felix Singer <felixsinger@posteo.net> | 2020-11-22 17:18:30 +0000 |
---|---|---|
committer | Michael Niewöhner <foss@mniewoehner.de> | 2020-11-30 23:08:17 +0000 |
commit | 48b80c134a1c5c3574e73104d6bfd13481568a70 (patch) | |
tree | 684f1895fdea4c4dc78cb561a95395fa0cf7c001 | |
parent | 3616e9c3b0806bd7f6a1960b658faec635d20dc4 (diff) |
mb/kontron/bsl6: 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: I6ab8d258c6f81c90d835cb8d07c6387d3de76d85
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47850
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | src/mainboard/kontron/bsl6/ramstage.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mainboard/kontron/bsl6/ramstage.c b/src/mainboard/kontron/bsl6/ramstage.c index 19518f74a4..771c6aae7b 100644 --- a/src/mainboard/kontron/bsl6/ramstage.c +++ b/src/mainboard/kontron/bsl6/ramstage.c @@ -1,9 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include <soc/ramstage.h> +#include <device/device.h> #include <mainboard/gpio.h> -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, +}; |