blob: 828d2fd9409a9b9e3c6f8546cf2059cb07410554 [file] [log] [blame]
Nicholas Chind5b0aea2023-10-24 18:30:51 -06001/* SPDX-License-Identifier: GPL-2.0-only */
2
Johanna Schanderdca20cd2020-01-29 09:14:18 +01003#ifndef GPIO_NAMES_GPIO_GROUPS_H
4#define GPIO_NAMES_GPIO_GROUPS_H
5
6struct gpio_group {
7 const char *display;
8 size_t pad_count;
9 size_t func_count;
Christian Walter1364ac32022-09-08 11:44:19 +020010 /*
11 * This field is necessary for EBG, since the pad configuration registers
12 * within a community are no longer contiguous.
13 */
14 uint32_t pad_offset;
Johanna Schanderdca20cd2020-01-29 09:14:18 +010015 const char *const *pad_names; /* indexed by 'pad * func_count + func' */
16};
17
18struct gpio_community {
19 const char *name;
20 uint8_t pcr_port_id;
21 size_t group_count;
22 const struct gpio_group *const *groups;
23};
24
25#endif