From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Date: Mon, 13 Jun 2016 00:00:47 +0200 Subject: [U-Boot] gpio: at91: Fix pullup/pulldown configuration on PIO3 In-Reply-To: <1462395923-5035-1-git-send-email-marex@denx.de> (from Marek Vasut on Wed, 4 May 2016 23:05:23 +0200) References: <1462395923-5035-1-git-send-email-marex@denx.de> Message-ID: <1465768847-6745-1-git-send-email-andreas@biessmann.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Marek Vasut, Marek Vasut 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 >Cc: Andreas Bie?mann >Cc: Josh Wu >Cc: Simon Glass >Reviewed-by: Andreas Bie?mann >--- > 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