gpio: turris_omnia_mcu: Fix registering gpios
authorPali Rohár <pali@kernel.org>
Thu, 22 Sep 2022 11:25:13 +0000 (13:25 +0200)
committerStefan Roese <sr@denx.de>
Mon, 26 Sep 2022 08:04:37 +0000 (10:04 +0200)
commit54bcd84adf2dd2a42552143549541b2c809869a6
tree2ef163a8e4bbe71004caee4daa3ad8e2e52d873c
parent435596d57f8beedf36b5dc858fe7ba9d6c03334b
gpio: turris_omnia_mcu: Fix registering gpios

Currently all GPIOs supported by CMD_EXT_CONTROL/CMD_GET_EXT_CONTROL_STATUS
commands (last 16 GPIOs) are available only when FEAT_PERIPH_MCU feature
bit is set. So do not register these GPIOs by U-Boot driver when this
feature bit is not set, so U-Boot 'gpio' command would see only GPIOs which
really exists.

Fixes: 5e4d24ccc115 ("gpio: Add Turris Omnia MCU driver")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/gpio/turris_omnia_mcu.c