1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <amdblocks/espi.h>
4 #include <amdblocks/lpc.h>
5 #include <amdblocks/acpimmio.h>
6 #include <amdblocks/aoac.h>
7 #include <amdblocks/pmlib.h>
8 #include <amdblocks/uart.h>
9 #include <soc/southbridge.h>
12 /* Before console init */
13 void fch_pre_init(void)
17 enable_aoac_devices();
19 * On reset Range_0 defaults to enabled. We want to start with a clean
20 * slate to not have things unexpectedly enabled.
22 clear_uart_legacy_config();
24 if (CONFIG(AMD_SOC_CONSOLE_UART
))
25 set_uart_config(CONFIG_UART_FOR_CONSOLE
);
27 configure_espi_with_mb_hook();
30 /* After console init */
31 void fch_early_init(void)