soc/amd/common/block/gpio_banks: clear pull-up/down bits in gpio_input
commitdec00dd010ea38ccb7a131e25d243f42b1a0be6f
authorFelix Held <felix-coreboot@felixheld.de>
Mon, 4 Jan 2021 23:32:25 +0000 (5 00:32 +0100)
committerFelix Held <felix-coreboot@felixheld.de>
Wed, 6 Jan 2021 17:20:40 +0000 (6 17:20 +0000)
treef0124b22d66b63a9d2d64481f254a8ae41e8ad09
parentef458dafc0f3351c79dd2ac0ec222f60020788e7
soc/amd/common/block/gpio_banks: clear pull-up/down bits in gpio_input

If the pin was configured as pull-up/down before this wouldn't get
cleared when calling gpio_input before.

Change-Id: I17d5eccb7492138e64abaecbd7cb853adb8c4d2d
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49117
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
src/soc/amd/common/block/gpio_banks/gpio.c