Merge tag 'hte/for-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra...
[linux-block.git] / include / linux / gpio / driver.h
index 654184cdb719c3085782854fc3e08ccd3b8c3f6f..b1e0f1f8ee2e70d327aa50a6da9e196457aa502f 100644 (file)
@@ -333,6 +333,10 @@ struct gpio_irq_chip {
  * @add_pin_ranges: optional routine to initialize pin ranges, to be used when
  *     requires special mapping of the pins that provides GPIO functionality.
  *     It is called after adding GPIO chip and before adding IRQ chip.
+ * @en_hw_timestamp: Dependent on GPIO chip, an optional routine to
+ *     enable hardware timestamp.
+ * @dis_hw_timestamp: Dependent on GPIO chip, an optional routine to
+ *     disable hardware timestamp.
  * @base: identifies the first GPIO number handled by this chip;
  *     or, if negative during registration, requests dynamic ID allocation.
  *     DEPRECATION: providing anything non-negative and nailing the base
@@ -429,6 +433,12 @@ struct gpio_chip {
 
        int                     (*add_pin_ranges)(struct gpio_chip *gc);
 
+       int                     (*en_hw_timestamp)(struct gpio_chip *gc,
+                                                  u32 offset,
+                                                  unsigned long flags);
+       int                     (*dis_hw_timestamp)(struct gpio_chip *gc,
+                                                   u32 offset,
+                                                   unsigned long flags);
        int                     base;
        u16                     ngpio;
        u16                     offset;