| /* SPDX-License-Identifier: GPL-2.0-only */ |
| |
| #ifndef EMERALDLAKE2_GPIO_H |
| #define EMERALDLAKE2_GPIO_H |
| |
| #include <southbridge/intel/common/gpio.h> |
| |
| static const struct pch_gpio_set1 pch_gpio_set1_mode = { |
| .gpio0 = GPIO_MODE_GPIO, |
| .gpio1 = GPIO_MODE_GPIO, |
| .gpio3 = GPIO_MODE_GPIO, |
| .gpio5 = GPIO_MODE_GPIO, |
| .gpio6 = GPIO_MODE_GPIO, |
| .gpio7 = GPIO_MODE_GPIO, |
| .gpio8 = GPIO_MODE_GPIO, |
| .gpio9 = GPIO_MODE_GPIO, |
| .gpio12 = GPIO_MODE_GPIO, |
| .gpio15 = GPIO_MODE_GPIO, |
| .gpio21 = GPIO_MODE_GPIO, |
| .gpio22 = GPIO_MODE_GPIO, |
| .gpio24 = GPIO_MODE_GPIO, |
| .gpio27 = GPIO_MODE_GPIO, |
| .gpio28 = GPIO_MODE_GPIO, |
| }; |
| |
| static const struct pch_gpio_set1 pch_gpio_set1_direction = { |
| .gpio0 = GPIO_DIR_INPUT, |
| .gpio3 = GPIO_DIR_INPUT, |
| .gpio5 = GPIO_DIR_INPUT, |
| .gpio7 = GPIO_DIR_INPUT, |
| .gpio8 = GPIO_DIR_INPUT, |
| .gpio9 = GPIO_DIR_INPUT, |
| .gpio12 = GPIO_DIR_INPUT, |
| .gpio15 = GPIO_DIR_INPUT, |
| .gpio21 = GPIO_DIR_INPUT, |
| .gpio22 = GPIO_DIR_INPUT, |
| .gpio27 = GPIO_DIR_INPUT, |
| }; |
| |
| static const struct pch_gpio_set1 pch_gpio_set1_level = { |
| }; |
| |
| static const struct pch_gpio_set1 pch_gpio_set1_invert = { |
| }; |
| |
| static const struct pch_gpio_set2 pch_gpio_set2_mode = { |
| .gpio36 = GPIO_MODE_GPIO, |
| .gpio48 = GPIO_MODE_GPIO, |
| .gpio57 = GPIO_MODE_GPIO, |
| .gpio60 = GPIO_MODE_GPIO, |
| }; |
| |
| static const struct pch_gpio_set2 pch_gpio_set2_direction = { |
| .gpio48 = GPIO_DIR_INPUT, |
| .gpio57 = GPIO_DIR_INPUT, |
| }; |
| |
| static const struct pch_gpio_set2 pch_gpio_set2_level = { |
| }; |
| |
| static const struct pch_gpio_set3 pch_gpio_set3_mode = { |
| }; |
| |
| static const struct pch_gpio_set3 pch_gpio_set3_direction = { |
| }; |
| |
| static const struct pch_gpio_set3 pch_gpio_set3_level = { |
| }; |
| |
| const struct pch_gpio_map mainboard_gpio_map = { |
| .set1 = { |
| .mode = &pch_gpio_set1_mode, |
| .direction = &pch_gpio_set1_direction, |
| .level = &pch_gpio_set1_level, |
| .invert = &pch_gpio_set1_invert, |
| }, |
| .set2 = { |
| .mode = &pch_gpio_set2_mode, |
| .direction = &pch_gpio_set2_direction, |
| .level = &pch_gpio_set2_level, |
| }, |
| .set3 = { |
| .mode = &pch_gpio_set3_mode, |
| .direction = &pch_gpio_set3_direction, |
| .level = &pch_gpio_set3_level, |
| }, |
| }; |
| |
| #endif |