Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / cris / include / arch-v32 / mach-fs / mach / pinmux.h
blob1d87f1392dc8a7579fdaf518fea1ab9cac5156af
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_CRIS_ARCH_PINMUX_H
3 #define _ASM_CRIS_ARCH_PINMUX_H
5 #define PORT_B 0
6 #define PORT_C 1
7 #define PORT_D 2
8 #define PORT_E 3
10 enum pin_mode {
11 pinmux_none = 0,
12 pinmux_fixed,
13 pinmux_gpio,
14 pinmux_iop
17 enum fixed_function {
18 pinmux_ser1,
19 pinmux_ser2,
20 pinmux_ser3,
21 pinmux_sser0,
22 pinmux_sser1,
23 pinmux_ata0,
24 pinmux_ata1,
25 pinmux_ata2,
26 pinmux_ata3,
27 pinmux_ata,
28 pinmux_eth1,
29 pinmux_timer
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);
37 #endif