2023-10-25 02:30:51 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
|
2020-01-29 09:14:18 +01:00
|
|
|
#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;
|
2022-09-08 11:44:19 +02:00
|
|
|
/*
|
|
|
|
* This field is necessary for EBG, since the pad configuration registers
|
|
|
|
* within a community are no longer contiguous.
|
|
|
|
*/
|
|
|
|
uint32_t pad_offset;
|
2020-01-29 09:14:18 +01:00
|
|
|
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
|