| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <bootblock_common.h> |
| 4 | #include <intelblocks/lpc_lib.h> |
| 5 | #include <gpio.h> |
| 6 | #include <variants.h> |
| 7 | |
| 8 | void bootblock_mainboard_init(void) |
| 9 | { |
| 10 | const struct pad_config *pads; |
| 11 | size_t num; |
| 12 | |
| 13 | pads = variant_early_gpio_table(&num); |
| 14 | gpio_configure_pads(pads, num); |
| 15 | |
| 16 | if (CONFIG(EC_STARLABS_NUVOTON)) |
| 17 | lpc_open_mmio_window(0xfe800000, 0x10000); |
| 18 | } |