]> git.sur5r.net Git - u-boot/blobdiff - include/asm-generic/gpio.h
board/T1040qds: Add VSC9953 support for T1040qds board
[u-boot] / include / asm-generic / gpio.h
index 8af760e7770cb6012c31e4fb90c7e6a42e168a2e..36a36c64b8a6a19879e5236eb85af2fd5960a43d 100644 (file)
@@ -198,8 +198,6 @@ struct dm_gpio_ops {
         * @return current function - GPIOF_...
         */
        int (*get_function)(struct udevice *dev, unsigned offset);
-       int (*get_state)(struct udevice *dev, unsigned offset, char *state,
-                        int maxlen);
 };
 
 /**
@@ -259,4 +257,15 @@ const char *gpio_get_bank_info(struct udevice *dev, int *offset_count);
 int gpio_lookup_name(const char *name, struct udevice **devp,
                     unsigned int *offsetp, unsigned int *gpiop);
 
+/**
+ * get_gpios() - Turn the values of a list of GPIOs into an integer
+ *
+ * This puts the value of the first GPIO into bit 0, the second into bit 1,
+ * etc. then returns the resulting integer.
+ *
+ * @gpio_list: List of GPIOs to collect
+ * @return resulting integer value
+ */
+unsigned gpio_get_values_as_int(const int *gpio_list);
+
 #endif /* _ASM_GENERIC_GPIO_H_ */