| 1 |
|
| 2 |
|
| 3 |
#include <bootblock_common.h> |
| 4 |
#include <device/pci_ops.h> |
| 5 |
#include <ec/acpi/ec.h> |
| 6 |
#include <gpio.h> |
| 7 |
#include <soc/pci_devs.h> |
| 8 |
|
| 9 |
static const struct pad_config early_gpio_table[] = { |
| 10 |
PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1), |
| 11 |
PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1), |
| 12 |
}; |
| 13 |
|
| 14 |
void bootblock_mainboard_early_init(void) |
| 15 |
{ |
| 16 |
gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table)); |
| 17 |
} |
| 18 |
|
| 19 |
void bootblock_mainboard_init(void) |
| 20 |
{ |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
ec_write(0xa3, 0); |
| 26 |
} |