ar71xx: add function to access the GPIO function2 register