1 /* SPDX-License-Identifier: GPL-2.0-only */
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), /* UART2_RXD */
11 PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1), /* UART2_TXD */
12 };
13
bootblock_mainboard_early_init(void)14 void bootblock_mainboard_early_init(void)
15 {
16 gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
17 }
18
bootblock_mainboard_init(void)19 void bootblock_mainboard_init(void)
20 {
21 /*
22 * Ensure the panel is powered on. ACPI _PTS disables it, if the system
23 * is powered up again we need to turn it on.
24 */
25 ec_write(0xa3, 0);
26 }
27