diff options
author | Jesper Nilsson <jespern@stork.se.axis.com> | 2007-11-29 11:21:59 -0500 |
---|---|---|
committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2008-02-08 05:06:23 -0500 |
commit | 58d083192825c5fbd46fa0b1ff4d1ecc9118b692 (patch) | |
tree | 3bd39bf385afe376272d4769c0af321d6e8ed992 /include/asm-cris/arch-v32/mach-a3/pinmux.h | |
parent | 035e111f9a9b29843bc899f03d56f19d94bebb53 (diff) |
CRIS v32: Add hardware dependent include files and defconfigs for ETRAX FS and ARTPEC-3 chips.
The header files describe the hardware registers available in both
these chips, note that most of this documentation is automatically
generated from the hardware implementation.
Diffstat (limited to 'include/asm-cris/arch-v32/mach-a3/pinmux.h')
-rw-r--r-- | include/asm-cris/arch-v32/mach-a3/pinmux.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/include/asm-cris/arch-v32/mach-a3/pinmux.h b/include/asm-cris/arch-v32/mach-a3/pinmux.h new file mode 100644 index 000000000000..db42a7254584 --- /dev/null +++ b/include/asm-cris/arch-v32/mach-a3/pinmux.h | |||
@@ -0,0 +1,45 @@ | |||
1 | #ifndef _ASM_CRIS_ARCH_PINMUX_H | ||
2 | #define _ASM_CRIS_ARCH_PINMUX_H | ||
3 | |||
4 | #define PORT_A 0 | ||
5 | #define PORT_B 1 | ||
6 | #define PORT_C 2 | ||
7 | |||
8 | enum pin_mode { | ||
9 | pinmux_none = 0, | ||
10 | pinmux_fixed, | ||
11 | pinmux_gpio, | ||
12 | pinmux_iop | ||
13 | }; | ||
14 | |||
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, | ||
36 | }; | ||
37 | |||
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); | ||
44 | |||
45 | #endif | ||