diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-08-29 16:12:36 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-08-29 16:12:36 -0400 |
commit | 2fca877b68b2b4fc5b94277858a1bedd46017cde (patch) | |
tree | fd02725406299ba2f26354463b3c261721e9eb6b /include/asm-cris/arch-v32/pinmux.h | |
parent | ff40c6d3d1437ecdf295b8e39adcb06c3d6021ef (diff) | |
parent | 02b3e4e2d71b6058ec11cc01c72ac651eb3ded2b (diff) |
/spare/repo/libata-dev branch 'v2.6.13'
Diffstat (limited to 'include/asm-cris/arch-v32/pinmux.h')
-rw-r--r-- | include/asm-cris/arch-v32/pinmux.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/asm-cris/arch-v32/pinmux.h b/include/asm-cris/arch-v32/pinmux.h new file mode 100644 index 000000000000..a66dc9970919 --- /dev/null +++ b/include/asm-cris/arch-v32/pinmux.h | |||
@@ -0,0 +1,39 @@ | |||
1 | #ifndef _ASM_CRIS_ARCH_PINMUX_H | ||
2 | #define _ASM_CRIS_ARCH_PINMUX_H | ||
3 | |||
4 | #define PORT_B 0 | ||
5 | #define PORT_C 1 | ||
6 | #define PORT_D 2 | ||
7 | #define PORT_E 3 | ||
8 | |||
9 | enum pin_mode | ||
10 | { | ||
11 | pinmux_none = 0, | ||
12 | pinmux_fixed, | ||
13 | pinmux_gpio, | ||
14 | pinmux_iop | ||
15 | }; | ||
16 | |||
17 | enum fixed_function | ||
18 | { | ||
19 | pinmux_ser1, | ||
20 | pinmux_ser2, | ||
21 | pinmux_ser3, | ||
22 | pinmux_sser0, | ||
23 | pinmux_sser1, | ||
24 | pinmux_ata0, | ||
25 | pinmux_ata1, | ||
26 | pinmux_ata2, | ||
27 | pinmux_ata3, | ||
28 | pinmux_ata, | ||
29 | pinmux_eth1, | ||
30 | pinmux_timer | ||
31 | }; | ||
32 | |||
33 | int crisv32_pinmux_init(void); | ||
34 | int crisv32_pinmux_alloc(int port, int first_pin, int last_pin, enum pin_mode); | ||
35 | int crisv32_pinmux_alloc_fixed(enum fixed_function function); | ||
36 | int crisv32_pinmux_dealloc(int port, int first_pin, int last_pin); | ||
37 | void crisv32_pinmux_dump(void); | ||
38 | |||
39 | #endif | ||