]> git.baikalelectronics.ru Git - uboot.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)
commit54004f6ce90113a5e03b2c8b9e0d87aed2ccc961
tree26f60019d041a7f94b60220f56e1c24f0b9b7716
parent55f51be40cb6c3c4cc9e2029583c82b613ca4612
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