]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: aspeed: Add in ast2600 details to Aspeed driver
authorRashmica Gupta <rashmica.g@gmail.com>
Fri, 6 Sep 2019 06:37:37 +0000 (16:37 +1000)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Sep 2019 10:13:11 +0000 (11:13 +0100)
commit07c44185085b5f5602222caa1465b0ad87ace839
treefaef2900984090e6b8910f9f9fcef20ba1f3ea25
parent3abb566781415ac964d863bc34d5671a0e75d19c
gpio: aspeed: Add in ast2600 details to Aspeed driver

The ast2600 is a new generation of SoC from ASPEED. Similarly to the
ast2400 and ast2500, it has a GPIO controller for it's 3.3V GPIO pins.
Additionally, it has a GPIO controller for 1.8V GPIO pins.

As the register names for both controllers are the same and the 36 1.8V
GPIOs and the first 36 of the 3.3V GPIOs are all bidirectional, we can
use the same configuration struct and use the ngpio property to
differentiate between the two sets of GPIOs.

Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com>
Link: https://lore.kernel.org/r/20190906063737.15428-1-rashmica.g@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-aspeed.c