162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef __ASM_SH_ILSEL_H
362306a36Sopenharmony_ci#define __ASM_SH_ILSEL_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_citypedef enum {
662306a36Sopenharmony_ci	ILSEL_NONE,
762306a36Sopenharmony_ci	ILSEL_LAN,
862306a36Sopenharmony_ci	ILSEL_USBH_I,
962306a36Sopenharmony_ci	ILSEL_USBH_S,
1062306a36Sopenharmony_ci	ILSEL_USBH_V,
1162306a36Sopenharmony_ci	ILSEL_RTC,
1262306a36Sopenharmony_ci	ILSEL_USBP_I,
1362306a36Sopenharmony_ci	ILSEL_USBP_S,
1462306a36Sopenharmony_ci	ILSEL_USBP_V,
1562306a36Sopenharmony_ci	ILSEL_KEY,
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci	/*
1862306a36Sopenharmony_ci	 * ILSEL Aliases - corner cases for interleaved level tables.
1962306a36Sopenharmony_ci	 *
2062306a36Sopenharmony_ci	 * Someone thought this was a good idea and less hassle than
2162306a36Sopenharmony_ci	 * demuxing a shared vector, really.
2262306a36Sopenharmony_ci	 */
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci	/* ILSEL0 and 2 */
2562306a36Sopenharmony_ci	ILSEL_FPGA0,
2662306a36Sopenharmony_ci	ILSEL_FPGA1,
2762306a36Sopenharmony_ci	ILSEL_EX1,
2862306a36Sopenharmony_ci	ILSEL_EX2,
2962306a36Sopenharmony_ci	ILSEL_EX3,
3062306a36Sopenharmony_ci	ILSEL_EX4,
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci	/* ILSEL1 and 3 */
3362306a36Sopenharmony_ci	ILSEL_FPGA2 = ILSEL_FPGA0,
3462306a36Sopenharmony_ci	ILSEL_FPGA3 = ILSEL_FPGA1,
3562306a36Sopenharmony_ci	ILSEL_EX5 = ILSEL_EX1,
3662306a36Sopenharmony_ci	ILSEL_EX6 = ILSEL_EX2,
3762306a36Sopenharmony_ci	ILSEL_EX7 = ILSEL_EX3,
3862306a36Sopenharmony_ci	ILSEL_EX8 = ILSEL_EX4,
3962306a36Sopenharmony_ci} ilsel_source_t;
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ci/* arch/sh/boards/renesas/x3proto/ilsel.c */
4262306a36Sopenharmony_ciint ilsel_enable(ilsel_source_t set);
4362306a36Sopenharmony_ciint ilsel_enable_fixed(ilsel_source_t set, unsigned int level);
4462306a36Sopenharmony_civoid ilsel_disable(unsigned int irq);
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ci#endif /* __ASM_SH_ILSEL_H */
47