Johanna Schander | dca20cd | 2020-01-29 09:14:18 +0100 | [diff] [blame] | 1 | #ifndef GPIO_NAMES_GPIO_GROUPS_H |
| 2 | #define GPIO_NAMES_GPIO_GROUPS_H |
| 3 | |
| 4 | struct gpio_group { |
| 5 | const char *display; |
| 6 | size_t pad_count; |
| 7 | size_t func_count; |
Christian Walter | 1364ac3 | 2022-09-08 11:44:19 +0200 | [diff] [blame^] | 8 | /* |
| 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 Schander | dca20cd | 2020-01-29 09:14:18 +0100 | [diff] [blame] | 13 | const char *const *pad_names; /* indexed by 'pad * func_count + func' */ |
| 14 | }; |
| 15 | |
| 16 | struct 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 |