]> git.sur5r.net Git - u-boot/blobdiff - include/asm-generic/gpio.h
ARM: zynqmp: Wire up ethernet controllers
[u-boot] / include / asm-generic / gpio.h
index b1cf95c687b082b1526cdb619f9c759ee9366afd..0af599f86df5bee53efa1745a833d386df6665a6 100644 (file)
@@ -433,6 +433,18 @@ int gpio_request_list_by_name(struct udevice *dev, const char *list_name,
                              struct gpio_desc *desc_list, int max_count,
                              int flags);
 
+/**
+ * dm_gpio_request() - manually request a GPIO
+ *
+ * Note: This function should only be used for testing / debugging. Instead.
+ * use gpio_request_by_name() to pull GPIOs from the device tree.
+ *
+ * @desc:      GPIO description of GPIO to request (see dm_gpio_lookup_name())
+ * @label:     Label to attach to the GPIO while claimed
+ * @return 0 if OK, -ve on error
+ */
+int dm_gpio_request(struct gpio_desc *desc, const char *label);
+
 /**
  * gpio_get_list_count() - Returns the number of GPIOs in a list
  *