[U-Boot] gpio: at91: Fix pullup/pulldown configuration on PIO3
Andreas Bießmann
andreas at biessmann.org
Mon Jun 13 00:00:47 CEST 2016
Dear Marek Vasut,
Marek Vasut <marex at denx.de> writes:
>On systems with PIO3 (SAMA5D3/D4/..), the pullup and pulldown configuration
>is mutualy exclusive. This patch assures that the opposite pull resistor gets
>disabled before the requested pull resistor is enabled. This changes behavior
>of at91_set_pio_pulldown() such that the pullup is only disabled if pulldown
>is to be enabled. This changes behavior of at91_set_pio_pullup() such that
>the pulldown is only disabled if pullup is to be enabled.
>
>Signed-off-by: Marek Vasut <marex at denx.de>
>Cc: Andreas Bießmann <andreas.devel at googlemail.com>
>Cc: Josh Wu <josh.wu at atmel.com>
>Cc: Simon Glass <sjg at chromium.org>
>Reviewed-by: Andreas Bießmann <andreas at biessmann.org>
>---
> drivers/gpio/at91_gpio.c | 11 ++++++++---
> 1 file changed, 8 insertions(+), 3 deletions(-)
applied to u-boot-atmel/master, thanks!
Best regards,
Andreas Bießmann
More information about the U-Boot
mailing list