mb/google/volteer: Create trondo variant
Create the trondo variant of the volteer reference board by copying the template files to a new directory named for the variant. BUG=b:154678884 BRANCH=None TEST=util/abuild/abuild -p none -t google/volteer -x -a make sure the build includes GOOGLE_TRONDO Change-Id: Ie4f9bfe4798e14f91c6cb439f5c5ab2b9ea52b51 Signed-off-by: David Wu <david_wu@quanta.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40686 Reviewed-by: Caveh Jalali <caveh@chromium.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
c7f473642a
commit
4cea00a64f
|
@ -59,6 +59,7 @@ config MAINBOARD_PART_NUMBER
|
||||||
default "Halvor" if BOARD_GOOGLE_HALVOR
|
default "Halvor" if BOARD_GOOGLE_HALVOR
|
||||||
default "Malefor" if BOARD_GOOGLE_MALEFOR
|
default "Malefor" if BOARD_GOOGLE_MALEFOR
|
||||||
default "Ripto" if BOARD_GOOGLE_RIPTO
|
default "Ripto" if BOARD_GOOGLE_RIPTO
|
||||||
|
default "Trondo" if BOARD_GOOGLE_TRONDO
|
||||||
default "Volteer" if BOARD_GOOGLE_VOLTEER
|
default "Volteer" if BOARD_GOOGLE_VOLTEER
|
||||||
|
|
||||||
config MAX_CPUS
|
config MAX_CPUS
|
||||||
|
@ -74,6 +75,7 @@ config VARIANT_DIR
|
||||||
default "halvor" if BOARD_GOOGLE_HALVOR
|
default "halvor" if BOARD_GOOGLE_HALVOR
|
||||||
default "malefor" if BOARD_GOOGLE_MALEFOR
|
default "malefor" if BOARD_GOOGLE_MALEFOR
|
||||||
default "ripto" if BOARD_GOOGLE_RIPTO
|
default "ripto" if BOARD_GOOGLE_RIPTO
|
||||||
|
default "trondo" if BOARD_GOOGLE_TRONDO
|
||||||
default "volteer" if BOARD_GOOGLE_VOLTEER
|
default "volteer" if BOARD_GOOGLE_VOLTEER
|
||||||
|
|
||||||
config VARIANT_HAS_MIPI_CAMERA
|
config VARIANT_HAS_MIPI_CAMERA
|
||||||
|
|
|
@ -13,6 +13,10 @@ config BOARD_GOOGLE_RIPTO
|
||||||
select BOARD_GOOGLE_BASEBOARD_VOLTEER
|
select BOARD_GOOGLE_BASEBOARD_VOLTEER
|
||||||
select VARIANT_HAS_MIPI_CAMERA
|
select VARIANT_HAS_MIPI_CAMERA
|
||||||
|
|
||||||
|
config BOARD_GOOGLE_TRONDO
|
||||||
|
bool "-> Trondo"
|
||||||
|
select BOARD_GOOGLE_BASEBOARD_VOLTEER
|
||||||
|
|
||||||
config BOARD_GOOGLE_VOLTEER
|
config BOARD_GOOGLE_VOLTEER
|
||||||
bool "-> Volteer"
|
bool "-> Volteer"
|
||||||
select BOARD_GOOGLE_BASEBOARD_VOLTEER
|
select BOARD_GOOGLE_BASEBOARD_VOLTEER
|
||||||
|
|
|
@ -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
|
|
@ -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;
|
||||||
|
}
|
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1,4 @@
|
||||||
|
chip soc/intel/tigerlake
|
||||||
|
device domain 0 on
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue