Path: blob/master/arch/sh/include/mach-x3proto/mach/ilsel.h
26498 views
/* SPDX-License-Identifier: GPL-2.0 */1#ifndef __ASM_SH_ILSEL_H2#define __ASM_SH_ILSEL_H34typedef enum {5ILSEL_NONE,6ILSEL_LAN,7ILSEL_USBH_I,8ILSEL_USBH_S,9ILSEL_USBH_V,10ILSEL_RTC,11ILSEL_USBP_I,12ILSEL_USBP_S,13ILSEL_USBP_V,14ILSEL_KEY,1516/*17* ILSEL Aliases - corner cases for interleaved level tables.18*19* Someone thought this was a good idea and less hassle than20* demuxing a shared vector, really.21*/2223/* ILSEL0 and 2 */24ILSEL_FPGA0,25ILSEL_FPGA1,26ILSEL_EX1,27ILSEL_EX2,28ILSEL_EX3,29ILSEL_EX4,3031/* ILSEL1 and 3 */32ILSEL_FPGA2 = ILSEL_FPGA0,33ILSEL_FPGA3 = ILSEL_FPGA1,34ILSEL_EX5 = ILSEL_EX1,35ILSEL_EX6 = ILSEL_EX2,36ILSEL_EX7 = ILSEL_EX3,37ILSEL_EX8 = ILSEL_EX4,38} ilsel_source_t;3940/* arch/sh/boards/renesas/x3proto/ilsel.c */41int ilsel_enable(ilsel_source_t set);42int ilsel_enable_fixed(ilsel_source_t set, unsigned int level);43void ilsel_disable(unsigned int irq);4445#endif /* __ASM_SH_ILSEL_H */464748