1 // Copyright 2017-2021 Espressif Systems (Shanghai) PTE LTD 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 #ifndef _SOC_PERI_BACKUP_REG_H_ 15 #define _SOC_PERI_BACKUP_REG_H_ 16 17 18 #include "soc.h" 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 #define PERI_BACKUP_CONFIG_REG (DR_REG_PERI_BACKUP_BASE + 0x0) 24 /* PERI_BACKUP_ENA : R/W ;bitpos:[31] ;default: 1'b0 ; */ 25 /*description: .*/ 26 #define PERI_BACKUP_ENA (BIT(31)) 27 #define PERI_BACKUP_ENA_M (BIT(31)) 28 #define PERI_BACKUP_ENA_V 0x1 29 #define PERI_BACKUP_ENA_S 31 30 /* PERI_BACKUP_TO_MEM : R/W ;bitpos:[30] ;default: 1'b0 ; */ 31 /*description: .*/ 32 #define PERI_BACKUP_TO_MEM (BIT(30)) 33 #define PERI_BACKUP_TO_MEM_M (BIT(30)) 34 #define PERI_BACKUP_TO_MEM_V 0x1 35 #define PERI_BACKUP_TO_MEM_S 30 36 /* PERI_BACKUP_START : WT ;bitpos:[29] ;default: 1'b0 ; */ 37 /*description: .*/ 38 #define PERI_BACKUP_START (BIT(29)) 39 #define PERI_BACKUP_START_M (BIT(29)) 40 #define PERI_BACKUP_START_V 0x1 41 #define PERI_BACKUP_START_S 29 42 /* PERI_BACKUP_SIZE : R/W ;bitpos:[28:19] ;default: 10'd0 ; */ 43 /*description: .*/ 44 #define PERI_BACKUP_SIZE 0x000003FF 45 #define PERI_BACKUP_SIZE_M ((PERI_BACKUP_SIZE_V)<<(PERI_BACKUP_SIZE_S)) 46 #define PERI_BACKUP_SIZE_V 0x3FF 47 #define PERI_BACKUP_SIZE_S 19 48 /* PERI_BACKUP_TOUT_THRES : R/W ;bitpos:[18:9] ;default: 10'd50 ; */ 49 /*description: .*/ 50 #define PERI_BACKUP_TOUT_THRES 0x000003FF 51 #define PERI_BACKUP_TOUT_THRES_M ((PERI_BACKUP_TOUT_THRES_V)<<(PERI_BACKUP_TOUT_THRES_S)) 52 #define PERI_BACKUP_TOUT_THRES_V 0x3FF 53 #define PERI_BACKUP_TOUT_THRES_S 9 54 /* PERI_BACKUP_BURST_LIMIT : R/W ;bitpos:[8:4] ;default: 5'd8 ; */ 55 /*description: .*/ 56 #define PERI_BACKUP_BURST_LIMIT 0x0000001F 57 #define PERI_BACKUP_BURST_LIMIT_M ((PERI_BACKUP_BURST_LIMIT_V)<<(PERI_BACKUP_BURST_LIMIT_S)) 58 #define PERI_BACKUP_BURST_LIMIT_V 0x1F 59 #define PERI_BACKUP_BURST_LIMIT_S 4 60 /* PERI_BACKUP_ADDR_MAP_MODE : R/W ;bitpos:[3] ;default: 1'b0 ; */ 61 /*description: .*/ 62 #define PERI_BACKUP_ADDR_MAP_MODE (BIT(3)) 63 #define PERI_BACKUP_ADDR_MAP_MODE_M (BIT(3)) 64 #define PERI_BACKUP_ADDR_MAP_MODE_V 0x1 65 #define PERI_BACKUP_ADDR_MAP_MODE_S 3 66 /* PERI_BACKUP_FLOW_ERR : RO ;bitpos:[2:0] ;default: 3'd0 ; */ 67 /*description: .*/ 68 #define PERI_BACKUP_FLOW_ERR 0x00000007 69 #define PERI_BACKUP_FLOW_ERR_M ((PERI_BACKUP_FLOW_ERR_V)<<(PERI_BACKUP_FLOW_ERR_S)) 70 #define PERI_BACKUP_FLOW_ERR_V 0x7 71 #define PERI_BACKUP_FLOW_ERR_S 0 72 73 #define PERI_BACKUP_APB_ADDR_REG (DR_REG_PERI_BACKUP_BASE + 0x4) 74 /* PERI_BACKUP_APB_START_ADDR : R/W ;bitpos:[31:0] ;default: 32'd0 ; */ 75 /*description: .*/ 76 #define PERI_BACKUP_APB_START_ADDR 0xFFFFFFFF 77 #define PERI_BACKUP_APB_START_ADDR_M ((PERI_BACKUP_APB_START_ADDR_V)<<(PERI_BACKUP_APB_START_ADDR_S)) 78 #define PERI_BACKUP_APB_START_ADDR_V 0xFFFFFFFF 79 #define PERI_BACKUP_APB_START_ADDR_S 0 80 81 #define PERI_BACKUP_MEM_ADDR_REG (DR_REG_PERI_BACKUP_BASE + 0x8) 82 /* PERI_BACKUP_MEM_START_ADDR : R/W ;bitpos:[31:0] ;default: 32'd0 ; */ 83 /*description: .*/ 84 #define PERI_BACKUP_MEM_START_ADDR 0xFFFFFFFF 85 #define PERI_BACKUP_MEM_START_ADDR_M ((PERI_BACKUP_MEM_START_ADDR_V)<<(PERI_BACKUP_MEM_START_ADDR_S)) 86 #define PERI_BACKUP_MEM_START_ADDR_V 0xFFFFFFFF 87 #define PERI_BACKUP_MEM_START_ADDR_S 0 88 89 #define PERI_BACKUP_REG_MAP0_REG (DR_REG_PERI_BACKUP_BASE + 0xC) 90 /* PERI_BACKUP_MAP0 : R/W ;bitpos:[31:0] ;default: 32'd0 ; */ 91 /*description: .*/ 92 #define PERI_BACKUP_MAP0 0xFFFFFFFF 93 #define PERI_BACKUP_MAP0_M ((PERI_BACKUP_MAP0_V)<<(PERI_BACKUP_MAP0_S)) 94 #define PERI_BACKUP_MAP0_V 0xFFFFFFFF 95 #define PERI_BACKUP_MAP0_S 0 96 97 #define PERI_BACKUP_REG_MAP1_REG (DR_REG_PERI_BACKUP_BASE + 0x10) 98 /* PERI_BACKUP_MAP1 : R/W ;bitpos:[31:0] ;default: 32'd0 ; */ 99 /*description: .*/ 100 #define PERI_BACKUP_MAP1 0xFFFFFFFF 101 #define PERI_BACKUP_MAP1_M ((PERI_BACKUP_MAP1_V)<<(PERI_BACKUP_MAP1_S)) 102 #define PERI_BACKUP_MAP1_V 0xFFFFFFFF 103 #define PERI_BACKUP_MAP1_S 0 104 105 #define PERI_BACKUP_REG_MAP2_REG (DR_REG_PERI_BACKUP_BASE + 0x14) 106 /* PERI_BACKUP_MAP2 : R/W ;bitpos:[31:0] ;default: 32'd0 ; */ 107 /*description: .*/ 108 #define PERI_BACKUP_MAP2 0xFFFFFFFF 109 #define PERI_BACKUP_MAP2_M ((PERI_BACKUP_MAP2_V)<<(PERI_BACKUP_MAP2_S)) 110 #define PERI_BACKUP_MAP2_V 0xFFFFFFFF 111 #define PERI_BACKUP_MAP2_S 0 112 113 #define PERI_BACKUP_REG_MAP3_REG (DR_REG_PERI_BACKUP_BASE + 0x18) 114 /* PERI_BACKUP_MAP3 : R/W ;bitpos:[31:0] ;default: 32'd0 ; */ 115 /*description: .*/ 116 #define PERI_BACKUP_MAP3 0xFFFFFFFF 117 #define PERI_BACKUP_MAP3_M ((PERI_BACKUP_MAP3_V)<<(PERI_BACKUP_MAP3_S)) 118 #define PERI_BACKUP_MAP3_V 0xFFFFFFFF 119 #define PERI_BACKUP_MAP3_S 0 120 121 #define PERI_BACKUP_INT_RAW_REG (DR_REG_PERI_BACKUP_BASE + 0x1C) 122 /* PERI_BACKUP_ERR_INT_RAW : R/SS/WTC ;bitpos:[1] ;default: 1'd0 ; */ 123 /*description: .*/ 124 #define PERI_BACKUP_ERR_INT_RAW (BIT(1)) 125 #define PERI_BACKUP_ERR_INT_RAW_M (BIT(1)) 126 #define PERI_BACKUP_ERR_INT_RAW_V 0x1 127 #define PERI_BACKUP_ERR_INT_RAW_S 1 128 /* PERI_BACKUP_DONE_INT_RAW : R/SS/WTC ;bitpos:[0] ;default: 1'd0 ; */ 129 /*description: .*/ 130 #define PERI_BACKUP_DONE_INT_RAW (BIT(0)) 131 #define PERI_BACKUP_DONE_INT_RAW_M (BIT(0)) 132 #define PERI_BACKUP_DONE_INT_RAW_V 0x1 133 #define PERI_BACKUP_DONE_INT_RAW_S 0 134 135 #define PERI_BACKUP_INT_ST_REG (DR_REG_PERI_BACKUP_BASE + 0x20) 136 /* PERI_BACKUP_ERR_INT_ST : RO ;bitpos:[1] ;default: 1'd0 ; */ 137 /*description: .*/ 138 #define PERI_BACKUP_ERR_INT_ST (BIT(1)) 139 #define PERI_BACKUP_ERR_INT_ST_M (BIT(1)) 140 #define PERI_BACKUP_ERR_INT_ST_V 0x1 141 #define PERI_BACKUP_ERR_INT_ST_S 1 142 /* PERI_BACKUP_DONE_INT_ST : RO ;bitpos:[0] ;default: 1'd0 ; */ 143 /*description: .*/ 144 #define PERI_BACKUP_DONE_INT_ST (BIT(0)) 145 #define PERI_BACKUP_DONE_INT_ST_M (BIT(0)) 146 #define PERI_BACKUP_DONE_INT_ST_V 0x1 147 #define PERI_BACKUP_DONE_INT_ST_S 0 148 149 #define PERI_BACKUP_INT_ENA_REG (DR_REG_PERI_BACKUP_BASE + 0x24) 150 /* PERI_BACKUP_ERR_INT_ENA : R/W ;bitpos:[1] ;default: 1'd0 ; */ 151 /*description: .*/ 152 #define PERI_BACKUP_ERR_INT_ENA (BIT(1)) 153 #define PERI_BACKUP_ERR_INT_ENA_M (BIT(1)) 154 #define PERI_BACKUP_ERR_INT_ENA_V 0x1 155 #define PERI_BACKUP_ERR_INT_ENA_S 1 156 /* PERI_BACKUP_DONE_INT_ENA : R/W ;bitpos:[0] ;default: 1'd0 ; */ 157 /*description: .*/ 158 #define PERI_BACKUP_DONE_INT_ENA (BIT(0)) 159 #define PERI_BACKUP_DONE_INT_ENA_M (BIT(0)) 160 #define PERI_BACKUP_DONE_INT_ENA_V 0x1 161 #define PERI_BACKUP_DONE_INT_ENA_S 0 162 163 #define PERI_BACKUP_INT_CLR_REG (DR_REG_PERI_BACKUP_BASE + 0x28) 164 /* PERI_BACKUP_ERR_INT_CLR : WT ;bitpos:[1] ;default: 1'd0 ; */ 165 /*description: .*/ 166 #define PERI_BACKUP_ERR_INT_CLR (BIT(1)) 167 #define PERI_BACKUP_ERR_INT_CLR_M (BIT(1)) 168 #define PERI_BACKUP_ERR_INT_CLR_V 0x1 169 #define PERI_BACKUP_ERR_INT_CLR_S 1 170 /* PERI_BACKUP_DONE_INT_CLR : WT ;bitpos:[0] ;default: 1'd0 ; */ 171 /*description: .*/ 172 #define PERI_BACKUP_DONE_INT_CLR (BIT(0)) 173 #define PERI_BACKUP_DONE_INT_CLR_M (BIT(0)) 174 #define PERI_BACKUP_DONE_INT_CLR_V 0x1 175 #define PERI_BACKUP_DONE_INT_CLR_S 0 176 177 #define PERI_BACKUP_DATE_REG (DR_REG_PERI_BACKUP_BASE + 0xFC) 178 /* PERI_BACKUP_CLK_EN : R/W ;bitpos:[31] ;default: 1'b0 ; */ 179 /*description: register file clk gating.*/ 180 #define PERI_BACKUP_CLK_EN (BIT(31)) 181 #define PERI_BACKUP_CLK_EN_M (BIT(31)) 182 #define PERI_BACKUP_CLK_EN_V 0x1 183 #define PERI_BACKUP_CLK_EN_S 31 184 /* PERI_BACKUP_DATE : R/W ;bitpos:[27:0] ;default: 28'h2012300 ; */ 185 /*description: .*/ 186 #define PERI_BACKUP_DATE 0x0FFFFFFF 187 #define PERI_BACKUP_DATE_M ((PERI_BACKUP_DATE_V)<<(PERI_BACKUP_DATE_S)) 188 #define PERI_BACKUP_DATE_V 0xFFFFFFF 189 #define PERI_BACKUP_DATE_S 0 190 191 192 #ifdef __cplusplus 193 } 194 #endif 195 196 197 198 #endif /*_SOC_PERI_BACKUP_REG_H_ */ 199