gpio: pl061: refactor type setting