]> asedeno.scripts.mit.edu Git - linux.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)
commitab4a85534c3ee67e9f54d3d5dda6e36072fbed89
treefaef2900984090e6b8910f9f9fcef20ba1f3ea25
parentbe2a7e2d5d98d288f00af4e9e2ba829aab1ebaef
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