Add linux-next specific files for 20110831
[linux-2.6/next.git] / arch / cris / include / arch-v32 / mach-a3 / mach / pinmux.h
blobdb42a7254584892176d4c16b1b9224d321fb76da
1 #ifndef _ASM_CRIS_ARCH_PINMUX_H
2 #define _ASM_CRIS_ARCH_PINMUX_H
4 #define PORT_A 0
5 #define PORT_B 1
6 #define PORT_C 2
8 enum pin_mode {
9 pinmux_none = 0,
10 pinmux_fixed,
11 pinmux_gpio,
12 pinmux_iop
15 enum fixed_function {
16 pinmux_eth,
17 pinmux_geth,
18 pinmux_tg_ccd,
19 pinmux_tg_cmos,
20 pinmux_vout,
21 pinmux_ser1,
22 pinmux_ser2,
23 pinmux_ser3,
24 pinmux_ser4,
25 pinmux_sser,
26 pinmux_pio,
27 pinmux_pwm0,
28 pinmux_pwm1,
29 pinmux_pwm2,
30 pinmux_i2c0,
31 pinmux_i2c1,
32 pinmux_i2c1_3wire,
33 pinmux_i2c1_sda1,
34 pinmux_i2c1_sda2,
35 pinmux_i2c1_sda3,
38 int crisv32_pinmux_init(void);
39 int crisv32_pinmux_alloc(int port, int first_pin, int last_pin, enum pin_mode);
40 int crisv32_pinmux_alloc_fixed(enum fixed_function function);
41 int crisv32_pinmux_dealloc(int port, int first_pin, int last_pin);
42 int crisv32_pinmux_dealloc_fixed(enum fixed_function function);
43 void crisv32_pinmux_dump(void);
45 #endif