diff options
author | Zheng Bao <fishbaozi@gmail.com> | 2021-01-29 18:10:00 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-01-30 17:56:15 +0000 |
commit | adac6f40f25eb5914ca4a915ffcff170bc3d50fc (patch) | |
tree | 1d35739eb24c148fe0f91076c06271bd875863d4 /src/mainboard/amd/majolica/early_gpio.c | |
parent | 27ee72f1176b94161bdee901d4f8e681870226e6 (diff) |
mb/amd/majolica: Add an empty bootblock function to handle GPIO
Change-Id: I35da3812a424ea1beef86d043a756a87e6afdaa3
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50117
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/amd/majolica/early_gpio.c')
-rw-r--r-- | src/mainboard/amd/majolica/early_gpio.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mainboard/amd/majolica/early_gpio.c b/src/mainboard/amd/majolica/early_gpio.c new file mode 100644 index 0000000000..916d67976d --- /dev/null +++ b/src/mainboard/amd/majolica/early_gpio.c @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <soc/gpio.h> +#include "gpio.h" + +/* GPIO pins used by coreboot should be initialized in bootblock */ + +static const struct soc_amd_gpio gpio_set_stage_reset[] = { +}; + +void mainboard_program_early_gpios(void) +{ + program_gpios(gpio_set_stage_reset, ARRAY_SIZE(gpio_set_stage_reset)); +} |