Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Ville Syrjala | ad8dc96 | 2008-02-06 01:39:01 -0800 | [diff] [blame] | 2 | /* |
| 3 | * w1-gpio interface to platform code |
| 4 | * |
| 5 | * Copyright (C) 2007 Ville Syrjala <syrjala@sci.fi> |
Ville Syrjala | ad8dc96 | 2008-02-06 01:39:01 -0800 | [diff] [blame] | 6 | */ |
| 7 | #ifndef _LINUX_W1_GPIO_H |
| 8 | #define _LINUX_W1_GPIO_H |
| 9 | |
Linus Walleij | e0fc62a | 2017-09-26 20:27:09 +0200 | [diff] [blame] | 10 | struct gpio_desc; |
| 11 | |
Ville Syrjala | ad8dc96 | 2008-02-06 01:39:01 -0800 | [diff] [blame] | 12 | /** |
| 13 | * struct w1_gpio_platform_data - Platform-dependent data for w1-gpio |
Ville Syrjala | ad8dc96 | 2008-02-06 01:39:01 -0800 | [diff] [blame] | 14 | */ |
| 15 | struct w1_gpio_platform_data { |
Linus Walleij | e0fc62a | 2017-09-26 20:27:09 +0200 | [diff] [blame] | 16 | struct gpio_desc *gpiod; |
| 17 | struct gpio_desc *pullup_gpiod; |
Daniel Mack | c8a06c1 | 2009-06-17 16:28:15 -0700 | [diff] [blame] | 18 | void (*enable_external_pullup)(int enable); |
Evgeny Boger | 3089a4c | 2014-01-23 15:56:18 -0800 | [diff] [blame] | 19 | unsigned int pullup_duration; |
Ville Syrjala | ad8dc96 | 2008-02-06 01:39:01 -0800 | [diff] [blame] | 20 | }; |
| 21 | |
| 22 | #endif /* _LINUX_W1_GPIO_H */ |