/* enable/disable the multi-driver. This is only valid for output and allows the output pin to run as an open collector output.  */
int at91_set_pio_multi_drive(unsigned port, unsigned pin, int is_on)
/* enable/disable the multi-driver. This is only valid for output and allows the output pin to run as an open collector output.  */
int at91_set_pio_multi_drive(unsigned port, unsigned pin, int is_on)
{
	at91_pio_t	*pio 	= (at91_pio_t *) AT91_PIO_BASE;
	u32		mask;
	if ((port < AT91_PIO_PORTS) && (pin < 32)) {
		mask = 1 << pin;
		if (is_on)
			writel(mask, &pio->port[port].mder);
		else
			writel(mask, &pio->port[port].mddr);
	}
	return 0;
}