Marek Vasut | 31650d6 | 2011-11-08 23:18:15 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Freescale i.MX28 APBH Register Definitions |
| 3 | * |
| 4 | * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com> |
| 5 | * on behalf of DENX Software Engineering GmbH |
| 6 | * |
| 7 | * Based on code from LTIB: |
| 8 | * Copyright 2008-2010 Freescale Semiconductor, Inc. All Rights Reserved. |
| 9 | * |
| 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation; either version 2 of the License, or |
| 13 | * (at your option) any later version. |
| 14 | * |
| 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program; if not, write to the Free Software |
| 22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 23 | * |
| 24 | */ |
| 25 | |
| 26 | #ifndef __REGS_APBH_H__ |
| 27 | #define __REGS_APBH_H__ |
| 28 | |
| 29 | #include <asm/arch/regs-common.h> |
| 30 | |
| 31 | #ifndef __ASSEMBLY__ |
Marek Vasut | 0e5c05e | 2013-01-22 15:01:00 +0000 | [diff] [blame] | 32 | |
| 33 | #if defined(CONFIG_MX23) |
| 34 | struct mxs_apbh_regs { |
| 35 | mxs_reg_32(hw_apbh_ctrl0) |
| 36 | mxs_reg_32(hw_apbh_ctrl1) |
| 37 | mxs_reg_32(hw_apbh_ctrl2) |
| 38 | mxs_reg_32(hw_apbh_channel_ctrl) |
| 39 | |
| 40 | union { |
| 41 | struct { |
| 42 | mxs_reg_32(hw_apbh_ch_curcmdar) |
| 43 | mxs_reg_32(hw_apbh_ch_nxtcmdar) |
| 44 | mxs_reg_32(hw_apbh_ch_cmd) |
| 45 | mxs_reg_32(hw_apbh_ch_bar) |
| 46 | mxs_reg_32(hw_apbh_ch_sema) |
| 47 | mxs_reg_32(hw_apbh_ch_debug1) |
| 48 | mxs_reg_32(hw_apbh_ch_debug2) |
| 49 | } ch[8]; |
| 50 | struct { |
| 51 | mxs_reg_32(hw_apbh_ch0_curcmdar) |
| 52 | mxs_reg_32(hw_apbh_ch0_nxtcmdar) |
| 53 | mxs_reg_32(hw_apbh_ch0_cmd) |
| 54 | mxs_reg_32(hw_apbh_ch0_bar) |
| 55 | mxs_reg_32(hw_apbh_ch0_sema) |
| 56 | mxs_reg_32(hw_apbh_ch0_debug1) |
| 57 | mxs_reg_32(hw_apbh_ch0_debug2) |
| 58 | mxs_reg_32(hw_apbh_ch1_curcmdar) |
| 59 | mxs_reg_32(hw_apbh_ch1_nxtcmdar) |
| 60 | mxs_reg_32(hw_apbh_ch1_cmd) |
| 61 | mxs_reg_32(hw_apbh_ch1_bar) |
| 62 | mxs_reg_32(hw_apbh_ch1_sema) |
| 63 | mxs_reg_32(hw_apbh_ch1_debug1) |
| 64 | mxs_reg_32(hw_apbh_ch1_debug2) |
| 65 | mxs_reg_32(hw_apbh_ch2_curcmdar) |
| 66 | mxs_reg_32(hw_apbh_ch2_nxtcmdar) |
| 67 | mxs_reg_32(hw_apbh_ch2_cmd) |
| 68 | mxs_reg_32(hw_apbh_ch2_bar) |
| 69 | mxs_reg_32(hw_apbh_ch2_sema) |
| 70 | mxs_reg_32(hw_apbh_ch2_debug1) |
| 71 | mxs_reg_32(hw_apbh_ch2_debug2) |
| 72 | mxs_reg_32(hw_apbh_ch3_curcmdar) |
| 73 | mxs_reg_32(hw_apbh_ch3_nxtcmdar) |
| 74 | mxs_reg_32(hw_apbh_ch3_cmd) |
| 75 | mxs_reg_32(hw_apbh_ch3_bar) |
| 76 | mxs_reg_32(hw_apbh_ch3_sema) |
| 77 | mxs_reg_32(hw_apbh_ch3_debug1) |
| 78 | mxs_reg_32(hw_apbh_ch3_debug2) |
| 79 | mxs_reg_32(hw_apbh_ch4_curcmdar) |
| 80 | mxs_reg_32(hw_apbh_ch4_nxtcmdar) |
| 81 | mxs_reg_32(hw_apbh_ch4_cmd) |
| 82 | mxs_reg_32(hw_apbh_ch4_bar) |
| 83 | mxs_reg_32(hw_apbh_ch4_sema) |
| 84 | mxs_reg_32(hw_apbh_ch4_debug1) |
| 85 | mxs_reg_32(hw_apbh_ch4_debug2) |
| 86 | mxs_reg_32(hw_apbh_ch5_curcmdar) |
| 87 | mxs_reg_32(hw_apbh_ch5_nxtcmdar) |
| 88 | mxs_reg_32(hw_apbh_ch5_cmd) |
| 89 | mxs_reg_32(hw_apbh_ch5_bar) |
| 90 | mxs_reg_32(hw_apbh_ch5_sema) |
| 91 | mxs_reg_32(hw_apbh_ch5_debug1) |
| 92 | mxs_reg_32(hw_apbh_ch5_debug2) |
| 93 | mxs_reg_32(hw_apbh_ch6_curcmdar) |
| 94 | mxs_reg_32(hw_apbh_ch6_nxtcmdar) |
| 95 | mxs_reg_32(hw_apbh_ch6_cmd) |
| 96 | mxs_reg_32(hw_apbh_ch6_bar) |
| 97 | mxs_reg_32(hw_apbh_ch6_sema) |
| 98 | mxs_reg_32(hw_apbh_ch6_debug1) |
| 99 | mxs_reg_32(hw_apbh_ch6_debug2) |
| 100 | mxs_reg_32(hw_apbh_ch7_curcmdar) |
| 101 | mxs_reg_32(hw_apbh_ch7_nxtcmdar) |
| 102 | mxs_reg_32(hw_apbh_ch7_cmd) |
| 103 | mxs_reg_32(hw_apbh_ch7_bar) |
| 104 | mxs_reg_32(hw_apbh_ch7_sema) |
| 105 | mxs_reg_32(hw_apbh_ch7_debug1) |
| 106 | mxs_reg_32(hw_apbh_ch7_debug2) |
| 107 | }; |
| 108 | }; |
| 109 | mxs_reg_32(hw_apbh_version) |
| 110 | }; |
| 111 | |
| 112 | #elif defined(CONFIG_MX28) |
Otavio Salvador | 9c47114 | 2012-08-05 09:05:31 +0000 | [diff] [blame] | 113 | struct mxs_apbh_regs { |
Otavio Salvador | ddcf13b | 2012-08-05 09:05:30 +0000 | [diff] [blame] | 114 | mxs_reg_32(hw_apbh_ctrl0) |
| 115 | mxs_reg_32(hw_apbh_ctrl1) |
| 116 | mxs_reg_32(hw_apbh_ctrl2) |
| 117 | mxs_reg_32(hw_apbh_channel_ctrl) |
| 118 | mxs_reg_32(hw_apbh_devsel) |
| 119 | mxs_reg_32(hw_apbh_dma_burst_size) |
| 120 | mxs_reg_32(hw_apbh_debug) |
Marek Vasut | 31650d6 | 2011-11-08 23:18:15 +0000 | [diff] [blame] | 121 | |
| 122 | uint32_t reserved[36]; |
| 123 | |
| 124 | union { |
| 125 | struct { |
Otavio Salvador | ddcf13b | 2012-08-05 09:05:30 +0000 | [diff] [blame] | 126 | mxs_reg_32(hw_apbh_ch_curcmdar) |
| 127 | mxs_reg_32(hw_apbh_ch_nxtcmdar) |
| 128 | mxs_reg_32(hw_apbh_ch_cmd) |
| 129 | mxs_reg_32(hw_apbh_ch_bar) |
| 130 | mxs_reg_32(hw_apbh_ch_sema) |
| 131 | mxs_reg_32(hw_apbh_ch_debug1) |
| 132 | mxs_reg_32(hw_apbh_ch_debug2) |
Marek Vasut | 31650d6 | 2011-11-08 23:18:15 +0000 | [diff] [blame] | 133 | } ch[16]; |
| 134 | struct { |
Otavio Salvador | ddcf13b | 2012-08-05 09:05:30 +0000 | [diff] [blame] | 135 | mxs_reg_32(hw_apbh_ch0_curcmdar) |
| 136 | mxs_reg_32(hw_apbh_ch0_nxtcmdar) |
| 137 | mxs_reg_32(hw_apbh_ch0_cmd) |
| 138 | mxs_reg_32(hw_apbh_ch0_bar) |
| 139 | mxs_reg_32(hw_apbh_ch0_sema) |
| 140 | mxs_reg_32(hw_apbh_ch0_debug1) |
| 141 | mxs_reg_32(hw_apbh_ch0_debug2) |
| 142 | mxs_reg_32(hw_apbh_ch1_curcmdar) |
| 143 | mxs_reg_32(hw_apbh_ch1_nxtcmdar) |
| 144 | mxs_reg_32(hw_apbh_ch1_cmd) |
| 145 | mxs_reg_32(hw_apbh_ch1_bar) |
| 146 | mxs_reg_32(hw_apbh_ch1_sema) |
| 147 | mxs_reg_32(hw_apbh_ch1_debug1) |
| 148 | mxs_reg_32(hw_apbh_ch1_debug2) |
| 149 | mxs_reg_32(hw_apbh_ch2_curcmdar) |
| 150 | mxs_reg_32(hw_apbh_ch2_nxtcmdar) |
| 151 | mxs_reg_32(hw_apbh_ch2_cmd) |
| 152 | mxs_reg_32(hw_apbh_ch2_bar) |
| 153 | mxs_reg_32(hw_apbh_ch2_sema) |
| 154 | mxs_reg_32(hw_apbh_ch2_debug1) |
| 155 | mxs_reg_32(hw_apbh_ch2_debug2) |
| 156 | mxs_reg_32(hw_apbh_ch3_curcmdar) |
| 157 | mxs_reg_32(hw_apbh_ch3_nxtcmdar) |
| 158 | mxs_reg_32(hw_apbh_ch3_cmd) |
| 159 | mxs_reg_32(hw_apbh_ch3_bar) |
| 160 | mxs_reg_32(hw_apbh_ch3_sema) |
| 161 | mxs_reg_32(hw_apbh_ch3_debug1) |
| 162 | mxs_reg_32(hw_apbh_ch3_debug2) |
| 163 | mxs_reg_32(hw_apbh_ch4_curcmdar) |
| 164 | mxs_reg_32(hw_apbh_ch4_nxtcmdar) |
| 165 | mxs_reg_32(hw_apbh_ch4_cmd) |
| 166 | mxs_reg_32(hw_apbh_ch4_bar) |
| 167 | mxs_reg_32(hw_apbh_ch4_sema) |
| 168 | mxs_reg_32(hw_apbh_ch4_debug1) |
| 169 | mxs_reg_32(hw_apbh_ch4_debug2) |
| 170 | mxs_reg_32(hw_apbh_ch5_curcmdar) |
| 171 | mxs_reg_32(hw_apbh_ch5_nxtcmdar) |
| 172 | mxs_reg_32(hw_apbh_ch5_cmd) |
| 173 | mxs_reg_32(hw_apbh_ch5_bar) |
| 174 | mxs_reg_32(hw_apbh_ch5_sema) |
| 175 | mxs_reg_32(hw_apbh_ch5_debug1) |
| 176 | mxs_reg_32(hw_apbh_ch5_debug2) |
| 177 | mxs_reg_32(hw_apbh_ch6_curcmdar) |
| 178 | mxs_reg_32(hw_apbh_ch6_nxtcmdar) |
| 179 | mxs_reg_32(hw_apbh_ch6_cmd) |
| 180 | mxs_reg_32(hw_apbh_ch6_bar) |
| 181 | mxs_reg_32(hw_apbh_ch6_sema) |
| 182 | mxs_reg_32(hw_apbh_ch6_debug1) |
| 183 | mxs_reg_32(hw_apbh_ch6_debug2) |
| 184 | mxs_reg_32(hw_apbh_ch7_curcmdar) |
| 185 | mxs_reg_32(hw_apbh_ch7_nxtcmdar) |
| 186 | mxs_reg_32(hw_apbh_ch7_cmd) |
| 187 | mxs_reg_32(hw_apbh_ch7_bar) |
| 188 | mxs_reg_32(hw_apbh_ch7_sema) |
| 189 | mxs_reg_32(hw_apbh_ch7_debug1) |
| 190 | mxs_reg_32(hw_apbh_ch7_debug2) |
| 191 | mxs_reg_32(hw_apbh_ch8_curcmdar) |
| 192 | mxs_reg_32(hw_apbh_ch8_nxtcmdar) |
| 193 | mxs_reg_32(hw_apbh_ch8_cmd) |
| 194 | mxs_reg_32(hw_apbh_ch8_bar) |
| 195 | mxs_reg_32(hw_apbh_ch8_sema) |
| 196 | mxs_reg_32(hw_apbh_ch8_debug1) |
| 197 | mxs_reg_32(hw_apbh_ch8_debug2) |
| 198 | mxs_reg_32(hw_apbh_ch9_curcmdar) |
| 199 | mxs_reg_32(hw_apbh_ch9_nxtcmdar) |
| 200 | mxs_reg_32(hw_apbh_ch9_cmd) |
| 201 | mxs_reg_32(hw_apbh_ch9_bar) |
| 202 | mxs_reg_32(hw_apbh_ch9_sema) |
| 203 | mxs_reg_32(hw_apbh_ch9_debug1) |
| 204 | mxs_reg_32(hw_apbh_ch9_debug2) |
| 205 | mxs_reg_32(hw_apbh_ch10_curcmdar) |
| 206 | mxs_reg_32(hw_apbh_ch10_nxtcmdar) |
| 207 | mxs_reg_32(hw_apbh_ch10_cmd) |
| 208 | mxs_reg_32(hw_apbh_ch10_bar) |
| 209 | mxs_reg_32(hw_apbh_ch10_sema) |
| 210 | mxs_reg_32(hw_apbh_ch10_debug1) |
| 211 | mxs_reg_32(hw_apbh_ch10_debug2) |
| 212 | mxs_reg_32(hw_apbh_ch11_curcmdar) |
| 213 | mxs_reg_32(hw_apbh_ch11_nxtcmdar) |
| 214 | mxs_reg_32(hw_apbh_ch11_cmd) |
| 215 | mxs_reg_32(hw_apbh_ch11_bar) |
| 216 | mxs_reg_32(hw_apbh_ch11_sema) |
| 217 | mxs_reg_32(hw_apbh_ch11_debug1) |
| 218 | mxs_reg_32(hw_apbh_ch11_debug2) |
| 219 | mxs_reg_32(hw_apbh_ch12_curcmdar) |
| 220 | mxs_reg_32(hw_apbh_ch12_nxtcmdar) |
| 221 | mxs_reg_32(hw_apbh_ch12_cmd) |
| 222 | mxs_reg_32(hw_apbh_ch12_bar) |
| 223 | mxs_reg_32(hw_apbh_ch12_sema) |
| 224 | mxs_reg_32(hw_apbh_ch12_debug1) |
| 225 | mxs_reg_32(hw_apbh_ch12_debug2) |
| 226 | mxs_reg_32(hw_apbh_ch13_curcmdar) |
| 227 | mxs_reg_32(hw_apbh_ch13_nxtcmdar) |
| 228 | mxs_reg_32(hw_apbh_ch13_cmd) |
| 229 | mxs_reg_32(hw_apbh_ch13_bar) |
| 230 | mxs_reg_32(hw_apbh_ch13_sema) |
| 231 | mxs_reg_32(hw_apbh_ch13_debug1) |
| 232 | mxs_reg_32(hw_apbh_ch13_debug2) |
| 233 | mxs_reg_32(hw_apbh_ch14_curcmdar) |
| 234 | mxs_reg_32(hw_apbh_ch14_nxtcmdar) |
| 235 | mxs_reg_32(hw_apbh_ch14_cmd) |
| 236 | mxs_reg_32(hw_apbh_ch14_bar) |
| 237 | mxs_reg_32(hw_apbh_ch14_sema) |
| 238 | mxs_reg_32(hw_apbh_ch14_debug1) |
| 239 | mxs_reg_32(hw_apbh_ch14_debug2) |
| 240 | mxs_reg_32(hw_apbh_ch15_curcmdar) |
| 241 | mxs_reg_32(hw_apbh_ch15_nxtcmdar) |
| 242 | mxs_reg_32(hw_apbh_ch15_cmd) |
| 243 | mxs_reg_32(hw_apbh_ch15_bar) |
| 244 | mxs_reg_32(hw_apbh_ch15_sema) |
| 245 | mxs_reg_32(hw_apbh_ch15_debug1) |
| 246 | mxs_reg_32(hw_apbh_ch15_debug2) |
Marek Vasut | 31650d6 | 2011-11-08 23:18:15 +0000 | [diff] [blame] | 247 | }; |
| 248 | }; |
Otavio Salvador | ddcf13b | 2012-08-05 09:05:30 +0000 | [diff] [blame] | 249 | mxs_reg_32(hw_apbh_version) |
Marek Vasut | 31650d6 | 2011-11-08 23:18:15 +0000 | [diff] [blame] | 250 | }; |
| 251 | #endif |
| 252 | |
Marek Vasut | 0e5c05e | 2013-01-22 15:01:00 +0000 | [diff] [blame] | 253 | #endif |
| 254 | |
Marek Vasut | 31650d6 | 2011-11-08 23:18:15 +0000 | [diff] [blame] | 255 | #define APBH_CTRL0_SFTRST (1 << 31) |
| 256 | #define APBH_CTRL0_CLKGATE (1 << 30) |
| 257 | #define APBH_CTRL0_AHB_BURST8_EN (1 << 29) |
| 258 | #define APBH_CTRL0_APB_BURST_EN (1 << 28) |
Marek Vasut | 0e5c05e | 2013-01-22 15:01:00 +0000 | [diff] [blame] | 259 | #if defined(CONFIG_MX23) |
| 260 | #define APBH_CTRL0_RSVD0_MASK (0xf << 24) |
| 261 | #define APBH_CTRL0_RSVD0_OFFSET 24 |
| 262 | #define APBH_CTRL0_RESET_CHANNEL_MASK (0xff << 16) |
| 263 | #define APBH_CTRL0_RESET_CHANNEL_OFFSET 16 |
| 264 | #define APBH_CTRL0_CLKGATE_CHANNEL_MASK (0xff << 8) |
| 265 | #define APBH_CTRL0_CLKGATE_CHANNEL_OFFSET 8 |
| 266 | #define APBH_CTRL0_CLKGATE_CHANNEL_SSP0 0x02 |
| 267 | #define APBH_CTRL0_CLKGATE_CHANNEL_SSP1 0x04 |
| 268 | #define APBH_CTRL0_CLKGATE_CHANNEL_NAND0 0x10 |
| 269 | #define APBH_CTRL0_CLKGATE_CHANNEL_NAND1 0x20 |
| 270 | #define APBH_CTRL0_CLKGATE_CHANNEL_NAND2 0x40 |
| 271 | #define APBH_CTRL0_CLKGATE_CHANNEL_NAND3 0x80 |
| 272 | #elif defined(CONFIG_MX28) |
Marek Vasut | 31650d6 | 2011-11-08 23:18:15 +0000 | [diff] [blame] | 273 | #define APBH_CTRL0_RSVD0_MASK (0xfff << 16) |
| 274 | #define APBH_CTRL0_RSVD0_OFFSET 16 |
| 275 | #define APBH_CTRL0_CLKGATE_CHANNEL_MASK 0xffff |
| 276 | #define APBH_CTRL0_CLKGATE_CHANNEL_OFFSET 0 |
| 277 | #define APBH_CTRL0_CLKGATE_CHANNEL_SSP0 0x0001 |
| 278 | #define APBH_CTRL0_CLKGATE_CHANNEL_SSP1 0x0002 |
| 279 | #define APBH_CTRL0_CLKGATE_CHANNEL_SSP2 0x0004 |
| 280 | #define APBH_CTRL0_CLKGATE_CHANNEL_SSP3 0x0008 |
| 281 | #define APBH_CTRL0_CLKGATE_CHANNEL_NAND0 0x0010 |
| 282 | #define APBH_CTRL0_CLKGATE_CHANNEL_NAND1 0x0020 |
| 283 | #define APBH_CTRL0_CLKGATE_CHANNEL_NAND2 0x0040 |
| 284 | #define APBH_CTRL0_CLKGATE_CHANNEL_NAND3 0x0080 |
| 285 | #define APBH_CTRL0_CLKGATE_CHANNEL_NAND4 0x0100 |
| 286 | #define APBH_CTRL0_CLKGATE_CHANNEL_NAND5 0x0200 |
| 287 | #define APBH_CTRL0_CLKGATE_CHANNEL_NAND6 0x0400 |
| 288 | #define APBH_CTRL0_CLKGATE_CHANNEL_NAND7 0x0800 |
| 289 | #define APBH_CTRL0_CLKGATE_CHANNEL_HSADC 0x1000 |
| 290 | #define APBH_CTRL0_CLKGATE_CHANNEL_LCDIF 0x2000 |
Marek Vasut | 0e5c05e | 2013-01-22 15:01:00 +0000 | [diff] [blame] | 291 | #endif |
Marek Vasut | 31650d6 | 2011-11-08 23:18:15 +0000 | [diff] [blame] | 292 | |
| 293 | #define APBH_CTRL1_CH15_CMDCMPLT_IRQ_EN (1 << 31) |
| 294 | #define APBH_CTRL1_CH14_CMDCMPLT_IRQ_EN (1 << 30) |
| 295 | #define APBH_CTRL1_CH13_CMDCMPLT_IRQ_EN (1 << 29) |
| 296 | #define APBH_CTRL1_CH12_CMDCMPLT_IRQ_EN (1 << 28) |
| 297 | #define APBH_CTRL1_CH11_CMDCMPLT_IRQ_EN (1 << 27) |
| 298 | #define APBH_CTRL1_CH10_CMDCMPLT_IRQ_EN (1 << 26) |
| 299 | #define APBH_CTRL1_CH9_CMDCMPLT_IRQ_EN (1 << 25) |
| 300 | #define APBH_CTRL1_CH8_CMDCMPLT_IRQ_EN (1 << 24) |
| 301 | #define APBH_CTRL1_CH7_CMDCMPLT_IRQ_EN (1 << 23) |
| 302 | #define APBH_CTRL1_CH6_CMDCMPLT_IRQ_EN (1 << 22) |
| 303 | #define APBH_CTRL1_CH5_CMDCMPLT_IRQ_EN (1 << 21) |
| 304 | #define APBH_CTRL1_CH4_CMDCMPLT_IRQ_EN (1 << 20) |
| 305 | #define APBH_CTRL1_CH3_CMDCMPLT_IRQ_EN (1 << 19) |
| 306 | #define APBH_CTRL1_CH2_CMDCMPLT_IRQ_EN (1 << 18) |
| 307 | #define APBH_CTRL1_CH1_CMDCMPLT_IRQ_EN (1 << 17) |
| 308 | #define APBH_CTRL1_CH0_CMDCMPLT_IRQ_EN (1 << 16) |
| 309 | #define APBH_CTRL1_CH_CMDCMPLT_IRQ_EN_OFFSET 16 |
| 310 | #define APBH_CTRL1_CH_CMDCMPLT_IRQ_EN_MASK (0xffff << 16) |
| 311 | #define APBH_CTRL1_CH15_CMDCMPLT_IRQ (1 << 15) |
| 312 | #define APBH_CTRL1_CH14_CMDCMPLT_IRQ (1 << 14) |
| 313 | #define APBH_CTRL1_CH13_CMDCMPLT_IRQ (1 << 13) |
| 314 | #define APBH_CTRL1_CH12_CMDCMPLT_IRQ (1 << 12) |
| 315 | #define APBH_CTRL1_CH11_CMDCMPLT_IRQ (1 << 11) |
| 316 | #define APBH_CTRL1_CH10_CMDCMPLT_IRQ (1 << 10) |
| 317 | #define APBH_CTRL1_CH9_CMDCMPLT_IRQ (1 << 9) |
| 318 | #define APBH_CTRL1_CH8_CMDCMPLT_IRQ (1 << 8) |
| 319 | #define APBH_CTRL1_CH7_CMDCMPLT_IRQ (1 << 7) |
| 320 | #define APBH_CTRL1_CH6_CMDCMPLT_IRQ (1 << 6) |
| 321 | #define APBH_CTRL1_CH5_CMDCMPLT_IRQ (1 << 5) |
| 322 | #define APBH_CTRL1_CH4_CMDCMPLT_IRQ (1 << 4) |
| 323 | #define APBH_CTRL1_CH3_CMDCMPLT_IRQ (1 << 3) |
| 324 | #define APBH_CTRL1_CH2_CMDCMPLT_IRQ (1 << 2) |
| 325 | #define APBH_CTRL1_CH1_CMDCMPLT_IRQ (1 << 1) |
| 326 | #define APBH_CTRL1_CH0_CMDCMPLT_IRQ (1 << 0) |
| 327 | |
| 328 | #define APBH_CTRL2_CH15_ERROR_STATUS (1 << 31) |
| 329 | #define APBH_CTRL2_CH14_ERROR_STATUS (1 << 30) |
| 330 | #define APBH_CTRL2_CH13_ERROR_STATUS (1 << 29) |
| 331 | #define APBH_CTRL2_CH12_ERROR_STATUS (1 << 28) |
| 332 | #define APBH_CTRL2_CH11_ERROR_STATUS (1 << 27) |
| 333 | #define APBH_CTRL2_CH10_ERROR_STATUS (1 << 26) |
| 334 | #define APBH_CTRL2_CH9_ERROR_STATUS (1 << 25) |
| 335 | #define APBH_CTRL2_CH8_ERROR_STATUS (1 << 24) |
| 336 | #define APBH_CTRL2_CH7_ERROR_STATUS (1 << 23) |
| 337 | #define APBH_CTRL2_CH6_ERROR_STATUS (1 << 22) |
| 338 | #define APBH_CTRL2_CH5_ERROR_STATUS (1 << 21) |
| 339 | #define APBH_CTRL2_CH4_ERROR_STATUS (1 << 20) |
| 340 | #define APBH_CTRL2_CH3_ERROR_STATUS (1 << 19) |
| 341 | #define APBH_CTRL2_CH2_ERROR_STATUS (1 << 18) |
| 342 | #define APBH_CTRL2_CH1_ERROR_STATUS (1 << 17) |
| 343 | #define APBH_CTRL2_CH0_ERROR_STATUS (1 << 16) |
| 344 | #define APBH_CTRL2_CH15_ERROR_IRQ (1 << 15) |
| 345 | #define APBH_CTRL2_CH14_ERROR_IRQ (1 << 14) |
| 346 | #define APBH_CTRL2_CH13_ERROR_IRQ (1 << 13) |
| 347 | #define APBH_CTRL2_CH12_ERROR_IRQ (1 << 12) |
| 348 | #define APBH_CTRL2_CH11_ERROR_IRQ (1 << 11) |
| 349 | #define APBH_CTRL2_CH10_ERROR_IRQ (1 << 10) |
| 350 | #define APBH_CTRL2_CH9_ERROR_IRQ (1 << 9) |
| 351 | #define APBH_CTRL2_CH8_ERROR_IRQ (1 << 8) |
| 352 | #define APBH_CTRL2_CH7_ERROR_IRQ (1 << 7) |
| 353 | #define APBH_CTRL2_CH6_ERROR_IRQ (1 << 6) |
| 354 | #define APBH_CTRL2_CH5_ERROR_IRQ (1 << 5) |
| 355 | #define APBH_CTRL2_CH4_ERROR_IRQ (1 << 4) |
| 356 | #define APBH_CTRL2_CH3_ERROR_IRQ (1 << 3) |
| 357 | #define APBH_CTRL2_CH2_ERROR_IRQ (1 << 2) |
| 358 | #define APBH_CTRL2_CH1_ERROR_IRQ (1 << 1) |
| 359 | #define APBH_CTRL2_CH0_ERROR_IRQ (1 << 0) |
| 360 | |
Marek Vasut | 0e5c05e | 2013-01-22 15:01:00 +0000 | [diff] [blame] | 361 | #if defined(CONFIG_MX28) |
Marek Vasut | 31650d6 | 2011-11-08 23:18:15 +0000 | [diff] [blame] | 362 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_MASK (0xffff << 16) |
| 363 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_OFFSET 16 |
| 364 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_SSP0 (0x0001 << 16) |
| 365 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_SSP1 (0x0002 << 16) |
| 366 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_SSP2 (0x0004 << 16) |
| 367 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_SSP3 (0x0008 << 16) |
| 368 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_NAND0 (0x0010 << 16) |
| 369 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_NAND1 (0x0020 << 16) |
| 370 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_NAND2 (0x0040 << 16) |
| 371 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_NAND3 (0x0080 << 16) |
| 372 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_NAND4 (0x0100 << 16) |
| 373 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_NAND5 (0x0200 << 16) |
| 374 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_NAND6 (0x0400 << 16) |
| 375 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_NAND7 (0x0800 << 16) |
| 376 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_HSADC (0x1000 << 16) |
| 377 | #define APBH_CHANNEL_CTRL_RESET_CHANNEL_LCDIF (0x2000 << 16) |
| 378 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_MASK 0xffff |
| 379 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_OFFSET 0 |
| 380 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_SSP0 0x0001 |
| 381 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_SSP1 0x0002 |
| 382 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_SSP2 0x0004 |
| 383 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_SSP3 0x0008 |
| 384 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_NAND0 0x0010 |
| 385 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_NAND1 0x0020 |
| 386 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_NAND2 0x0040 |
| 387 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_NAND3 0x0080 |
| 388 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_NAND4 0x0100 |
| 389 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_NAND5 0x0200 |
| 390 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_NAND6 0x0400 |
| 391 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_NAND7 0x0800 |
| 392 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_HSADC 0x1000 |
| 393 | #define APBH_CHANNEL_CTRL_FREEZE_CHANNEL_LCDIF 0x2000 |
Marek Vasut | 0e5c05e | 2013-01-22 15:01:00 +0000 | [diff] [blame] | 394 | #endif |
Marek Vasut | 31650d6 | 2011-11-08 23:18:15 +0000 | [diff] [blame] | 395 | |
Marek Vasut | 0e5c05e | 2013-01-22 15:01:00 +0000 | [diff] [blame] | 396 | #if defined(CONFIG_MX23) |
| 397 | #define APBH_DEVSEL_CH7_MASK (0xf << 28) |
| 398 | #define APBH_DEVSEL_CH7_OFFSET 28 |
| 399 | #define APBH_DEVSEL_CH6_MASK (0xf << 24) |
| 400 | #define APBH_DEVSEL_CH6_OFFSET 24 |
| 401 | #define APBH_DEVSEL_CH5_MASK (0xf << 20) |
| 402 | #define APBH_DEVSEL_CH5_OFFSET 20 |
| 403 | #define APBH_DEVSEL_CH4_MASK (0xf << 16) |
| 404 | #define APBH_DEVSEL_CH4_OFFSET 16 |
| 405 | #define APBH_DEVSEL_CH3_MASK (0xf << 12) |
| 406 | #define APBH_DEVSEL_CH3_OFFSET 12 |
| 407 | #define APBH_DEVSEL_CH2_MASK (0xf << 8) |
| 408 | #define APBH_DEVSEL_CH2_OFFSET 8 |
| 409 | #define APBH_DEVSEL_CH1_MASK (0xf << 4) |
| 410 | #define APBH_DEVSEL_CH1_OFFSET 4 |
| 411 | #define APBH_DEVSEL_CH0_MASK (0xf << 0) |
| 412 | #define APBH_DEVSEL_CH0_OFFSET 0 |
| 413 | #elif defined(CONFIG_MX28) |
Marek Vasut | 31650d6 | 2011-11-08 23:18:15 +0000 | [diff] [blame] | 414 | #define APBH_DEVSEL_CH15_MASK (0x3 << 30) |
| 415 | #define APBH_DEVSEL_CH15_OFFSET 30 |
| 416 | #define APBH_DEVSEL_CH14_MASK (0x3 << 28) |
| 417 | #define APBH_DEVSEL_CH14_OFFSET 28 |
| 418 | #define APBH_DEVSEL_CH13_MASK (0x3 << 26) |
| 419 | #define APBH_DEVSEL_CH13_OFFSET 26 |
| 420 | #define APBH_DEVSEL_CH12_MASK (0x3 << 24) |
| 421 | #define APBH_DEVSEL_CH12_OFFSET 24 |
| 422 | #define APBH_DEVSEL_CH11_MASK (0x3 << 22) |
| 423 | #define APBH_DEVSEL_CH11_OFFSET 22 |
| 424 | #define APBH_DEVSEL_CH10_MASK (0x3 << 20) |
| 425 | #define APBH_DEVSEL_CH10_OFFSET 20 |
| 426 | #define APBH_DEVSEL_CH9_MASK (0x3 << 18) |
| 427 | #define APBH_DEVSEL_CH9_OFFSET 18 |
| 428 | #define APBH_DEVSEL_CH8_MASK (0x3 << 16) |
| 429 | #define APBH_DEVSEL_CH8_OFFSET 16 |
| 430 | #define APBH_DEVSEL_CH7_MASK (0x3 << 14) |
| 431 | #define APBH_DEVSEL_CH7_OFFSET 14 |
| 432 | #define APBH_DEVSEL_CH6_MASK (0x3 << 12) |
| 433 | #define APBH_DEVSEL_CH6_OFFSET 12 |
| 434 | #define APBH_DEVSEL_CH5_MASK (0x3 << 10) |
| 435 | #define APBH_DEVSEL_CH5_OFFSET 10 |
| 436 | #define APBH_DEVSEL_CH4_MASK (0x3 << 8) |
| 437 | #define APBH_DEVSEL_CH4_OFFSET 8 |
| 438 | #define APBH_DEVSEL_CH3_MASK (0x3 << 6) |
| 439 | #define APBH_DEVSEL_CH3_OFFSET 6 |
| 440 | #define APBH_DEVSEL_CH2_MASK (0x3 << 4) |
| 441 | #define APBH_DEVSEL_CH2_OFFSET 4 |
| 442 | #define APBH_DEVSEL_CH1_MASK (0x3 << 2) |
| 443 | #define APBH_DEVSEL_CH1_OFFSET 2 |
| 444 | #define APBH_DEVSEL_CH0_MASK (0x3 << 0) |
| 445 | #define APBH_DEVSEL_CH0_OFFSET 0 |
Marek Vasut | 0e5c05e | 2013-01-22 15:01:00 +0000 | [diff] [blame] | 446 | #endif |
Marek Vasut | 31650d6 | 2011-11-08 23:18:15 +0000 | [diff] [blame] | 447 | |
Marek Vasut | 0e5c05e | 2013-01-22 15:01:00 +0000 | [diff] [blame] | 448 | #if defined(CONFIG_MX28) |
Marek Vasut | 31650d6 | 2011-11-08 23:18:15 +0000 | [diff] [blame] | 449 | #define APBH_DMA_BURST_SIZE_CH15_MASK (0x3 << 30) |
| 450 | #define APBH_DMA_BURST_SIZE_CH15_OFFSET 30 |
| 451 | #define APBH_DMA_BURST_SIZE_CH14_MASK (0x3 << 28) |
| 452 | #define APBH_DMA_BURST_SIZE_CH14_OFFSET 28 |
| 453 | #define APBH_DMA_BURST_SIZE_CH13_MASK (0x3 << 26) |
| 454 | #define APBH_DMA_BURST_SIZE_CH13_OFFSET 26 |
| 455 | #define APBH_DMA_BURST_SIZE_CH12_MASK (0x3 << 24) |
| 456 | #define APBH_DMA_BURST_SIZE_CH12_OFFSET 24 |
| 457 | #define APBH_DMA_BURST_SIZE_CH11_MASK (0x3 << 22) |
| 458 | #define APBH_DMA_BURST_SIZE_CH11_OFFSET 22 |
| 459 | #define APBH_DMA_BURST_SIZE_CH10_MASK (0x3 << 20) |
| 460 | #define APBH_DMA_BURST_SIZE_CH10_OFFSET 20 |
| 461 | #define APBH_DMA_BURST_SIZE_CH9_MASK (0x3 << 18) |
| 462 | #define APBH_DMA_BURST_SIZE_CH9_OFFSET 18 |
| 463 | #define APBH_DMA_BURST_SIZE_CH8_MASK (0x3 << 16) |
| 464 | #define APBH_DMA_BURST_SIZE_CH8_OFFSET 16 |
| 465 | #define APBH_DMA_BURST_SIZE_CH8_BURST0 (0x0 << 16) |
| 466 | #define APBH_DMA_BURST_SIZE_CH8_BURST4 (0x1 << 16) |
| 467 | #define APBH_DMA_BURST_SIZE_CH8_BURST8 (0x2 << 16) |
| 468 | #define APBH_DMA_BURST_SIZE_CH7_MASK (0x3 << 14) |
| 469 | #define APBH_DMA_BURST_SIZE_CH7_OFFSET 14 |
| 470 | #define APBH_DMA_BURST_SIZE_CH6_MASK (0x3 << 12) |
| 471 | #define APBH_DMA_BURST_SIZE_CH6_OFFSET 12 |
| 472 | #define APBH_DMA_BURST_SIZE_CH5_MASK (0x3 << 10) |
| 473 | #define APBH_DMA_BURST_SIZE_CH5_OFFSET 10 |
| 474 | #define APBH_DMA_BURST_SIZE_CH4_MASK (0x3 << 8) |
| 475 | #define APBH_DMA_BURST_SIZE_CH4_OFFSET 8 |
| 476 | #define APBH_DMA_BURST_SIZE_CH3_MASK (0x3 << 6) |
| 477 | #define APBH_DMA_BURST_SIZE_CH3_OFFSET 6 |
| 478 | #define APBH_DMA_BURST_SIZE_CH3_BURST0 (0x0 << 6) |
| 479 | #define APBH_DMA_BURST_SIZE_CH3_BURST4 (0x1 << 6) |
| 480 | #define APBH_DMA_BURST_SIZE_CH3_BURST8 (0x2 << 6) |
| 481 | |
| 482 | #define APBH_DMA_BURST_SIZE_CH2_MASK (0x3 << 4) |
| 483 | #define APBH_DMA_BURST_SIZE_CH2_OFFSET 4 |
| 484 | #define APBH_DMA_BURST_SIZE_CH2_BURST0 (0x0 << 4) |
| 485 | #define APBH_DMA_BURST_SIZE_CH2_BURST4 (0x1 << 4) |
| 486 | #define APBH_DMA_BURST_SIZE_CH2_BURST8 (0x2 << 4) |
| 487 | #define APBH_DMA_BURST_SIZE_CH1_MASK (0x3 << 2) |
| 488 | #define APBH_DMA_BURST_SIZE_CH1_OFFSET 2 |
| 489 | #define APBH_DMA_BURST_SIZE_CH1_BURST0 (0x0 << 2) |
| 490 | #define APBH_DMA_BURST_SIZE_CH1_BURST4 (0x1 << 2) |
| 491 | #define APBH_DMA_BURST_SIZE_CH1_BURST8 (0x2 << 2) |
| 492 | |
| 493 | #define APBH_DMA_BURST_SIZE_CH0_MASK 0x3 |
| 494 | #define APBH_DMA_BURST_SIZE_CH0_OFFSET 0 |
| 495 | #define APBH_DMA_BURST_SIZE_CH0_BURST0 0x0 |
| 496 | #define APBH_DMA_BURST_SIZE_CH0_BURST4 0x1 |
| 497 | #define APBH_DMA_BURST_SIZE_CH0_BURST8 0x2 |
| 498 | |
| 499 | #define APBH_DEBUG_GPMI_ONE_FIFO (1 << 0) |
Marek Vasut | 0e5c05e | 2013-01-22 15:01:00 +0000 | [diff] [blame] | 500 | #endif |
Marek Vasut | 31650d6 | 2011-11-08 23:18:15 +0000 | [diff] [blame] | 501 | |
| 502 | #define APBH_CHn_CURCMDAR_CMD_ADDR_MASK 0xffffffff |
| 503 | #define APBH_CHn_CURCMDAR_CMD_ADDR_OFFSET 0 |
| 504 | |
| 505 | #define APBH_CHn_NXTCMDAR_CMD_ADDR_MASK 0xffffffff |
| 506 | #define APBH_CHn_NXTCMDAR_CMD_ADDR_OFFSET 0 |
| 507 | |
| 508 | #define APBH_CHn_CMD_XFER_COUNT_MASK (0xffff << 16) |
| 509 | #define APBH_CHn_CMD_XFER_COUNT_OFFSET 16 |
| 510 | #define APBH_CHn_CMD_CMDWORDS_MASK (0xf << 12) |
| 511 | #define APBH_CHn_CMD_CMDWORDS_OFFSET 12 |
| 512 | #define APBH_CHn_CMD_HALTONTERMINATE (1 << 8) |
| 513 | #define APBH_CHn_CMD_WAIT4ENDCMD (1 << 7) |
| 514 | #define APBH_CHn_CMD_SEMAPHORE (1 << 6) |
| 515 | #define APBH_CHn_CMD_NANDWAIT4READY (1 << 5) |
| 516 | #define APBH_CHn_CMD_NANDLOCK (1 << 4) |
| 517 | #define APBH_CHn_CMD_IRQONCMPLT (1 << 3) |
| 518 | #define APBH_CHn_CMD_CHAIN (1 << 2) |
| 519 | #define APBH_CHn_CMD_COMMAND_MASK 0x3 |
| 520 | #define APBH_CHn_CMD_COMMAND_OFFSET 0 |
| 521 | #define APBH_CHn_CMD_COMMAND_NO_DMA_XFER 0x0 |
| 522 | #define APBH_CHn_CMD_COMMAND_DMA_WRITE 0x1 |
| 523 | #define APBH_CHn_CMD_COMMAND_DMA_READ 0x2 |
| 524 | #define APBH_CHn_CMD_COMMAND_DMA_SENSE 0x3 |
| 525 | |
| 526 | #define APBH_CHn_BAR_ADDRESS_MASK 0xffffffff |
| 527 | #define APBH_CHn_BAR_ADDRESS_OFFSET 0 |
| 528 | |
| 529 | #define APBH_CHn_SEMA_RSVD2_MASK (0xff << 24) |
| 530 | #define APBH_CHn_SEMA_RSVD2_OFFSET 24 |
| 531 | #define APBH_CHn_SEMA_PHORE_MASK (0xff << 16) |
| 532 | #define APBH_CHn_SEMA_PHORE_OFFSET 16 |
| 533 | #define APBH_CHn_SEMA_RSVD1_MASK (0xff << 8) |
| 534 | #define APBH_CHn_SEMA_RSVD1_OFFSET 8 |
| 535 | #define APBH_CHn_SEMA_INCREMENT_SEMA_MASK (0xff << 0) |
| 536 | #define APBH_CHn_SEMA_INCREMENT_SEMA_OFFSET 0 |
| 537 | |
| 538 | #define APBH_CHn_DEBUG1_REQ (1 << 31) |
| 539 | #define APBH_CHn_DEBUG1_BURST (1 << 30) |
| 540 | #define APBH_CHn_DEBUG1_KICK (1 << 29) |
| 541 | #define APBH_CHn_DEBUG1_END (1 << 28) |
| 542 | #define APBH_CHn_DEBUG1_SENSE (1 << 27) |
| 543 | #define APBH_CHn_DEBUG1_READY (1 << 26) |
| 544 | #define APBH_CHn_DEBUG1_LOCK (1 << 25) |
| 545 | #define APBH_CHn_DEBUG1_NEXTCMDADDRVALID (1 << 24) |
| 546 | #define APBH_CHn_DEBUG1_RD_FIFO_EMPTY (1 << 23) |
| 547 | #define APBH_CHn_DEBUG1_RD_FIFO_FULL (1 << 22) |
| 548 | #define APBH_CHn_DEBUG1_WR_FIFO_EMPTY (1 << 21) |
| 549 | #define APBH_CHn_DEBUG1_WR_FIFO_FULL (1 << 20) |
| 550 | #define APBH_CHn_DEBUG1_RSVD1_MASK (0x7fff << 5) |
| 551 | #define APBH_CHn_DEBUG1_RSVD1_OFFSET 5 |
| 552 | #define APBH_CHn_DEBUG1_STATEMACHINE_MASK 0x1f |
| 553 | #define APBH_CHn_DEBUG1_STATEMACHINE_OFFSET 0 |
| 554 | #define APBH_CHn_DEBUG1_STATEMACHINE_IDLE 0x00 |
| 555 | #define APBH_CHn_DEBUG1_STATEMACHINE_REQ_CMD1 0x01 |
| 556 | #define APBH_CHn_DEBUG1_STATEMACHINE_REQ_CMD3 0x02 |
| 557 | #define APBH_CHn_DEBUG1_STATEMACHINE_REQ_CMD2 0x03 |
| 558 | #define APBH_CHn_DEBUG1_STATEMACHINE_XFER_DECODE 0x04 |
| 559 | #define APBH_CHn_DEBUG1_STATEMACHINE_REQ_WAIT 0x05 |
| 560 | #define APBH_CHn_DEBUG1_STATEMACHINE_REQ_CMD4 0x06 |
| 561 | #define APBH_CHn_DEBUG1_STATEMACHINE_PIO_REQ 0x07 |
| 562 | #define APBH_CHn_DEBUG1_STATEMACHINE_READ_FLUSH 0x08 |
| 563 | #define APBH_CHn_DEBUG1_STATEMACHINE_READ_WAIT 0x09 |
| 564 | #define APBH_CHn_DEBUG1_STATEMACHINE_WRITE 0x0c |
| 565 | #define APBH_CHn_DEBUG1_STATEMACHINE_READ_REQ 0x0d |
| 566 | #define APBH_CHn_DEBUG1_STATEMACHINE_CHECK_CHAIN 0x0e |
| 567 | #define APBH_CHn_DEBUG1_STATEMACHINE_XFER_COMPLETE 0x0f |
| 568 | #define APBH_CHn_DEBUG1_STATEMACHINE_TERMINATE 0x14 |
| 569 | #define APBH_CHn_DEBUG1_STATEMACHINE_WAIT_END 0x15 |
| 570 | #define APBH_CHn_DEBUG1_STATEMACHINE_WRITE_WAIT 0x1c |
| 571 | #define APBH_CHn_DEBUG1_STATEMACHINE_HALT_AFTER_TERM 0x1d |
| 572 | #define APBH_CHn_DEBUG1_STATEMACHINE_CHECK_WAIT 0x1e |
| 573 | #define APBH_CHn_DEBUG1_STATEMACHINE_WAIT_READY 0x1f |
| 574 | |
| 575 | #define APBH_CHn_DEBUG2_APB_BYTES_MASK (0xffff << 16) |
| 576 | #define APBH_CHn_DEBUG2_APB_BYTES_OFFSET 16 |
| 577 | #define APBH_CHn_DEBUG2_AHB_BYTES_MASK 0xffff |
| 578 | #define APBH_CHn_DEBUG2_AHB_BYTES_OFFSET 0 |
| 579 | |
| 580 | #define APBH_VERSION_MAJOR_MASK (0xff << 24) |
| 581 | #define APBH_VERSION_MAJOR_OFFSET 24 |
| 582 | #define APBH_VERSION_MINOR_MASK (0xff << 16) |
| 583 | #define APBH_VERSION_MINOR_OFFSET 16 |
| 584 | #define APBH_VERSION_STEP_MASK 0xffff |
| 585 | #define APBH_VERSION_STEP_OFFSET 0 |
| 586 | |
| 587 | #endif /* __REGS_APBH_H__ */ |