inteltool/gpio_names/*.h: Add GPL-2.0-only SPDX license header
[coreboot.git] / util / inteltool / gpio_names / gpio_groups.h
blob828d2fd9409a9b9e3c6f8546cf2059cb07410554
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef GPIO_NAMES_GPIO_GROUPS_H
4 #define GPIO_NAMES_GPIO_GROUPS_H
6 struct gpio_group {
7 const char *display;
8 size_t pad_count;
9 size_t func_count;
11 * This field is necessary for EBG, since the pad configuration registers
12 * within a community are no longer contiguous.
14 uint32_t pad_offset;
15 const char *const *pad_names; /* indexed by 'pad * func_count + func' */
18 struct gpio_community {
19 const char *name;
20 uint8_t pcr_port_id;
21 size_t group_count;
22 const struct gpio_group *const *groups;
25 #endif