d5b0aeab2e
Inteltool is GPLv2 licensed so all files that link to it should be GPLv2 by default. In addition, the contents of several of these headers were originally moved directly from gpio_groups.c, which is explicitly marked as GPL-2.0-only. Change-Id: Ie897cb238c0c9e89fe677c999cbf1803f5f4609a Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78628 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
25 lines
564 B
C
25 lines
564 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#ifndef GPIO_NAMES_GPIO_GROUPS_H
|
|
#define GPIO_NAMES_GPIO_GROUPS_H
|
|
|
|
struct gpio_group {
|
|
const char *display;
|
|
size_t pad_count;
|
|
size_t func_count;
|
|
/*
|
|
* This field is necessary for EBG, since the pad configuration registers
|
|
* within a community are no longer contiguous.
|
|
*/
|
|
uint32_t pad_offset;
|
|
const char *const *pad_names; /* indexed by 'pad * func_count + func' */
|
|
};
|
|
|
|
struct gpio_community {
|
|
const char *name;
|
|
uint8_t pcr_port_id;
|
|
size_t group_count;
|
|
const struct gpio_group *const *groups;
|
|
};
|
|
|
|
#endif
|