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:
@@ -7,6 +7,7 @@ ramstage-y += lan.c
|
|||||||
|
|
||||||
smm-y += smihandler.c variants/$(VARIANT_DIR)/led.c
|
smm-y += smihandler.c variants/$(VARIANT_DIR)/led.c
|
||||||
|
|
||||||
|
romstage-y += variants/$(VARIANT_DIR)/gpio.c
|
||||||
romstage-y += variants/$(VARIANT_DIR)/led.c
|
romstage-y += variants/$(VARIANT_DIR)/led.c
|
||||||
|
|
||||||
ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads
|
ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads
|
||||||
|
@@ -9,9 +9,10 @@
|
|||||||
#include <southbridge/intel/lynxpoint/pch.h>
|
#include <southbridge/intel/lynxpoint/pch.h>
|
||||||
#include <superio/ite/common/ite.h>
|
#include <superio/ite/common/ite.h>
|
||||||
#include <superio/ite/it8772f/it8772f.h>
|
#include <superio/ite/it8772f/it8772f.h>
|
||||||
#include <variant/gpio.h>
|
|
||||||
#include "onboard.h"
|
#include "onboard.h"
|
||||||
|
|
||||||
|
extern const struct pch_lp_gpio_map mainboard_gpio_map[];
|
||||||
|
|
||||||
void mainboard_config_rcba(void)
|
void mainboard_config_rcba(void)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
@@ -1,8 +1,5 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
#ifndef MCCLOUD_GPIO_H
|
|
||||||
#define MCCLOUD_GPIO_H
|
|
||||||
|
|
||||||
#include <southbridge/intel/lynxpoint/lp_gpio.h>
|
#include <southbridge/intel/lynxpoint/lp_gpio.h>
|
||||||
|
|
||||||
const struct pch_lp_gpio_map mainboard_gpio_map[] = {
|
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_UNUSED, /* 94: UNUSED */
|
||||||
LP_GPIO_END
|
LP_GPIO_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
@@ -1,8 +1,5 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
#ifndef MONROE_GPIO_H
|
|
||||||
#define MONROE_GPIO_H
|
|
||||||
|
|
||||||
#include <southbridge/intel/lynxpoint/lp_gpio.h>
|
#include <southbridge/intel/lynxpoint/lp_gpio.h>
|
||||||
|
|
||||||
const struct pch_lp_gpio_map mainboard_gpio_map[] = {
|
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_UNUSED, /* 94: UNUSED */
|
||||||
LP_GPIO_END
|
LP_GPIO_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
@@ -1,8 +1,5 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
#ifndef PANTHER_GPIO_H
|
|
||||||
#define PANTHER_GPIO_H
|
|
||||||
|
|
||||||
#include <southbridge/intel/lynxpoint/lp_gpio.h>
|
#include <southbridge/intel/lynxpoint/lp_gpio.h>
|
||||||
|
|
||||||
const struct pch_lp_gpio_map mainboard_gpio_map[] = {
|
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_UNUSED, /* 94: UNUSED */
|
||||||
LP_GPIO_END
|
LP_GPIO_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
@@ -1,8 +1,5 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
#ifndef TRICKY_GPIO_H
|
|
||||||
#define TRICKY_GPIO_H
|
|
||||||
|
|
||||||
#include <southbridge/intel/lynxpoint/lp_gpio.h>
|
#include <southbridge/intel/lynxpoint/lp_gpio.h>
|
||||||
|
|
||||||
const struct pch_lp_gpio_map mainboard_gpio_map[] = {
|
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_UNUSED, /* 94: UNUSED */
|
||||||
LP_GPIO_END
|
LP_GPIO_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
@@ -1,8 +1,5 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
#ifndef ZAKO_GPIO_H
|
|
||||||
#define ZAKO_GPIO_H
|
|
||||||
|
|
||||||
#include <southbridge/intel/lynxpoint/lp_gpio.h>
|
#include <southbridge/intel/lynxpoint/lp_gpio.h>
|
||||||
|
|
||||||
const struct pch_lp_gpio_map mainboard_gpio_map[] = {
|
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_UNUSED, /* 94: UNUSED */
|
||||||
LP_GPIO_END
|
LP_GPIO_END
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
Reference in New Issue
Block a user