[BACK]Return to portmux.h CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / include / asm-avr32 / arch-at32ap

File: [Development] / linux-2.6-xfs / include / asm-avr32 / arch-at32ap / Attic / portmux.h (download)

Revision 1.2, Fri Jan 12 15:41:10 2007 UTC (10 years, 9 months ago) by donaldd.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.1: +15 -5 lines

Merge up to 2.6.20-rc4
Merge of 2.6.x-xfs-melb:linux:27915c by kenmcd.

/*
 * AT32 portmux interface.
 *
 * Copyright (C) 2006 Atmel Corporation
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
#ifndef __ASM_ARCH_PORTMUX_H__
#define __ASM_ARCH_PORTMUX_H__

/*
 * Set up pin multiplexing, called from board init only.
 *
 * The following flags determine the initial state of the pin.
 */
#define AT32_GPIOF_PULLUP	0x00000001	/* Enable pull-up */
#define AT32_GPIOF_OUTPUT	0x00000002	/* Enable output driver */
#define AT32_GPIOF_HIGH		0x00000004	/* Set output high */

void at32_select_periph(unsigned int pin, unsigned int periph,
			unsigned long flags);
void at32_select_gpio(unsigned int pin, unsigned long flags);

#endif /* __ASM_ARCH_PORTMUX_H__ */