1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 /* 3 * On-board switches for the Renesas RZ/G3S SMARC Module and RZ SMARC Carrier II 4 * boards. 5 * 6 * Copyright (C) 2024 Renesas Electronics Corp. 7 */ 8 9 #ifndef __RZG3S_SMARC_SWITCHES_H__ 10 #define __RZG3S_SMARC_SWITCHES_H__ 11 12 /* 13 * On-board switches' states: 14 * @SW_OFF: switch's state is OFF 15 * @SW_ON: switch's state is ON 16 */ 17 #define SW_OFF 0 18 #define SW_ON 1 19 20 /* 21 * SW_CONFIG[x] switches' states: 22 * @SW_CONFIG2: 23 * SW_OFF - SD0 is connected to eMMC 24 * SW_ON - SD0 is connected to uSD0 card 25 * @SW_CONFIG3: 26 * SW_OFF - SD2 is connected to SoC 27 * SW_ON - SCIF1, SSI0, IRQ0, IRQ1 connected to SoC 28 */ 29 #define SW_CONFIG2 SW_OFF 30 #define SW_CONFIG3 SW_ON 31 32 /* 33 * SW_OPT_MUX[x] switches' states: 34 * @SW_OPT_MUX4: 35 * SW_OFF - The SMARC SER0 signals are routed to M.2 Key E UART 36 * SW_ON - The SMARC SER0 signals are routed to PMOD1 37 */ 38 #define SW_OPT_MUX4 SW_ON 39 40 #endif /* __RZG3S_SMARC_SWITCHES_H__ */ 41