gpio: aspeed: fix ast2600 bank properties
authorBilly Tsai <billy_tsai@aspeedtech.com>
Mon, 19 Oct 2020 04:50:26 +0000 (12:50 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 26 Oct 2020 14:51:57 +0000 (15:51 +0100)
commit560b6ac37a87fcb78d580437e3e0bc2b6b5b0295
treee146b84c1ed9cafce628facc536cf5b2949f7852
parent3fe37204c9a233d1bd852b98bca43ec61854ba78
gpio: aspeed: fix ast2600 bank properties

GPIO_T is mapped to the most significant byte of input/output mask, and
the byte in "output" mask should be 0 because GPIO_T is input only. All
the other bits need to be 1 because GPIO_Q/R/S support both input and
output modes.

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