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