Arthur Heymans | 6d3682e | 2023-07-13 12:34:04 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 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> |
Varshit Pandya | 970d770 | 2023-10-06 18:14:02 +0530 | [diff] [blame^] | 10 | #include <soc/uart.h> |
Arthur Heymans | 6d3682e | 2023-07-13 12:34:04 +0200 | [diff] [blame] | 11 | |
| 12 | /* Before console init */ |
| 13 | void fch_pre_init(void) |
| 14 | { |
Arthur Heymans | f955ecb | 2023-07-13 14:18:38 +0200 | [diff] [blame] | 15 | fch_enable_cf9_io(); |
Arthur Heymans | 4da9d6b4 | 2023-07-13 14:19:09 +0200 | [diff] [blame] | 16 | |
| 17 | enable_aoac_devices(); |
Varshit Pandya | 970d770 | 2023-10-06 18:14:02 +0530 | [diff] [blame^] | 18 | /* |
| 19 | * On reset Range_0 defaults to enabled. We want to start with a clean |
| 20 | * slate to not have things unexpectedly enabled. |
| 21 | */ |
| 22 | clear_uart_legacy_config(); |
| 23 | |
| 24 | if (CONFIG(AMD_SOC_CONSOLE_UART)) |
| 25 | set_uart_config(CONFIG_UART_FOR_CONSOLE); |
Arthur Heymans | c666a91 | 2023-07-13 14:34:10 +0200 | [diff] [blame] | 26 | |
| 27 | configure_espi_with_mb_hook(); |
Arthur Heymans | 6d3682e | 2023-07-13 12:34:04 +0200 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | /* After console init */ |
| 31 | void fch_early_init(void) |
| 32 | { |
| 33 | |
| 34 | } |