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