summaryrefslogtreecommitdiff
path: root/include/linux/w1-gpio.h
diff options
context:
space:
mode:
authorEvgeny Boger <boger@contactless.ru>2014-01-24 03:56:18 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-24 04:37:04 +0400
commit3089a4c8d3abc7e2ab105d1d39d415110d1566d6 (patch)
tree5064f69853949cb8b5d245c932f65a3202d21219 /include/linux/w1-gpio.h
parent63509beaf7ed7a9dc8c574be61189fce791489f0 (diff)
downloadlinux-3089a4c8d3abc7e2ab105d1d39d415110d1566d6.tar.xz
drivers/w1/masters/w1-gpio.c: add strong pullup emulation
Strong pullup is emulated by driving pin logic high after write command when using tri-state push-pull GPIO. Signed-off-by: Evgeny Boger <boger@contactless.ru> Cc: Greg KH <greg@kroah.com> Acked-by: David Fries <david@fries.net> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/w1-gpio.h')
-rw-r--r--include/linux/w1-gpio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/w1-gpio.h b/include/linux/w1-gpio.h
index 065e3ae79ab0..d58594a32324 100644
--- a/include/linux/w1-gpio.h
+++ b/include/linux/w1-gpio.h
@@ -20,6 +20,7 @@ struct w1_gpio_platform_data {
unsigned int is_open_drain:1;
void (*enable_external_pullup)(int enable);
unsigned int ext_pullup_enable_pin;
+ unsigned int pullup_duration;
};
#endif /* _LINUX_W1_GPIO_H */