| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <bootblock_common.h> |
| 4 | #include <ec/clevo/it5570e/early_init.h> |
| 5 | #include <intelblocks/lpc_lib.h> |
| 6 | #include <variant/gpio.h> |
| 7 | |
| 8 | void bootblock_mainboard_early_init(void) |
| 9 | { |
| 10 | variant_configure_early_gpios(); |
| 11 | |
| 12 | /* Open LGMR window for EC */ |
| 13 | if (CONFIG(EC_CLEVO_IT5570E)) |
| 14 | lpc_open_mmio_window(CONFIG_EC_CLEVO_IT5570E_MEM_BASE, 64 * KiB); |
| 15 | } |
| 16 | |
| 17 | void bootblock_mainboard_init(void) |
| 18 | { |
| 19 | if (CONFIG(EC_CLEVO_IT5570E)) |
| 20 | ec_configure_kbled_booteffect(); |
| 21 | } |