xref: /netbsd-src/sys/external/gpl2/dts/dist/include/dt-bindings/reset/stih407-resets.h (revision 6cafeaff4f65ec1a16fd3dea38137ce64d39d334)
1 /*	$NetBSD: stih407-resets.h,v 1.1.1.2 2017/11/30 19:40:51 jmcneill Exp $	*/
2 
3 /* SPDX-License-Identifier: GPL-2.0 */
4 /*
5  * This header provides constants for the reset controller
6  * based peripheral powerdown requests on the STMicroelectronics
7  * STiH407 SoC.
8  */
9 #ifndef _DT_BINDINGS_RESET_CONTROLLER_STIH407
10 #define _DT_BINDINGS_RESET_CONTROLLER_STIH407
11 
12 /* Powerdown requests control 0 */
13 #define STIH407_EMISS_POWERDOWN		0
14 #define STIH407_NAND_POWERDOWN		1
15 
16 /* Synp GMAC PowerDown */
17 #define STIH407_ETH1_POWERDOWN		2
18 
19 /* Powerdown requests control 1 */
20 #define STIH407_USB3_POWERDOWN		3
21 #define STIH407_USB2_PORT1_POWERDOWN	4
22 #define STIH407_USB2_PORT0_POWERDOWN	5
23 #define STIH407_PCIE1_POWERDOWN		6
24 #define STIH407_PCIE0_POWERDOWN		7
25 #define STIH407_SATA1_POWERDOWN		8
26 #define STIH407_SATA0_POWERDOWN		9
27 
28 /* Reset defines */
29 #define STIH407_ETH1_SOFTRESET		0
30 #define STIH407_MMC1_SOFTRESET		1
31 #define STIH407_PICOPHY_SOFTRESET	2
32 #define STIH407_IRB_SOFTRESET		3
33 #define STIH407_PCIE0_SOFTRESET		4
34 #define STIH407_PCIE1_SOFTRESET		5
35 #define STIH407_SATA0_SOFTRESET		6
36 #define STIH407_SATA1_SOFTRESET		7
37 #define STIH407_MIPHY0_SOFTRESET	8
38 #define STIH407_MIPHY1_SOFTRESET	9
39 #define STIH407_MIPHY2_SOFTRESET	10
40 #define STIH407_SATA0_PWR_SOFTRESET	11
41 #define STIH407_SATA1_PWR_SOFTRESET	12
42 #define STIH407_DELTA_SOFTRESET		13
43 #define STIH407_BLITTER_SOFTRESET	14
44 #define STIH407_HDTVOUT_SOFTRESET	15
45 #define STIH407_HDQVDP_SOFTRESET	16
46 #define STIH407_VDP_AUX_SOFTRESET	17
47 #define STIH407_COMPO_SOFTRESET		18
48 #define STIH407_HDMI_TX_PHY_SOFTRESET	19
49 #define STIH407_JPEG_DEC_SOFTRESET	20
50 #define STIH407_VP8_DEC_SOFTRESET	21
51 #define STIH407_GPU_SOFTRESET		22
52 #define STIH407_HVA_SOFTRESET		23
53 #define STIH407_ERAM_HVA_SOFTRESET	24
54 #define STIH407_LPM_SOFTRESET		25
55 #define STIH407_KEYSCAN_SOFTRESET	26
56 #define STIH407_USB2_PORT0_SOFTRESET	27
57 #define STIH407_USB2_PORT1_SOFTRESET	28
58 #define STIH407_ST231_AUD_SOFTRESET	29
59 #define STIH407_ST231_DMU_SOFTRESET	30
60 #define STIH407_ST231_GP0_SOFTRESET	31
61 #define STIH407_ST231_GP1_SOFTRESET	32
62 
63 /* Picophy reset defines */
64 #define STIH407_PICOPHY0_RESET		0
65 #define STIH407_PICOPHY1_RESET		1
66 #define STIH407_PICOPHY2_RESET		2
67 
68 #endif /* _DT_BINDINGS_RESET_CONTROLLER_STIH407 */
69