| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <bootblock_common.h> |
| 4 | #include <soc/espi.h> |
| 5 | #include "ec.h" |
| 6 | #include "gpio.h" |
| 7 | |
| 8 | void bootblock_mainboard_early_init(void) |
| 9 | { |
| 10 | mainboard_program_early_gpios(); |
| 11 | |
| 12 | espi_switch_to_spi1_pads(); |
| 13 | } |
| 14 | |
| 15 | void bootblock_mainboard_init(void) |
| 16 | { |
| 17 | if (!CONFIG(SOC_AMD_COMMON_BLOCK_SIMNOW_BUILD)) |
| 18 | birman_ec_init(); |
| 19 | } |