mb/google/brya/var/orisa: Update Type C DisplayPort HPD Configuration
[coreboot2.git] / src / soc / intel / cannonlake / gpio_common.c
blob7c0457edd3b694c67cdc6e41c0a7fd396df652e2
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <gpio.h>
4 #include <soc/soc_chip.h>
5 #include <static.h>
7 /*
8 * Routine to perform below operations:
9 * 1. SoC routine to fill GPIO PM mask and value for GPIO_MISCCFG register
10 * 2. Program GPIO PM configuration based on PM mask and value
12 void soc_gpio_pm_configuration(void)
14 uint8_t value[TOTAL_GPIO_COMM];
15 const config_t *config = config_of_soc();
17 if (config->gpio_override_pm)
18 memcpy(value, config->gpio_pm, sizeof(value));
19 else
20 memset(value, MISCCFG_GPIO_PM_CONFIG_BITS, sizeof(value));
22 gpio_pm_configure(value, TOTAL_GPIO_COMM);