| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <bootblock_common.h> |
| 4 | #include <types.h> |
| 5 | |
| 6 | #include "ec.h" |
| 7 | #include "gpio.h" |
| 8 | #include "mainboard.h" |
| 9 | |
| 10 | void bootblock_mainboard_early_init(void) |
| 11 | { |
| 12 | configure_early_gpio_pads(); |
| 13 | |
| 14 | /* Enable EMI (Embedded Memory Interface) 0 on the EC */ |
| 15 | ec_espi_io_program_iobase(EC_IDX_PORT, EMI_0_IOBASE_INDEX, EMI_0_IO_BASE_ADDR); |
| 16 | } |