Files
system76-coreboot/src/mainboard/prodrive/hermes/bootblock.c
Angel Pons e81560c6cf mb/prodrive/hermes: Get rid of variant structure
There's no need to use a variant structure here. Only one variant is
used, and revision-specific differences are handled at run-time, and
it's unlikely that another variant will ever exist.

Reorganize the mainboard code to get rid of the variant structure.

Change-Id: I1543f5b76975b0e7183fbb759e9bae5c34151d06
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59671
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
2021-12-03 15:51:02 +00:00

27 lines
626 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#include <bootblock_common.h>
#include <console/console.h>
#include <gpio.h>
#include <soc/gpio.h>
#include "gpio.h"
void bootblock_mainboard_early_init(void)
{
/* This is a hack for FSP because it does things in MemoryInit()
which it shouldn't do. We have to prepare certain gpios here
because of the brokenness in FSP. */
program_early_gpio_pads();
}
void bootblock_mainboard_init(void)
{
u8 bmc_hsi = (gpio_get(GPP_K13) << 3) |
(gpio_get(GPP_K12) << 2) |
(gpio_get(GPP_K14) << 1) |
(gpio_get(GPP_K16) << 0);
printk(BIOS_INFO, "BMC HSI 0x%x\n", bmc_hsi);
}