Mikael Starvik | 51533b6 | 2005-07-27 11:44:44 -0700 | [diff] [blame] | 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 |