volteer: Create halvor variant

Create the halvor variant of the volteer reference board by copying the
template files to a new directory named for the variant.

BUG=b:151399850
BRANCH=None
TEST=util/abuild/abuild -p none -t google/volteer -x -a
make sure the build includes GOOGLE_HALVOR

Signed-off-by: Frank Wu <frank_wu@compal.corp-partner.google.com>
Change-Id: If4d3417ba55d56af441c99d949a196328d7a1951
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39667
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Caveh Jalali <caveh@chromium.org>
Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
This commit is contained in:
Frank Wu 2020-03-13 16:41:10 +08:00 committed by Patrick Georgi
parent d47afe90ef
commit bc83738301
7 changed files with 77 additions and 2 deletions

View File

@ -55,6 +55,7 @@ config MAINBOARD_FAMILY
config MAINBOARD_PART_NUMBER config MAINBOARD_PART_NUMBER
string string
default "Halvor" if BOARD_GOOGLE_HALVOR
default "Ripto" if BOARD_GOOGLE_RIPTO default "Ripto" if BOARD_GOOGLE_RIPTO
default "Volteer" if BOARD_GOOGLE_VOLTEER default "Volteer" if BOARD_GOOGLE_VOLTEER
@ -68,6 +69,7 @@ config TPM_TIS_ACPI_INTERRUPT
config VARIANT_DIR config VARIANT_DIR
string string
default "halvor" if BOARD_GOOGLE_HALVOR
default "ripto" if BOARD_GOOGLE_RIPTO default "ripto" if BOARD_GOOGLE_RIPTO
default "volteer" if BOARD_GOOGLE_VOLTEER default "volteer" if BOARD_GOOGLE_VOLTEER

View File

@ -1,9 +1,13 @@
comment "Volteer" comment "Volteer"
config BOARD_GOOGLE_VOLTEER config BOARD_GOOGLE_HALVOR
bool "-> Volteer" bool "-> Halvor"
select BOARD_GOOGLE_BASEBOARD_VOLTEER select BOARD_GOOGLE_BASEBOARD_VOLTEER
config BOARD_GOOGLE_RIPTO config BOARD_GOOGLE_RIPTO
bool "-> Ripto" bool "-> Ripto"
select BOARD_GOOGLE_BASEBOARD_VOLTEER select BOARD_GOOGLE_BASEBOARD_VOLTEER
config BOARD_GOOGLE_VOLTEER
bool "-> Volteer"
select BOARD_GOOGLE_BASEBOARD_VOLTEER

View File

@ -0,0 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-only
# This file is part of the coreboot project.
SPD_SOURCES =
bootblock-y += gpio.c
ramstage-y += gpio.c

View File

@ -0,0 +1,37 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */
#include <baseboard/gpio.h>
#include <baseboard/variants.h>
#include <commonlib/helpers.h>
/* Pad configuration in ramstage */
static const struct pad_config gpio_table[] = {
};
const struct pad_config *variant_base_gpio_table(size_t *num)
{
*num = ARRAY_SIZE(gpio_table);
return gpio_table;
}
/* Early pad configuration in bootblock */
static const struct pad_config early_gpio_table[] = {
};
const struct pad_config *variant_early_gpio_table(size_t *num)
{
*num = ARRAY_SIZE(early_gpio_table);
return early_gpio_table;
}
static const struct cros_gpio cros_gpios[] = {
};
const struct cros_gpio *variant_cros_gpios(size_t *num)
{
*num = ARRAY_SIZE(cros_gpios);
return cros_gpios;
}

View File

@ -0,0 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */
#ifndef __VARIANT_EC_H__
#define __VARIANT_EC_H__
#include <baseboard/ec.h>
#endif

View File

@ -0,0 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */
#ifndef VARIANT_GPIO_H
#define VARIANT_GPIO_H
#include <baseboard/gpio.h>
/* Copied from baseboard and may need to change for the new variant. */
#endif

View File

@ -0,0 +1,4 @@
chip soc/intel/tigerlake
device domain 0 on
end
end