]> git.baikalelectronics.ru Git - uboot.git/commit
arm64: a37xx: pinctrl: Implement gpio_request_enable for gpio functionality
authorPali Rohár <pali@kernel.org>
Mon, 25 Jul 2022 12:09:02 +0000 (14:09 +0200)
committerStefan Roese <sr@denx.de>
Fri, 29 Jul 2022 08:02:43 +0000 (10:02 +0200)
commit48921d59fa46e571bc320e0655ac90e873e4b661
treeded15f8e98dfe94beac0758846001609bd25498f
parent9543aecbe8fdb9afd574ce67de1c6397462633f8
arm64: a37xx: pinctrl: Implement gpio_request_enable for gpio functionality

To automatically enable GPIO functionality of some MPP pin, it is required
to implement .gpio_request_enable and .gpio_disable_free callbacks in
pinctrl driver and set .request and .rfree callbacks in GPIO driver to
pinctrl_gpio_request / pinctrl_gpio_free functions.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c