ar71xx: fix GPIO function handling on AR934x