powerpc/82xx: make set/get_pin for km82xx more flexible