gpio: realtek-otto: Support reversed port layouts
authorSander Vanheule <sander@svanheule.net>
Sat, 9 Apr 2022 19:55:47 +0000 (21:55 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Mon, 11 Apr 2022 10:58:07 +0000 (12:58 +0200)
commit512c5be35223d9baa2629efa1084cf5210eaee80
tree996f78991a9b0a1a705e87e0ece1a65ec0792e99
parent06a6a774f6b8ed94aefcf60caa56fe92d3a18e17
gpio: realtek-otto: Support reversed port layouts

The GPIO port layout on the RTL930x SoC series is reversed compared to
the RTL838x and RTL839x SoC series. Add new port offset calculator
functions to ensure the correct order is used when reading port IRQ
data, and ensure bgpio uses the right byte ordering.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-realtek-otto.c