]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: meson: Fix GPIO direction registers access
authorCarlo Caione <ccaione@baylibre.com>
Mon, 3 Dec 2018 18:00:42 +0000 (18:00 +0000)
committerNeil Armstrong <narmstrong@baylibre.com>
Wed, 5 Dec 2018 09:39:17 +0000 (10:39 +0100)
commitfb19c7bade45e97112f65671dd0c5855c727675a
tree26f60019d041a7f94b60220f56e1c24f0b9b7716
parentd452f27b3ea806fd99aee4b73a723318032c1d5c
pinctrl: meson: Fix GPIO direction registers access

The macros used to set the direction of the GPIO pins are misused,
resulting in a wrong behavior when trying to read the GPIO input level
from U-Boot.

A better macro is also used when setting the output direction.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/pinctrl/meson/pinctrl-meson.c