]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - include/asm-sh/ilsel.h
Merge branch 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds
[mirror_ubuntu-artful-kernel.git] / include / asm-sh / ilsel.h
1 #ifndef __ASM_SH_ILSEL_H
2 #define __ASM_SH_ILSEL_H
3
4 typedef enum {
5 ILSEL_NONE,
6 ILSEL_LAN,
7 ILSEL_USBH_I,
8 ILSEL_USBH_S,
9 ILSEL_USBH_V,
10 ILSEL_RTC,
11 ILSEL_USBP_I,
12 ILSEL_USBP_S,
13 ILSEL_USBP_V,
14 ILSEL_KEY,
15
16 /*
17 * ILSEL Aliases - corner cases for interleaved level tables.
18 *
19 * Someone thought this was a good idea and less hassle than
20 * demuxing a shared vector, really.
21 */
22
23 /* ILSEL0 and 2 */
24 ILSEL_FPGA0,
25 ILSEL_FPGA1,
26 ILSEL_EX1,
27 ILSEL_EX2,
28 ILSEL_EX3,
29 ILSEL_EX4,
30
31 /* ILSEL1 and 3 */
32 ILSEL_FPGA2 = ILSEL_FPGA0,
33 ILSEL_FPGA3 = ILSEL_FPGA1,
34 ILSEL_EX5 = ILSEL_EX1,
35 ILSEL_EX6 = ILSEL_EX2,
36 ILSEL_EX7 = ILSEL_EX3,
37 ILSEL_EX8 = ILSEL_EX4,
38 } ilsel_source_t;
39
40 /* arch/sh/boards/renesas/x3proto/ilsel.c */
41 int ilsel_enable(ilsel_source_t set);
42 int ilsel_enable_fixed(ilsel_source_t set, unsigned int level);
43 void ilsel_disable(unsigned int irq);
44
45 #endif /* __ASM_SH_ILSEL_H */