xref: /openbmc/linux/include/linux/w1-gpio.h (revision d2912cb1)
1d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
2ad8dc96eSVille Syrjala /*
3ad8dc96eSVille Syrjala  * w1-gpio interface to platform code
4ad8dc96eSVille Syrjala  *
5ad8dc96eSVille Syrjala  * Copyright (C) 2007 Ville Syrjala <syrjala@sci.fi>
6ad8dc96eSVille Syrjala  */
7ad8dc96eSVille Syrjala #ifndef _LINUX_W1_GPIO_H
8ad8dc96eSVille Syrjala #define _LINUX_W1_GPIO_H
9ad8dc96eSVille Syrjala 
10e0fc62a6SLinus Walleij struct gpio_desc;
11e0fc62a6SLinus Walleij 
12ad8dc96eSVille Syrjala /**
13ad8dc96eSVille Syrjala  * struct w1_gpio_platform_data - Platform-dependent data for w1-gpio
14ad8dc96eSVille Syrjala  */
15ad8dc96eSVille Syrjala struct w1_gpio_platform_data {
16e0fc62a6SLinus Walleij 	struct gpio_desc *gpiod;
17e0fc62a6SLinus Walleij 	struct gpio_desc *pullup_gpiod;
18c8a06c1eSDaniel Mack 	void (*enable_external_pullup)(int enable);
193089a4c8SEvgeny Boger 	unsigned int pullup_duration;
20ad8dc96eSVille Syrjala };
21ad8dc96eSVille Syrjala 
22ad8dc96eSVille Syrjala #endif /* _LINUX_W1_GPIO_H */
23