Mario Six | a861ea6 | 2019-01-21 09:17:57 +0100 | [diff] [blame] | 1 | #ifdef CONFIG_BAT0 |
| 2 | #define CONFIG_SYS_IBAT0L (\ |
| 3 | (CONFIG_BAT0_BASE) |\ |
| 4 | (CONFIG_BAT0_PAGE_PROTECTION) |\ |
| 5 | (CONFIG_BAT0_WIMG_ICACHE) \ |
| 6 | ) |
| 7 | #define CONFIG_SYS_IBAT0U (\ |
| 8 | (CONFIG_BAT0_BASE) |\ |
| 9 | (CONFIG_BAT0_LENGTH) |\ |
| 10 | (CONFIG_BAT0_VALID_BITS) \ |
| 11 | ) |
| 12 | #define CONFIG_SYS_DBAT0L (\ |
| 13 | (CONFIG_BAT0_BASE) |\ |
| 14 | (CONFIG_BAT0_PAGE_PROTECTION) |\ |
| 15 | (CONFIG_BAT0_WIMG_DCACHE) \ |
| 16 | ) |
| 17 | #define CONFIG_SYS_DBAT0U (\ |
| 18 | (CONFIG_BAT0_BASE) |\ |
| 19 | (CONFIG_BAT0_LENGTH) |\ |
| 20 | (CONFIG_BAT0_VALID_BITS) \ |
| 21 | ) |
| 22 | #else |
| 23 | #define CONFIG_SYS_IBAT0L (0) |
| 24 | #define CONFIG_SYS_IBAT0U (0) |
| 25 | #define CONFIG_SYS_DBAT0L (0) |
| 26 | #define CONFIG_SYS_DBAT0U (0) |
| 27 | #endif /* CONFIG_BAT0 */ |
| 28 | |
| 29 | #ifdef CONFIG_BAT1 |
| 30 | #define CONFIG_SYS_IBAT1L (\ |
| 31 | (CONFIG_BAT1_BASE) |\ |
| 32 | (CONFIG_BAT1_PAGE_PROTECTION) |\ |
| 33 | (CONFIG_BAT1_WIMG_ICACHE) \ |
| 34 | ) |
| 35 | #define CONFIG_SYS_IBAT1U (\ |
| 36 | (CONFIG_BAT1_BASE) |\ |
| 37 | (CONFIG_BAT1_LENGTH) |\ |
| 38 | (CONFIG_BAT1_VALID_BITS) \ |
| 39 | ) |
| 40 | #define CONFIG_SYS_DBAT1L (\ |
| 41 | (CONFIG_BAT1_BASE) |\ |
| 42 | (CONFIG_BAT1_PAGE_PROTECTION) |\ |
| 43 | (CONFIG_BAT1_WIMG_DCACHE) \ |
| 44 | ) |
| 45 | #define CONFIG_SYS_DBAT1U (\ |
| 46 | (CONFIG_BAT1_BASE) |\ |
| 47 | (CONFIG_BAT1_LENGTH) |\ |
| 48 | (CONFIG_BAT1_VALID_BITS) \ |
| 49 | ) |
| 50 | #else |
| 51 | #define CONFIG_SYS_IBAT1L (0) |
| 52 | #define CONFIG_SYS_IBAT1U (0) |
| 53 | #define CONFIG_SYS_DBAT1L (0) |
| 54 | #define CONFIG_SYS_DBAT1U (0) |
| 55 | #endif /* CONFIG_BAT1 */ |
| 56 | |
| 57 | #ifdef CONFIG_BAT2 |
| 58 | #define CONFIG_SYS_IBAT2L (\ |
| 59 | (CONFIG_BAT2_BASE) |\ |
| 60 | (CONFIG_BAT2_PAGE_PROTECTION) |\ |
| 61 | (CONFIG_BAT2_WIMG_ICACHE) \ |
| 62 | ) |
| 63 | #define CONFIG_SYS_IBAT2U (\ |
| 64 | (CONFIG_BAT2_BASE) |\ |
| 65 | (CONFIG_BAT2_LENGTH) |\ |
| 66 | (CONFIG_BAT2_VALID_BITS) \ |
| 67 | ) |
| 68 | #define CONFIG_SYS_DBAT2L (\ |
| 69 | (CONFIG_BAT2_BASE) |\ |
| 70 | (CONFIG_BAT2_PAGE_PROTECTION) |\ |
| 71 | (CONFIG_BAT2_WIMG_DCACHE) \ |
| 72 | ) |
| 73 | #define CONFIG_SYS_DBAT2U (\ |
| 74 | (CONFIG_BAT2_BASE) |\ |
| 75 | (CONFIG_BAT2_LENGTH) |\ |
| 76 | (CONFIG_BAT2_VALID_BITS) \ |
| 77 | ) |
| 78 | #else |
| 79 | #define CONFIG_SYS_IBAT2L (0) |
| 80 | #define CONFIG_SYS_IBAT2U (0) |
| 81 | #define CONFIG_SYS_DBAT2L (0) |
| 82 | #define CONFIG_SYS_DBAT2U (0) |
| 83 | #endif /* CONFIG_BAT2 */ |
| 84 | |
| 85 | #ifdef CONFIG_BAT3 |
| 86 | #define CONFIG_SYS_IBAT3L (\ |
| 87 | (CONFIG_BAT3_BASE) |\ |
| 88 | (CONFIG_BAT3_PAGE_PROTECTION) |\ |
| 89 | (CONFIG_BAT3_WIMG_ICACHE) \ |
| 90 | ) |
| 91 | #define CONFIG_SYS_IBAT3U (\ |
| 92 | (CONFIG_BAT3_BASE) |\ |
| 93 | (CONFIG_BAT3_LENGTH) |\ |
| 94 | (CONFIG_BAT3_VALID_BITS) \ |
| 95 | ) |
| 96 | #define CONFIG_SYS_DBAT3L (\ |
| 97 | (CONFIG_BAT3_BASE) |\ |
| 98 | (CONFIG_BAT3_PAGE_PROTECTION) |\ |
| 99 | (CONFIG_BAT3_WIMG_DCACHE) \ |
| 100 | ) |
| 101 | #define CONFIG_SYS_DBAT3U (\ |
| 102 | (CONFIG_BAT3_BASE) |\ |
| 103 | (CONFIG_BAT3_LENGTH) |\ |
| 104 | (CONFIG_BAT3_VALID_BITS) \ |
| 105 | ) |
| 106 | #else |
| 107 | #define CONFIG_SYS_IBAT3L (0) |
| 108 | #define CONFIG_SYS_IBAT3U (0) |
| 109 | #define CONFIG_SYS_DBAT3L (0) |
| 110 | #define CONFIG_SYS_DBAT3U (0) |
| 111 | #endif /* CONFIG_BAT3 */ |
| 112 | |
| 113 | #ifdef CONFIG_BAT4 |
| 114 | #define CONFIG_SYS_IBAT4L (\ |
| 115 | (CONFIG_BAT4_BASE) |\ |
| 116 | (CONFIG_BAT4_PAGE_PROTECTION) |\ |
| 117 | (CONFIG_BAT4_WIMG_ICACHE) \ |
| 118 | ) |
| 119 | #define CONFIG_SYS_IBAT4U (\ |
| 120 | (CONFIG_BAT4_BASE) |\ |
| 121 | (CONFIG_BAT4_LENGTH) |\ |
| 122 | (CONFIG_BAT4_VALID_BITS) \ |
| 123 | ) |
| 124 | #define CONFIG_SYS_DBAT4L (\ |
| 125 | (CONFIG_BAT4_BASE) |\ |
| 126 | (CONFIG_BAT4_PAGE_PROTECTION) |\ |
| 127 | (CONFIG_BAT4_WIMG_DCACHE) \ |
| 128 | ) |
| 129 | #define CONFIG_SYS_DBAT4U (\ |
| 130 | (CONFIG_BAT4_BASE) |\ |
| 131 | (CONFIG_BAT4_LENGTH) |\ |
| 132 | (CONFIG_BAT4_VALID_BITS) \ |
| 133 | ) |
| 134 | #else |
| 135 | #define CONFIG_SYS_IBAT4L (0) |
| 136 | #define CONFIG_SYS_IBAT4U (0) |
| 137 | #define CONFIG_SYS_DBAT4L (0) |
| 138 | #define CONFIG_SYS_DBAT4U (0) |
| 139 | #endif /* CONFIG_BAT4 */ |
| 140 | |
| 141 | #ifdef CONFIG_BAT5 |
| 142 | #define CONFIG_SYS_IBAT5L (\ |
| 143 | (CONFIG_BAT5_BASE) |\ |
| 144 | (CONFIG_BAT5_PAGE_PROTECTION) |\ |
| 145 | (CONFIG_BAT5_WIMG_ICACHE) \ |
| 146 | ) |
| 147 | #define CONFIG_SYS_IBAT5U (\ |
| 148 | (CONFIG_BAT5_BASE) |\ |
| 149 | (CONFIG_BAT5_LENGTH) |\ |
| 150 | (CONFIG_BAT5_VALID_BITS) \ |
| 151 | ) |
| 152 | #define CONFIG_SYS_DBAT5L (\ |
| 153 | (CONFIG_BAT5_BASE) |\ |
| 154 | (CONFIG_BAT5_PAGE_PROTECTION) |\ |
| 155 | (CONFIG_BAT5_WIMG_DCACHE) \ |
| 156 | ) |
| 157 | #define CONFIG_SYS_DBAT5U (\ |
| 158 | (CONFIG_BAT5_BASE) |\ |
| 159 | (CONFIG_BAT5_LENGTH) |\ |
| 160 | (CONFIG_BAT5_VALID_BITS) \ |
| 161 | ) |
| 162 | #else |
| 163 | #define CONFIG_SYS_IBAT5L (0) |
| 164 | #define CONFIG_SYS_IBAT5U (0) |
| 165 | #define CONFIG_SYS_DBAT5L (0) |
| 166 | #define CONFIG_SYS_DBAT5U (0) |
| 167 | #endif /* CONFIG_BAT5 */ |
| 168 | |
| 169 | #ifdef CONFIG_BAT6 |
| 170 | #define CONFIG_SYS_IBAT6L (\ |
| 171 | (CONFIG_BAT6_BASE) |\ |
| 172 | (CONFIG_BAT6_PAGE_PROTECTION) |\ |
| 173 | (CONFIG_BAT6_WIMG_ICACHE) \ |
| 174 | ) |
| 175 | #define CONFIG_SYS_IBAT6U (\ |
| 176 | (CONFIG_BAT6_BASE) |\ |
| 177 | (CONFIG_BAT6_LENGTH) |\ |
| 178 | (CONFIG_BAT6_VALID_BITS) \ |
| 179 | ) |
| 180 | #define CONFIG_SYS_DBAT6L (\ |
| 181 | (CONFIG_BAT6_BASE) |\ |
| 182 | (CONFIG_BAT6_PAGE_PROTECTION) |\ |
| 183 | (CONFIG_BAT6_WIMG_DCACHE) \ |
| 184 | ) |
| 185 | #define CONFIG_SYS_DBAT6U (\ |
| 186 | (CONFIG_BAT6_BASE) |\ |
| 187 | (CONFIG_BAT6_LENGTH) |\ |
| 188 | (CONFIG_BAT6_VALID_BITS) \ |
| 189 | ) |
| 190 | #else |
| 191 | #define CONFIG_SYS_IBAT6L (0) |
| 192 | #define CONFIG_SYS_IBAT6U (0) |
| 193 | #define CONFIG_SYS_DBAT6L (0) |
| 194 | #define CONFIG_SYS_DBAT6U (0) |
| 195 | #endif /* CONFIG_BAT6 */ |
| 196 | |
| 197 | #ifdef CONFIG_BAT7 |
| 198 | #define CONFIG_SYS_IBAT7L (\ |
| 199 | (CONFIG_BAT7_BASE) |\ |
| 200 | (CONFIG_BAT7_PAGE_PROTECTION) |\ |
| 201 | (CONFIG_BAT7_WIMG_ICACHE) \ |
| 202 | ) |
| 203 | #define CONFIG_SYS_IBAT7U (\ |
| 204 | (CONFIG_BAT7_BASE) |\ |
| 205 | (CONFIG_BAT7_LENGTH) |\ |
| 206 | (CONFIG_BAT7_VALID_BITS) \ |
| 207 | ) |
| 208 | #define CONFIG_SYS_DBAT7L (\ |
| 209 | (CONFIG_BAT7_BASE) |\ |
| 210 | (CONFIG_BAT7_PAGE_PROTECTION) |\ |
| 211 | (CONFIG_BAT7_WIMG_DCACHE) \ |
| 212 | ) |
| 213 | #define CONFIG_SYS_DBAT7U (\ |
| 214 | (CONFIG_BAT7_BASE) |\ |
| 215 | (CONFIG_BAT7_LENGTH) |\ |
| 216 | (CONFIG_BAT7_VALID_BITS) \ |
| 217 | ) |
| 218 | #else |
| 219 | #define CONFIG_SYS_IBAT7L (0) |
| 220 | #define CONFIG_SYS_IBAT7U (0) |
| 221 | #define CONFIG_SYS_DBAT7L (0) |
| 222 | #define CONFIG_SYS_DBAT7U (0) |
| 223 | #endif /* CONFIG_BAT7 */ |