gpio: tb10x: Use GENERIC_GPIO

Instead of open coding logic for reading and writing GPIO lines,
use the generic GPIO library. Also switch to using the spinlock
from the generic GPIO to protect the registers.

Cc: [email protected]
Acked-by: Christian Ruppert <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
2 files changed