Nicholas Chin | d5b0aea | 2023-10-24 18:30:51 -0600 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
Johanna Schander | dca20cd | 2020-01-29 09:14:18 +0100 | [diff] [blame] | 3 | #ifndef GPIO_NAMES_GPIO_GROUPS_H |
| 4 | #define GPIO_NAMES_GPIO_GROUPS_H |
| 5 | |
| 6 | struct gpio_group { |
| 7 | const char *display; |
| 8 | size_t pad_count; |
| 9 | size_t func_count; |
Christian Walter | 1364ac3 | 2022-09-08 11:44:19 +0200 | [diff] [blame] | 10 | /* |
| 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 Schander | dca20cd | 2020-01-29 09:14:18 +0100 | [diff] [blame] | 15 | const char *const *pad_names; /* indexed by 'pad * func_count + func' */ |
| 16 | }; |
| 17 | |
| 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; |
| 23 | }; |
| 24 | |
| 25 | #endif |