gpio: aspeed: Add command source registers
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 29 Jun 2018 04:11:18 +0000 (14:11 +1000)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 2 Jul 2018 14:10:13 +0000 (16:10 +0200)
commit0f1e03c2b5a395e3eb38899a41c7e74afbc16ba0
treef6f5dfcee06b4689cb2c811200578b74771568fc
parentc67dda88cc5da58c5a63083e0405fe93e2476bb7
gpio: aspeed: Add command source registers

This adds the definitions for the command source registers
and a helper to set them.

Those registers allow to control which bus master on the
SoC is allowed to modify a given bank of GPIOs and will
be used by subsequent patches.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-aspeed.c