]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: mvebu: Add support for the Armada 7K/8K SoCs
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Mon, 12 Jun 2017 15:34:59 +0000 (17:34 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 16 Jun 2017 09:28:29 +0000 (11:28 +0200)
commitb6730b20837e7402292d35d3cb910fff4dac7099
treec1603d2896d0a9b8afed178710c96aea5703a09f
parent43a2dcecd8ae16c76026d6728e072a6c0aa2d8ac
gpio: mvebu: Add support for the Armada 7K/8K SoCs

The Armada 7K and 8K SoCs use the same gpio controller as most of the
other mvebu SoCs. However, the main difference is that the GPIO
controller is part of a bigger system controller, and a syscon is used to
control the overall system controller. Therefore, the driver needs to be
adjusted to retrieve the regmap of the syscon to access registers, and
account for the fact that registers are located at a certain offset
within the regmap.

This commit add the support of the syscon and introduce a new variant for
this case.

It was based on the preliminary work of Thomas Petazzoni.

Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mvebu.c