]> git.baikalelectronics.ru Git - uboot.git/commit
gpio: mvebu_gpio: Read number of gpios from DT
authorPali Rohár <pali@kernel.org>
Mon, 25 Jul 2022 11:56:13 +0000 (13:56 +0200)
committerStefan Roese <sr@denx.de>
Thu, 28 Jul 2022 13:17:46 +0000 (15:17 +0200)
commite150f716d12dfbc54259d3901dc50fe765af3042
treed9883b0bcf09ddc9d9cd3684763dc0cdb9178de3
parent044fbe9d117c253e9508f20571ef0a0e5736552b
gpio: mvebu_gpio: Read number of gpios from DT

Device tree property "ngpios" contains number of gpios.
Use it when available.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/gpio/mvebu_gpio.c