Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
47 lines
926 B
C
47 lines
926 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __ASM_SH_ILSEL_H
|
|
#define __ASM_SH_ILSEL_H
|
|
|
|
typedef enum {
|
|
ILSEL_NONE,
|
|
ILSEL_LAN,
|
|
ILSEL_USBH_I,
|
|
ILSEL_USBH_S,
|
|
ILSEL_USBH_V,
|
|
ILSEL_RTC,
|
|
ILSEL_USBP_I,
|
|
ILSEL_USBP_S,
|
|
ILSEL_USBP_V,
|
|
ILSEL_KEY,
|
|
|
|
/*
|
|
* ILSEL Aliases - corner cases for interleaved level tables.
|
|
*
|
|
* Someone thought this was a good idea and less hassle than
|
|
* demuxing a shared vector, really.
|
|
*/
|
|
|
|
/* ILSEL0 and 2 */
|
|
ILSEL_FPGA0,
|
|
ILSEL_FPGA1,
|
|
ILSEL_EX1,
|
|
ILSEL_EX2,
|
|
ILSEL_EX3,
|
|
ILSEL_EX4,
|
|
|
|
/* ILSEL1 and 3 */
|
|
ILSEL_FPGA2 = ILSEL_FPGA0,
|
|
ILSEL_FPGA3 = ILSEL_FPGA1,
|
|
ILSEL_EX5 = ILSEL_EX1,
|
|
ILSEL_EX6 = ILSEL_EX2,
|
|
ILSEL_EX7 = ILSEL_EX3,
|
|
ILSEL_EX8 = ILSEL_EX4,
|
|
} ilsel_source_t;
|
|
|
|
/* arch/sh/boards/renesas/x3proto/ilsel.c */
|
|
int ilsel_enable(ilsel_source_t set);
|
|
int ilsel_enable_fixed(ilsel_source_t set, unsigned int level);
|
|
void ilsel_disable(unsigned int irq);
|
|
|
|
#endif /* __ASM_SH_ILSEL_H */
|