| 1 |
|
| 2 |
|
| 3 |
#include <baseboard/variants.h> |
| 4 |
#include <bootblock_common.h> |
| 5 |
#include <intelblocks/lpc_lib.h> |
| 6 |
|
| 7 |
void bootblock_mainboard_early_init(void) |
| 8 |
{ |
| 9 |
const struct pad_config *pads; |
| 10 |
size_t num; |
| 11 |
|
| 12 |
pads = variant_early_gpio_table(&num); |
| 13 |
gpio_configure_pads(pads, num); |
| 14 |
} |
| 15 |
|
| 16 |
void bootblock_mainboard_init(void) |
| 17 |
{ |
| 18 |
if (CONFIG(EC_GOOGLE_CHROMEEC_LPC_GENERIC_MEMORY_RANGE)) |
| 19 |
lpc_open_mmio_window(CONFIG_EC_GOOGLE_CHROMEEC_LPC_GENERIC_MEMORY_BASE, |
| 20 |
CONFIG_EC_GOOGLE_CHROMEEC_LPC_GENERIC_MEMORY_SIZE); |
| 21 |
} |