Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / arch / cris / include / arch-v32 / mach-fs / mach / pinmux.h
blobc2b3036779df5ad3b52e7d24b2c228398da3dc8e
1 #ifndef _ASM_CRIS_ARCH_PINMUX_H
2 #define _ASM_CRIS_ARCH_PINMUX_H
4 #define PORT_B 0
5 #define PORT_C 1
6 #define PORT_D 2
7 #define PORT_E 3
9 enum pin_mode {
10 pinmux_none = 0,
11 pinmux_fixed,
12 pinmux_gpio,
13 pinmux_iop
16 enum fixed_function {
17 pinmux_ser1,
18 pinmux_ser2,
19 pinmux_ser3,
20 pinmux_sser0,
21 pinmux_sser1,
22 pinmux_ata0,
23 pinmux_ata1,
24 pinmux_ata2,
25 pinmux_ata3,
26 pinmux_ata,
27 pinmux_eth1,
28 pinmux_timer
31 int crisv32_pinmux_init(void);
32 int crisv32_pinmux_alloc(int port, int first_pin, int last_pin, enum pin_mode);
33 int crisv32_pinmux_alloc_fixed(enum fixed_function function);
34 int crisv32_pinmux_dealloc(int port, int first_pin, int last_pin);
35 int crisv32_pinmux_dealloc_fixed(enum fixed_function function);
36 void crisv32_pinmux_dump(void);
38 #endif