From dca20cd77f53d410fcc72cd1b6ec0939a4391f1d Mon Sep 17 00:00:00 2001 From: Johanna Schander Date: Wed, 29 Jan 2020 09:14:18 +0100 Subject: util/inteltool: Move Ice Lake definitions into their own header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So far all group and community definitions live in one big c file. This 2500 line file slowly grows to a size, where readability is lost. Also the definitions are not reusable in a potential libinteltool. This commit moves the Ice Lake definitions into its own header. Change-Id: I5735f12480091a9b6c5e5c103a1ca7b7b1f3f997 Signed-off-by: Johanna Schander Reviewed-on: https://review.coreboot.org/c/coreboot/+/38625 Reviewed-by: Michael Niewöhner Reviewed-by: Angel Pons Reviewed-by: Christoph Pomaska Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- util/inteltool/gpio_names/gpio_groups.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 util/inteltool/gpio_names/gpio_groups.h (limited to 'util/inteltool/gpio_names/gpio_groups.h') diff --git a/util/inteltool/gpio_names/gpio_groups.h b/util/inteltool/gpio_names/gpio_groups.h new file mode 100644 index 0000000000..711b298bd3 --- /dev/null +++ b/util/inteltool/gpio_names/gpio_groups.h @@ -0,0 +1,18 @@ +#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; + 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 -- cgit v1.2.3