mb/amb/birman*/gpio: remove configuration for VDD_MEM_VID[0,1]
[coreboot2.git] / src / include / device / gpio.h
blob67975b3c45099f624ae93cba37c4578c11557340
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef __DEVICE_GPIO_H__
4 #define __DEVICE_GPIO_H__
6 #include <types.h>
8 struct gpio_operations {
9 int (*get)(uint32_t gpio);
10 void (*set)(uint32_t gpio, int value);
11 void (*input_pulldown)(uint32_t gpio);
12 void (*input_pullup)(uint32_t gpio);
13 void (*input)(uint32_t gpio);
14 void (*output)(uint32_t gpio, int value);
17 /* Helper for getting gpio operations from a device */
18 const struct gpio_operations *dev_get_gpio_ops(struct device *dev);
20 #endif /* __DEVICE_GPIO_H__ */