gpio: aspeed: fix ast2600 bank properties
authorTao Ren <rentao.bupt@gmail.com>
Wed, 16 Sep 2020 20:42:16 +0000 (13:42 -0700)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 24 Sep 2020 13:37:18 +0000 (15:37 +0200)
commit3e640b1eec38e4c8eba160f26cba4f592e657f3d
treeb767b6498caa48a196e3c5f68d9e3acf554de600
parentbf0d394e885015941ed2d5724c0a6ed8d42dd95e
gpio: aspeed: fix ast2600 bank properties

GPIO_U is mapped to the least significant byte of input/output mask, and
the byte in "output" mask should be 0 because GPIO_U is input only. All
the other bits need to be 1 because GPIO_V/W/X support both input and
output modes.

Similarly, GPIO_Y/Z are mapped to the 2 least significant bytes, and the
according bits need to be 1 because GPIO_Y/Z support both input and
output modes.

Fixes: ab4a85534c3e ("gpio: aspeed: Add in ast2600 details to Aspeed driver")
Signed-off-by: Tao Ren <rentao.bupt@gmail.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-aspeed.c