payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / prodrive / hermes / bootblock.c
blob9db1fa8306cc932b20e140509b5a863ca007c2ed
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <bootblock_common.h>
4 #include <console/console.h>
5 #include <gpio.h>
6 #include <soc/gpio.h>
8 #include "gpio.h"
10 void bootblock_mainboard_early_init(void)
12 /* This is a hack for FSP because it does things in MemoryInit()
13 which it shouldn't do. We have to prepare certain gpios here
14 because of the brokenness in FSP. */
15 program_early_gpio_pads();
18 void bootblock_mainboard_init(void)
20 u8 bmc_hsi = (gpio_get(GPP_K13) << 3) |
21 (gpio_get(GPP_K12) << 2) |
22 (gpio_get(GPP_K14) << 1) |
23 (gpio_get(GPP_K16) << 0);
25 printk(BIOS_INFO, "BMC HSI 0x%x\n", bmc_hsi);