
6 May
2020
6 May
'20
4:54 p.m.
On Wed, May 06, 2020 at 08:47:20AM -0600, Simon Glass wrote:
Hi Neil,
+Tom Rini
On Tue, 5 May 2020 at 02:43, Neil Armstrong narmstrong@baylibre.com wrote:
Handle the GPIOD_OPEN_DRAIN & GPIOD_OPEN_SOURCE flags to emulate open drain and open source by setting the GPIO line as input depending on the requested value.
The behaviour is taken from the Linux gpiolib.
Signed-off-by: Neil Armstrong narmstrong@baylibre.com
drivers/gpio/gpio-uclass.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org
I wonder how we should handle small increases in functionality, like this. If a board doesn't want the code-stize hit in SPL, should we have it behind a Kconfig, like CONFIG_GPIO_EXTRA?
I suppose it'll come down to how much growth and where.
--
Tom