/* assuming the pin is muxed as a gpio output, set its value.  */
int at91_set_pio_value(unsigned port, unsigned pin, int value)
/* assuming the pin is muxed as a gpio output, set its value.  */
int at91_set_pio_value(unsigned port, unsigned pin, int value)
{
	struct at91_port *at91_port = at91_pio_get_port(port);
	if (at91_port && (pin < GPIO_PER_BANK))
		at91_set_port_value(at91_port, pin, value);
	return 0;
}