net/ice/base: add set/get GPIO helper functions