1 1.1 jmcneill /* $NetBSD: mt2701-resets.h,v 1.1.1.4 2020/01/03 14:33:06 skrll Exp $ */ 2 1.1 jmcneill 3 1.1.1.4 skrll /* SPDX-License-Identifier: GPL-2.0-only */ 4 1.1 jmcneill /* 5 1.1 jmcneill * Copyright (c) 2015 MediaTek, Shunli Wang <shunli.wang (at) mediatek.com> 6 1.1 jmcneill */ 7 1.1 jmcneill 8 1.1 jmcneill #ifndef _DT_BINDINGS_RESET_CONTROLLER_MT2701 9 1.1 jmcneill #define _DT_BINDINGS_RESET_CONTROLLER_MT2701 10 1.1 jmcneill 11 1.1 jmcneill /* INFRACFG resets */ 12 1.1 jmcneill #define MT2701_INFRA_EMI_REG_RST 0 13 1.1 jmcneill #define MT2701_INFRA_DRAMC0_A0_RST 1 14 1.1 jmcneill #define MT2701_INFRA_FHCTL_RST 2 15 1.1 jmcneill #define MT2701_INFRA_APCIRQ_EINT_RST 3 16 1.1 jmcneill #define MT2701_INFRA_APXGPT_RST 4 17 1.1 jmcneill #define MT2701_INFRA_SCPSYS_RST 5 18 1.1 jmcneill #define MT2701_INFRA_KP_RST 6 19 1.1 jmcneill #define MT2701_INFRA_PMIC_WRAP_RST 7 20 1.1 jmcneill #define MT2701_INFRA_MIPI_RST 8 21 1.1 jmcneill #define MT2701_INFRA_IRRX_RST 9 22 1.1 jmcneill #define MT2701_INFRA_CEC_RST 10 23 1.1 jmcneill #define MT2701_INFRA_EMI_RST 32 24 1.1 jmcneill #define MT2701_INFRA_DRAMC0_RST 34 25 1.1 jmcneill #define MT2701_INFRA_TRNG_RST 37 26 1.1 jmcneill #define MT2701_INFRA_SYSIRQ_RST 38 27 1.1 jmcneill 28 1.1 jmcneill /* PERICFG resets */ 29 1.1 jmcneill #define MT2701_PERI_UART0_SW_RST 0 30 1.1 jmcneill #define MT2701_PERI_UART1_SW_RST 1 31 1.1 jmcneill #define MT2701_PERI_UART2_SW_RST 2 32 1.1 jmcneill #define MT2701_PERI_UART3_SW_RST 3 33 1.1 jmcneill #define MT2701_PERI_GCPU_SW_RST 5 34 1.1 jmcneill #define MT2701_PERI_BTIF_SW_RST 6 35 1.1 jmcneill #define MT2701_PERI_PWM_SW_RST 8 36 1.1 jmcneill #define MT2701_PERI_AUXADC_SW_RST 10 37 1.1 jmcneill #define MT2701_PERI_DMA_SW_RST 11 38 1.1 jmcneill #define MT2701_PERI_NFI_SW_RST 14 39 1.1 jmcneill #define MT2701_PERI_NLI_SW_RST 15 40 1.1 jmcneill #define MT2701_PERI_THERM_SW_RST 16 41 1.1 jmcneill #define MT2701_PERI_MSDC2_SW_RST 17 42 1.1 jmcneill #define MT2701_PERI_MSDC0_SW_RST 19 43 1.1 jmcneill #define MT2701_PERI_MSDC1_SW_RST 20 44 1.1 jmcneill #define MT2701_PERI_I2C0_SW_RST 22 45 1.1 jmcneill #define MT2701_PERI_I2C1_SW_RST 23 46 1.1 jmcneill #define MT2701_PERI_I2C2_SW_RST 24 47 1.1 jmcneill #define MT2701_PERI_I2C3_SW_RST 25 48 1.1 jmcneill #define MT2701_PERI_USB_SW_RST 28 49 1.1 jmcneill #define MT2701_PERI_ETH_SW_RST 29 50 1.1 jmcneill #define MT2701_PERI_SPI0_SW_RST 33 51 1.1 jmcneill 52 1.1 jmcneill /* TOPRGU resets */ 53 1.1 jmcneill #define MT2701_TOPRGU_INFRA_RST 0 54 1.1 jmcneill #define MT2701_TOPRGU_MM_RST 1 55 1.1 jmcneill #define MT2701_TOPRGU_MFG_RST 2 56 1.1 jmcneill #define MT2701_TOPRGU_ETHDMA_RST 3 57 1.1 jmcneill #define MT2701_TOPRGU_VDEC_RST 4 58 1.1 jmcneill #define MT2701_TOPRGU_VENC_IMG_RST 5 59 1.1 jmcneill #define MT2701_TOPRGU_DDRPHY_RST 6 60 1.1 jmcneill #define MT2701_TOPRGU_MD_RST 7 61 1.1 jmcneill #define MT2701_TOPRGU_INFRA_AO_RST 8 62 1.1 jmcneill #define MT2701_TOPRGU_CONN_RST 9 63 1.1 jmcneill #define MT2701_TOPRGU_APMIXED_RST 10 64 1.1 jmcneill #define MT2701_TOPRGU_HIFSYS_RST 11 65 1.1 jmcneill #define MT2701_TOPRGU_CONN_MCU_RST 12 66 1.1 jmcneill #define MT2701_TOPRGU_BDP_DISP_RST 13 67 1.1 jmcneill 68 1.1 jmcneill /* HIFSYS resets */ 69 1.1 jmcneill #define MT2701_HIFSYS_UHOST0_RST 3 70 1.1 jmcneill #define MT2701_HIFSYS_UHOST1_RST 4 71 1.1 jmcneill #define MT2701_HIFSYS_UPHY0_RST 21 72 1.1 jmcneill #define MT2701_HIFSYS_UPHY1_RST 22 73 1.1 jmcneill #define MT2701_HIFSYS_PCIE0_RST 24 74 1.1 jmcneill #define MT2701_HIFSYS_PCIE1_RST 25 75 1.1 jmcneill #define MT2701_HIFSYS_PCIE2_RST 26 76 1.1 jmcneill 77 1.1.1.2 jmcneill /* ETHSYS resets */ 78 1.1.1.2 jmcneill #define MT2701_ETHSYS_SYS_RST 0 79 1.1.1.2 jmcneill #define MT2701_ETHSYS_MCM_RST 2 80 1.1.1.2 jmcneill #define MT2701_ETHSYS_FE_RST 6 81 1.1.1.2 jmcneill #define MT2701_ETHSYS_GMAC_RST 23 82 1.1.1.2 jmcneill #define MT2701_ETHSYS_PPE_RST 31 83 1.1.1.2 jmcneill 84 1.1.1.3 jmcneill /* G3DSYS resets */ 85 1.1.1.3 jmcneill #define MT2701_G3DSYS_CORE_RST 0 86 1.1.1.3 jmcneill 87 1.1 jmcneill #endif /* _DT_BINDINGS_RESET_CONTROLLER_MT2701 */ 88