payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / asrock / h110m / bootblock.c
blob079afd057d3cc446e18f995d7acc8c5c1ad2cdeb
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <bootblock_common.h>
4 #include <soc/gpio.h>
5 #include <superio/nuvoton/common/nuvoton.h>
6 #include <superio/nuvoton/nct6791d/nct6791d.h>
7 #include "include/gpio.h"
9 static void early_config_superio(void)
11 const pnp_devfn_t serial_dev = PNP_DEV(0x2e, NCT6791D_SP1);
12 nuvoton_enable_serial(serial_dev, CONFIG_TTYS0_BASE);
15 static void early_config_gpio(void)
17 /* This is a hack for FSP because it does things in MemoryInit()
18 * which it shouldn't do. We have to prepare certain gpios here
19 * because of the brokenness in FSP. */
20 gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
23 void bootblock_mainboard_init(void)
25 early_config_gpio();
28 void bootblock_mainboard_early_init(void)
30 early_config_superio();