mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 19:30:52 +07:00
d2323cf773
In the process of porting boards to devicetree implemenation, we should keep information about external circuitry where they belong - the individual drivers. This patch adds a way to specify a GPIO to drive the (optional) external pull-up logic, rather than using a function pointer for that. Signed-off-by: Daniel Mack <zonque@gmail.com> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Acked-by: Ville Syrjälä <syrjala@sci.fi> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
26 lines
698 B
C
26 lines
698 B
C
/*
|
|
* w1-gpio interface to platform code
|
|
*
|
|
* Copyright (C) 2007 Ville Syrjala <syrjala@sci.fi>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2
|
|
* as published by the Free Software Foundation.
|
|
*/
|
|
#ifndef _LINUX_W1_GPIO_H
|
|
#define _LINUX_W1_GPIO_H
|
|
|
|
/**
|
|
* struct w1_gpio_platform_data - Platform-dependent data for w1-gpio
|
|
* @pin: GPIO pin to use
|
|
* @is_open_drain: GPIO pin is configured as open drain
|
|
*/
|
|
struct w1_gpio_platform_data {
|
|
unsigned int pin;
|
|
unsigned int is_open_drain:1;
|
|
void (*enable_external_pullup)(int enable);
|
|
unsigned int ext_pullup_enable_pin;
|
|
};
|
|
|
|
#endif /* _LINUX_W1_GPIO_H */
|