1 // Copyright 2015-2016 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_GPIO_SD_REG_H_ 15 #define _SOC_GPIO_SD_REG_H_ 16 17 #include "soc.h" 18 #define GPIO_SIGMADELTA0_REG (DR_REG_GPIO_SD_BASE + 0x0000) 19 /* GPIO_SD0_PRESCALE : R/W ;bitpos:[15:8] ;default: 8'hff ; */ 20 /*description: */ 21 #define GPIO_SD0_PRESCALE 0x000000FF 22 #define GPIO_SD0_PRESCALE_M ((GPIO_SD0_PRESCALE_V)<<(GPIO_SD0_PRESCALE_S)) 23 #define GPIO_SD0_PRESCALE_V 0xFF 24 #define GPIO_SD0_PRESCALE_S 8 25 /* GPIO_SD0_IN : R/W ;bitpos:[7:0] ;default: 8'h0 ; */ 26 /*description: */ 27 #define GPIO_SD0_IN 0x000000FF 28 #define GPIO_SD0_IN_M ((GPIO_SD0_IN_V)<<(GPIO_SD0_IN_S)) 29 #define GPIO_SD0_IN_V 0xFF 30 #define GPIO_SD0_IN_S 0 31 32 #define GPIO_SIGMADELTA1_REG (DR_REG_GPIO_SD_BASE + 0x0004) 33 /* GPIO_SD1_PRESCALE : R/W ;bitpos:[15:8] ;default: 8'hff ; */ 34 /*description: */ 35 #define GPIO_SD1_PRESCALE 0x000000FF 36 #define GPIO_SD1_PRESCALE_M ((GPIO_SD1_PRESCALE_V)<<(GPIO_SD1_PRESCALE_S)) 37 #define GPIO_SD1_PRESCALE_V 0xFF 38 #define GPIO_SD1_PRESCALE_S 8 39 /* GPIO_SD1_IN : R/W ;bitpos:[7:0] ;default: 8'h0 ; */ 40 /*description: */ 41 #define GPIO_SD1_IN 0x000000FF 42 #define GPIO_SD1_IN_M ((GPIO_SD1_IN_V)<<(GPIO_SD1_IN_S)) 43 #define GPIO_SD1_IN_V 0xFF 44 #define GPIO_SD1_IN_S 0 45 46 #define GPIO_SIGMADELTA2_REG (DR_REG_GPIO_SD_BASE + 0x0008) 47 /* GPIO_SD2_PRESCALE : R/W ;bitpos:[15:8] ;default: 8'hff ; */ 48 /*description: */ 49 #define GPIO_SD2_PRESCALE 0x000000FF 50 #define GPIO_SD2_PRESCALE_M ((GPIO_SD2_PRESCALE_V)<<(GPIO_SD2_PRESCALE_S)) 51 #define GPIO_SD2_PRESCALE_V 0xFF 52 #define GPIO_SD2_PRESCALE_S 8 53 /* GPIO_SD2_IN : R/W ;bitpos:[7:0] ;default: 8'h0 ; */ 54 /*description: */ 55 #define GPIO_SD2_IN 0x000000FF 56 #define GPIO_SD2_IN_M ((GPIO_SD2_IN_V)<<(GPIO_SD2_IN_S)) 57 #define GPIO_SD2_IN_V 0xFF 58 #define GPIO_SD2_IN_S 0 59 60 #define GPIO_SIGMADELTA3_REG (DR_REG_GPIO_SD_BASE + 0x000c) 61 /* GPIO_SD3_PRESCALE : R/W ;bitpos:[15:8] ;default: 8'hff ; */ 62 /*description: */ 63 #define GPIO_SD3_PRESCALE 0x000000FF 64 #define GPIO_SD3_PRESCALE_M ((GPIO_SD3_PRESCALE_V)<<(GPIO_SD3_PRESCALE_S)) 65 #define GPIO_SD3_PRESCALE_V 0xFF 66 #define GPIO_SD3_PRESCALE_S 8 67 /* GPIO_SD3_IN : R/W ;bitpos:[7:0] ;default: 8'h0 ; */ 68 /*description: */ 69 #define GPIO_SD3_IN 0x000000FF 70 #define GPIO_SD3_IN_M ((GPIO_SD3_IN_V)<<(GPIO_SD3_IN_S)) 71 #define GPIO_SD3_IN_V 0xFF 72 #define GPIO_SD3_IN_S 0 73 74 #define GPIO_SIGMADELTA4_REG (DR_REG_GPIO_SD_BASE + 0x0010) 75 /* GPIO_SD4_PRESCALE : R/W ;bitpos:[15:8] ;default: 8'hff ; */ 76 /*description: */ 77 #define GPIO_SD4_PRESCALE 0x000000FF 78 #define GPIO_SD4_PRESCALE_M ((GPIO_SD4_PRESCALE_V)<<(GPIO_SD4_PRESCALE_S)) 79 #define GPIO_SD4_PRESCALE_V 0xFF 80 #define GPIO_SD4_PRESCALE_S 8 81 /* GPIO_SD4_IN : R/W ;bitpos:[7:0] ;default: 8'h0 ; */ 82 /*description: */ 83 #define GPIO_SD4_IN 0x000000FF 84 #define GPIO_SD4_IN_M ((GPIO_SD4_IN_V)<<(GPIO_SD4_IN_S)) 85 #define GPIO_SD4_IN_V 0xFF 86 #define GPIO_SD4_IN_S 0 87 88 #define GPIO_SIGMADELTA5_REG (DR_REG_GPIO_SD_BASE + 0x0014) 89 /* GPIO_SD5_PRESCALE : R/W ;bitpos:[15:8] ;default: 8'hff ; */ 90 /*description: */ 91 #define GPIO_SD5_PRESCALE 0x000000FF 92 #define GPIO_SD5_PRESCALE_M ((GPIO_SD5_PRESCALE_V)<<(GPIO_SD5_PRESCALE_S)) 93 #define GPIO_SD5_PRESCALE_V 0xFF 94 #define GPIO_SD5_PRESCALE_S 8 95 /* GPIO_SD5_IN : R/W ;bitpos:[7:0] ;default: 8'h0 ; */ 96 /*description: */ 97 #define GPIO_SD5_IN 0x000000FF 98 #define GPIO_SD5_IN_M ((GPIO_SD5_IN_V)<<(GPIO_SD5_IN_S)) 99 #define GPIO_SD5_IN_V 0xFF 100 #define GPIO_SD5_IN_S 0 101 102 #define GPIO_SIGMADELTA6_REG (DR_REG_GPIO_SD_BASE + 0x0018) 103 /* GPIO_SD6_PRESCALE : R/W ;bitpos:[15:8] ;default: 8'hff ; */ 104 /*description: */ 105 #define GPIO_SD6_PRESCALE 0x000000FF 106 #define GPIO_SD6_PRESCALE_M ((GPIO_SD6_PRESCALE_V)<<(GPIO_SD6_PRESCALE_S)) 107 #define GPIO_SD6_PRESCALE_V 0xFF 108 #define GPIO_SD6_PRESCALE_S 8 109 /* GPIO_SD6_IN : R/W ;bitpos:[7:0] ;default: 8'h0 ; */ 110 /*description: */ 111 #define GPIO_SD6_IN 0x000000FF 112 #define GPIO_SD6_IN_M ((GPIO_SD6_IN_V)<<(GPIO_SD6_IN_S)) 113 #define GPIO_SD6_IN_V 0xFF 114 #define GPIO_SD6_IN_S 0 115 116 #define GPIO_SIGMADELTA7_REG (DR_REG_GPIO_SD_BASE + 0x001c) 117 /* GPIO_SD7_PRESCALE : R/W ;bitpos:[15:8] ;default: 8'hff ; */ 118 /*description: */ 119 #define GPIO_SD7_PRESCALE 0x000000FF 120 #define GPIO_SD7_PRESCALE_M ((GPIO_SD7_PRESCALE_V)<<(GPIO_SD7_PRESCALE_S)) 121 #define GPIO_SD7_PRESCALE_V 0xFF 122 #define GPIO_SD7_PRESCALE_S 8 123 /* GPIO_SD7_IN : R/W ;bitpos:[7:0] ;default: 8'h0 ; */ 124 /*description: */ 125 #define GPIO_SD7_IN 0x000000FF 126 #define GPIO_SD7_IN_M ((GPIO_SD7_IN_V)<<(GPIO_SD7_IN_S)) 127 #define GPIO_SD7_IN_V 0xFF 128 #define GPIO_SD7_IN_S 0 129 130 #define GPIO_SIGMADELTA_CG_REG (DR_REG_GPIO_SD_BASE + 0x0020) 131 /* GPIO_SD_CLK_EN : R/W ;bitpos:[31] ;default: 1'h0 ; */ 132 /*description: */ 133 #define GPIO_SD_CLK_EN (BIT(31)) 134 #define GPIO_SD_CLK_EN_M (BIT(31)) 135 #define GPIO_SD_CLK_EN_V 0x1 136 #define GPIO_SD_CLK_EN_S 31 137 138 #define GPIO_SIGMADELTA_MISC_REG (DR_REG_GPIO_SD_BASE + 0x0024) 139 /* GPIO_SPI_SWAP : R/W ;bitpos:[31] ;default: 1'h0 ; */ 140 /*description: */ 141 #define GPIO_SPI_SWAP (BIT(31)) 142 #define GPIO_SPI_SWAP_M (BIT(31)) 143 #define GPIO_SPI_SWAP_V 0x1 144 #define GPIO_SPI_SWAP_S 31 145 146 #define GPIO_SIGMADELTA_VERSION_REG (DR_REG_GPIO_SD_BASE + 0x0028) 147 /* GPIO_SD_DATE : R/W ;bitpos:[27:0] ;default: 28'h1506190 ; */ 148 /*description: */ 149 #define GPIO_SD_DATE 0x0FFFFFFF 150 #define GPIO_SD_DATE_M ((GPIO_SD_DATE_V)<<(GPIO_SD_DATE_S)) 151 #define GPIO_SD_DATE_V 0xFFFFFFF 152 #define GPIO_SD_DATE_S 0 153 #define SIGMADELTA_GPIO_SD_DATE_VERSION 0x1506190 154 155 156 157 158 #endif /*_SOC_GPIO_SD_REG_H_ */ 159