mb/google/beltino: Put GPIOs in a C file

This will allow dropping the pointer inside romstage_params.

Change-Id: I536225351a0353298381c16cff25f39098c19bba
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43101
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tristan Corrick <tristan@corrick.kiwi>
This commit is contained in:
Angel Pons 2020-07-03 13:45:13 +02:00
parent 9b29e5e1a0
commit 91aae2e0bc
7 changed files with 3 additions and 26 deletions

View File

@ -7,6 +7,7 @@ ramstage-y += lan.c
smm-y += smihandler.c variants/$(VARIANT_DIR)/led.c
romstage-y += variants/$(VARIANT_DIR)/gpio.c
romstage-y += variants/$(VARIANT_DIR)/led.c
ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads

View File

@ -9,9 +9,10 @@
#include <southbridge/intel/lynxpoint/pch.h>
#include <superio/ite/common/ite.h>
#include <superio/ite/it8772f/it8772f.h>
#include <variant/gpio.h>
#include "onboard.h"
extern const struct pch_lp_gpio_map mainboard_gpio_map[];
void mainboard_config_rcba(void)
{
/*

View File

@ -1,8 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef MCCLOUD_GPIO_H
#define MCCLOUD_GPIO_H
#include <southbridge/intel/lynxpoint/lp_gpio.h>
const struct pch_lp_gpio_map mainboard_gpio_map[] = {
@ -103,5 +100,3 @@ const struct pch_lp_gpio_map mainboard_gpio_map[] = {
LP_GPIO_UNUSED, /* 94: UNUSED */
LP_GPIO_END
};
#endif

View File

@ -1,8 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef MONROE_GPIO_H
#define MONROE_GPIO_H
#include <southbridge/intel/lynxpoint/lp_gpio.h>
const struct pch_lp_gpio_map mainboard_gpio_map[] = {
@ -103,5 +100,3 @@ const struct pch_lp_gpio_map mainboard_gpio_map[] = {
LP_GPIO_UNUSED, /* 94: UNUSED */
LP_GPIO_END
};
#endif

View File

@ -1,8 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef PANTHER_GPIO_H
#define PANTHER_GPIO_H
#include <southbridge/intel/lynxpoint/lp_gpio.h>
const struct pch_lp_gpio_map mainboard_gpio_map[] = {
@ -103,5 +100,3 @@ const struct pch_lp_gpio_map mainboard_gpio_map[] = {
LP_GPIO_UNUSED, /* 94: UNUSED */
LP_GPIO_END
};
#endif

View File

@ -1,8 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef TRICKY_GPIO_H
#define TRICKY_GPIO_H
#include <southbridge/intel/lynxpoint/lp_gpio.h>
const struct pch_lp_gpio_map mainboard_gpio_map[] = {
@ -103,5 +100,3 @@ const struct pch_lp_gpio_map mainboard_gpio_map[] = {
LP_GPIO_UNUSED, /* 94: UNUSED */
LP_GPIO_END
};
#endif

View File

@ -1,8 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef ZAKO_GPIO_H
#define ZAKO_GPIO_H
#include <southbridge/intel/lynxpoint/lp_gpio.h>
const struct pch_lp_gpio_map mainboard_gpio_map[] = {
@ -103,5 +100,3 @@ const struct pch_lp_gpio_map mainboard_gpio_map[] = {
LP_GPIO_UNUSED, /* 94: UNUSED */
LP_GPIO_END
};
#endif