1 /*
2  * Copyright (c) 2021-2024 HPMicro
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 
9 #ifndef HPM_PMIC_IOMUX_H
10 #define HPM_PMIC_IOMUX_H
11 
12 /* PIOC_PY00_FUNC_CTL function mux definitions */
13 #define IOC_PY00_FUNC_CTL_PGPIO_Y_00           IOC_PAD_FUNC_CTL_ALT_SELECT_SET(0) /* dropped macro, please use macro with prefix PIOC_ */
14 #define PIOC_PY00_FUNC_CTL_PGPIO_Y_00          IOC_PAD_FUNC_CTL_ALT_SELECT_SET(0)
15 #define IOC_PY00_FUNC_CTL_JTAG_TDO             IOC_PAD_FUNC_CTL_ALT_SELECT_SET(1) /* dropped macro, please use macro with prefix PIOC_ */
16 #define PIOC_PY00_FUNC_CTL_JTAG_TDO            IOC_PAD_FUNC_CTL_ALT_SELECT_SET(1)
17 #define IOC_PY00_FUNC_CTL_PTMR_COMP_0          IOC_PAD_FUNC_CTL_ALT_SELECT_SET(2) /* dropped macro, please use macro with prefix PIOC_ */
18 #define PIOC_PY00_FUNC_CTL_PTMR_COMP_0         IOC_PAD_FUNC_CTL_ALT_SELECT_SET(2)
19 #define IOC_PY00_FUNC_CTL_SOC_GPIO_Y_00        IOC_PAD_FUNC_CTL_ALT_SELECT_SET(3) /* dropped macro, please use macro with prefix PIOC_ */
20 #define PIOC_PY00_FUNC_CTL_SOC_GPIO_Y_00       IOC_PAD_FUNC_CTL_ALT_SELECT_SET(3)
21 
22 /* PIOC_PY01_FUNC_CTL function mux definitions */
23 #define IOC_PY01_FUNC_CTL_PGPIO_Y_01           IOC_PAD_FUNC_CTL_ALT_SELECT_SET(0) /* dropped macro, please use macro with prefix PIOC_ */
24 #define PIOC_PY01_FUNC_CTL_PGPIO_Y_01          IOC_PAD_FUNC_CTL_ALT_SELECT_SET(0)
25 #define IOC_PY01_FUNC_CTL_JTAG_TDI             IOC_PAD_FUNC_CTL_ALT_SELECT_SET(1) /* dropped macro, please use macro with prefix PIOC_ */
26 #define PIOC_PY01_FUNC_CTL_JTAG_TDI            IOC_PAD_FUNC_CTL_ALT_SELECT_SET(1)
27 #define IOC_PY01_FUNC_CTL_PTMR_CAPT_0          IOC_PAD_FUNC_CTL_ALT_SELECT_SET(2) /* dropped macro, please use macro with prefix PIOC_ */
28 #define PIOC_PY01_FUNC_CTL_PTMR_CAPT_0         IOC_PAD_FUNC_CTL_ALT_SELECT_SET(2)
29 #define IOC_PY01_FUNC_CTL_SOC_GPIO_Y_01        IOC_PAD_FUNC_CTL_ALT_SELECT_SET(3) /* dropped macro, please use macro with prefix PIOC_ */
30 #define PIOC_PY01_FUNC_CTL_SOC_GPIO_Y_01       IOC_PAD_FUNC_CTL_ALT_SELECT_SET(3)
31 
32 /* PIOC_PY02_FUNC_CTL function mux definitions */
33 #define IOC_PY02_FUNC_CTL_PGPIO_Y_02           IOC_PAD_FUNC_CTL_ALT_SELECT_SET(0) /* dropped macro, please use macro with prefix PIOC_ */
34 #define PIOC_PY02_FUNC_CTL_PGPIO_Y_02          IOC_PAD_FUNC_CTL_ALT_SELECT_SET(0)
35 #define IOC_PY02_FUNC_CTL_JTAG_TCK             IOC_PAD_FUNC_CTL_ALT_SELECT_SET(1) /* dropped macro, please use macro with prefix PIOC_ */
36 #define PIOC_PY02_FUNC_CTL_JTAG_TCK            IOC_PAD_FUNC_CTL_ALT_SELECT_SET(1)
37 #define IOC_PY02_FUNC_CTL_PTMR_COMP_1          IOC_PAD_FUNC_CTL_ALT_SELECT_SET(2) /* dropped macro, please use macro with prefix PIOC_ */
38 #define PIOC_PY02_FUNC_CTL_PTMR_COMP_1         IOC_PAD_FUNC_CTL_ALT_SELECT_SET(2)
39 #define IOC_PY02_FUNC_CTL_SOC_GPIO_Y_02        IOC_PAD_FUNC_CTL_ALT_SELECT_SET(3) /* dropped macro, please use macro with prefix PIOC_ */
40 #define PIOC_PY02_FUNC_CTL_SOC_GPIO_Y_02       IOC_PAD_FUNC_CTL_ALT_SELECT_SET(3)
41 
42 /* PIOC_PY03_FUNC_CTL function mux definitions */
43 #define IOC_PY03_FUNC_CTL_PGPIO_Y_03           IOC_PAD_FUNC_CTL_ALT_SELECT_SET(0) /* dropped macro, please use macro with prefix PIOC_ */
44 #define PIOC_PY03_FUNC_CTL_PGPIO_Y_03          IOC_PAD_FUNC_CTL_ALT_SELECT_SET(0)
45 #define IOC_PY03_FUNC_CTL_JTAG_TMS             IOC_PAD_FUNC_CTL_ALT_SELECT_SET(1) /* dropped macro, please use macro with prefix PIOC_ */
46 #define PIOC_PY03_FUNC_CTL_JTAG_TMS            IOC_PAD_FUNC_CTL_ALT_SELECT_SET(1)
47 #define IOC_PY03_FUNC_CTL_PTMR_CAPT_1          IOC_PAD_FUNC_CTL_ALT_SELECT_SET(2) /* dropped macro, please use macro with prefix PIOC_ */
48 #define PIOC_PY03_FUNC_CTL_PTMR_CAPT_1         IOC_PAD_FUNC_CTL_ALT_SELECT_SET(2)
49 #define IOC_PY03_FUNC_CTL_SOC_GPIO_Y_03        IOC_PAD_FUNC_CTL_ALT_SELECT_SET(3) /* dropped macro, please use macro with prefix PIOC_ */
50 #define PIOC_PY03_FUNC_CTL_SOC_GPIO_Y_03       IOC_PAD_FUNC_CTL_ALT_SELECT_SET(3)
51 
52 /* PIOC_PY04_FUNC_CTL function mux definitions */
53 #define IOC_PY04_FUNC_CTL_PGPIO_Y_04           IOC_PAD_FUNC_CTL_ALT_SELECT_SET(0) /* dropped macro, please use macro with prefix PIOC_ */
54 #define PIOC_PY04_FUNC_CTL_PGPIO_Y_04          IOC_PAD_FUNC_CTL_ALT_SELECT_SET(0)
55 #define IOC_PY04_FUNC_CTL_JTAG_TRST            IOC_PAD_FUNC_CTL_ALT_SELECT_SET(1) /* dropped macro, please use macro with prefix PIOC_ */
56 #define PIOC_PY04_FUNC_CTL_JTAG_TRST           IOC_PAD_FUNC_CTL_ALT_SELECT_SET(1)
57 #define IOC_PY04_FUNC_CTL_PTMR_COMP_2          IOC_PAD_FUNC_CTL_ALT_SELECT_SET(2) /* dropped macro, please use macro with prefix PIOC_ */
58 #define PIOC_PY04_FUNC_CTL_PTMR_COMP_2         IOC_PAD_FUNC_CTL_ALT_SELECT_SET(2)
59 #define IOC_PY04_FUNC_CTL_SOC_GPIO_Y_04        IOC_PAD_FUNC_CTL_ALT_SELECT_SET(3) /* dropped macro, please use macro with prefix PIOC_ */
60 #define PIOC_PY04_FUNC_CTL_SOC_GPIO_Y_04       IOC_PAD_FUNC_CTL_ALT_SELECT_SET(3)
61 
62 /* PIOC_PY05_FUNC_CTL function mux definitions */
63 #define IOC_PY05_FUNC_CTL_PGPIO_Y_05           IOC_PAD_FUNC_CTL_ALT_SELECT_SET(0) /* dropped macro, please use macro with prefix PIOC_ */
64 #define PIOC_PY05_FUNC_CTL_PGPIO_Y_05          IOC_PAD_FUNC_CTL_ALT_SELECT_SET(0)
65 #define IOC_PY05_FUNC_CTL_WDOG_RST             IOC_PAD_FUNC_CTL_ALT_SELECT_SET(1) /* dropped macro, please use macro with prefix PIOC_ */
66 #define PIOC_PY05_FUNC_CTL_WDOG_RST            IOC_PAD_FUNC_CTL_ALT_SELECT_SET(1)
67 #define IOC_PY05_FUNC_CTL_PTMR_CAPT_2          IOC_PAD_FUNC_CTL_ALT_SELECT_SET(2) /* dropped macro, please use macro with prefix PIOC_ */
68 #define PIOC_PY05_FUNC_CTL_PTMR_CAPT_2         IOC_PAD_FUNC_CTL_ALT_SELECT_SET(2)
69 #define IOC_PY05_FUNC_CTL_SOC_GPIO_Y_05        IOC_PAD_FUNC_CTL_ALT_SELECT_SET(3) /* dropped macro, please use macro with prefix PIOC_ */
70 #define PIOC_PY05_FUNC_CTL_SOC_GPIO_Y_05       IOC_PAD_FUNC_CTL_ALT_SELECT_SET(3)
71 
72 /* PIOC_PY06_FUNC_CTL function mux definitions */
73 #define IOC_PY06_FUNC_CTL_PGPIO_Y_06           IOC_PAD_FUNC_CTL_ALT_SELECT_SET(0) /* dropped macro, please use macro with prefix PIOC_ */
74 #define PIOC_PY06_FUNC_CTL_PGPIO_Y_06          IOC_PAD_FUNC_CTL_ALT_SELECT_SET(0)
75 #define IOC_PY06_FUNC_CTL_UART_TXD             IOC_PAD_FUNC_CTL_ALT_SELECT_SET(1) /* dropped macro, please use macro with prefix PIOC_ */
76 #define PIOC_PY06_FUNC_CTL_UART_TXD            IOC_PAD_FUNC_CTL_ALT_SELECT_SET(1)
77 #define IOC_PY06_FUNC_CTL_PTMR_COMP_3          IOC_PAD_FUNC_CTL_ALT_SELECT_SET(2) /* dropped macro, please use macro with prefix PIOC_ */
78 #define PIOC_PY06_FUNC_CTL_PTMR_COMP_3         IOC_PAD_FUNC_CTL_ALT_SELECT_SET(2)
79 #define IOC_PY06_FUNC_CTL_SOC_GPIO_Y_06        IOC_PAD_FUNC_CTL_ALT_SELECT_SET(3) /* dropped macro, please use macro with prefix PIOC_ */
80 #define PIOC_PY06_FUNC_CTL_SOC_GPIO_Y_06       IOC_PAD_FUNC_CTL_ALT_SELECT_SET(3)
81 
82 /* PIOC_PY07_FUNC_CTL function mux definitions */
83 #define IOC_PY07_FUNC_CTL_PGPIO_Y_07           IOC_PAD_FUNC_CTL_ALT_SELECT_SET(0) /* dropped macro, please use macro with prefix PIOC_ */
84 #define PIOC_PY07_FUNC_CTL_PGPIO_Y_07          IOC_PAD_FUNC_CTL_ALT_SELECT_SET(0)
85 #define IOC_PY07_FUNC_CTL_UART_RXD             IOC_PAD_FUNC_CTL_ALT_SELECT_SET(1) /* dropped macro, please use macro with prefix PIOC_ */
86 #define PIOC_PY07_FUNC_CTL_UART_RXD            IOC_PAD_FUNC_CTL_ALT_SELECT_SET(1)
87 #define IOC_PY07_FUNC_CTL_PTMR_CAPT_3          IOC_PAD_FUNC_CTL_ALT_SELECT_SET(2) /* dropped macro, please use macro with prefix PIOC_ */
88 #define PIOC_PY07_FUNC_CTL_PTMR_CAPT_3         IOC_PAD_FUNC_CTL_ALT_SELECT_SET(2)
89 #define IOC_PY07_FUNC_CTL_SOC_GPIO_Y_07        IOC_PAD_FUNC_CTL_ALT_SELECT_SET(3) /* dropped macro, please use macro with prefix PIOC_ */
90 #define PIOC_PY07_FUNC_CTL_SOC_GPIO_Y_07       IOC_PAD_FUNC_CTL_ALT_SELECT_SET(3)
91 
92 
93 #endif /* HPM_PMIC_IOMUX_H */
94