soc/mediatek/mt8188/memlayout: Add a space in SRAM_L2C_START comment
[coreboot.git] / src / soc / intel / cannonlake / gpio_common.c
blob68a6bedbc0b0aad718818cf30c4333f275bed6fb
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <gpio.h>
4 #include <soc/soc_chip.h>
6 /*
7 * Routine to perform below operations:
8 * 1. SoC routine to fill GPIO PM mask and value for GPIO_MISCCFG register
9 * 2. Program GPIO PM configuration based on PM mask and value
11 void soc_gpio_pm_configuration(void)
13 uint8_t value[TOTAL_GPIO_COMM];
14 const config_t *config = config_of_soc();
16 if (config->gpio_override_pm)
17 memcpy(value, config->gpio_pm, sizeof(value));
18 else
19 memset(value, MISCCFG_GPIO_PM_CONFIG_BITS, sizeof(value));
21 gpio_pm_configure(value, TOTAL_GPIO_COMM);