summaryrefslogtreecommitdiffstats
path: root/src/mainboard/system76/rpl/variants/serw13/gpio_early.c
blob: fe6584546b39c87a9f53c8e7d2ba7c6ec9d640b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* SPDX-License-Identifier: GPL-2.0-only */

#include <mainboard/gpio.h>
#include <soc/gpio.h>

static const struct pad_config early_gpio_table[] = {
	PAD_CFG_GPO(GPP_F9, 0, DEEP), // DGPU_PWR_EN
	PAD_CFG_GPO(GPP_R16, 0, DEEP), // DGPU_RST#_PCH
	PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1), // UART2_RX
	PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1), // UART2_TX
};

void mainboard_configure_early_gpios(void)
{
	gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
}