ar71xx: add a function for selecting output signal on a given GPIO pin