]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: aspeed: Add banks Y, Z, AA, AB and AC
authorAndrew Jeffery <andrew@aj.id.au>
Tue, 24 Jan 2017 06:16:46 +0000 (16:46 +1030)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 26 Jan 2017 13:45:43 +0000 (14:45 +0100)
commitb3e6e18ecdbfdbaf6934c87531a45af0e2036c4b
tree2c00dd66c1fba12ce3b3b89cd77cf87a025c8e49
parent1a70d63662e1d8e47b04f84cc3ce91a218bb4629
gpio: aspeed: Add banks Y, Z, AA, AB and AC

This is less straight-forward than one would hope, as some banks only
have 4 pins rather than 8, others are output only, yet more (W and
X, already supported) are input-only, and in the case of the g4 SoC bank
AC doesn't exist.

Add some structs to describe the varying properties of different banks
and integrate mechanisms to deny requests for unsupported
configurations.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-aspeed.c