blob: 9ae2a8f7f0fb3c1042a7cb8018549a584aef101b [file] [log] [blame]
Johanna Schanderdca20cd2020-01-29 09:14:18 +01001#ifndef GPIO_NAMES_GPIO_GROUPS_H
2#define GPIO_NAMES_GPIO_GROUPS_H
3
4struct gpio_group {
5 const char *display;
6 size_t pad_count;
7 size_t func_count;
Christian Walter1364ac32022-09-08 11:44:19 +02008 /*
9 * This field is necessary for EBG, since the pad configuration registers
10 * within a community are no longer contiguous.
11 */
12 uint32_t pad_offset;
Johanna Schanderdca20cd2020-01-29 09:14:18 +010013 const char *const *pad_names; /* indexed by 'pad * func_count + func' */
14};
15
16struct gpio_community {
17 const char *name;
18 uint8_t pcr_port_id;
19 size_t group_count;
20 const struct gpio_group *const *groups;
21};
22
23#endif