/* mux the pin to the gpio controller (instead of "A" or "B" peripheral), and configure it for an input.  */
int at91_set_pio_input(unsigned port, u32 pin, int use_pullup)
/* mux the pin to the gpio controller (instead of "A" or "B" peripheral), and configure it for an input.  */
int at91_set_pio_input(unsigned port, u32 pin, int use_pullup)
{
	struct at91_port *at91_port = at91_pio_get_port(port);
	if (at91_port && (pin < GPIO_PER_BANK))
		at91_set_port_input(at91_port, pin, use_pullup);
	return 0;
}