mb/google/rauru: Implement regulator interface
[coreboot2.git] / src / mainboard / amd / mandolin / variants / cereme / gpio.c
blobe3aad5f5c932599991188102140977ba50cc1671
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <gpio.h>
4 #include "../../gpio.h"
6 /*
7 * As a rule of thumb, GPIO pins used by coreboot should be initialized at
8 * bootblock while GPIO pins used only by the OS should be initialized at
9 * ramstage.
11 static const struct soc_amd_gpio gpio_set_stage_ram[] = {
12 /* EC SCI# */
13 PAD_SCI(GPIO_6, PULL_UP, EDGE_LOW),
14 /* I2S SDIN */
15 PAD_NF(GPIO_7, ACP_I2S_SDIN, PULL_NONE),
16 /* I2S LRCLK */
17 PAD_NF(GPIO_8, ACP_I2S_LRCLK, PULL_NONE),
18 /* not Blink */
19 PAD_GPI(GPIO_11, PULL_UP),
20 /* APU_ALS_INT# */
21 PAD_SCI(GPIO_24, PULL_UP, EDGE_LOW),
22 /* SD card detect */
23 PAD_GPI(GPIO_31, PULL_UP),
24 /* NFC IRQ */
25 PAD_INT(GPIO_69, PULL_UP, EDGE_LOW, STATUS),
26 /* NFC wake output# */
27 PAD_GPO(GPIO_89, HIGH),
30 void mainboard_program_gpios(void)
32 gpio_configure_pads(gpio_set_stage_ram, ARRAY_SIZE(gpio_set_stage_ram));