1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0 */
2e74c15bcSDinh Nguyen /*
3e74c15bcSDinh Nguyen  * Copyright (C) 2016-2018 Intel Corporation. All rights reserved
4e74c15bcSDinh Nguyen  * Copyright (C) 2016 Altera Corporation. All rights reserved
5e74c15bcSDinh Nguyen  * derived from Steffen Trumtrar's "altr,rst-mgr-a10.h"
6e74c15bcSDinh Nguyen  */
7e74c15bcSDinh Nguyen 
8e74c15bcSDinh Nguyen #ifndef _DT_BINDINGS_RESET_ALTR_RST_MGR_S10_H
9e74c15bcSDinh Nguyen #define _DT_BINDINGS_RESET_ALTR_RST_MGR_S10_H
10e74c15bcSDinh Nguyen 
11e74c15bcSDinh Nguyen /* MPUMODRST */
12e74c15bcSDinh Nguyen #define CPU0_RESET		0
13e74c15bcSDinh Nguyen #define CPU1_RESET		1
14e74c15bcSDinh Nguyen #define CPU2_RESET		2
15e74c15bcSDinh Nguyen #define CPU3_RESET		3
16e74c15bcSDinh Nguyen 
17e74c15bcSDinh Nguyen /* PER0MODRST */
18e74c15bcSDinh Nguyen #define EMAC0_RESET		32
19e74c15bcSDinh Nguyen #define EMAC1_RESET		33
20e74c15bcSDinh Nguyen #define EMAC2_RESET		34
21e74c15bcSDinh Nguyen #define USB0_RESET		35
22e74c15bcSDinh Nguyen #define USB1_RESET		36
23e74c15bcSDinh Nguyen #define NAND_RESET		37
24e74c15bcSDinh Nguyen /* 38 is empty */
25e74c15bcSDinh Nguyen #define SDMMC_RESET		39
26e74c15bcSDinh Nguyen #define EMAC0_OCP_RESET		40
27e74c15bcSDinh Nguyen #define EMAC1_OCP_RESET		41
28e74c15bcSDinh Nguyen #define EMAC2_OCP_RESET		42
29e74c15bcSDinh Nguyen #define USB0_OCP_RESET		43
30e74c15bcSDinh Nguyen #define USB1_OCP_RESET		44
31e74c15bcSDinh Nguyen #define NAND_OCP_RESET		45
32e74c15bcSDinh Nguyen /* 46 is empty */
33e74c15bcSDinh Nguyen #define SDMMC_OCP_RESET		47
34e74c15bcSDinh Nguyen #define DMA_RESET		48
35e74c15bcSDinh Nguyen #define SPIM0_RESET		49
36e74c15bcSDinh Nguyen #define SPIM1_RESET		50
37e74c15bcSDinh Nguyen #define SPIS0_RESET		51
38e74c15bcSDinh Nguyen #define SPIS1_RESET		52
39e74c15bcSDinh Nguyen #define DMA_OCP_RESET		53
40e74c15bcSDinh Nguyen #define EMAC_PTP_RESET		54
41e74c15bcSDinh Nguyen /* 55 is empty*/
42e74c15bcSDinh Nguyen #define DMAIF0_RESET		56
43e74c15bcSDinh Nguyen #define DMAIF1_RESET		57
44e74c15bcSDinh Nguyen #define DMAIF2_RESET		58
45e74c15bcSDinh Nguyen #define DMAIF3_RESET		59
46e74c15bcSDinh Nguyen #define DMAIF4_RESET		60
47e74c15bcSDinh Nguyen #define DMAIF5_RESET		61
48e74c15bcSDinh Nguyen #define DMAIF6_RESET		62
49e74c15bcSDinh Nguyen #define DMAIF7_RESET		63
50e74c15bcSDinh Nguyen 
51e74c15bcSDinh Nguyen /* PER1MODRST */
52e74c15bcSDinh Nguyen #define WATCHDOG0_RESET		64
53e74c15bcSDinh Nguyen #define WATCHDOG1_RESET		65
54e74c15bcSDinh Nguyen #define WATCHDOG2_RESET		66
55e74c15bcSDinh Nguyen #define WATCHDOG3_RESET		67
56e74c15bcSDinh Nguyen #define L4SYSTIMER0_RESET	68
57e74c15bcSDinh Nguyen #define L4SYSTIMER1_RESET	69
58e74c15bcSDinh Nguyen #define SPTIMER0_RESET		70
59e74c15bcSDinh Nguyen #define SPTIMER1_RESET		71
60e74c15bcSDinh Nguyen #define I2C0_RESET		72
61e74c15bcSDinh Nguyen #define I2C1_RESET		73
62e74c15bcSDinh Nguyen #define I2C2_RESET		74
63e74c15bcSDinh Nguyen #define I2C3_RESET		75
64e74c15bcSDinh Nguyen #define I2C4_RESET		76
65e74c15bcSDinh Nguyen /* 77-79 is empty */
66e74c15bcSDinh Nguyen #define UART0_RESET		80
67e74c15bcSDinh Nguyen #define UART1_RESET		81
68e74c15bcSDinh Nguyen /* 82-87 is empty */
69e74c15bcSDinh Nguyen #define GPIO0_RESET		88
70e74c15bcSDinh Nguyen #define GPIO1_RESET		89
71e74c15bcSDinh Nguyen 
72e74c15bcSDinh Nguyen /* BRGMODRST */
73e74c15bcSDinh Nguyen #define SOC2FPGA_RESET		96
74e74c15bcSDinh Nguyen #define LWHPS2FPGA_RESET	97
75e74c15bcSDinh Nguyen #define FPGA2SOC_RESET		98
76e74c15bcSDinh Nguyen #define F2SSDRAM0_RESET		99
77e74c15bcSDinh Nguyen #define F2SSDRAM1_RESET		100
78e74c15bcSDinh Nguyen #define F2SSDRAM2_RESET		101
79e74c15bcSDinh Nguyen #define DDRSCH_RESET		102
80e74c15bcSDinh Nguyen 
81e74c15bcSDinh Nguyen /* COLDMODRST */
82e74c15bcSDinh Nguyen #define CPUPO0_RESET		160
83e74c15bcSDinh Nguyen #define CPUPO1_RESET		161
84e74c15bcSDinh Nguyen #define CPUPO2_RESET		162
85e74c15bcSDinh Nguyen #define CPUPO3_RESET		163
86e74c15bcSDinh Nguyen /* 164-167 is empty */
87e74c15bcSDinh Nguyen #define L2_RESET		168
88e74c15bcSDinh Nguyen 
89e74c15bcSDinh Nguyen /* DBGMODRST */
90e74c15bcSDinh Nguyen #define DBG_RESET		224
91e74c15bcSDinh Nguyen #define CSDAP_RESET		225
92e74c15bcSDinh Nguyen 
93e74c15bcSDinh Nguyen /* TAPMODRST */
94e74c15bcSDinh Nguyen #define TAP_RESET		256
95e74c15bcSDinh Nguyen 
96e74c15bcSDinh Nguyen #endif
97