OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (c) 2009 NVIDIA Corporation. |
| 3 * All rights reserved. |
| 4 * |
| 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: |
| 7 * |
| 8 * Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. |
| 10 * |
| 11 * Redistributions in binary form must reproduce the above copyright notice, |
| 12 * this list of conditions and the following disclaimer in the documentation |
| 13 * and/or other materials provided with the distribution. |
| 14 * |
| 15 * Neither the name of the NVIDIA Corporation nor the names of its contributors |
| 16 * may be used to endorse or promote products derived from this software |
| 17 * without specific prior written permission. |
| 18 * |
| 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
| 23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 29 * POSSIBILITY OF SUCH DAMAGE. |
| 30 * |
| 31 */ |
| 32 // |
| 33 // DO NOT EDIT - generated by simspec! |
| 34 // |
| 35 |
| 36 #ifndef ___AROWR_H_INC_ |
| 37 #define ___AROWR_H_INC_ |
| 38 #define OWR_TX_FIFO_DEPTH 32 |
| 39 #define OWR_RX_FIFO_DEPTH 32 |
| 40 |
| 41 // Register OWR_CONTROL_0 |
| 42 #define OWR_CONTROL_0 _MK_ADDR_CONST(0x0) |
| 43 #define OWR_CONTROL_0_SECURE 0x0 |
| 44 #define OWR_CONTROL_0_WORD_COUNT 0x1 |
| 45 #define OWR_CONTROL_0_RESET_VAL _MK_MASK_CONST(0x0) |
| 46 #define OWR_CONTROL_0_RESET_MASK _MK_MASK_CONST(0xfffffff
f) |
| 47 #define OWR_CONTROL_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0) |
| 48 #define OWR_CONTROL_0_SW_DEFAULT_MASK _MK_MASK_CONST(0x0) |
| 49 #define OWR_CONTROL_0_READ_MASK _MK_MASK_CONST(0xfffffff
f) |
| 50 #define OWR_CONTROL_0_WRITE_MASK _MK_MASK_CONST(0xfffffff
f) |
| 51 //Generate Reset Presence Pulse |
| 52 //write only bit |
| 53 //read to this register will return 0 |
| 54 //bit should be programed after all the registers are programed |
| 55 #define OWR_CONTROL_0_GO_SHIFT _MK_SHIFT_CONST(0) |
| 56 #define OWR_CONTROL_0_GO_FIELD (_MK_MASK_CONST(0x1) << OWR_CONT
ROL_0_GO_SHIFT) |
| 57 #define OWR_CONTROL_0_GO_RANGE 0:0 |
| 58 #define OWR_CONTROL_0_GO_WOFFSET 0x0 |
| 59 #define OWR_CONTROL_0_GO_DEFAULT _MK_MASK_CONST(0x0) |
| 60 #define OWR_CONTROL_0_GO_DEFAULT_MASK _MK_MASK_CONST(0x1) |
| 61 #define OWR_CONTROL_0_GO_SW_DEFAULT _MK_MASK_CONST(0x0) |
| 62 #define OWR_CONTROL_0_GO_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 63 #define OWR_CONTROL_0_GO_NO_PRESENCE_PULSE _MK_ENUM_CONST(0
) |
| 64 #define OWR_CONTROL_0_GO_START_PRESENCE_PULSE _MK_ENUM_CONST(1
) |
| 65 |
| 66 // when set, dq is driven to low by master before the slave does |
| 67 // clearing this bit disables the ppm |
| 68 #define OWR_CONTROL_0_PRESENCE_PULSE_MASKING_SHIFT _MK_SHIF
T_CONST(1) |
| 69 #define OWR_CONTROL_0_PRESENCE_PULSE_MASKING_FIELD (_MK_MAS
K_CONST(0x1) << OWR_CONTROL_0_PRESENCE_PULSE_MASKING_SHIFT) |
| 70 #define OWR_CONTROL_0_PRESENCE_PULSE_MASKING_RANGE 1:1 |
| 71 #define OWR_CONTROL_0_PRESENCE_PULSE_MASKING_WOFFSET 0x0 |
| 72 #define OWR_CONTROL_0_PRESENCE_PULSE_MASKING_DEFAULT _MK_MASK
_CONST(0x0) |
| 73 #define OWR_CONTROL_0_PRESENCE_PULSE_MASKING_DEFAULT_MASK
_MK_MASK_CONST(0x1) |
| 74 #define OWR_CONTROL_0_PRESENCE_PULSE_MASKING_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 75 #define OWR_CONTROL_0_PRESENCE_PULSE_MASKING_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 76 #define OWR_CONTROL_0_PRESENCE_PULSE_MASKING_NO_PPM _MK_ENUM
_CONST(0) |
| 77 #define OWR_CONTROL_0_PRESENCE_PULSE_MASKING_START_PPM _MK_ENUM
_CONST(1) |
| 78 |
| 79 // if set to 1 data transfer is done bit by bit |
| 80 // if set to 0 data transfer is done through byte |
| 81 #define OWR_CONTROL_0_DATA_TRANSFER_MODE_SHIFT _MK_SHIFT_CONST(
2) |
| 82 #define OWR_CONTROL_0_DATA_TRANSFER_MODE_FIELD (_MK_MASK_CONST(
0x1) << OWR_CONTROL_0_DATA_TRANSFER_MODE_SHIFT) |
| 83 #define OWR_CONTROL_0_DATA_TRANSFER_MODE_RANGE 2:2 |
| 84 #define OWR_CONTROL_0_DATA_TRANSFER_MODE_WOFFSET 0x0 |
| 85 #define OWR_CONTROL_0_DATA_TRANSFER_MODE_DEFAULT _MK_MASK
_CONST(0x0) |
| 86 #define OWR_CONTROL_0_DATA_TRANSFER_MODE_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 87 #define OWR_CONTROL_0_DATA_TRANSFER_MODE_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 88 #define OWR_CONTROL_0_DATA_TRANSFER_MODE_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 89 #define OWR_CONTROL_0_DATA_TRANSFER_MODE_BYTE_TRANSFER_MODE
_MK_ENUM_CONST(0) |
| 90 #define OWR_CONTROL_0_DATA_TRANSFER_MODE_BIT_TRANSFER_MODE
_MK_ENUM_CONST(1) |
| 91 |
| 92 // if set to 1 16bit crc is executed |
| 93 // if set to 0 8bit crc is executed |
| 94 #define OWR_CONTROL_0_CRC_16BIT_EN_SHIFT _MK_SHIFT_CONST(
3) |
| 95 #define OWR_CONTROL_0_CRC_16BIT_EN_FIELD (_MK_MASK_CONST(
0x1) << OWR_CONTROL_0_CRC_16BIT_EN_SHIFT) |
| 96 #define OWR_CONTROL_0_CRC_16BIT_EN_RANGE 3:3 |
| 97 #define OWR_CONTROL_0_CRC_16BIT_EN_WOFFSET 0x0 |
| 98 #define OWR_CONTROL_0_CRC_16BIT_EN_DEFAULT _MK_MASK_CONST(0
x0) |
| 99 #define OWR_CONTROL_0_CRC_16BIT_EN_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 100 #define OWR_CONTROL_0_CRC_16BIT_EN_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 101 #define OWR_CONTROL_0_CRC_16BIT_EN_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 102 #define OWR_CONTROL_0_CRC_16BIT_EN_CRC_8BIT_EN _MK_ENUM_CONST(0
) |
| 103 #define OWR_CONTROL_0_CRC_16BIT_EN_CRC_16BIT_EN _MK_ENUM_CONST(1
) |
| 104 |
| 105 // Transmit fifo attention level |
| 106 // 000 = 1 word, fifo req is asserted when least one word empty in the fifo |
| 107 // 001 = 2 word, fifo req is asserted when least 2 words empty in the fifo |
| 108 // etc....... |
| 109 #define OWR_CONTROL_0_TX_FIFO_ATTEN_LEVEL_SHIFT _MK_SHIFT_CONST(
4) |
| 110 #define OWR_CONTROL_0_TX_FIFO_ATTEN_LEVEL_FIELD (_MK_MASK_CONST(
0x1f) << OWR_CONTROL_0_TX_FIFO_ATTEN_LEVEL_SHIFT) |
| 111 #define OWR_CONTROL_0_TX_FIFO_ATTEN_LEVEL_RANGE 8:4 |
| 112 #define OWR_CONTROL_0_TX_FIFO_ATTEN_LEVEL_WOFFSET 0x0 |
| 113 #define OWR_CONTROL_0_TX_FIFO_ATTEN_LEVEL_DEFAULT _MK_MASK
_CONST(0x0) |
| 114 #define OWR_CONTROL_0_TX_FIFO_ATTEN_LEVEL_DEFAULT_MASK _MK_MASK
_CONST(0x1f) |
| 115 #define OWR_CONTROL_0_TX_FIFO_ATTEN_LEVEL_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 116 #define OWR_CONTROL_0_TX_FIFO_ATTEN_LEVEL_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 117 |
| 118 // Receive fifo attention level |
| 119 // 000 = 1 word, fifo req is asserted when least one word full in the fifo |
| 120 // 001 = 2 word, fifo req is asserted when least 2 words full in the fifo |
| 121 // etc..... |
| 122 #define OWR_CONTROL_0_RX_FIFO_ATTEN_LEVEL_SHIFT _MK_SHIFT_CONST(
9) |
| 123 #define OWR_CONTROL_0_RX_FIFO_ATTEN_LEVEL_FIELD (_MK_MASK_CONST(
0x1f) << OWR_CONTROL_0_RX_FIFO_ATTEN_LEVEL_SHIFT) |
| 124 #define OWR_CONTROL_0_RX_FIFO_ATTEN_LEVEL_RANGE 13:9 |
| 125 #define OWR_CONTROL_0_RX_FIFO_ATTEN_LEVEL_WOFFSET 0x0 |
| 126 #define OWR_CONTROL_0_RX_FIFO_ATTEN_LEVEL_DEFAULT _MK_MASK
_CONST(0x0) |
| 127 #define OWR_CONTROL_0_RX_FIFO_ATTEN_LEVEL_DEFAULT_MASK _MK_MASK
_CONST(0x1f) |
| 128 #define OWR_CONTROL_0_RX_FIFO_ATTEN_LEVEL_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 129 #define OWR_CONTROL_0_RX_FIFO_ATTEN_LEVEL_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 130 |
| 131 //This bit is set to 1, if crc is required |
| 132 //for read memory cmd at end of memory |
| 133 #define OWR_CONTROL_0_RD_MEM_CRC_REQ_SHIFT _MK_SHIFT_CONST(
14) |
| 134 #define OWR_CONTROL_0_RD_MEM_CRC_REQ_FIELD (_MK_MASK_CONST(
0x1) << OWR_CONTROL_0_RD_MEM_CRC_REQ_SHIFT) |
| 135 #define OWR_CONTROL_0_RD_MEM_CRC_REQ_RANGE 14:14 |
| 136 #define OWR_CONTROL_0_RD_MEM_CRC_REQ_WOFFSET 0x0 |
| 137 #define OWR_CONTROL_0_RD_MEM_CRC_REQ_DEFAULT _MK_MASK_CONST(0
x0) |
| 138 #define OWR_CONTROL_0_RD_MEM_CRC_REQ_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 139 #define OWR_CONTROL_0_RD_MEM_CRC_REQ_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 140 #define OWR_CONTROL_0_RD_MEM_CRC_REQ_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 141 #define OWR_CONTROL_0_RD_MEM_CRC_REQ_NO_CRC_READ _MK_ENUM
_CONST(0) |
| 142 #define OWR_CONTROL_0_RD_MEM_CRC_REQ_CRC_READ _MK_ENUM_CONST(1
) |
| 143 |
| 144 //presence pulse sample clk, master samples the data_in |
| 145 //which should be less than or equal to (tpdl - 6) clks |
| 146 // 6 clks are used for dglitch, |
| 147 // if Deglitch bypassed 3 clks should be enough |
| 148 #define OWR_CONTROL_0_PRESENCE_SAMPLE_CLK_SHIFT _MK_SHIFT_CONST(
15) |
| 149 #define OWR_CONTROL_0_PRESENCE_SAMPLE_CLK_FIELD (_MK_MASK_CONST(
0xff) << OWR_CONTROL_0_PRESENCE_SAMPLE_CLK_SHIFT) |
| 150 #define OWR_CONTROL_0_PRESENCE_SAMPLE_CLK_RANGE 22:15 |
| 151 #define OWR_CONTROL_0_PRESENCE_SAMPLE_CLK_WOFFSET 0x0 |
| 152 #define OWR_CONTROL_0_PRESENCE_SAMPLE_CLK_DEFAULT _MK_MASK
_CONST(0x0) |
| 153 #define OWR_CONTROL_0_PRESENCE_SAMPLE_CLK_DEFAULT_MASK _MK_MASK
_CONST(0xff) |
| 154 #define OWR_CONTROL_0_PRESENCE_SAMPLE_CLK_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 155 #define OWR_CONTROL_0_PRESENCE_SAMPLE_CLK_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 156 |
| 157 //read data sample window, master samples the data_in |
| 158 //which should be less than or equal to (tlow1 - 6) clks |
| 159 // 6 clks are used for Deglitch, |
| 160 // if Deglitch bypassed 3 clks should be enough |
| 161 #define OWR_CONTROL_0_RD_DATA_SAMPLE_CLK_SHIFT _MK_SHIFT_CONST(
23) |
| 162 #define OWR_CONTROL_0_RD_DATA_SAMPLE_CLK_FIELD (_MK_MASK_CONST(
0xf) << OWR_CONTROL_0_RD_DATA_SAMPLE_CLK_SHIFT) |
| 163 #define OWR_CONTROL_0_RD_DATA_SAMPLE_CLK_RANGE 26:23 |
| 164 #define OWR_CONTROL_0_RD_DATA_SAMPLE_CLK_WOFFSET 0x0 |
| 165 #define OWR_CONTROL_0_RD_DATA_SAMPLE_CLK_DEFAULT _MK_MASK
_CONST(0x0) |
| 166 #define OWR_CONTROL_0_RD_DATA_SAMPLE_CLK_DEFAULT_MASK _MK_MASK
_CONST(0xf) |
| 167 #define OWR_CONTROL_0_RD_DATA_SAMPLE_CLK_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 168 #define OWR_CONTROL_0_RD_DATA_SAMPLE_CLK_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 169 |
| 170 // This bit is used to bypass the deglitch logic, |
| 171 // If 1, just takes the sync output |
| 172 // If 0, looks for any glitch in the sample window for at least 1us, |
| 173 // Deglitch requires a minimum of 6 clks(2 for sync, 2 for deglitch, |
| 174 // if glitch, checks for 2 more clks, still glitch exists, err interrupt is |
| 175 // asserted and data transfer should start from first) |
| 176 #define OWR_CONTROL_0_BY_PASS_DGLITCH_SHIFT _MK_SHIFT_CONST(
27) |
| 177 #define OWR_CONTROL_0_BY_PASS_DGLITCH_FIELD (_MK_MASK_CONST(
0x1) << OWR_CONTROL_0_BY_PASS_DGLITCH_SHIFT) |
| 178 #define OWR_CONTROL_0_BY_PASS_DGLITCH_RANGE 27:27 |
| 179 #define OWR_CONTROL_0_BY_PASS_DGLITCH_WOFFSET 0x0 |
| 180 #define OWR_CONTROL_0_BY_PASS_DGLITCH_DEFAULT _MK_MASK_CONST(0
x0) |
| 181 #define OWR_CONTROL_0_BY_PASS_DGLITCH_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 182 #define OWR_CONTROL_0_BY_PASS_DGLITCH_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 183 #define OWR_CONTROL_0_BY_PASS_DGLITCH_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 184 #define OWR_CONTROL_0_BY_PASS_DGLITCH_START_DGLITCH _MK_ENUM
_CONST(0) |
| 185 #define OWR_CONTROL_0_BY_PASS_DGLITCH_NO_DGLITCH _MK_ENUM
_CONST(1) |
| 186 |
| 187 // this bit is set to 1, if transfer needs to continue on crc err |
| 188 // else on err transfer stops, |
| 189 // and again transfer should start on setting rpp reset(go bit) |
| 190 #define OWR_CONTROL_0_BY_PASS_CRC_ERR_SHIFT _MK_SHIFT_CONST(
28) |
| 191 #define OWR_CONTROL_0_BY_PASS_CRC_ERR_FIELD (_MK_MASK_CONST(
0x1) << OWR_CONTROL_0_BY_PASS_CRC_ERR_SHIFT) |
| 192 #define OWR_CONTROL_0_BY_PASS_CRC_ERR_RANGE 28:28 |
| 193 #define OWR_CONTROL_0_BY_PASS_CRC_ERR_WOFFSET 0x0 |
| 194 #define OWR_CONTROL_0_BY_PASS_CRC_ERR_DEFAULT _MK_MASK_CONST(0
x0) |
| 195 #define OWR_CONTROL_0_BY_PASS_CRC_ERR_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 196 #define OWR_CONTROL_0_BY_PASS_CRC_ERR_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 197 #define OWR_CONTROL_0_BY_PASS_CRC_ERR_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 198 #define OWR_CONTROL_0_BY_PASS_CRC_ERR_STOP_TRANSFER_ON_CRC_ERR
_MK_ENUM_CONST(0) |
| 199 #define OWR_CONTROL_0_BY_PASS_CRC_ERR_CONTINUE_TRANSFER_ON_CRC_ERR
_MK_ENUM_CONST(1) |
| 200 |
| 201 // if 0 no transfer is done |
| 202 // if 1 write one time slot is executed |
| 203 //This bit is a write only |
| 204 //read to this register will return 0 |
| 205 #define OWR_CONTROL_0_WR1_BIT_SHIFT _MK_SHIFT_CONST(29) |
| 206 #define OWR_CONTROL_0_WR1_BIT_FIELD (_MK_MASK_CONST(0x1) <<
OWR_CONTROL_0_WR1_BIT_SHIFT) |
| 207 #define OWR_CONTROL_0_WR1_BIT_RANGE 29:29 |
| 208 #define OWR_CONTROL_0_WR1_BIT_WOFFSET 0x0 |
| 209 #define OWR_CONTROL_0_WR1_BIT_DEFAULT _MK_MASK_CONST(0x0) |
| 210 #define OWR_CONTROL_0_WR1_BIT_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 211 #define OWR_CONTROL_0_WR1_BIT_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 212 #define OWR_CONTROL_0_WR1_BIT_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 213 #define OWR_CONTROL_0_WR1_BIT_NO_TRANSFER _MK_ENUM_CONST(0
) |
| 214 #define OWR_CONTROL_0_WR1_BIT_TRANSFER_ONE _MK_ENUM_CONST(1
) |
| 215 |
| 216 // if 0 no transfer is done |
| 217 // if 1 write zero time slot is executed |
| 218 //write only bit |
| 219 //read to this register will return 0 |
| 220 #define OWR_CONTROL_0_WR0_BIT_SHIFT _MK_SHIFT_CONST(30) |
| 221 #define OWR_CONTROL_0_WR0_BIT_FIELD (_MK_MASK_CONST(0x1) <<
OWR_CONTROL_0_WR0_BIT_SHIFT) |
| 222 #define OWR_CONTROL_0_WR0_BIT_RANGE 30:30 |
| 223 #define OWR_CONTROL_0_WR0_BIT_WOFFSET 0x0 |
| 224 #define OWR_CONTROL_0_WR0_BIT_DEFAULT _MK_MASK_CONST(0x0) |
| 225 #define OWR_CONTROL_0_WR0_BIT_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 226 #define OWR_CONTROL_0_WR0_BIT_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 227 #define OWR_CONTROL_0_WR0_BIT_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 228 #define OWR_CONTROL_0_WR0_BIT_NO_TRANSFER _MK_ENUM_CONST(0
) |
| 229 #define OWR_CONTROL_0_WR0_BIT_TRANSFER_ZERO _MK_ENUM_CONST(1
) |
| 230 |
| 231 // if 0 no transfer is done |
| 232 // if 1 read time slot is executed |
| 233 //write only bit |
| 234 //read to this register will return 0 |
| 235 #define OWR_CONTROL_0_RD_BIT_SHIFT _MK_SHIFT_CONST(31) |
| 236 #define OWR_CONTROL_0_RD_BIT_FIELD (_MK_MASK_CONST(0x1) <<
OWR_CONTROL_0_RD_BIT_SHIFT) |
| 237 #define OWR_CONTROL_0_RD_BIT_RANGE 31:31 |
| 238 #define OWR_CONTROL_0_RD_BIT_WOFFSET 0x0 |
| 239 #define OWR_CONTROL_0_RD_BIT_DEFAULT _MK_MASK_CONST(0x0) |
| 240 #define OWR_CONTROL_0_RD_BIT_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 241 #define OWR_CONTROL_0_RD_BIT_SW_DEFAULT _MK_MASK_CONST(0x0) |
| 242 #define OWR_CONTROL_0_RD_BIT_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 243 #define OWR_CONTROL_0_RD_BIT_NO_TRANSFER _MK_ENUM_CONST(0
) |
| 244 #define OWR_CONTROL_0_RD_BIT_TRANSFER_READ_SLOT _MK_ENUM_CONST(1
) |
| 245 |
| 246 |
| 247 // Register OWR_COMMAND_0 |
| 248 #define OWR_COMMAND_0 _MK_ADDR_CONST(0x4) |
| 249 #define OWR_COMMAND_0_SECURE 0x0 |
| 250 #define OWR_COMMAND_0_WORD_COUNT 0x1 |
| 251 #define OWR_COMMAND_0_RESET_VAL _MK_MASK_CONST(0x0) |
| 252 #define OWR_COMMAND_0_RESET_MASK _MK_MASK_CONST(0xfffffff
f) |
| 253 #define OWR_COMMAND_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0) |
| 254 #define OWR_COMMAND_0_SW_DEFAULT_MASK _MK_MASK_CONST(0x0) |
| 255 #define OWR_COMMAND_0_READ_MASK _MK_MASK_CONST(0xfffffff
f) |
| 256 #define OWR_COMMAND_0_WRITE_MASK _MK_MASK_CONST(0xfffffff
f) |
| 257 //1-wire ROM commands |
| 258 #define OWR_COMMAND_0_ROM_CMD_SHIFT _MK_SHIFT_CONST(0) |
| 259 #define OWR_COMMAND_0_ROM_CMD_FIELD (_MK_MASK_CONST(0xff) <<
OWR_COMMAND_0_ROM_CMD_SHIFT) |
| 260 #define OWR_COMMAND_0_ROM_CMD_RANGE 7:0 |
| 261 #define OWR_COMMAND_0_ROM_CMD_WOFFSET 0x0 |
| 262 #define OWR_COMMAND_0_ROM_CMD_DEFAULT _MK_MASK_CONST(0x0) |
| 263 #define OWR_COMMAND_0_ROM_CMD_DEFAULT_MASK _MK_MASK_CONST(0
xff) |
| 264 #define OWR_COMMAND_0_ROM_CMD_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 265 #define OWR_COMMAND_0_ROM_CMD_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 266 |
| 267 //1-wire MEM commands |
| 268 #define OWR_COMMAND_0_MEM_CMD_SHIFT _MK_SHIFT_CONST(8) |
| 269 #define OWR_COMMAND_0_MEM_CMD_FIELD (_MK_MASK_CONST(0xff) <<
OWR_COMMAND_0_MEM_CMD_SHIFT) |
| 270 #define OWR_COMMAND_0_MEM_CMD_RANGE 15:8 |
| 271 #define OWR_COMMAND_0_MEM_CMD_WOFFSET 0x0 |
| 272 #define OWR_COMMAND_0_MEM_CMD_DEFAULT _MK_MASK_CONST(0x0) |
| 273 #define OWR_COMMAND_0_MEM_CMD_DEFAULT_MASK _MK_MASK_CONST(0
xff) |
| 274 #define OWR_COMMAND_0_MEM_CMD_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 275 #define OWR_COMMAND_0_MEM_CMD_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 276 |
| 277 //Eprom Starting Address[15:0] to write/read data into Eprom |
| 278 #define OWR_COMMAND_0_MEM_ADDR_SHIFT _MK_SHIFT_CONST(16) |
| 279 #define OWR_COMMAND_0_MEM_ADDR_FIELD (_MK_MASK_CONST(0xffff)
<< OWR_COMMAND_0_MEM_ADDR_SHIFT) |
| 280 #define OWR_COMMAND_0_MEM_ADDR_RANGE 31:16 |
| 281 #define OWR_COMMAND_0_MEM_ADDR_WOFFSET 0x0 |
| 282 #define OWR_COMMAND_0_MEM_ADDR_DEFAULT _MK_MASK_CONST(0x0) |
| 283 #define OWR_COMMAND_0_MEM_ADDR_DEFAULT_MASK _MK_MASK_CONST(0
xffff) |
| 284 #define OWR_COMMAND_0_MEM_ADDR_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 285 #define OWR_COMMAND_0_MEM_ADDR_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 286 |
| 287 |
| 288 // Register OWR_EPROM_0 |
| 289 #define OWR_EPROM_0 _MK_ADDR_CONST(0x8) |
| 290 #define OWR_EPROM_0_SECURE 0x0 |
| 291 #define OWR_EPROM_0_WORD_COUNT 0x1 |
| 292 #define OWR_EPROM_0_RESET_VAL _MK_MASK_CONST(0x0) |
| 293 #define OWR_EPROM_0_RESET_MASK _MK_MASK_CONST(0xffffffff) |
| 294 #define OWR_EPROM_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0) |
| 295 #define OWR_EPROM_0_SW_DEFAULT_MASK _MK_MASK_CONST(0x0) |
| 296 #define OWR_EPROM_0_READ_MASK _MK_MASK_CONST(0xffffffff) |
| 297 #define OWR_EPROM_0_WRITE_MASK _MK_MASK_CONST(0xffffffff) |
| 298 // Num of Eprom memory bytes to transfer, |
| 299 // Mem_Addr - Eprom end address |
| 300 #define OWR_EPROM_0_MEMORY_BYTES_TRANSFER_SHIFT _MK_SHIFT_CONST(
0) |
| 301 #define OWR_EPROM_0_MEMORY_BYTES_TRANSFER_FIELD (_MK_MASK_CONST(
0xffff) << OWR_EPROM_0_MEMORY_BYTES_TRANSFER_SHIFT) |
| 302 #define OWR_EPROM_0_MEMORY_BYTES_TRANSFER_RANGE 15:0 |
| 303 #define OWR_EPROM_0_MEMORY_BYTES_TRANSFER_WOFFSET 0x0 |
| 304 #define OWR_EPROM_0_MEMORY_BYTES_TRANSFER_DEFAULT _MK_MASK
_CONST(0x0) |
| 305 #define OWR_EPROM_0_MEMORY_BYTES_TRANSFER_DEFAULT_MASK _MK_MASK
_CONST(0xffff) |
| 306 #define OWR_EPROM_0_MEMORY_BYTES_TRANSFER_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 307 #define OWR_EPROM_0_MEMORY_BYTES_TRANSFER_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 308 |
| 309 // Num of Eprom Status bytes to transfer, |
| 310 // Mem_Addr - Status bytes end address |
| 311 #define OWR_EPROM_0_STATUS_BYTES_TRANSFER_SHIFT _MK_SHIFT_CONST(
16) |
| 312 #define OWR_EPROM_0_STATUS_BYTES_TRANSFER_FIELD (_MK_MASK_CONST(
0xffff) << OWR_EPROM_0_STATUS_BYTES_TRANSFER_SHIFT) |
| 313 #define OWR_EPROM_0_STATUS_BYTES_TRANSFER_RANGE 31:16 |
| 314 #define OWR_EPROM_0_STATUS_BYTES_TRANSFER_WOFFSET 0x0 |
| 315 #define OWR_EPROM_0_STATUS_BYTES_TRANSFER_DEFAULT _MK_MASK
_CONST(0x0) |
| 316 #define OWR_EPROM_0_STATUS_BYTES_TRANSFER_DEFAULT_MASK _MK_MASK
_CONST(0xffff) |
| 317 #define OWR_EPROM_0_STATUS_BYTES_TRANSFER_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 318 #define OWR_EPROM_0_STATUS_BYTES_TRANSFER_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 319 |
| 320 |
| 321 // Register OWR_WR_RD_TCTL_0 |
| 322 #define OWR_WR_RD_TCTL_0 _MK_ADDR_CONST(0xc) |
| 323 #define OWR_WR_RD_TCTL_0_SECURE 0x0 |
| 324 #define OWR_WR_RD_TCTL_0_WORD_COUNT 0x1 |
| 325 #define OWR_WR_RD_TCTL_0_RESET_VAL _MK_MASK_CONST(0x0) |
| 326 #define OWR_WR_RD_TCTL_0_RESET_MASK _MK_MASK_CONST(0x3ffffff
f) |
| 327 #define OWR_WR_RD_TCTL_0_SW_DEFAULT_VAL _MK_MASK_CONST(0
x0) |
| 328 #define OWR_WR_RD_TCTL_0_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 329 #define OWR_WR_RD_TCTL_0_READ_MASK _MK_MASK_CONST(0x3ffffff
f) |
| 330 #define OWR_WR_RD_TCTL_0_WRITE_MASK _MK_MASK_CONST(0x3ffffff
f) |
| 331 // Active time slot for write or read data, |
| 332 // Tslot = N+1 owr clks, Range = 60 <= tslot < 120 |
| 333 #define OWR_WR_RD_TCTL_0_TSLOT_SHIFT _MK_SHIFT_CONST(0) |
| 334 #define OWR_WR_RD_TCTL_0_TSLOT_FIELD (_MK_MASK_CONST(0x7f) <<
OWR_WR_RD_TCTL_0_TSLOT_SHIFT) |
| 335 #define OWR_WR_RD_TCTL_0_TSLOT_RANGE 6:0 |
| 336 #define OWR_WR_RD_TCTL_0_TSLOT_WOFFSET 0x0 |
| 337 #define OWR_WR_RD_TCTL_0_TSLOT_DEFAULT _MK_MASK_CONST(0x0) |
| 338 #define OWR_WR_RD_TCTL_0_TSLOT_DEFAULT_MASK _MK_MASK_CONST(0
x7f) |
| 339 #define OWR_WR_RD_TCTL_0_TSLOT_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 340 #define OWR_WR_RD_TCTL_0_TSLOT_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 341 |
| 342 // Write one time Low, or TLOWR both are same |
| 343 // Tlow1 = N+1 owr clks, Range = 1 <= tlow1 < 15 |
| 344 // TlowR = N+1 owr clks, Range = 1 <= tlowR < 15 |
| 345 #define OWR_WR_RD_TCTL_0_TLOW1_SHIFT _MK_SHIFT_CONST(7) |
| 346 #define OWR_WR_RD_TCTL_0_TLOW1_FIELD (_MK_MASK_CONST(0xf) <<
OWR_WR_RD_TCTL_0_TLOW1_SHIFT) |
| 347 #define OWR_WR_RD_TCTL_0_TLOW1_RANGE 10:7 |
| 348 #define OWR_WR_RD_TCTL_0_TLOW1_WOFFSET 0x0 |
| 349 #define OWR_WR_RD_TCTL_0_TLOW1_DEFAULT _MK_MASK_CONST(0x0) |
| 350 #define OWR_WR_RD_TCTL_0_TLOW1_DEFAULT_MASK _MK_MASK_CONST(0
xf) |
| 351 #define OWR_WR_RD_TCTL_0_TLOW1_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 352 #define OWR_WR_RD_TCTL_0_TLOW1_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 353 |
| 354 // Write Zero time Low, |
| 355 // Tlow0 = N+1 owr clks, Range = 60 <= tlow0 < tslot < 120 |
| 356 #define OWR_WR_RD_TCTL_0_TLOW0_SHIFT _MK_SHIFT_CONST(11) |
| 357 #define OWR_WR_RD_TCTL_0_TLOW0_FIELD (_MK_MASK_CONST(0x7f) <<
OWR_WR_RD_TCTL_0_TLOW0_SHIFT) |
| 358 #define OWR_WR_RD_TCTL_0_TLOW0_RANGE 17:11 |
| 359 #define OWR_WR_RD_TCTL_0_TLOW0_WOFFSET 0x0 |
| 360 #define OWR_WR_RD_TCTL_0_TLOW0_DEFAULT _MK_MASK_CONST(0x0) |
| 361 #define OWR_WR_RD_TCTL_0_TLOW0_DEFAULT_MASK _MK_MASK_CONST(0
x7f) |
| 362 #define OWR_WR_RD_TCTL_0_TLOW0_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 363 #define OWR_WR_RD_TCTL_0_TLOW0_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 364 |
| 365 // Read data valid time, |
| 366 // Trdv = N+1 owr clks, Range = Exactly 15 |
| 367 #define OWR_WR_RD_TCTL_0_TRDV_SHIFT _MK_SHIFT_CONST(18) |
| 368 #define OWR_WR_RD_TCTL_0_TRDV_FIELD (_MK_MASK_CONST(0xf) <<
OWR_WR_RD_TCTL_0_TRDV_SHIFT) |
| 369 #define OWR_WR_RD_TCTL_0_TRDV_RANGE 21:18 |
| 370 #define OWR_WR_RD_TCTL_0_TRDV_WOFFSET 0x0 |
| 371 #define OWR_WR_RD_TCTL_0_TRDV_DEFAULT _MK_MASK_CONST(0x0) |
| 372 #define OWR_WR_RD_TCTL_0_TRDV_DEFAULT_MASK _MK_MASK_CONST(0
xf) |
| 373 #define OWR_WR_RD_TCTL_0_TRDV_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 374 #define OWR_WR_RD_TCTL_0_TRDV_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 375 |
| 376 // Release 1-wire Time, |
| 377 // Trelease = N owr clks, Range = 0 <= trelease < 45 |
| 378 #define OWR_WR_RD_TCTL_0_TRELEASE_SHIFT _MK_SHIFT_CONST(22) |
| 379 #define OWR_WR_RD_TCTL_0_TRELEASE_FIELD (_MK_MASK_CONST(0x3f) <<
OWR_WR_RD_TCTL_0_TRELEASE_SHIFT) |
| 380 #define OWR_WR_RD_TCTL_0_TRELEASE_RANGE 27:22 |
| 381 #define OWR_WR_RD_TCTL_0_TRELEASE_WOFFSET 0x0 |
| 382 #define OWR_WR_RD_TCTL_0_TRELEASE_DEFAULT _MK_MASK_CONST(0
x0) |
| 383 #define OWR_WR_RD_TCTL_0_TRELEASE_DEFAULT_MASK _MK_MASK_CONST(0
x3f) |
| 384 #define OWR_WR_RD_TCTL_0_TRELEASE_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 385 #define OWR_WR_RD_TCTL_0_TRELEASE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 386 |
| 387 // Read Data Setup, |
| 388 // Tsu = N owr clks, Range = tsu < 1 |
| 389 #define OWR_WR_RD_TCTL_0_TSU_SHIFT _MK_SHIFT_CONST(28) |
| 390 #define OWR_WR_RD_TCTL_0_TSU_FIELD (_MK_MASK_CONST(0x3) <<
OWR_WR_RD_TCTL_0_TSU_SHIFT) |
| 391 #define OWR_WR_RD_TCTL_0_TSU_RANGE 29:28 |
| 392 #define OWR_WR_RD_TCTL_0_TSU_WOFFSET 0x0 |
| 393 #define OWR_WR_RD_TCTL_0_TSU_DEFAULT _MK_MASK_CONST(0x0) |
| 394 #define OWR_WR_RD_TCTL_0_TSU_DEFAULT_MASK _MK_MASK_CONST(0
x3) |
| 395 #define OWR_WR_RD_TCTL_0_TSU_SW_DEFAULT _MK_MASK_CONST(0x0) |
| 396 #define OWR_WR_RD_TCTL_0_TSU_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 397 |
| 398 |
| 399 // Register OWR_RST_PRESENCE_TCTL_0 |
| 400 #define OWR_RST_PRESENCE_TCTL_0 _MK_ADDR_CONST(0x10) |
| 401 #define OWR_RST_PRESENCE_TCTL_0_SECURE 0x0 |
| 402 #define OWR_RST_PRESENCE_TCTL_0_WORD_COUNT 0x1 |
| 403 #define OWR_RST_PRESENCE_TCTL_0_RESET_VAL _MK_MASK_CONST(0
x0) |
| 404 #define OWR_RST_PRESENCE_TCTL_0_RESET_MASK _MK_MASK_CONST(0
xffffffff) |
| 405 #define OWR_RST_PRESENCE_TCTL_0_SW_DEFAULT_VAL _MK_MASK_CONST(0
x0) |
| 406 #define OWR_RST_PRESENCE_TCTL_0_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 407 #define OWR_RST_PRESENCE_TCTL_0_READ_MASK _MK_MASK_CONST(0
xffffffff) |
| 408 #define OWR_RST_PRESENCE_TCTL_0_WRITE_MASK _MK_MASK_CONST(0
xffffffff) |
| 409 // RESET_TIME_HIGH, |
| 410 // Trsth = N+1 owr clks, Range = 480 <= trsth < infinity |
| 411 #define OWR_RST_PRESENCE_TCTL_0_TRSTH_SHIFT _MK_SHIFT_CONST(
0) |
| 412 #define OWR_RST_PRESENCE_TCTL_0_TRSTH_FIELD (_MK_MASK_CONST(
0x1ff) << OWR_RST_PRESENCE_TCTL_0_TRSTH_SHIFT) |
| 413 #define OWR_RST_PRESENCE_TCTL_0_TRSTH_RANGE 8:0 |
| 414 #define OWR_RST_PRESENCE_TCTL_0_TRSTH_WOFFSET 0x0 |
| 415 #define OWR_RST_PRESENCE_TCTL_0_TRSTH_DEFAULT _MK_MASK_CONST(0
x0) |
| 416 #define OWR_RST_PRESENCE_TCTL_0_TRSTH_DEFAULT_MASK _MK_MASK
_CONST(0x1ff) |
| 417 #define OWR_RST_PRESENCE_TCTL_0_TRSTH_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 418 #define OWR_RST_PRESENCE_TCTL_0_TRSTH_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 419 |
| 420 // RESET_TIME_LOW |
| 421 // Trstl = N+1 owr clks, Range = 480 <= trstl < infinity |
| 422 #define OWR_RST_PRESENCE_TCTL_0_TRSTL_SHIFT _MK_SHIFT_CONST(
9) |
| 423 #define OWR_RST_PRESENCE_TCTL_0_TRSTL_FIELD (_MK_MASK_CONST(
0x1ff) << OWR_RST_PRESENCE_TCTL_0_TRSTL_SHIFT) |
| 424 #define OWR_RST_PRESENCE_TCTL_0_TRSTL_RANGE 17:9 |
| 425 #define OWR_RST_PRESENCE_TCTL_0_TRSTL_WOFFSET 0x0 |
| 426 #define OWR_RST_PRESENCE_TCTL_0_TRSTL_DEFAULT _MK_MASK_CONST(0
x0) |
| 427 #define OWR_RST_PRESENCE_TCTL_0_TRSTL_DEFAULT_MASK _MK_MASK
_CONST(0x1ff) |
| 428 #define OWR_RST_PRESENCE_TCTL_0_TRSTL_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 429 #define OWR_RST_PRESENCE_TCTL_0_TRSTL_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 430 |
| 431 // PRESENCE_DETECT_HIGH |
| 432 // Tpdh = N+1 owr clks, Range = 15 <= tpdh < 60 |
| 433 #define OWR_RST_PRESENCE_TCTL_0_TPDH_SHIFT _MK_SHIFT_CONST(
18) |
| 434 #define OWR_RST_PRESENCE_TCTL_0_TPDH_FIELD (_MK_MASK_CONST(
0x3f) << OWR_RST_PRESENCE_TCTL_0_TPDH_SHIFT) |
| 435 #define OWR_RST_PRESENCE_TCTL_0_TPDH_RANGE 23:18 |
| 436 #define OWR_RST_PRESENCE_TCTL_0_TPDH_WOFFSET 0x0 |
| 437 #define OWR_RST_PRESENCE_TCTL_0_TPDH_DEFAULT _MK_MASK_CONST(0
x0) |
| 438 #define OWR_RST_PRESENCE_TCTL_0_TPDH_DEFAULT_MASK _MK_MASK
_CONST(0x3f) |
| 439 #define OWR_RST_PRESENCE_TCTL_0_TPDH_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 440 #define OWR_RST_PRESENCE_TCTL_0_TPDH_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 441 |
| 442 // PRESENCE_DETECT_LOW |
| 443 // Tpdl = N owr clks, Range = 60 <= tpdl < 240 |
| 444 #define OWR_RST_PRESENCE_TCTL_0_TPDL_SHIFT _MK_SHIFT_CONST(
24) |
| 445 #define OWR_RST_PRESENCE_TCTL_0_TPDL_FIELD (_MK_MASK_CONST(
0xff) << OWR_RST_PRESENCE_TCTL_0_TPDL_SHIFT) |
| 446 #define OWR_RST_PRESENCE_TCTL_0_TPDL_RANGE 31:24 |
| 447 #define OWR_RST_PRESENCE_TCTL_0_TPDL_WOFFSET 0x0 |
| 448 #define OWR_RST_PRESENCE_TCTL_0_TPDL_DEFAULT _MK_MASK_CONST(0
x0) |
| 449 #define OWR_RST_PRESENCE_TCTL_0_TPDL_DEFAULT_MASK _MK_MASK
_CONST(0xff) |
| 450 #define OWR_RST_PRESENCE_TCTL_0_TPDL_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 451 #define OWR_RST_PRESENCE_TCTL_0_TPDL_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 452 |
| 453 |
| 454 // Register OWR_PPM_CORRECTION_TCTL_0 |
| 455 #define OWR_PPM_CORRECTION_TCTL_0 _MK_ADDR_CONST(0x14) |
| 456 #define OWR_PPM_CORRECTION_TCTL_0_SECURE 0x0 |
| 457 #define OWR_PPM_CORRECTION_TCTL_0_WORD_COUNT 0x1 |
| 458 #define OWR_PPM_CORRECTION_TCTL_0_RESET_VAL _MK_MASK_CONST(0
x0) |
| 459 #define OWR_PPM_CORRECTION_TCTL_0_RESET_MASK _MK_MASK_CONST(0
xffff) |
| 460 #define OWR_PPM_CORRECTION_TCTL_0_SW_DEFAULT_VAL _MK_MASK
_CONST(0x0) |
| 461 #define OWR_PPM_CORRECTION_TCTL_0_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 462 #define OWR_PPM_CORRECTION_TCTL_0_READ_MASK _MK_MASK_CONST(0
xffff) |
| 463 #define OWR_PPM_CORRECTION_TCTL_0_WRITE_MASK _MK_MASK_CONST(0
xffff) |
| 464 // PRESENCE PULSE MASK START |
| 465 #define OWR_PPM_CORRECTION_TCTL_0_TPPM1_SHIFT _MK_SHIFT_CONST(
0) |
| 466 #define OWR_PPM_CORRECTION_TCTL_0_TPPM1_FIELD (_MK_MASK_CONST(
0x3f) << OWR_PPM_CORRECTION_TCTL_0_TPPM1_SHIFT) |
| 467 #define OWR_PPM_CORRECTION_TCTL_0_TPPM1_RANGE 5:0 |
| 468 #define OWR_PPM_CORRECTION_TCTL_0_TPPM1_WOFFSET 0x0 |
| 469 #define OWR_PPM_CORRECTION_TCTL_0_TPPM1_DEFAULT _MK_MASK_CONST(0
x0) |
| 470 #define OWR_PPM_CORRECTION_TCTL_0_TPPM1_DEFAULT_MASK _MK_MASK
_CONST(0x3f) |
| 471 #define OWR_PPM_CORRECTION_TCTL_0_TPPM1_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 472 #define OWR_PPM_CORRECTION_TCTL_0_TPPM1_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 473 |
| 474 // PRESENCE PULSE MASK STOP |
| 475 #define OWR_PPM_CORRECTION_TCTL_0_TPPM2_SHIFT _MK_SHIFT_CONST(
6) |
| 476 #define OWR_PPM_CORRECTION_TCTL_0_TPPM2_FIELD (_MK_MASK_CONST(
0x3ff) << OWR_PPM_CORRECTION_TCTL_0_TPPM2_SHIFT) |
| 477 #define OWR_PPM_CORRECTION_TCTL_0_TPPM2_RANGE 15:6 |
| 478 #define OWR_PPM_CORRECTION_TCTL_0_TPPM2_WOFFSET 0x0 |
| 479 #define OWR_PPM_CORRECTION_TCTL_0_TPPM2_DEFAULT _MK_MASK_CONST(0
x0) |
| 480 #define OWR_PPM_CORRECTION_TCTL_0_TPPM2_DEFAULT_MASK _MK_MASK
_CONST(0x3ff) |
| 481 #define OWR_PPM_CORRECTION_TCTL_0_TPPM2_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 482 #define OWR_PPM_CORRECTION_TCTL_0_TPPM2_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 483 |
| 484 |
| 485 // Register OWR_PROG_PULSE_TCTL_0 |
| 486 #define OWR_PROG_PULSE_TCTL_0 _MK_ADDR_CONST(0x18) |
| 487 #define OWR_PROG_PULSE_TCTL_0_SECURE 0x0 |
| 488 #define OWR_PROG_PULSE_TCTL_0_WORD_COUNT 0x1 |
| 489 #define OWR_PROG_PULSE_TCTL_0_RESET_VAL _MK_MASK_CONST(0
x0) |
| 490 #define OWR_PROG_PULSE_TCTL_0_RESET_MASK _MK_MASK_CONST(0
xffffffff) |
| 491 #define OWR_PROG_PULSE_TCTL_0_SW_DEFAULT_VAL _MK_MASK_CONST(0
x0) |
| 492 #define OWR_PROG_PULSE_TCTL_0_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 493 #define OWR_PROG_PULSE_TCTL_0_READ_MASK _MK_MASK_CONST(0
xffffffff) |
| 494 #define OWR_PROG_PULSE_TCTL_0_WRITE_MASK _MK_MASK_CONST(0
xffffffff) |
| 495 // Delay to program |
| 496 // Tpd = N+1 owr clks, Range = > 5 |
| 497 #define OWR_PROG_PULSE_TCTL_0_TPD_SHIFT _MK_SHIFT_CONST(0) |
| 498 #define OWR_PROG_PULSE_TCTL_0_TPD_FIELD (_MK_MASK_CONST(0xf) <<
OWR_PROG_PULSE_TCTL_0_TPD_SHIFT) |
| 499 #define OWR_PROG_PULSE_TCTL_0_TPD_RANGE 3:0 |
| 500 #define OWR_PROG_PULSE_TCTL_0_TPD_WOFFSET 0x0 |
| 501 #define OWR_PROG_PULSE_TCTL_0_TPD_DEFAULT _MK_MASK_CONST(0
x0) |
| 502 #define OWR_PROG_PULSE_TCTL_0_TPD_DEFAULT_MASK _MK_MASK_CONST(0
xf) |
| 503 #define OWR_PROG_PULSE_TCTL_0_TPD_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 504 #define OWR_PROG_PULSE_TCTL_0_TPD_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 505 |
| 506 // Delay to verify |
| 507 // Tdv = N owr clks, Range = > 5 |
| 508 #define OWR_PROG_PULSE_TCTL_0_TDV_SHIFT _MK_SHIFT_CONST(4) |
| 509 #define OWR_PROG_PULSE_TCTL_0_TDV_FIELD (_MK_MASK_CONST(0xf) <<
OWR_PROG_PULSE_TCTL_0_TDV_SHIFT) |
| 510 #define OWR_PROG_PULSE_TCTL_0_TDV_RANGE 7:4 |
| 511 #define OWR_PROG_PULSE_TCTL_0_TDV_WOFFSET 0x0 |
| 512 #define OWR_PROG_PULSE_TCTL_0_TDV_DEFAULT _MK_MASK_CONST(0
x0) |
| 513 #define OWR_PROG_PULSE_TCTL_0_TDV_DEFAULT_MASK _MK_MASK_CONST(0
xf) |
| 514 #define OWR_PROG_PULSE_TCTL_0_TDV_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 515 #define OWR_PROG_PULSE_TCTL_0_TDV_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 516 |
| 517 // Program Voltage Rise Time |
| 518 // Trp = N owr clks Range = 0.5 to 5 |
| 519 #define OWR_PROG_PULSE_TCTL_0_TRP_SHIFT _MK_SHIFT_CONST(8) |
| 520 #define OWR_PROG_PULSE_TCTL_0_TRP_FIELD (_MK_MASK_CONST(0xf) <<
OWR_PROG_PULSE_TCTL_0_TRP_SHIFT) |
| 521 #define OWR_PROG_PULSE_TCTL_0_TRP_RANGE 11:8 |
| 522 #define OWR_PROG_PULSE_TCTL_0_TRP_WOFFSET 0x0 |
| 523 #define OWR_PROG_PULSE_TCTL_0_TRP_DEFAULT _MK_MASK_CONST(0
x0) |
| 524 #define OWR_PROG_PULSE_TCTL_0_TRP_DEFAULT_MASK _MK_MASK_CONST(0
xf) |
| 525 #define OWR_PROG_PULSE_TCTL_0_TRP_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 526 #define OWR_PROG_PULSE_TCTL_0_TRP_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 527 |
| 528 // Program Voltage Fall Time |
| 529 // Tfp = N owr clks Range = 0.5 to 5 |
| 530 #define OWR_PROG_PULSE_TCTL_0_TFP_SHIFT _MK_SHIFT_CONST(12) |
| 531 #define OWR_PROG_PULSE_TCTL_0_TFP_FIELD (_MK_MASK_CONST(0xf) <<
OWR_PROG_PULSE_TCTL_0_TFP_SHIFT) |
| 532 #define OWR_PROG_PULSE_TCTL_0_TFP_RANGE 15:12 |
| 533 #define OWR_PROG_PULSE_TCTL_0_TFP_WOFFSET 0x0 |
| 534 #define OWR_PROG_PULSE_TCTL_0_TFP_DEFAULT _MK_MASK_CONST(0
x0) |
| 535 #define OWR_PROG_PULSE_TCTL_0_TFP_DEFAULT_MASK _MK_MASK_CONST(0
xf) |
| 536 #define OWR_PROG_PULSE_TCTL_0_TFP_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 537 #define OWR_PROG_PULSE_TCTL_0_TFP_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 538 |
| 539 // Program Pulse Width |
| 540 // Tpp = N owr clks Range = 480 to 5000 |
| 541 #define OWR_PROG_PULSE_TCTL_0_TPP_SHIFT _MK_SHIFT_CONST(16) |
| 542 #define OWR_PROG_PULSE_TCTL_0_TPP_FIELD (_MK_MASK_CONST(0xffff)
<< OWR_PROG_PULSE_TCTL_0_TPP_SHIFT) |
| 543 #define OWR_PROG_PULSE_TCTL_0_TPP_RANGE 31:16 |
| 544 #define OWR_PROG_PULSE_TCTL_0_TPP_WOFFSET 0x0 |
| 545 #define OWR_PROG_PULSE_TCTL_0_TPP_DEFAULT _MK_MASK_CONST(0
x0) |
| 546 #define OWR_PROG_PULSE_TCTL_0_TPP_DEFAULT_MASK _MK_MASK_CONST(0
xffff) |
| 547 #define OWR_PROG_PULSE_TCTL_0_TPP_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 548 #define OWR_PROG_PULSE_TCTL_0_TPP_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 549 |
| 550 |
| 551 // Register OWR_READ_ROM0_0 |
| 552 #define OWR_READ_ROM0_0 _MK_ADDR_CONST(0x1c) |
| 553 #define OWR_READ_ROM0_0_SECURE 0x0 |
| 554 #define OWR_READ_ROM0_0_WORD_COUNT 0x1 |
| 555 #define OWR_READ_ROM0_0_RESET_VAL _MK_MASK_CONST(0x0) |
| 556 #define OWR_READ_ROM0_0_RESET_MASK _MK_MASK_CONST(0xfffffff
f) |
| 557 #define OWR_READ_ROM0_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0) |
| 558 #define OWR_READ_ROM0_0_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 559 #define OWR_READ_ROM0_0_READ_MASK _MK_MASK_CONST(0xfffffff
f) |
| 560 #define OWR_READ_ROM0_0_WRITE_MASK _MK_MASK_CONST(0x0) |
| 561 // Reads the 8 bit family code of ROM |
| 562 #define OWR_READ_ROM0_0_FAMILY_CODE_SHIFT _MK_SHIFT_CONST(
0) |
| 563 #define OWR_READ_ROM0_0_FAMILY_CODE_FIELD (_MK_MASK_CONST(
0xff) << OWR_READ_ROM0_0_FAMILY_CODE_SHIFT) |
| 564 #define OWR_READ_ROM0_0_FAMILY_CODE_RANGE 7:0 |
| 565 #define OWR_READ_ROM0_0_FAMILY_CODE_WOFFSET 0x0 |
| 566 #define OWR_READ_ROM0_0_FAMILY_CODE_DEFAULT _MK_MASK_CONST(0
x0) |
| 567 #define OWR_READ_ROM0_0_FAMILY_CODE_DEFAULT_MASK _MK_MASK
_CONST(0xff) |
| 568 #define OWR_READ_ROM0_0_FAMILY_CODE_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 569 #define OWR_READ_ROM0_0_FAMILY_CODE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 570 |
| 571 // Reads the first 24 bits of rom serial number |
| 572 #define OWR_READ_ROM0_0_SERIAL_NUM0_SHIFT _MK_SHIFT_CONST(
8) |
| 573 #define OWR_READ_ROM0_0_SERIAL_NUM0_FIELD (_MK_MASK_CONST(
0xffffff) << OWR_READ_ROM0_0_SERIAL_NUM0_SHIFT) |
| 574 #define OWR_READ_ROM0_0_SERIAL_NUM0_RANGE 31:8 |
| 575 #define OWR_READ_ROM0_0_SERIAL_NUM0_WOFFSET 0x0 |
| 576 #define OWR_READ_ROM0_0_SERIAL_NUM0_DEFAULT _MK_MASK_CONST(0
x0) |
| 577 #define OWR_READ_ROM0_0_SERIAL_NUM0_DEFAULT_MASK _MK_MASK
_CONST(0xffffff) |
| 578 #define OWR_READ_ROM0_0_SERIAL_NUM0_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 579 #define OWR_READ_ROM0_0_SERIAL_NUM0_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 580 |
| 581 |
| 582 // Register OWR_READ_ROM1_0 |
| 583 #define OWR_READ_ROM1_0 _MK_ADDR_CONST(0x20) |
| 584 #define OWR_READ_ROM1_0_SECURE 0x0 |
| 585 #define OWR_READ_ROM1_0_WORD_COUNT 0x1 |
| 586 #define OWR_READ_ROM1_0_RESET_VAL _MK_MASK_CONST(0x0) |
| 587 #define OWR_READ_ROM1_0_RESET_MASK _MK_MASK_CONST(0xfffffff
f) |
| 588 #define OWR_READ_ROM1_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0) |
| 589 #define OWR_READ_ROM1_0_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 590 #define OWR_READ_ROM1_0_READ_MASK _MK_MASK_CONST(0xfffffff
f) |
| 591 #define OWR_READ_ROM1_0_WRITE_MASK _MK_MASK_CONST(0x0) |
| 592 // Reads the next 24 bits of rom serial number |
| 593 #define OWR_READ_ROM1_0_SERIAL_NUM1_SHIFT _MK_SHIFT_CONST(
0) |
| 594 #define OWR_READ_ROM1_0_SERIAL_NUM1_FIELD (_MK_MASK_CONST(
0xffffff) << OWR_READ_ROM1_0_SERIAL_NUM1_SHIFT) |
| 595 #define OWR_READ_ROM1_0_SERIAL_NUM1_RANGE 23:0 |
| 596 #define OWR_READ_ROM1_0_SERIAL_NUM1_WOFFSET 0x0 |
| 597 #define OWR_READ_ROM1_0_SERIAL_NUM1_DEFAULT _MK_MASK_CONST(0
x0) |
| 598 #define OWR_READ_ROM1_0_SERIAL_NUM1_DEFAULT_MASK _MK_MASK
_CONST(0xffffff) |
| 599 #define OWR_READ_ROM1_0_SERIAL_NUM1_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 600 #define OWR_READ_ROM1_0_SERIAL_NUM1_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 601 |
| 602 // Reads the 8 bit CRC code of ROM |
| 603 #define OWR_READ_ROM1_0_CRC_BYTE_SHIFT _MK_SHIFT_CONST(24) |
| 604 #define OWR_READ_ROM1_0_CRC_BYTE_FIELD (_MK_MASK_CONST(0xff) <<
OWR_READ_ROM1_0_CRC_BYTE_SHIFT) |
| 605 #define OWR_READ_ROM1_0_CRC_BYTE_RANGE 31:24 |
| 606 #define OWR_READ_ROM1_0_CRC_BYTE_WOFFSET 0x0 |
| 607 #define OWR_READ_ROM1_0_CRC_BYTE_DEFAULT _MK_MASK_CONST(0
x0) |
| 608 #define OWR_READ_ROM1_0_CRC_BYTE_DEFAULT_MASK _MK_MASK_CONST(0
xff) |
| 609 #define OWR_READ_ROM1_0_CRC_BYTE_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 610 #define OWR_READ_ROM1_0_CRC_BYTE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 611 |
| 612 |
| 613 // Register OWR_INTR_MASK_0 |
| 614 #define OWR_INTR_MASK_0 _MK_ADDR_CONST(0x24) |
| 615 #define OWR_INTR_MASK_0_SECURE 0x0 |
| 616 #define OWR_INTR_MASK_0_WORD_COUNT 0x1 |
| 617 #define OWR_INTR_MASK_0_RESET_VAL _MK_MASK_CONST(0x0) |
| 618 #define OWR_INTR_MASK_0_RESET_MASK _MK_MASK_CONST(0x3fff) |
| 619 #define OWR_INTR_MASK_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0) |
| 620 #define OWR_INTR_MASK_0_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 621 #define OWR_INTR_MASK_0_READ_MASK _MK_MASK_CONST(0x3fff) |
| 622 #define OWR_INTR_MASK_0_WRITE_MASK _MK_MASK_CONST(0x3fff) |
| 623 #define OWR_INTR_MASK_0_PRESENCE_ERR_INT_EN_SHIFT _MK_SHIF
T_CONST(0) |
| 624 #define OWR_INTR_MASK_0_PRESENCE_ERR_INT_EN_FIELD (_MK_MAS
K_CONST(0x1) << OWR_INTR_MASK_0_PRESENCE_ERR_INT_EN_SHIFT) |
| 625 #define OWR_INTR_MASK_0_PRESENCE_ERR_INT_EN_RANGE 0:0 |
| 626 #define OWR_INTR_MASK_0_PRESENCE_ERR_INT_EN_WOFFSET 0x0 |
| 627 #define OWR_INTR_MASK_0_PRESENCE_ERR_INT_EN_DEFAULT _MK_MASK
_CONST(0x0) |
| 628 #define OWR_INTR_MASK_0_PRESENCE_ERR_INT_EN_DEFAULT_MASK
_MK_MASK_CONST(0x1) |
| 629 #define OWR_INTR_MASK_0_PRESENCE_ERR_INT_EN_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 630 #define OWR_INTR_MASK_0_PRESENCE_ERR_INT_EN_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 631 #define OWR_INTR_MASK_0_PRESENCE_ERR_INT_EN_DISABLE _MK_ENUM
_CONST(0) |
| 632 #define OWR_INTR_MASK_0_PRESENCE_ERR_INT_EN_ENABLE _MK_ENUM
_CONST(1) |
| 633 |
| 634 #define OWR_INTR_MASK_0_CRC_ERR_INT_EN_SHIFT _MK_SHIFT_CONST(
1) |
| 635 #define OWR_INTR_MASK_0_CRC_ERR_INT_EN_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_MASK_0_CRC_ERR_INT_EN_SHIFT) |
| 636 #define OWR_INTR_MASK_0_CRC_ERR_INT_EN_RANGE 1:1 |
| 637 #define OWR_INTR_MASK_0_CRC_ERR_INT_EN_WOFFSET 0x0 |
| 638 #define OWR_INTR_MASK_0_CRC_ERR_INT_EN_DEFAULT _MK_MASK_CONST(0
x0) |
| 639 #define OWR_INTR_MASK_0_CRC_ERR_INT_EN_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 640 #define OWR_INTR_MASK_0_CRC_ERR_INT_EN_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 641 #define OWR_INTR_MASK_0_CRC_ERR_INT_EN_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 642 #define OWR_INTR_MASK_0_CRC_ERR_INT_EN_DISABLE _MK_ENUM_CONST(0
) |
| 643 #define OWR_INTR_MASK_0_CRC_ERR_INT_EN_ENABLE _MK_ENUM_CONST(1
) |
| 644 |
| 645 #define OWR_INTR_MASK_0_MEM_WR_ERR_INT_EN_SHIFT _MK_SHIFT_CONST(
2) |
| 646 #define OWR_INTR_MASK_0_MEM_WR_ERR_INT_EN_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_MASK_0_MEM_WR_ERR_INT_EN_SHIFT) |
| 647 #define OWR_INTR_MASK_0_MEM_WR_ERR_INT_EN_RANGE 2:2 |
| 648 #define OWR_INTR_MASK_0_MEM_WR_ERR_INT_EN_WOFFSET 0x0 |
| 649 #define OWR_INTR_MASK_0_MEM_WR_ERR_INT_EN_DEFAULT _MK_MASK
_CONST(0x0) |
| 650 #define OWR_INTR_MASK_0_MEM_WR_ERR_INT_EN_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 651 #define OWR_INTR_MASK_0_MEM_WR_ERR_INT_EN_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 652 #define OWR_INTR_MASK_0_MEM_WR_ERR_INT_EN_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 653 #define OWR_INTR_MASK_0_MEM_WR_ERR_INT_EN_DISABLE _MK_ENUM
_CONST(0) |
| 654 #define OWR_INTR_MASK_0_MEM_WR_ERR_INT_EN_ENABLE _MK_ENUM
_CONST(1) |
| 655 |
| 656 #define OWR_INTR_MASK_0_ERR_CMD_INT_EN_SHIFT _MK_SHIFT_CONST(
3) |
| 657 #define OWR_INTR_MASK_0_ERR_CMD_INT_EN_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_MASK_0_ERR_CMD_INT_EN_SHIFT) |
| 658 #define OWR_INTR_MASK_0_ERR_CMD_INT_EN_RANGE 3:3 |
| 659 #define OWR_INTR_MASK_0_ERR_CMD_INT_EN_WOFFSET 0x0 |
| 660 #define OWR_INTR_MASK_0_ERR_CMD_INT_EN_DEFAULT _MK_MASK_CONST(0
x0) |
| 661 #define OWR_INTR_MASK_0_ERR_CMD_INT_EN_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 662 #define OWR_INTR_MASK_0_ERR_CMD_INT_EN_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 663 #define OWR_INTR_MASK_0_ERR_CMD_INT_EN_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 664 #define OWR_INTR_MASK_0_ERR_CMD_INT_EN_DISABLE _MK_ENUM_CONST(0
) |
| 665 #define OWR_INTR_MASK_0_ERR_CMD_INT_EN_ENABLE _MK_ENUM_CONST(1
) |
| 666 |
| 667 #define OWR_INTR_MASK_0_RESET_DONE_INT_EN_SHIFT _MK_SHIFT_CONST(
4) |
| 668 #define OWR_INTR_MASK_0_RESET_DONE_INT_EN_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_MASK_0_RESET_DONE_INT_EN_SHIFT) |
| 669 #define OWR_INTR_MASK_0_RESET_DONE_INT_EN_RANGE 4:4 |
| 670 #define OWR_INTR_MASK_0_RESET_DONE_INT_EN_WOFFSET 0x0 |
| 671 #define OWR_INTR_MASK_0_RESET_DONE_INT_EN_DEFAULT _MK_MASK
_CONST(0x0) |
| 672 #define OWR_INTR_MASK_0_RESET_DONE_INT_EN_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 673 #define OWR_INTR_MASK_0_RESET_DONE_INT_EN_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 674 #define OWR_INTR_MASK_0_RESET_DONE_INT_EN_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 675 #define OWR_INTR_MASK_0_RESET_DONE_INT_EN_DISABLE _MK_ENUM
_CONST(0) |
| 676 #define OWR_INTR_MASK_0_RESET_DONE_INT_EN_ENABLE _MK_ENUM
_CONST(1) |
| 677 |
| 678 #define OWR_INTR_MASK_0_PRESENCE_DONE_INT_EN_SHIFT _MK_SHIF
T_CONST(5) |
| 679 #define OWR_INTR_MASK_0_PRESENCE_DONE_INT_EN_FIELD (_MK_MAS
K_CONST(0x1) << OWR_INTR_MASK_0_PRESENCE_DONE_INT_EN_SHIFT) |
| 680 #define OWR_INTR_MASK_0_PRESENCE_DONE_INT_EN_RANGE 5:5 |
| 681 #define OWR_INTR_MASK_0_PRESENCE_DONE_INT_EN_WOFFSET 0x0 |
| 682 #define OWR_INTR_MASK_0_PRESENCE_DONE_INT_EN_DEFAULT _MK_MASK
_CONST(0x0) |
| 683 #define OWR_INTR_MASK_0_PRESENCE_DONE_INT_EN_DEFAULT_MASK
_MK_MASK_CONST(0x1) |
| 684 #define OWR_INTR_MASK_0_PRESENCE_DONE_INT_EN_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 685 #define OWR_INTR_MASK_0_PRESENCE_DONE_INT_EN_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 686 #define OWR_INTR_MASK_0_PRESENCE_DONE_INT_EN_DISABLE _MK_ENUM
_CONST(0) |
| 687 #define OWR_INTR_MASK_0_PRESENCE_DONE_INT_EN_ENABLE _MK_ENUM
_CONST(1) |
| 688 |
| 689 #define OWR_INTR_MASK_0_ROM_CMD_DONE_INT_EN_SHIFT _MK_SHIF
T_CONST(6) |
| 690 #define OWR_INTR_MASK_0_ROM_CMD_DONE_INT_EN_FIELD (_MK_MAS
K_CONST(0x1) << OWR_INTR_MASK_0_ROM_CMD_DONE_INT_EN_SHIFT) |
| 691 #define OWR_INTR_MASK_0_ROM_CMD_DONE_INT_EN_RANGE 6:6 |
| 692 #define OWR_INTR_MASK_0_ROM_CMD_DONE_INT_EN_WOFFSET 0x0 |
| 693 #define OWR_INTR_MASK_0_ROM_CMD_DONE_INT_EN_DEFAULT _MK_MASK
_CONST(0x0) |
| 694 #define OWR_INTR_MASK_0_ROM_CMD_DONE_INT_EN_DEFAULT_MASK
_MK_MASK_CONST(0x1) |
| 695 #define OWR_INTR_MASK_0_ROM_CMD_DONE_INT_EN_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 696 #define OWR_INTR_MASK_0_ROM_CMD_DONE_INT_EN_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 697 #define OWR_INTR_MASK_0_ROM_CMD_DONE_INT_EN_DISABLE _MK_ENUM
_CONST(0) |
| 698 #define OWR_INTR_MASK_0_ROM_CMD_DONE_INT_EN_ENABLE _MK_ENUM
_CONST(1) |
| 699 |
| 700 #define OWR_INTR_MASK_0_MEM_CMD_DONE_INT_EN_SHIFT _MK_SHIF
T_CONST(7) |
| 701 #define OWR_INTR_MASK_0_MEM_CMD_DONE_INT_EN_FIELD (_MK_MAS
K_CONST(0x1) << OWR_INTR_MASK_0_MEM_CMD_DONE_INT_EN_SHIFT) |
| 702 #define OWR_INTR_MASK_0_MEM_CMD_DONE_INT_EN_RANGE 7:7 |
| 703 #define OWR_INTR_MASK_0_MEM_CMD_DONE_INT_EN_WOFFSET 0x0 |
| 704 #define OWR_INTR_MASK_0_MEM_CMD_DONE_INT_EN_DEFAULT _MK_MASK
_CONST(0x0) |
| 705 #define OWR_INTR_MASK_0_MEM_CMD_DONE_INT_EN_DEFAULT_MASK
_MK_MASK_CONST(0x1) |
| 706 #define OWR_INTR_MASK_0_MEM_CMD_DONE_INT_EN_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 707 #define OWR_INTR_MASK_0_MEM_CMD_DONE_INT_EN_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 708 #define OWR_INTR_MASK_0_MEM_CMD_DONE_INT_EN_DISABLE _MK_ENUM
_CONST(0) |
| 709 #define OWR_INTR_MASK_0_MEM_CMD_DONE_INT_EN_ENABLE _MK_ENUM
_CONST(1) |
| 710 |
| 711 #define OWR_INTR_MASK_0_TXF_OVF_INT_EN_SHIFT _MK_SHIFT_CONST(
8) |
| 712 #define OWR_INTR_MASK_0_TXF_OVF_INT_EN_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_MASK_0_TXF_OVF_INT_EN_SHIFT) |
| 713 #define OWR_INTR_MASK_0_TXF_OVF_INT_EN_RANGE 8:8 |
| 714 #define OWR_INTR_MASK_0_TXF_OVF_INT_EN_WOFFSET 0x0 |
| 715 #define OWR_INTR_MASK_0_TXF_OVF_INT_EN_DEFAULT _MK_MASK_CONST(0
x0) |
| 716 #define OWR_INTR_MASK_0_TXF_OVF_INT_EN_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 717 #define OWR_INTR_MASK_0_TXF_OVF_INT_EN_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 718 #define OWR_INTR_MASK_0_TXF_OVF_INT_EN_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 719 #define OWR_INTR_MASK_0_TXF_OVF_INT_EN_DISABLE _MK_ENUM_CONST(0
) |
| 720 #define OWR_INTR_MASK_0_TXF_OVF_INT_EN_ENABLE _MK_ENUM_CONST(1
) |
| 721 |
| 722 #define OWR_INTR_MASK_0_RXF_UNR_INT_EN_SHIFT _MK_SHIFT_CONST(
9) |
| 723 #define OWR_INTR_MASK_0_RXF_UNR_INT_EN_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_MASK_0_RXF_UNR_INT_EN_SHIFT) |
| 724 #define OWR_INTR_MASK_0_RXF_UNR_INT_EN_RANGE 9:9 |
| 725 #define OWR_INTR_MASK_0_RXF_UNR_INT_EN_WOFFSET 0x0 |
| 726 #define OWR_INTR_MASK_0_RXF_UNR_INT_EN_DEFAULT _MK_MASK_CONST(0
x0) |
| 727 #define OWR_INTR_MASK_0_RXF_UNR_INT_EN_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 728 #define OWR_INTR_MASK_0_RXF_UNR_INT_EN_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 729 #define OWR_INTR_MASK_0_RXF_UNR_INT_EN_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 730 #define OWR_INTR_MASK_0_RXF_UNR_INT_EN_DISABLE _MK_ENUM_CONST(0
) |
| 731 #define OWR_INTR_MASK_0_RXF_UNR_INT_EN_ENABLE _MK_ENUM_CONST(1
) |
| 732 |
| 733 #define OWR_INTR_MASK_0_DGLITCH_INT_EN_SHIFT _MK_SHIFT_CONST(
10) |
| 734 #define OWR_INTR_MASK_0_DGLITCH_INT_EN_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_MASK_0_DGLITCH_INT_EN_SHIFT) |
| 735 #define OWR_INTR_MASK_0_DGLITCH_INT_EN_RANGE 10:10 |
| 736 #define OWR_INTR_MASK_0_DGLITCH_INT_EN_WOFFSET 0x0 |
| 737 #define OWR_INTR_MASK_0_DGLITCH_INT_EN_DEFAULT _MK_MASK_CONST(0
x0) |
| 738 #define OWR_INTR_MASK_0_DGLITCH_INT_EN_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 739 #define OWR_INTR_MASK_0_DGLITCH_INT_EN_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 740 #define OWR_INTR_MASK_0_DGLITCH_INT_EN_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 741 #define OWR_INTR_MASK_0_DGLITCH_INT_EN_DISABLE _MK_ENUM_CONST(0
) |
| 742 #define OWR_INTR_MASK_0_DGLITCH_INT_EN_ENABLE _MK_ENUM_CONST(1
) |
| 743 |
| 744 #define OWR_INTR_MASK_0_TXFIFO_DATA_REQ_INT_EN_SHIFT _MK_SHIF
T_CONST(11) |
| 745 #define OWR_INTR_MASK_0_TXFIFO_DATA_REQ_INT_EN_FIELD (_MK_MAS
K_CONST(0x1) << OWR_INTR_MASK_0_TXFIFO_DATA_REQ_INT_EN_SHIFT) |
| 746 #define OWR_INTR_MASK_0_TXFIFO_DATA_REQ_INT_EN_RANGE 11:11 |
| 747 #define OWR_INTR_MASK_0_TXFIFO_DATA_REQ_INT_EN_WOFFSET 0x0 |
| 748 #define OWR_INTR_MASK_0_TXFIFO_DATA_REQ_INT_EN_DEFAULT _MK_MASK
_CONST(0x0) |
| 749 #define OWR_INTR_MASK_0_TXFIFO_DATA_REQ_INT_EN_DEFAULT_MASK
_MK_MASK_CONST(0x1) |
| 750 #define OWR_INTR_MASK_0_TXFIFO_DATA_REQ_INT_EN_SW_DEFAULT
_MK_MASK_CONST(0x0) |
| 751 #define OWR_INTR_MASK_0_TXFIFO_DATA_REQ_INT_EN_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 752 #define OWR_INTR_MASK_0_TXFIFO_DATA_REQ_INT_EN_DISABLE _MK_ENUM
_CONST(0) |
| 753 #define OWR_INTR_MASK_0_TXFIFO_DATA_REQ_INT_EN_ENABLE _MK_ENUM
_CONST(1) |
| 754 |
| 755 #define OWR_INTR_MASK_0_RXFIFO_DATA_REQ_INT_EN_SHIFT _MK_SHIF
T_CONST(12) |
| 756 #define OWR_INTR_MASK_0_RXFIFO_DATA_REQ_INT_EN_FIELD (_MK_MAS
K_CONST(0x1) << OWR_INTR_MASK_0_RXFIFO_DATA_REQ_INT_EN_SHIFT) |
| 757 #define OWR_INTR_MASK_0_RXFIFO_DATA_REQ_INT_EN_RANGE 12:12 |
| 758 #define OWR_INTR_MASK_0_RXFIFO_DATA_REQ_INT_EN_WOFFSET 0x0 |
| 759 #define OWR_INTR_MASK_0_RXFIFO_DATA_REQ_INT_EN_DEFAULT _MK_MASK
_CONST(0x0) |
| 760 #define OWR_INTR_MASK_0_RXFIFO_DATA_REQ_INT_EN_DEFAULT_MASK
_MK_MASK_CONST(0x1) |
| 761 #define OWR_INTR_MASK_0_RXFIFO_DATA_REQ_INT_EN_SW_DEFAULT
_MK_MASK_CONST(0x0) |
| 762 #define OWR_INTR_MASK_0_RXFIFO_DATA_REQ_INT_EN_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 763 #define OWR_INTR_MASK_0_RXFIFO_DATA_REQ_INT_EN_DISABLE _MK_ENUM
_CONST(0) |
| 764 #define OWR_INTR_MASK_0_RXFIFO_DATA_REQ_INT_EN_ENABLE _MK_ENUM
_CONST(1) |
| 765 |
| 766 #define OWR_INTR_MASK_0_BIT_TRANSFER_DONE_INT_EN_SHIFT _MK_SHIF
T_CONST(13) |
| 767 #define OWR_INTR_MASK_0_BIT_TRANSFER_DONE_INT_EN_FIELD (_MK_MAS
K_CONST(0x1) << OWR_INTR_MASK_0_BIT_TRANSFER_DONE_INT_EN_SHIFT) |
| 768 #define OWR_INTR_MASK_0_BIT_TRANSFER_DONE_INT_EN_RANGE 13:13 |
| 769 #define OWR_INTR_MASK_0_BIT_TRANSFER_DONE_INT_EN_WOFFSET
0x0 |
| 770 #define OWR_INTR_MASK_0_BIT_TRANSFER_DONE_INT_EN_DEFAULT
_MK_MASK_CONST(0x0) |
| 771 #define OWR_INTR_MASK_0_BIT_TRANSFER_DONE_INT_EN_DEFAULT_MASK
_MK_MASK_CONST(0x1) |
| 772 #define OWR_INTR_MASK_0_BIT_TRANSFER_DONE_INT_EN_SW_DEFAULT
_MK_MASK_CONST(0x0) |
| 773 #define OWR_INTR_MASK_0_BIT_TRANSFER_DONE_INT_EN_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 774 #define OWR_INTR_MASK_0_BIT_TRANSFER_DONE_INT_EN_DISABLE
_MK_ENUM_CONST(0) |
| 775 #define OWR_INTR_MASK_0_BIT_TRANSFER_DONE_INT_EN_ENABLE _MK_ENUM
_CONST(1) |
| 776 |
| 777 |
| 778 // Register OWR_INTR_STATUS_0 |
| 779 #define OWR_INTR_STATUS_0 _MK_ADDR_CONST(0x28) |
| 780 #define OWR_INTR_STATUS_0_SECURE 0x0 |
| 781 #define OWR_INTR_STATUS_0_WORD_COUNT 0x1 |
| 782 #define OWR_INTR_STATUS_0_RESET_VAL _MK_MASK_CONST(0x0) |
| 783 #define OWR_INTR_STATUS_0_RESET_MASK _MK_MASK_CONST(0x3fff) |
| 784 #define OWR_INTR_STATUS_0_SW_DEFAULT_VAL _MK_MASK_CONST(0
x0) |
| 785 #define OWR_INTR_STATUS_0_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 786 #define OWR_INTR_STATUS_0_READ_MASK _MK_MASK_CONST(0x3fff) |
| 787 #define OWR_INTR_STATUS_0_WRITE_MASK _MK_MASK_CONST(0x27ff) |
| 788 // Presence ERROR. This bit is set when device presence not found |
| 789 #define OWR_INTR_STATUS_0_PRESENCE_ERR_SHIFT _MK_SHIFT_CONST(
0) |
| 790 #define OWR_INTR_STATUS_0_PRESENCE_ERR_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_STATUS_0_PRESENCE_ERR_SHIFT) |
| 791 #define OWR_INTR_STATUS_0_PRESENCE_ERR_RANGE 0:0 |
| 792 #define OWR_INTR_STATUS_0_PRESENCE_ERR_WOFFSET 0x0 |
| 793 #define OWR_INTR_STATUS_0_PRESENCE_ERR_DEFAULT _MK_MASK_CONST(0
x0) |
| 794 #define OWR_INTR_STATUS_0_PRESENCE_ERR_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 795 #define OWR_INTR_STATUS_0_PRESENCE_ERR_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 796 #define OWR_INTR_STATUS_0_PRESENCE_ERR_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 797 #define OWR_INTR_STATUS_0_PRESENCE_ERR_SLAVE_DETECTED _MK_ENUM
_CONST(0) |
| 798 #define OWR_INTR_STATUS_0_PRESENCE_ERR_NO_SLAVE_DETECTED
_MK_ENUM_CONST(1) |
| 799 |
| 800 // CRC ERROR: Indicates the received data is correct or not |
| 801 // Software writes a 1 to clear it. |
| 802 #define OWR_INTR_STATUS_0_CRC_ERR_SHIFT _MK_SHIFT_CONST(1) |
| 803 #define OWR_INTR_STATUS_0_CRC_ERR_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_STATUS_0_CRC_ERR_SHIFT) |
| 804 #define OWR_INTR_STATUS_0_CRC_ERR_RANGE 1:1 |
| 805 #define OWR_INTR_STATUS_0_CRC_ERR_WOFFSET 0x0 |
| 806 #define OWR_INTR_STATUS_0_CRC_ERR_DEFAULT _MK_MASK_CONST(0
x0) |
| 807 #define OWR_INTR_STATUS_0_CRC_ERR_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 808 #define OWR_INTR_STATUS_0_CRC_ERR_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 809 #define OWR_INTR_STATUS_0_CRC_ERR_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 810 #define OWR_INTR_STATUS_0_CRC_ERR_N0_ERROR _MK_ENUM_CONST(0
) |
| 811 #define OWR_INTR_STATUS_0_CRC_ERR_ERROR _MK_ENUM_CONST(1) |
| 812 |
| 813 // MEM WR ERROR: Indicates the received data from eprom is correct or not |
| 814 // Software writes a 1 to clear it. |
| 815 #define OWR_INTR_STATUS_0_MEM_WR_ERR_SHIFT _MK_SHIFT_CONST(
2) |
| 816 #define OWR_INTR_STATUS_0_MEM_WR_ERR_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_STATUS_0_MEM_WR_ERR_SHIFT) |
| 817 #define OWR_INTR_STATUS_0_MEM_WR_ERR_RANGE 2:2 |
| 818 #define OWR_INTR_STATUS_0_MEM_WR_ERR_WOFFSET 0x0 |
| 819 #define OWR_INTR_STATUS_0_MEM_WR_ERR_DEFAULT _MK_MASK_CONST(0
x0) |
| 820 #define OWR_INTR_STATUS_0_MEM_WR_ERR_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 821 #define OWR_INTR_STATUS_0_MEM_WR_ERR_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 822 #define OWR_INTR_STATUS_0_MEM_WR_ERR_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 823 #define OWR_INTR_STATUS_0_MEM_WR_ERR_N0_ERROR _MK_ENUM_CONST(0
) |
| 824 #define OWR_INTR_STATUS_0_MEM_WR_ERR_ERROR _MK_ENUM_CONST(1
) |
| 825 |
| 826 // ERROR CMD:Indicates error command written in the register |
| 827 // It should be ignored when transfer is in single bit mode |
| 828 // Software writes a 1 to clear it. |
| 829 #define OWR_INTR_STATUS_0_ERR_CMD_SHIFT _MK_SHIFT_CONST(3) |
| 830 #define OWR_INTR_STATUS_0_ERR_CMD_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_STATUS_0_ERR_CMD_SHIFT) |
| 831 #define OWR_INTR_STATUS_0_ERR_CMD_RANGE 3:3 |
| 832 #define OWR_INTR_STATUS_0_ERR_CMD_WOFFSET 0x0 |
| 833 #define OWR_INTR_STATUS_0_ERR_CMD_DEFAULT _MK_MASK_CONST(0
x0) |
| 834 #define OWR_INTR_STATUS_0_ERR_CMD_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 835 #define OWR_INTR_STATUS_0_ERR_CMD_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 836 #define OWR_INTR_STATUS_0_ERR_CMD_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 837 #define OWR_INTR_STATUS_0_ERR_CMD_CORRECT_CMD _MK_ENUM_CONST(0
) |
| 838 #define OWR_INTR_STATUS_0_ERR_CMD_ERROR_CMD _MK_ENUM_CONST(1
) |
| 839 |
| 840 // This indicates the master has send the reset, then waits for presence |
| 841 // Software writes a 1 to clear it. |
| 842 #define OWR_INTR_STATUS_0_RESET_DONE_SHIFT _MK_SHIFT_CONST(
4) |
| 843 #define OWR_INTR_STATUS_0_RESET_DONE_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_STATUS_0_RESET_DONE_SHIFT) |
| 844 #define OWR_INTR_STATUS_0_RESET_DONE_RANGE 4:4 |
| 845 #define OWR_INTR_STATUS_0_RESET_DONE_WOFFSET 0x0 |
| 846 #define OWR_INTR_STATUS_0_RESET_DONE_DEFAULT _MK_MASK_CONST(0
x0) |
| 847 #define OWR_INTR_STATUS_0_RESET_DONE_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 848 #define OWR_INTR_STATUS_0_RESET_DONE_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 849 #define OWR_INTR_STATUS_0_RESET_DONE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 850 #define OWR_INTR_STATUS_0_RESET_DONE_NOT_DONE _MK_ENUM_CONST(0
) |
| 851 #define OWR_INTR_STATUS_0_RESET_DONE_DONE _MK_ENUM_CONST(1
) |
| 852 |
| 853 // This indicates the presence done, master has detected the device |
| 854 // Software writes a 1 to clear it. |
| 855 #define OWR_INTR_STATUS_0_PRESENCE_DONE_SHIFT _MK_SHIFT_CONST(
5) |
| 856 #define OWR_INTR_STATUS_0_PRESENCE_DONE_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_STATUS_0_PRESENCE_DONE_SHIFT) |
| 857 #define OWR_INTR_STATUS_0_PRESENCE_DONE_RANGE 5:5 |
| 858 #define OWR_INTR_STATUS_0_PRESENCE_DONE_WOFFSET 0x0 |
| 859 #define OWR_INTR_STATUS_0_PRESENCE_DONE_DEFAULT _MK_MASK_CONST(0
x0) |
| 860 #define OWR_INTR_STATUS_0_PRESENCE_DONE_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 861 #define OWR_INTR_STATUS_0_PRESENCE_DONE_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 862 #define OWR_INTR_STATUS_0_PRESENCE_DONE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 863 #define OWR_INTR_STATUS_0_PRESENCE_DONE_NOT_DONE _MK_ENUM
_CONST(0) |
| 864 #define OWR_INTR_STATUS_0_PRESENCE_DONE_DONE _MK_ENUM_CONST(1
) |
| 865 |
| 866 // This indicates master has received the rom data from battery |
| 867 // Software writes a 1 to clear it. |
| 868 #define OWR_INTR_STATUS_0_ROM_CMD_DONE_SHIFT _MK_SHIFT_CONST(
6) |
| 869 #define OWR_INTR_STATUS_0_ROM_CMD_DONE_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_STATUS_0_ROM_CMD_DONE_SHIFT) |
| 870 #define OWR_INTR_STATUS_0_ROM_CMD_DONE_RANGE 6:6 |
| 871 #define OWR_INTR_STATUS_0_ROM_CMD_DONE_WOFFSET 0x0 |
| 872 #define OWR_INTR_STATUS_0_ROM_CMD_DONE_DEFAULT _MK_MASK_CONST(0
x0) |
| 873 #define OWR_INTR_STATUS_0_ROM_CMD_DONE_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 874 #define OWR_INTR_STATUS_0_ROM_CMD_DONE_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 875 #define OWR_INTR_STATUS_0_ROM_CMD_DONE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 876 #define OWR_INTR_STATUS_0_ROM_CMD_DONE_NOT_DONE _MK_ENUM_CONST(0
) |
| 877 #define OWR_INTR_STATUS_0_ROM_CMD_DONE_DONE _MK_ENUM_CONST(1
) |
| 878 |
| 879 // This Indicates the master has written data into eprom or data received |
| 880 // from eprom without any error |
| 881 // Software writes a 1 to clear it. |
| 882 #define OWR_INTR_STATUS_0_MEM_CMD_DONE_SHIFT _MK_SHIFT_CONST(
7) |
| 883 #define OWR_INTR_STATUS_0_MEM_CMD_DONE_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_STATUS_0_MEM_CMD_DONE_SHIFT) |
| 884 #define OWR_INTR_STATUS_0_MEM_CMD_DONE_RANGE 7:7 |
| 885 #define OWR_INTR_STATUS_0_MEM_CMD_DONE_WOFFSET 0x0 |
| 886 #define OWR_INTR_STATUS_0_MEM_CMD_DONE_DEFAULT _MK_MASK_CONST(0
x0) |
| 887 #define OWR_INTR_STATUS_0_MEM_CMD_DONE_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 888 #define OWR_INTR_STATUS_0_MEM_CMD_DONE_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 889 #define OWR_INTR_STATUS_0_MEM_CMD_DONE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 890 #define OWR_INTR_STATUS_0_MEM_CMD_DONE_NOT_DONE _MK_ENUM_CONST(0
) |
| 891 #define OWR_INTR_STATUS_0_MEM_CMD_DONE_DONE _MK_ENUM_CONST(1
) |
| 892 |
| 893 // TX FIFO Overflow: RO. This bit is set to 1 whenever software tries |
| 894 // to write to a full TX FIFO. |
| 895 // Software writes a 1 to clear this bit. |
| 896 #define OWR_INTR_STATUS_0_TXF_OVF_SHIFT _MK_SHIFT_CONST(8) |
| 897 #define OWR_INTR_STATUS_0_TXF_OVF_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_STATUS_0_TXF_OVF_SHIFT) |
| 898 #define OWR_INTR_STATUS_0_TXF_OVF_RANGE 8:8 |
| 899 #define OWR_INTR_STATUS_0_TXF_OVF_WOFFSET 0x0 |
| 900 #define OWR_INTR_STATUS_0_TXF_OVF_DEFAULT _MK_MASK_CONST(0
x0) |
| 901 #define OWR_INTR_STATUS_0_TXF_OVF_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 902 #define OWR_INTR_STATUS_0_TXF_OVF_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 903 #define OWR_INTR_STATUS_0_TXF_OVF_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 904 #define OWR_INTR_STATUS_0_TXF_OVF_NOT_EMPTY _MK_ENUM_CONST(0
) |
| 905 #define OWR_INTR_STATUS_0_TXF_OVF_EMPTY _MK_ENUM_CONST(1) |
| 906 |
| 907 // RX FIFO Under run: RO. This bit is set to 1 whenever software tries to |
| 908 // read from an empty RX FIFO. |
| 909 // Software writes a 1 to clear this bit. |
| 910 #define OWR_INTR_STATUS_0_RXF_UNR_SHIFT _MK_SHIFT_CONST(9) |
| 911 #define OWR_INTR_STATUS_0_RXF_UNR_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_STATUS_0_RXF_UNR_SHIFT) |
| 912 #define OWR_INTR_STATUS_0_RXF_UNR_RANGE 9:9 |
| 913 #define OWR_INTR_STATUS_0_RXF_UNR_WOFFSET 0x0 |
| 914 #define OWR_INTR_STATUS_0_RXF_UNR_DEFAULT _MK_MASK_CONST(0
x0) |
| 915 #define OWR_INTR_STATUS_0_RXF_UNR_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 916 #define OWR_INTR_STATUS_0_RXF_UNR_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 917 #define OWR_INTR_STATUS_0_RXF_UNR_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 918 #define OWR_INTR_STATUS_0_RXF_UNR_NOT_EMPTY _MK_ENUM_CONST(0
) |
| 919 #define OWR_INTR_STATUS_0_RXF_UNR_EMPTY _MK_ENUM_CONST(1) |
| 920 |
| 921 // This bit is set when data is not stable for at least 1us, |
| 922 // Software writes a 1 to clear this bit. |
| 923 // if deglitch detected data transfer should start from 1st. |
| 924 #define OWR_INTR_STATUS_0_DGLITCH_SHIFT _MK_SHIFT_CONST(10) |
| 925 #define OWR_INTR_STATUS_0_DGLITCH_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_STATUS_0_DGLITCH_SHIFT) |
| 926 #define OWR_INTR_STATUS_0_DGLITCH_RANGE 10:10 |
| 927 #define OWR_INTR_STATUS_0_DGLITCH_WOFFSET 0x0 |
| 928 #define OWR_INTR_STATUS_0_DGLITCH_DEFAULT _MK_MASK_CONST(0
x0) |
| 929 #define OWR_INTR_STATUS_0_DGLITCH_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 930 #define OWR_INTR_STATUS_0_DGLITCH_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 931 #define OWR_INTR_STATUS_0_DGLITCH_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 932 #define OWR_INTR_STATUS_0_DGLITCH_DGLITCH_NOT_DETECTED _MK_ENUM
_CONST(0) |
| 933 #define OWR_INTR_STATUS_0_DGLITCH_DGLITCH_DETECTED _MK_ENUM
_CONST(1) |
| 934 |
| 935 // TX FIFO data req |
| 936 #define OWR_INTR_STATUS_0_TXFIFO_DATA_REQ_SHIFT _MK_SHIFT_CONST(
11) |
| 937 #define OWR_INTR_STATUS_0_TXFIFO_DATA_REQ_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_STATUS_0_TXFIFO_DATA_REQ_SHIFT) |
| 938 #define OWR_INTR_STATUS_0_TXFIFO_DATA_REQ_RANGE 11:11 |
| 939 #define OWR_INTR_STATUS_0_TXFIFO_DATA_REQ_WOFFSET 0x0 |
| 940 #define OWR_INTR_STATUS_0_TXFIFO_DATA_REQ_DEFAULT _MK_MASK
_CONST(0x0) |
| 941 #define OWR_INTR_STATUS_0_TXFIFO_DATA_REQ_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 942 #define OWR_INTR_STATUS_0_TXFIFO_DATA_REQ_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 943 #define OWR_INTR_STATUS_0_TXFIFO_DATA_REQ_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 944 #define OWR_INTR_STATUS_0_TXFIFO_DATA_REQ_TX_NOT_RDY _MK_ENUM
_CONST(0) |
| 945 #define OWR_INTR_STATUS_0_TXFIFO_DATA_REQ_TX_RDY _MK_ENUM
_CONST(1) |
| 946 |
| 947 // RX FIFO data req |
| 948 #define OWR_INTR_STATUS_0_RXFIFO_DATA_REQ_SHIFT _MK_SHIFT_CONST(
12) |
| 949 #define OWR_INTR_STATUS_0_RXFIFO_DATA_REQ_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_STATUS_0_RXFIFO_DATA_REQ_SHIFT) |
| 950 #define OWR_INTR_STATUS_0_RXFIFO_DATA_REQ_RANGE 12:12 |
| 951 #define OWR_INTR_STATUS_0_RXFIFO_DATA_REQ_WOFFSET 0x0 |
| 952 #define OWR_INTR_STATUS_0_RXFIFO_DATA_REQ_DEFAULT _MK_MASK
_CONST(0x0) |
| 953 #define OWR_INTR_STATUS_0_RXFIFO_DATA_REQ_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 954 #define OWR_INTR_STATUS_0_RXFIFO_DATA_REQ_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 955 #define OWR_INTR_STATUS_0_RXFIFO_DATA_REQ_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 956 #define OWR_INTR_STATUS_0_RXFIFO_DATA_REQ_RX_NOT_RDY _MK_ENUM
_CONST(0) |
| 957 #define OWR_INTR_STATUS_0_RXFIFO_DATA_REQ_RX_RDY _MK_ENUM
_CONST(1) |
| 958 |
| 959 // This bit is set when transfer of each bit done |
| 960 // this is set on in one bit transfer mode |
| 961 // software writes 1 to clear this bit |
| 962 #define OWR_INTR_STATUS_0_BIT_TRANSFER_DONE_SHIFT _MK_SHIF
T_CONST(13) |
| 963 #define OWR_INTR_STATUS_0_BIT_TRANSFER_DONE_FIELD (_MK_MAS
K_CONST(0x1) << OWR_INTR_STATUS_0_BIT_TRANSFER_DONE_SHIFT) |
| 964 #define OWR_INTR_STATUS_0_BIT_TRANSFER_DONE_RANGE 13:13 |
| 965 #define OWR_INTR_STATUS_0_BIT_TRANSFER_DONE_WOFFSET 0x0 |
| 966 #define OWR_INTR_STATUS_0_BIT_TRANSFER_DONE_DEFAULT _MK_MASK
_CONST(0x0) |
| 967 #define OWR_INTR_STATUS_0_BIT_TRANSFER_DONE_DEFAULT_MASK
_MK_MASK_CONST(0x1) |
| 968 #define OWR_INTR_STATUS_0_BIT_TRANSFER_DONE_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 969 #define OWR_INTR_STATUS_0_BIT_TRANSFER_DONE_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 970 #define OWR_INTR_STATUS_0_BIT_TRANSFER_DONE_NOT_DONE _MK_ENUM
_CONST(0) |
| 971 #define OWR_INTR_STATUS_0_BIT_TRANSFER_DONE_DONE _MK_ENUM
_CONST(1) |
| 972 |
| 973 |
| 974 // Register OWR_INTR_SOURCE_0 |
| 975 #define OWR_INTR_SOURCE_0 _MK_ADDR_CONST(0x2c) |
| 976 #define OWR_INTR_SOURCE_0_SECURE 0x0 |
| 977 #define OWR_INTR_SOURCE_0_WORD_COUNT 0x1 |
| 978 #define OWR_INTR_SOURCE_0_RESET_VAL _MK_MASK_CONST(0x0) |
| 979 #define OWR_INTR_SOURCE_0_RESET_MASK _MK_MASK_CONST(0x3fff) |
| 980 #define OWR_INTR_SOURCE_0_SW_DEFAULT_VAL _MK_MASK_CONST(0
x0) |
| 981 #define OWR_INTR_SOURCE_0_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 982 #define OWR_INTR_SOURCE_0_READ_MASK _MK_MASK_CONST(0x3fff) |
| 983 #define OWR_INTR_SOURCE_0_WRITE_MASK _MK_MASK_CONST(0x0) |
| 984 #define OWR_INTR_SOURCE_0_PRESENCE_ERR_SHIFT _MK_SHIFT_CONST(
0) |
| 985 #define OWR_INTR_SOURCE_0_PRESENCE_ERR_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_SOURCE_0_PRESENCE_ERR_SHIFT) |
| 986 #define OWR_INTR_SOURCE_0_PRESENCE_ERR_RANGE 0:0 |
| 987 #define OWR_INTR_SOURCE_0_PRESENCE_ERR_WOFFSET 0x0 |
| 988 #define OWR_INTR_SOURCE_0_PRESENCE_ERR_DEFAULT _MK_MASK_CONST(0
x0) |
| 989 #define OWR_INTR_SOURCE_0_PRESENCE_ERR_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 990 #define OWR_INTR_SOURCE_0_PRESENCE_ERR_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 991 #define OWR_INTR_SOURCE_0_PRESENCE_ERR_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 992 #define OWR_INTR_SOURCE_0_PRESENCE_ERR_SLAVE_DETECTED _MK_ENUM
_CONST(0) |
| 993 #define OWR_INTR_SOURCE_0_PRESENCE_ERR_NO_SLAVE_DETECTED
_MK_ENUM_CONST(1) |
| 994 |
| 995 #define OWR_INTR_SOURCE_0_CRC_ERR_SHIFT _MK_SHIFT_CONST(1) |
| 996 #define OWR_INTR_SOURCE_0_CRC_ERR_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_SOURCE_0_CRC_ERR_SHIFT) |
| 997 #define OWR_INTR_SOURCE_0_CRC_ERR_RANGE 1:1 |
| 998 #define OWR_INTR_SOURCE_0_CRC_ERR_WOFFSET 0x0 |
| 999 #define OWR_INTR_SOURCE_0_CRC_ERR_DEFAULT _MK_MASK_CONST(0
x0) |
| 1000 #define OWR_INTR_SOURCE_0_CRC_ERR_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1001 #define OWR_INTR_SOURCE_0_CRC_ERR_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1002 #define OWR_INTR_SOURCE_0_CRC_ERR_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1003 #define OWR_INTR_SOURCE_0_CRC_ERR_N0_ERROR _MK_ENUM_CONST(0
) |
| 1004 #define OWR_INTR_SOURCE_0_CRC_ERR_ERROR _MK_ENUM_CONST(1) |
| 1005 |
| 1006 #define OWR_INTR_SOURCE_0_MEM_WR_ERR_SHIFT _MK_SHIFT_CONST(
2) |
| 1007 #define OWR_INTR_SOURCE_0_MEM_WR_ERR_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_SOURCE_0_MEM_WR_ERR_SHIFT) |
| 1008 #define OWR_INTR_SOURCE_0_MEM_WR_ERR_RANGE 2:2 |
| 1009 #define OWR_INTR_SOURCE_0_MEM_WR_ERR_WOFFSET 0x0 |
| 1010 #define OWR_INTR_SOURCE_0_MEM_WR_ERR_DEFAULT _MK_MASK_CONST(0
x0) |
| 1011 #define OWR_INTR_SOURCE_0_MEM_WR_ERR_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 1012 #define OWR_INTR_SOURCE_0_MEM_WR_ERR_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1013 #define OWR_INTR_SOURCE_0_MEM_WR_ERR_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1014 #define OWR_INTR_SOURCE_0_MEM_WR_ERR_N0_ERROR _MK_ENUM_CONST(0
) |
| 1015 #define OWR_INTR_SOURCE_0_MEM_WR_ERR_ERROR _MK_ENUM_CONST(1
) |
| 1016 |
| 1017 #define OWR_INTR_SOURCE_0_ERR_CMD_SHIFT _MK_SHIFT_CONST(3) |
| 1018 #define OWR_INTR_SOURCE_0_ERR_CMD_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_SOURCE_0_ERR_CMD_SHIFT) |
| 1019 #define OWR_INTR_SOURCE_0_ERR_CMD_RANGE 3:3 |
| 1020 #define OWR_INTR_SOURCE_0_ERR_CMD_WOFFSET 0x0 |
| 1021 #define OWR_INTR_SOURCE_0_ERR_CMD_DEFAULT _MK_MASK_CONST(0
x0) |
| 1022 #define OWR_INTR_SOURCE_0_ERR_CMD_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1023 #define OWR_INTR_SOURCE_0_ERR_CMD_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1024 #define OWR_INTR_SOURCE_0_ERR_CMD_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1025 #define OWR_INTR_SOURCE_0_ERR_CMD_CORRECT_CMD _MK_ENUM_CONST(0
) |
| 1026 #define OWR_INTR_SOURCE_0_ERR_CMD_ERROR_CMD _MK_ENUM_CONST(1
) |
| 1027 |
| 1028 #define OWR_INTR_SOURCE_0_RESET_DONE_SHIFT _MK_SHIFT_CONST(
4) |
| 1029 #define OWR_INTR_SOURCE_0_RESET_DONE_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_SOURCE_0_RESET_DONE_SHIFT) |
| 1030 #define OWR_INTR_SOURCE_0_RESET_DONE_RANGE 4:4 |
| 1031 #define OWR_INTR_SOURCE_0_RESET_DONE_WOFFSET 0x0 |
| 1032 #define OWR_INTR_SOURCE_0_RESET_DONE_DEFAULT _MK_MASK_CONST(0
x0) |
| 1033 #define OWR_INTR_SOURCE_0_RESET_DONE_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 1034 #define OWR_INTR_SOURCE_0_RESET_DONE_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1035 #define OWR_INTR_SOURCE_0_RESET_DONE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1036 #define OWR_INTR_SOURCE_0_RESET_DONE_NOT_DONE _MK_ENUM_CONST(0
) |
| 1037 #define OWR_INTR_SOURCE_0_RESET_DONE_DONE _MK_ENUM_CONST(1
) |
| 1038 |
| 1039 #define OWR_INTR_SOURCE_0_PRESENCE_DONE_SHIFT _MK_SHIFT_CONST(
5) |
| 1040 #define OWR_INTR_SOURCE_0_PRESENCE_DONE_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_SOURCE_0_PRESENCE_DONE_SHIFT) |
| 1041 #define OWR_INTR_SOURCE_0_PRESENCE_DONE_RANGE 5:5 |
| 1042 #define OWR_INTR_SOURCE_0_PRESENCE_DONE_WOFFSET 0x0 |
| 1043 #define OWR_INTR_SOURCE_0_PRESENCE_DONE_DEFAULT _MK_MASK_CONST(0
x0) |
| 1044 #define OWR_INTR_SOURCE_0_PRESENCE_DONE_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 1045 #define OWR_INTR_SOURCE_0_PRESENCE_DONE_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 1046 #define OWR_INTR_SOURCE_0_PRESENCE_DONE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1047 #define OWR_INTR_SOURCE_0_PRESENCE_DONE_NOT_DONE _MK_ENUM
_CONST(0) |
| 1048 #define OWR_INTR_SOURCE_0_PRESENCE_DONE_DONE _MK_ENUM_CONST(1
) |
| 1049 |
| 1050 #define OWR_INTR_SOURCE_0_ROM_CMD_DONE_SHIFT _MK_SHIFT_CONST(
6) |
| 1051 #define OWR_INTR_SOURCE_0_ROM_CMD_DONE_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_SOURCE_0_ROM_CMD_DONE_SHIFT) |
| 1052 #define OWR_INTR_SOURCE_0_ROM_CMD_DONE_RANGE 6:6 |
| 1053 #define OWR_INTR_SOURCE_0_ROM_CMD_DONE_WOFFSET 0x0 |
| 1054 #define OWR_INTR_SOURCE_0_ROM_CMD_DONE_DEFAULT _MK_MASK_CONST(0
x0) |
| 1055 #define OWR_INTR_SOURCE_0_ROM_CMD_DONE_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 1056 #define OWR_INTR_SOURCE_0_ROM_CMD_DONE_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 1057 #define OWR_INTR_SOURCE_0_ROM_CMD_DONE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1058 #define OWR_INTR_SOURCE_0_ROM_CMD_DONE_NOT_DONE _MK_ENUM_CONST(0
) |
| 1059 #define OWR_INTR_SOURCE_0_ROM_CMD_DONE_DONE _MK_ENUM_CONST(1
) |
| 1060 |
| 1061 #define OWR_INTR_SOURCE_0_MEM_CMD_DONE_SHIFT _MK_SHIFT_CONST(
7) |
| 1062 #define OWR_INTR_SOURCE_0_MEM_CMD_DONE_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_SOURCE_0_MEM_CMD_DONE_SHIFT) |
| 1063 #define OWR_INTR_SOURCE_0_MEM_CMD_DONE_RANGE 7:7 |
| 1064 #define OWR_INTR_SOURCE_0_MEM_CMD_DONE_WOFFSET 0x0 |
| 1065 #define OWR_INTR_SOURCE_0_MEM_CMD_DONE_DEFAULT _MK_MASK_CONST(0
x0) |
| 1066 #define OWR_INTR_SOURCE_0_MEM_CMD_DONE_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 1067 #define OWR_INTR_SOURCE_0_MEM_CMD_DONE_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 1068 #define OWR_INTR_SOURCE_0_MEM_CMD_DONE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1069 #define OWR_INTR_SOURCE_0_MEM_CMD_DONE_NOT_DONE _MK_ENUM_CONST(0
) |
| 1070 #define OWR_INTR_SOURCE_0_MEM_CMD_DONE_DONE _MK_ENUM_CONST(1
) |
| 1071 |
| 1072 #define OWR_INTR_SOURCE_0_TXF_OVF_SHIFT _MK_SHIFT_CONST(8) |
| 1073 #define OWR_INTR_SOURCE_0_TXF_OVF_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_SOURCE_0_TXF_OVF_SHIFT) |
| 1074 #define OWR_INTR_SOURCE_0_TXF_OVF_RANGE 8:8 |
| 1075 #define OWR_INTR_SOURCE_0_TXF_OVF_WOFFSET 0x0 |
| 1076 #define OWR_INTR_SOURCE_0_TXF_OVF_DEFAULT _MK_MASK_CONST(0
x0) |
| 1077 #define OWR_INTR_SOURCE_0_TXF_OVF_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1078 #define OWR_INTR_SOURCE_0_TXF_OVF_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1079 #define OWR_INTR_SOURCE_0_TXF_OVF_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1080 #define OWR_INTR_SOURCE_0_TXF_OVF_NOT_EMPTY _MK_ENUM_CONST(0
) |
| 1081 #define OWR_INTR_SOURCE_0_TXF_OVF_EMPTY _MK_ENUM_CONST(1) |
| 1082 |
| 1083 #define OWR_INTR_SOURCE_0_RXF_UNR_SHIFT _MK_SHIFT_CONST(9) |
| 1084 #define OWR_INTR_SOURCE_0_RXF_UNR_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_SOURCE_0_RXF_UNR_SHIFT) |
| 1085 #define OWR_INTR_SOURCE_0_RXF_UNR_RANGE 9:9 |
| 1086 #define OWR_INTR_SOURCE_0_RXF_UNR_WOFFSET 0x0 |
| 1087 #define OWR_INTR_SOURCE_0_RXF_UNR_DEFAULT _MK_MASK_CONST(0
x0) |
| 1088 #define OWR_INTR_SOURCE_0_RXF_UNR_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1089 #define OWR_INTR_SOURCE_0_RXF_UNR_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1090 #define OWR_INTR_SOURCE_0_RXF_UNR_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1091 #define OWR_INTR_SOURCE_0_RXF_UNR_NOT_EMPTY _MK_ENUM_CONST(0
) |
| 1092 #define OWR_INTR_SOURCE_0_RXF_UNR_EMPTY _MK_ENUM_CONST(1) |
| 1093 |
| 1094 #define OWR_INTR_SOURCE_0_DGLITCH_SHIFT _MK_SHIFT_CONST(10) |
| 1095 #define OWR_INTR_SOURCE_0_DGLITCH_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_SOURCE_0_DGLITCH_SHIFT) |
| 1096 #define OWR_INTR_SOURCE_0_DGLITCH_RANGE 10:10 |
| 1097 #define OWR_INTR_SOURCE_0_DGLITCH_WOFFSET 0x0 |
| 1098 #define OWR_INTR_SOURCE_0_DGLITCH_DEFAULT _MK_MASK_CONST(0
x0) |
| 1099 #define OWR_INTR_SOURCE_0_DGLITCH_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1100 #define OWR_INTR_SOURCE_0_DGLITCH_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1101 #define OWR_INTR_SOURCE_0_DGLITCH_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1102 #define OWR_INTR_SOURCE_0_DGLITCH_DGLITCH_NOT_DETECTED _MK_ENUM
_CONST(0) |
| 1103 #define OWR_INTR_SOURCE_0_DGLITCH_DGLITCH_DETECTED _MK_ENUM
_CONST(1) |
| 1104 |
| 1105 #define OWR_INTR_SOURCE_0_TXFIFO_DATA_REQ_SHIFT _MK_SHIFT_CONST(
11) |
| 1106 #define OWR_INTR_SOURCE_0_TXFIFO_DATA_REQ_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_SOURCE_0_TXFIFO_DATA_REQ_SHIFT) |
| 1107 #define OWR_INTR_SOURCE_0_TXFIFO_DATA_REQ_RANGE 11:11 |
| 1108 #define OWR_INTR_SOURCE_0_TXFIFO_DATA_REQ_WOFFSET 0x0 |
| 1109 #define OWR_INTR_SOURCE_0_TXFIFO_DATA_REQ_DEFAULT _MK_MASK
_CONST(0x0) |
| 1110 #define OWR_INTR_SOURCE_0_TXFIFO_DATA_REQ_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 1111 #define OWR_INTR_SOURCE_0_TXFIFO_DATA_REQ_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 1112 #define OWR_INTR_SOURCE_0_TXFIFO_DATA_REQ_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 1113 #define OWR_INTR_SOURCE_0_TXFIFO_DATA_REQ_TX_NOT_RDY _MK_ENUM
_CONST(0) |
| 1114 #define OWR_INTR_SOURCE_0_TXFIFO_DATA_REQ_TX_RDY _MK_ENUM
_CONST(1) |
| 1115 |
| 1116 #define OWR_INTR_SOURCE_0_RXFIFO_DATA_REQ_SHIFT _MK_SHIFT_CONST(
12) |
| 1117 #define OWR_INTR_SOURCE_0_RXFIFO_DATA_REQ_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_SOURCE_0_RXFIFO_DATA_REQ_SHIFT) |
| 1118 #define OWR_INTR_SOURCE_0_RXFIFO_DATA_REQ_RANGE 12:12 |
| 1119 #define OWR_INTR_SOURCE_0_RXFIFO_DATA_REQ_WOFFSET 0x0 |
| 1120 #define OWR_INTR_SOURCE_0_RXFIFO_DATA_REQ_DEFAULT _MK_MASK
_CONST(0x0) |
| 1121 #define OWR_INTR_SOURCE_0_RXFIFO_DATA_REQ_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 1122 #define OWR_INTR_SOURCE_0_RXFIFO_DATA_REQ_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 1123 #define OWR_INTR_SOURCE_0_RXFIFO_DATA_REQ_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 1124 #define OWR_INTR_SOURCE_0_RXFIFO_DATA_REQ_RX_NOT_RDY _MK_ENUM
_CONST(0) |
| 1125 #define OWR_INTR_SOURCE_0_RXFIFO_DATA_REQ_RX_RDY _MK_ENUM
_CONST(1) |
| 1126 |
| 1127 #define OWR_INTR_SOURCE_0_BIT_TRANSFER_DONE_SHIFT _MK_SHIF
T_CONST(13) |
| 1128 #define OWR_INTR_SOURCE_0_BIT_TRANSFER_DONE_FIELD (_MK_MAS
K_CONST(0x1) << OWR_INTR_SOURCE_0_BIT_TRANSFER_DONE_SHIFT) |
| 1129 #define OWR_INTR_SOURCE_0_BIT_TRANSFER_DONE_RANGE 13:13 |
| 1130 #define OWR_INTR_SOURCE_0_BIT_TRANSFER_DONE_WOFFSET 0x0 |
| 1131 #define OWR_INTR_SOURCE_0_BIT_TRANSFER_DONE_DEFAULT _MK_MASK
_CONST(0x0) |
| 1132 #define OWR_INTR_SOURCE_0_BIT_TRANSFER_DONE_DEFAULT_MASK
_MK_MASK_CONST(0x1) |
| 1133 #define OWR_INTR_SOURCE_0_BIT_TRANSFER_DONE_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 1134 #define OWR_INTR_SOURCE_0_BIT_TRANSFER_DONE_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 1135 #define OWR_INTR_SOURCE_0_BIT_TRANSFER_DONE_NOT_DONE _MK_ENUM
_CONST(0) |
| 1136 #define OWR_INTR_SOURCE_0_BIT_TRANSFER_DONE_DONE _MK_ENUM
_CONST(1) |
| 1137 |
| 1138 |
| 1139 // Register OWR_INTR_SET_0 |
| 1140 #define OWR_INTR_SET_0 _MK_ADDR_CONST(0x30) |
| 1141 #define OWR_INTR_SET_0_SECURE 0x0 |
| 1142 #define OWR_INTR_SET_0_WORD_COUNT 0x1 |
| 1143 #define OWR_INTR_SET_0_RESET_VAL _MK_MASK_CONST(0x0) |
| 1144 #define OWR_INTR_SET_0_RESET_MASK _MK_MASK_CONST(0x27ff) |
| 1145 #define OWR_INTR_SET_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0) |
| 1146 #define OWR_INTR_SET_0_SW_DEFAULT_MASK _MK_MASK_CONST(0x0) |
| 1147 #define OWR_INTR_SET_0_READ_MASK _MK_MASK_CONST(0x27ff) |
| 1148 #define OWR_INTR_SET_0_WRITE_MASK _MK_MASK_CONST(0x27ff) |
| 1149 #define OWR_INTR_SET_0_PRESENCE_ERR_SHIFT _MK_SHIFT_CONST(
0) |
| 1150 #define OWR_INTR_SET_0_PRESENCE_ERR_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_SET_0_PRESENCE_ERR_SHIFT) |
| 1151 #define OWR_INTR_SET_0_PRESENCE_ERR_RANGE 0:0 |
| 1152 #define OWR_INTR_SET_0_PRESENCE_ERR_WOFFSET 0x0 |
| 1153 #define OWR_INTR_SET_0_PRESENCE_ERR_DEFAULT _MK_MASK_CONST(0
x0) |
| 1154 #define OWR_INTR_SET_0_PRESENCE_ERR_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 1155 #define OWR_INTR_SET_0_PRESENCE_ERR_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1156 #define OWR_INTR_SET_0_PRESENCE_ERR_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1157 #define OWR_INTR_SET_0_PRESENCE_ERR_SLAVE_DETECTED _MK_ENUM
_CONST(0) |
| 1158 #define OWR_INTR_SET_0_PRESENCE_ERR_NO_SLAVE_DETECTED _MK_ENUM
_CONST(1) |
| 1159 |
| 1160 #define OWR_INTR_SET_0_CRC_ERR_SHIFT _MK_SHIFT_CONST(1) |
| 1161 #define OWR_INTR_SET_0_CRC_ERR_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_SET_0_CRC_ERR_SHIFT) |
| 1162 #define OWR_INTR_SET_0_CRC_ERR_RANGE 1:1 |
| 1163 #define OWR_INTR_SET_0_CRC_ERR_WOFFSET 0x0 |
| 1164 #define OWR_INTR_SET_0_CRC_ERR_DEFAULT _MK_MASK_CONST(0x0) |
| 1165 #define OWR_INTR_SET_0_CRC_ERR_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1166 #define OWR_INTR_SET_0_CRC_ERR_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1167 #define OWR_INTR_SET_0_CRC_ERR_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1168 #define OWR_INTR_SET_0_CRC_ERR_N0_ERROR _MK_ENUM_CONST(0) |
| 1169 #define OWR_INTR_SET_0_CRC_ERR_ERROR _MK_ENUM_CONST(1) |
| 1170 |
| 1171 #define OWR_INTR_SET_0_MEM_WR_ERR_SHIFT _MK_SHIFT_CONST(2) |
| 1172 #define OWR_INTR_SET_0_MEM_WR_ERR_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_SET_0_MEM_WR_ERR_SHIFT) |
| 1173 #define OWR_INTR_SET_0_MEM_WR_ERR_RANGE 2:2 |
| 1174 #define OWR_INTR_SET_0_MEM_WR_ERR_WOFFSET 0x0 |
| 1175 #define OWR_INTR_SET_0_MEM_WR_ERR_DEFAULT _MK_MASK_CONST(0
x0) |
| 1176 #define OWR_INTR_SET_0_MEM_WR_ERR_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1177 #define OWR_INTR_SET_0_MEM_WR_ERR_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1178 #define OWR_INTR_SET_0_MEM_WR_ERR_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1179 #define OWR_INTR_SET_0_MEM_WR_ERR_N0_ERROR _MK_ENUM_CONST(0
) |
| 1180 #define OWR_INTR_SET_0_MEM_WR_ERR_ERROR _MK_ENUM_CONST(1) |
| 1181 |
| 1182 #define OWR_INTR_SET_0_ERR_CMD_SHIFT _MK_SHIFT_CONST(3) |
| 1183 #define OWR_INTR_SET_0_ERR_CMD_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_SET_0_ERR_CMD_SHIFT) |
| 1184 #define OWR_INTR_SET_0_ERR_CMD_RANGE 3:3 |
| 1185 #define OWR_INTR_SET_0_ERR_CMD_WOFFSET 0x0 |
| 1186 #define OWR_INTR_SET_0_ERR_CMD_DEFAULT _MK_MASK_CONST(0x0) |
| 1187 #define OWR_INTR_SET_0_ERR_CMD_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1188 #define OWR_INTR_SET_0_ERR_CMD_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1189 #define OWR_INTR_SET_0_ERR_CMD_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1190 #define OWR_INTR_SET_0_ERR_CMD_CORRECT_CMD _MK_ENUM_CONST(0
) |
| 1191 #define OWR_INTR_SET_0_ERR_CMD_ERROR_CMD _MK_ENUM_CONST(1
) |
| 1192 |
| 1193 #define OWR_INTR_SET_0_RESET_DONE_SHIFT _MK_SHIFT_CONST(4) |
| 1194 #define OWR_INTR_SET_0_RESET_DONE_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_SET_0_RESET_DONE_SHIFT) |
| 1195 #define OWR_INTR_SET_0_RESET_DONE_RANGE 4:4 |
| 1196 #define OWR_INTR_SET_0_RESET_DONE_WOFFSET 0x0 |
| 1197 #define OWR_INTR_SET_0_RESET_DONE_DEFAULT _MK_MASK_CONST(0
x0) |
| 1198 #define OWR_INTR_SET_0_RESET_DONE_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1199 #define OWR_INTR_SET_0_RESET_DONE_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1200 #define OWR_INTR_SET_0_RESET_DONE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1201 #define OWR_INTR_SET_0_RESET_DONE_NOT_DONE _MK_ENUM_CONST(0
) |
| 1202 #define OWR_INTR_SET_0_RESET_DONE_DONE _MK_ENUM_CONST(1) |
| 1203 |
| 1204 #define OWR_INTR_SET_0_PRESENCE_DONE_SHIFT _MK_SHIFT_CONST(
5) |
| 1205 #define OWR_INTR_SET_0_PRESENCE_DONE_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_SET_0_PRESENCE_DONE_SHIFT) |
| 1206 #define OWR_INTR_SET_0_PRESENCE_DONE_RANGE 5:5 |
| 1207 #define OWR_INTR_SET_0_PRESENCE_DONE_WOFFSET 0x0 |
| 1208 #define OWR_INTR_SET_0_PRESENCE_DONE_DEFAULT _MK_MASK_CONST(0
x0) |
| 1209 #define OWR_INTR_SET_0_PRESENCE_DONE_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 1210 #define OWR_INTR_SET_0_PRESENCE_DONE_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1211 #define OWR_INTR_SET_0_PRESENCE_DONE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1212 #define OWR_INTR_SET_0_PRESENCE_DONE_NOT_DONE _MK_ENUM_CONST(0
) |
| 1213 #define OWR_INTR_SET_0_PRESENCE_DONE_DONE _MK_ENUM_CONST(1
) |
| 1214 |
| 1215 #define OWR_INTR_SET_0_ROM_CMD_DONE_SHIFT _MK_SHIFT_CONST(
6) |
| 1216 #define OWR_INTR_SET_0_ROM_CMD_DONE_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_SET_0_ROM_CMD_DONE_SHIFT) |
| 1217 #define OWR_INTR_SET_0_ROM_CMD_DONE_RANGE 6:6 |
| 1218 #define OWR_INTR_SET_0_ROM_CMD_DONE_WOFFSET 0x0 |
| 1219 #define OWR_INTR_SET_0_ROM_CMD_DONE_DEFAULT _MK_MASK_CONST(0
x0) |
| 1220 #define OWR_INTR_SET_0_ROM_CMD_DONE_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 1221 #define OWR_INTR_SET_0_ROM_CMD_DONE_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1222 #define OWR_INTR_SET_0_ROM_CMD_DONE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1223 #define OWR_INTR_SET_0_ROM_CMD_DONE_NOT_DONE _MK_ENUM_CONST(0
) |
| 1224 #define OWR_INTR_SET_0_ROM_CMD_DONE_DONE _MK_ENUM_CONST(1
) |
| 1225 |
| 1226 #define OWR_INTR_SET_0_MEM_CMD_DONE_SHIFT _MK_SHIFT_CONST(
7) |
| 1227 #define OWR_INTR_SET_0_MEM_CMD_DONE_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_SET_0_MEM_CMD_DONE_SHIFT) |
| 1228 #define OWR_INTR_SET_0_MEM_CMD_DONE_RANGE 7:7 |
| 1229 #define OWR_INTR_SET_0_MEM_CMD_DONE_WOFFSET 0x0 |
| 1230 #define OWR_INTR_SET_0_MEM_CMD_DONE_DEFAULT _MK_MASK_CONST(0
x0) |
| 1231 #define OWR_INTR_SET_0_MEM_CMD_DONE_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 1232 #define OWR_INTR_SET_0_MEM_CMD_DONE_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1233 #define OWR_INTR_SET_0_MEM_CMD_DONE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1234 #define OWR_INTR_SET_0_MEM_CMD_DONE_NOT_DONE _MK_ENUM_CONST(0
) |
| 1235 #define OWR_INTR_SET_0_MEM_CMD_DONE_DONE _MK_ENUM_CONST(1
) |
| 1236 |
| 1237 #define OWR_INTR_SET_0_TXF_OVF_SHIFT _MK_SHIFT_CONST(8) |
| 1238 #define OWR_INTR_SET_0_TXF_OVF_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_SET_0_TXF_OVF_SHIFT) |
| 1239 #define OWR_INTR_SET_0_TXF_OVF_RANGE 8:8 |
| 1240 #define OWR_INTR_SET_0_TXF_OVF_WOFFSET 0x0 |
| 1241 #define OWR_INTR_SET_0_TXF_OVF_DEFAULT _MK_MASK_CONST(0x0) |
| 1242 #define OWR_INTR_SET_0_TXF_OVF_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1243 #define OWR_INTR_SET_0_TXF_OVF_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1244 #define OWR_INTR_SET_0_TXF_OVF_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1245 #define OWR_INTR_SET_0_TXF_OVF_NOT_EMPTY _MK_ENUM_CONST(0
) |
| 1246 #define OWR_INTR_SET_0_TXF_OVF_EMPTY _MK_ENUM_CONST(1) |
| 1247 |
| 1248 #define OWR_INTR_SET_0_RXF_UNR_SHIFT _MK_SHIFT_CONST(9) |
| 1249 #define OWR_INTR_SET_0_RXF_UNR_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_SET_0_RXF_UNR_SHIFT) |
| 1250 #define OWR_INTR_SET_0_RXF_UNR_RANGE 9:9 |
| 1251 #define OWR_INTR_SET_0_RXF_UNR_WOFFSET 0x0 |
| 1252 #define OWR_INTR_SET_0_RXF_UNR_DEFAULT _MK_MASK_CONST(0x0) |
| 1253 #define OWR_INTR_SET_0_RXF_UNR_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1254 #define OWR_INTR_SET_0_RXF_UNR_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1255 #define OWR_INTR_SET_0_RXF_UNR_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1256 #define OWR_INTR_SET_0_RXF_UNR_NOT_EMPTY _MK_ENUM_CONST(0
) |
| 1257 #define OWR_INTR_SET_0_RXF_UNR_EMPTY _MK_ENUM_CONST(1) |
| 1258 |
| 1259 #define OWR_INTR_SET_0_DGLITCH_SHIFT _MK_SHIFT_CONST(10) |
| 1260 #define OWR_INTR_SET_0_DGLITCH_FIELD (_MK_MASK_CONST(0x1) <<
OWR_INTR_SET_0_DGLITCH_SHIFT) |
| 1261 #define OWR_INTR_SET_0_DGLITCH_RANGE 10:10 |
| 1262 #define OWR_INTR_SET_0_DGLITCH_WOFFSET 0x0 |
| 1263 #define OWR_INTR_SET_0_DGLITCH_DEFAULT _MK_MASK_CONST(0x0) |
| 1264 #define OWR_INTR_SET_0_DGLITCH_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1265 #define OWR_INTR_SET_0_DGLITCH_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1266 #define OWR_INTR_SET_0_DGLITCH_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1267 #define OWR_INTR_SET_0_DGLITCH_DGLITCH_NOT_DETECTED _MK_ENUM
_CONST(0) |
| 1268 #define OWR_INTR_SET_0_DGLITCH_DGLITCH_DETECTED _MK_ENUM_CONST(1
) |
| 1269 |
| 1270 #define OWR_INTR_SET_0_BIT_TRANSFER_DONE_SHIFT _MK_SHIFT_CONST(
13) |
| 1271 #define OWR_INTR_SET_0_BIT_TRANSFER_DONE_FIELD (_MK_MASK_CONST(
0x1) << OWR_INTR_SET_0_BIT_TRANSFER_DONE_SHIFT) |
| 1272 #define OWR_INTR_SET_0_BIT_TRANSFER_DONE_RANGE 13:13 |
| 1273 #define OWR_INTR_SET_0_BIT_TRANSFER_DONE_WOFFSET 0x0 |
| 1274 #define OWR_INTR_SET_0_BIT_TRANSFER_DONE_DEFAULT _MK_MASK
_CONST(0x0) |
| 1275 #define OWR_INTR_SET_0_BIT_TRANSFER_DONE_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 1276 #define OWR_INTR_SET_0_BIT_TRANSFER_DONE_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 1277 #define OWR_INTR_SET_0_BIT_TRANSFER_DONE_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 1278 #define OWR_INTR_SET_0_BIT_TRANSFER_DONE_NOT_DONE _MK_ENUM
_CONST(0) |
| 1279 #define OWR_INTR_SET_0_BIT_TRANSFER_DONE_DONE _MK_ENUM_CONST(1
) |
| 1280 |
| 1281 |
| 1282 // Register OWR_STATUS_0 |
| 1283 #define OWR_STATUS_0 _MK_ADDR_CONST(0x34) |
| 1284 #define OWR_STATUS_0_SECURE 0x0 |
| 1285 #define OWR_STATUS_0_WORD_COUNT 0x1 |
| 1286 #define OWR_STATUS_0_RESET_VAL _MK_MASK_CONST(0x15) |
| 1287 #define OWR_STATUS_0_RESET_MASK _MK_MASK_CONST(0xffffff) |
| 1288 #define OWR_STATUS_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0) |
| 1289 #define OWR_STATUS_0_SW_DEFAULT_MASK _MK_MASK_CONST(0x0) |
| 1290 #define OWR_STATUS_0_READ_MASK _MK_MASK_CONST(0xffffff) |
| 1291 #define OWR_STATUS_0_WRITE_MASK _MK_MASK_CONST(0x60) |
| 1292 // Ready bit. This bit is set at the end of every transfer and |
| 1293 // its cleared by hardware when next transfer starts |
| 1294 #define OWR_STATUS_0_RDY_SHIFT _MK_SHIFT_CONST(0) |
| 1295 #define OWR_STATUS_0_RDY_FIELD (_MK_MASK_CONST(0x1) << OWR_STAT
US_0_RDY_SHIFT) |
| 1296 #define OWR_STATUS_0_RDY_RANGE 0:0 |
| 1297 #define OWR_STATUS_0_RDY_WOFFSET 0x0 |
| 1298 #define OWR_STATUS_0_RDY_DEFAULT _MK_MASK_CONST(0x1) |
| 1299 #define OWR_STATUS_0_RDY_DEFAULT_MASK _MK_MASK_CONST(0x1) |
| 1300 #define OWR_STATUS_0_RDY_SW_DEFAULT _MK_MASK_CONST(0x0) |
| 1301 #define OWR_STATUS_0_RDY_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1302 #define OWR_STATUS_0_RDY_NOT_READY _MK_ENUM_CONST(0) |
| 1303 #define OWR_STATUS_0_RDY_READY _MK_ENUM_CONST(1) |
| 1304 |
| 1305 // TX FIFO full status: RO.Hardware sets this bit to 1 if TX FIFO is full. |
| 1306 // Otherwise, this bit is set to 0. |
| 1307 #define OWR_STATUS_0_TXF_FULL_SHIFT _MK_SHIFT_CONST(1) |
| 1308 #define OWR_STATUS_0_TXF_FULL_FIELD (_MK_MASK_CONST(0x1) <<
OWR_STATUS_0_TXF_FULL_SHIFT) |
| 1309 #define OWR_STATUS_0_TXF_FULL_RANGE 1:1 |
| 1310 #define OWR_STATUS_0_TXF_FULL_WOFFSET 0x0 |
| 1311 #define OWR_STATUS_0_TXF_FULL_DEFAULT _MK_MASK_CONST(0x0) |
| 1312 #define OWR_STATUS_0_TXF_FULL_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1313 #define OWR_STATUS_0_TXF_FULL_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1314 #define OWR_STATUS_0_TXF_FULL_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1315 #define OWR_STATUS_0_TXF_FULL_NOT_FULL _MK_ENUM_CONST(0) |
| 1316 #define OWR_STATUS_0_TXF_FULL_FULL _MK_ENUM_CONST(1) |
| 1317 |
| 1318 // TX FIFO empty status: RO.Hardware sets this bit to 1 if TX FIFO is empty |
| 1319 // Otherwise, this bit is set to 0. |
| 1320 #define OWR_STATUS_0_TXF_EMPTY_SHIFT _MK_SHIFT_CONST(2) |
| 1321 #define OWR_STATUS_0_TXF_EMPTY_FIELD (_MK_MASK_CONST(0x1) <<
OWR_STATUS_0_TXF_EMPTY_SHIFT) |
| 1322 #define OWR_STATUS_0_TXF_EMPTY_RANGE 2:2 |
| 1323 #define OWR_STATUS_0_TXF_EMPTY_WOFFSET 0x0 |
| 1324 #define OWR_STATUS_0_TXF_EMPTY_DEFAULT _MK_MASK_CONST(0x1) |
| 1325 #define OWR_STATUS_0_TXF_EMPTY_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1326 #define OWR_STATUS_0_TXF_EMPTY_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1327 #define OWR_STATUS_0_TXF_EMPTY_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1328 #define OWR_STATUS_0_TXF_EMPTY_NOT_EMPTY _MK_ENUM_CONST(0
) |
| 1329 #define OWR_STATUS_0_TXF_EMPTY_EMPTY _MK_ENUM_CONST(1) |
| 1330 |
| 1331 // RX FIFO full status: RO.Hardware sets this bit to 1 if RX FIFO is full. |
| 1332 // Otherwise, this bit is set to 0. |
| 1333 #define OWR_STATUS_0_RXF_FULL_SHIFT _MK_SHIFT_CONST(3) |
| 1334 #define OWR_STATUS_0_RXF_FULL_FIELD (_MK_MASK_CONST(0x1) <<
OWR_STATUS_0_RXF_FULL_SHIFT) |
| 1335 #define OWR_STATUS_0_RXF_FULL_RANGE 3:3 |
| 1336 #define OWR_STATUS_0_RXF_FULL_WOFFSET 0x0 |
| 1337 #define OWR_STATUS_0_RXF_FULL_DEFAULT _MK_MASK_CONST(0x0) |
| 1338 #define OWR_STATUS_0_RXF_FULL_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1339 #define OWR_STATUS_0_RXF_FULL_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1340 #define OWR_STATUS_0_RXF_FULL_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1341 #define OWR_STATUS_0_RXF_FULL_NOT_FULL _MK_ENUM_CONST(0) |
| 1342 #define OWR_STATUS_0_RXF_FULL_FULL _MK_ENUM_CONST(1) |
| 1343 |
| 1344 // RX FIFO empty status: RO.Hardware sets this bit to 1 if RX FIFO is empty |
| 1345 // Otherwise, this bit is set to 0. |
| 1346 #define OWR_STATUS_0_RXF_EMPTY_SHIFT _MK_SHIFT_CONST(4) |
| 1347 #define OWR_STATUS_0_RXF_EMPTY_FIELD (_MK_MASK_CONST(0x1) <<
OWR_STATUS_0_RXF_EMPTY_SHIFT) |
| 1348 #define OWR_STATUS_0_RXF_EMPTY_RANGE 4:4 |
| 1349 #define OWR_STATUS_0_RXF_EMPTY_WOFFSET 0x0 |
| 1350 #define OWR_STATUS_0_RXF_EMPTY_DEFAULT _MK_MASK_CONST(0x1) |
| 1351 #define OWR_STATUS_0_RXF_EMPTY_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1352 #define OWR_STATUS_0_RXF_EMPTY_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1353 #define OWR_STATUS_0_RXF_EMPTY_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1354 #define OWR_STATUS_0_RXF_EMPTY_NOT_EMPTY _MK_ENUM_CONST(0
) |
| 1355 #define OWR_STATUS_0_RXF_EMPTY_EMPTY _MK_ENUM_CONST(1) |
| 1356 |
| 1357 // flush the tx fifo,cleared after fifo is empty |
| 1358 #define OWR_STATUS_0_TX_FLUSH_SHIFT _MK_SHIFT_CONST(5) |
| 1359 #define OWR_STATUS_0_TX_FLUSH_FIELD (_MK_MASK_CONST(0x1) <<
OWR_STATUS_0_TX_FLUSH_SHIFT) |
| 1360 #define OWR_STATUS_0_TX_FLUSH_RANGE 5:5 |
| 1361 #define OWR_STATUS_0_TX_FLUSH_WOFFSET 0x0 |
| 1362 #define OWR_STATUS_0_TX_FLUSH_DEFAULT _MK_MASK_CONST(0x0) |
| 1363 #define OWR_STATUS_0_TX_FLUSH_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1364 #define OWR_STATUS_0_TX_FLUSH_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1365 #define OWR_STATUS_0_TX_FLUSH_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1366 #define OWR_STATUS_0_TX_FLUSH_DISABLE _MK_ENUM_CONST(0) |
| 1367 #define OWR_STATUS_0_TX_FLUSH_ENABLE _MK_ENUM_CONST(1) |
| 1368 |
| 1369 // flush the rx fifo,cleared after fifo is empty |
| 1370 #define OWR_STATUS_0_RX_FLUSH_SHIFT _MK_SHIFT_CONST(6) |
| 1371 #define OWR_STATUS_0_RX_FLUSH_FIELD (_MK_MASK_CONST(0x1) <<
OWR_STATUS_0_RX_FLUSH_SHIFT) |
| 1372 #define OWR_STATUS_0_RX_FLUSH_RANGE 6:6 |
| 1373 #define OWR_STATUS_0_RX_FLUSH_WOFFSET 0x0 |
| 1374 #define OWR_STATUS_0_RX_FLUSH_DEFAULT _MK_MASK_CONST(0x0) |
| 1375 #define OWR_STATUS_0_RX_FLUSH_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1376 #define OWR_STATUS_0_RX_FLUSH_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1377 #define OWR_STATUS_0_RX_FLUSH_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1378 #define OWR_STATUS_0_RX_FLUSH_DISABLE _MK_ENUM_CONST(0) |
| 1379 #define OWR_STATUS_0_RX_FLUSH_ENABLE _MK_ENUM_CONST(1) |
| 1380 |
| 1381 // The number of slots to be read from the rx fifo |
| 1382 #define OWR_STATUS_0_RX_FIFO_FULL_CNT_SHIFT _MK_SHIFT_CONST(
7) |
| 1383 #define OWR_STATUS_0_RX_FIFO_FULL_CNT_FIELD (_MK_MASK_CONST(
0x3f) << OWR_STATUS_0_RX_FIFO_FULL_CNT_SHIFT) |
| 1384 #define OWR_STATUS_0_RX_FIFO_FULL_CNT_RANGE 12:7 |
| 1385 #define OWR_STATUS_0_RX_FIFO_FULL_CNT_WOFFSET 0x0 |
| 1386 #define OWR_STATUS_0_RX_FIFO_FULL_CNT_DEFAULT _MK_MASK_CONST(0
x0) |
| 1387 #define OWR_STATUS_0_RX_FIFO_FULL_CNT_DEFAULT_MASK _MK_MASK
_CONST(0x3f) |
| 1388 #define OWR_STATUS_0_RX_FIFO_FULL_CNT_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 1389 #define OWR_STATUS_0_RX_FIFO_FULL_CNT_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1390 |
| 1391 // The number of slots that can be written to the tx fifo |
| 1392 #define OWR_STATUS_0_TX_FIFO_EMPTY_CNT_SHIFT _MK_SHIFT_CONST(
13) |
| 1393 #define OWR_STATUS_0_TX_FIFO_EMPTY_CNT_FIELD (_MK_MASK_CONST(
0x3f) << OWR_STATUS_0_TX_FIFO_EMPTY_CNT_SHIFT) |
| 1394 #define OWR_STATUS_0_TX_FIFO_EMPTY_CNT_RANGE 18:13 |
| 1395 #define OWR_STATUS_0_TX_FIFO_EMPTY_CNT_WOFFSET 0x0 |
| 1396 #define OWR_STATUS_0_TX_FIFO_EMPTY_CNT_DEFAULT _MK_MASK_CONST(0
x0) |
| 1397 #define OWR_STATUS_0_TX_FIFO_EMPTY_CNT_DEFAULT_MASK _MK_MASK
_CONST(0x3f) |
| 1398 #define OWR_STATUS_0_TX_FIFO_EMPTY_CNT_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 1399 #define OWR_STATUS_0_TX_FIFO_EMPTY_CNT_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1400 |
| 1401 // this is set when rpp reset bit is set in ctl reg(go), |
| 1402 // auto cleared on completion of reset initialization sequence. |
| 1403 #define OWR_STATUS_0_RPP_SHIFT _MK_SHIFT_CONST(19) |
| 1404 #define OWR_STATUS_0_RPP_FIELD (_MK_MASK_CONST(0x1) << OWR_STAT
US_0_RPP_SHIFT) |
| 1405 #define OWR_STATUS_0_RPP_RANGE 19:19 |
| 1406 #define OWR_STATUS_0_RPP_WOFFSET 0x0 |
| 1407 #define OWR_STATUS_0_RPP_DEFAULT _MK_MASK_CONST(0x0) |
| 1408 #define OWR_STATUS_0_RPP_DEFAULT_MASK _MK_MASK_CONST(0x1) |
| 1409 #define OWR_STATUS_0_RPP_SW_DEFAULT _MK_MASK_CONST(0x0) |
| 1410 #define OWR_STATUS_0_RPP_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1411 #define OWR_STATUS_0_RPP_IDLE _MK_ENUM_CONST(0) |
| 1412 #define OWR_STATUS_0_RPP_RESET_PRESENCE_PULSE _MK_ENUM_CONST(1
) |
| 1413 |
| 1414 // WRITE 0 : This bit is self clearing,and is cleared |
| 1415 // when write zero time slot completes |
| 1416 // on write sequence 0 is transfered |
| 1417 #define OWR_STATUS_0_WR0_BUSY_SHIFT _MK_SHIFT_CONST(20) |
| 1418 #define OWR_STATUS_0_WR0_BUSY_FIELD (_MK_MASK_CONST(0x1) <<
OWR_STATUS_0_WR0_BUSY_SHIFT) |
| 1419 #define OWR_STATUS_0_WR0_BUSY_RANGE 20:20 |
| 1420 #define OWR_STATUS_0_WR0_BUSY_WOFFSET 0x0 |
| 1421 #define OWR_STATUS_0_WR0_BUSY_DEFAULT _MK_MASK_CONST(0x0) |
| 1422 #define OWR_STATUS_0_WR0_BUSY_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1423 #define OWR_STATUS_0_WR0_BUSY_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1424 #define OWR_STATUS_0_WR0_BUSY_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1425 #define OWR_STATUS_0_WR0_BUSY_IDLE _MK_ENUM_CONST(0) |
| 1426 #define OWR_STATUS_0_WR0_BUSY_BUSY _MK_ENUM_CONST(1) |
| 1427 |
| 1428 // WRITE1 : This is a self clearing bit and is cleared |
| 1429 // when write one time slot completes |
| 1430 // on write sequence 1 is transfered |
| 1431 #define OWR_STATUS_0_WR1_BUSY_SHIFT _MK_SHIFT_CONST(21) |
| 1432 #define OWR_STATUS_0_WR1_BUSY_FIELD (_MK_MASK_CONST(0x1) <<
OWR_STATUS_0_WR1_BUSY_SHIFT) |
| 1433 #define OWR_STATUS_0_WR1_BUSY_RANGE 21:21 |
| 1434 #define OWR_STATUS_0_WR1_BUSY_WOFFSET 0x0 |
| 1435 #define OWR_STATUS_0_WR1_BUSY_DEFAULT _MK_MASK_CONST(0x0) |
| 1436 #define OWR_STATUS_0_WR1_BUSY_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1437 #define OWR_STATUS_0_WR1_BUSY_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1438 #define OWR_STATUS_0_WR1_BUSY_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1439 #define OWR_STATUS_0_WR1_BUSY_IDLE _MK_ENUM_CONST(0) |
| 1440 #define OWR_STATUS_0_WR1_BUSY_BUSY _MK_ENUM_CONST(1) |
| 1441 |
| 1442 // READ : This is a self clearing bit and is cleared |
| 1443 // when read time slot completes |
| 1444 // on read sequence the sampled read bit is stored in READ_BIT |
| 1445 #define OWR_STATUS_0_RD_BUSY_SHIFT _MK_SHIFT_CONST(22) |
| 1446 #define OWR_STATUS_0_RD_BUSY_FIELD (_MK_MASK_CONST(0x1) <<
OWR_STATUS_0_RD_BUSY_SHIFT) |
| 1447 #define OWR_STATUS_0_RD_BUSY_RANGE 22:22 |
| 1448 #define OWR_STATUS_0_RD_BUSY_WOFFSET 0x0 |
| 1449 #define OWR_STATUS_0_RD_BUSY_DEFAULT _MK_MASK_CONST(0x0) |
| 1450 #define OWR_STATUS_0_RD_BUSY_DEFAULT_MASK _MK_MASK_CONST(0
x1) |
| 1451 #define OWR_STATUS_0_RD_BUSY_SW_DEFAULT _MK_MASK_CONST(0x0) |
| 1452 #define OWR_STATUS_0_RD_BUSY_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1453 #define OWR_STATUS_0_RD_BUSY_IDLE _MK_ENUM_CONST(0) |
| 1454 #define OWR_STATUS_0_RD_BUSY_BUSY _MK_ENUM_CONST(1) |
| 1455 |
| 1456 // the bit is valid only RD_BUSY is cleared |
| 1457 #define OWR_STATUS_0_READ_SAMPLED_BIT_SHIFT _MK_SHIFT_CONST(
23) |
| 1458 #define OWR_STATUS_0_READ_SAMPLED_BIT_FIELD (_MK_MASK_CONST(
0x1) << OWR_STATUS_0_READ_SAMPLED_BIT_SHIFT) |
| 1459 #define OWR_STATUS_0_READ_SAMPLED_BIT_RANGE 23:23 |
| 1460 #define OWR_STATUS_0_READ_SAMPLED_BIT_WOFFSET 0x0 |
| 1461 #define OWR_STATUS_0_READ_SAMPLED_BIT_DEFAULT _MK_MASK_CONST(0
x0) |
| 1462 #define OWR_STATUS_0_READ_SAMPLED_BIT_DEFAULT_MASK _MK_MASK
_CONST(0x1) |
| 1463 #define OWR_STATUS_0_READ_SAMPLED_BIT_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 1464 #define OWR_STATUS_0_READ_SAMPLED_BIT_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1465 #define OWR_STATUS_0_READ_SAMPLED_BIT_READ_ZERO _MK_ENUM_CONST(0
) |
| 1466 #define OWR_STATUS_0_READ_SAMPLED_BIT_READ_ONE _MK_ENUM_CONST(1
) |
| 1467 |
| 1468 |
| 1469 // Register OWR_CRC_0 |
| 1470 #define OWR_CRC_0 _MK_ADDR_CONST(0x38) |
| 1471 #define OWR_CRC_0_SECURE 0x0 |
| 1472 #define OWR_CRC_0_WORD_COUNT 0x1 |
| 1473 #define OWR_CRC_0_RESET_VAL _MK_MASK_CONST(0x0) |
| 1474 #define OWR_CRC_0_RESET_MASK _MK_MASK_CONST(0xffffffff) |
| 1475 #define OWR_CRC_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0) |
| 1476 #define OWR_CRC_0_SW_DEFAULT_MASK _MK_MASK_CONST(0x0) |
| 1477 #define OWR_CRC_0_READ_MASK _MK_MASK_CONST(0xffffffff) |
| 1478 #define OWR_CRC_0_WRITE_MASK _MK_MASK_CONST(0x0) |
| 1479 // CRC Received on Read Data |
| 1480 #define OWR_CRC_0_CRC_RECEV_SHIFT _MK_SHIFT_CONST(0) |
| 1481 #define OWR_CRC_0_CRC_RECEV_FIELD (_MK_MASK_CONST(0xffff)
<< OWR_CRC_0_CRC_RECEV_SHIFT) |
| 1482 #define OWR_CRC_0_CRC_RECEV_RANGE 15:0 |
| 1483 #define OWR_CRC_0_CRC_RECEV_WOFFSET 0x0 |
| 1484 #define OWR_CRC_0_CRC_RECEV_DEFAULT _MK_MASK_CONST(0x0) |
| 1485 #define OWR_CRC_0_CRC_RECEV_DEFAULT_MASK _MK_MASK_CONST(0
xffff) |
| 1486 #define OWR_CRC_0_CRC_RECEV_SW_DEFAULT _MK_MASK_CONST(0x0) |
| 1487 #define OWR_CRC_0_CRC_RECEV_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1488 |
| 1489 // CRC calculated by owr current wr/rd operation |
| 1490 #define OWR_CRC_0_CRC_CALC_SHIFT _MK_SHIFT_CONST(16) |
| 1491 #define OWR_CRC_0_CRC_CALC_FIELD (_MK_MASK_CONST(0xffff)
<< OWR_CRC_0_CRC_CALC_SHIFT) |
| 1492 #define OWR_CRC_0_CRC_CALC_RANGE 31:16 |
| 1493 #define OWR_CRC_0_CRC_CALC_WOFFSET 0x0 |
| 1494 #define OWR_CRC_0_CRC_CALC_DEFAULT _MK_MASK_CONST(0x0) |
| 1495 #define OWR_CRC_0_CRC_CALC_DEFAULT_MASK _MK_MASK_CONST(0xffff) |
| 1496 #define OWR_CRC_0_CRC_CALC_SW_DEFAULT _MK_MASK_CONST(0x0) |
| 1497 #define OWR_CRC_0_CRC_CALC_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1498 |
| 1499 |
| 1500 // Register OWR_BYTE_CNT_0 |
| 1501 #define OWR_BYTE_CNT_0 _MK_ADDR_CONST(0x3c) |
| 1502 #define OWR_BYTE_CNT_0_SECURE 0x0 |
| 1503 #define OWR_BYTE_CNT_0_WORD_COUNT 0x1 |
| 1504 #define OWR_BYTE_CNT_0_RESET_VAL _MK_MASK_CONST(0x0) |
| 1505 #define OWR_BYTE_CNT_0_RESET_MASK _MK_MASK_CONST(0xfffffff
f) |
| 1506 #define OWR_BYTE_CNT_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0) |
| 1507 #define OWR_BYTE_CNT_0_SW_DEFAULT_MASK _MK_MASK_CONST(0x0) |
| 1508 #define OWR_BYTE_CNT_0_READ_MASK _MK_MASK_CONST(0xfffffff
f) |
| 1509 #define OWR_BYTE_CNT_0_WRITE_MASK _MK_MASK_CONST(0x0) |
| 1510 // Number of bytes Received on Read Data includes crc byte cnt |
| 1511 #define OWR_BYTE_CNT_0_RECEIVED_SHIFT _MK_SHIFT_CONST(0) |
| 1512 #define OWR_BYTE_CNT_0_RECEIVED_FIELD (_MK_MASK_CONST(0xffff)
<< OWR_BYTE_CNT_0_RECEIVED_SHIFT) |
| 1513 #define OWR_BYTE_CNT_0_RECEIVED_RANGE 15:0 |
| 1514 #define OWR_BYTE_CNT_0_RECEIVED_WOFFSET 0x0 |
| 1515 #define OWR_BYTE_CNT_0_RECEIVED_DEFAULT _MK_MASK_CONST(0x0) |
| 1516 #define OWR_BYTE_CNT_0_RECEIVED_DEFAULT_MASK _MK_MASK_CONST(0
xffff) |
| 1517 #define OWR_BYTE_CNT_0_RECEIVED_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1518 #define OWR_BYTE_CNT_0_RECEIVED_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1519 |
| 1520 // Number of bytes Transmitted on wr cmds or addr sent |
| 1521 #define OWR_BYTE_CNT_0_TRANSMITTED_SHIFT _MK_SHIFT_CONST(
16) |
| 1522 #define OWR_BYTE_CNT_0_TRANSMITTED_FIELD (_MK_MASK_CONST(
0xffff) << OWR_BYTE_CNT_0_TRANSMITTED_SHIFT) |
| 1523 #define OWR_BYTE_CNT_0_TRANSMITTED_RANGE 31:16 |
| 1524 #define OWR_BYTE_CNT_0_TRANSMITTED_WOFFSET 0x0 |
| 1525 #define OWR_BYTE_CNT_0_TRANSMITTED_DEFAULT _MK_MASK_CONST(0
x0) |
| 1526 #define OWR_BYTE_CNT_0_TRANSMITTED_DEFAULT_MASK _MK_MASK_CONST(0
xffff) |
| 1527 #define OWR_BYTE_CNT_0_TRANSMITTED_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1528 #define OWR_BYTE_CNT_0_TRANSMITTED_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1529 |
| 1530 |
| 1531 // Register OWR_TX_FIFO_0 |
| 1532 #define OWR_TX_FIFO_0 _MK_ADDR_CONST(0x40) |
| 1533 #define OWR_TX_FIFO_0_SECURE 0x0 |
| 1534 #define OWR_TX_FIFO_0_WORD_COUNT 0x1 |
| 1535 #define OWR_TX_FIFO_0_RESET_VAL _MK_MASK_CONST(0x0) |
| 1536 #define OWR_TX_FIFO_0_RESET_MASK _MK_MASK_CONST(0xfffffff
f) |
| 1537 #define OWR_TX_FIFO_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0) |
| 1538 #define OWR_TX_FIFO_0_SW_DEFAULT_MASK _MK_MASK_CONST(0x0) |
| 1539 #define OWR_TX_FIFO_0_READ_MASK _MK_MASK_CONST(0xfffffff
f) |
| 1540 #define OWR_TX_FIFO_0_WRITE_MASK _MK_MASK_CONST(0xfffffff
f) |
| 1541 // TX FIFO |
| 1542 #define OWR_TX_FIFO_0_WR_DATA_SHIFT _MK_SHIFT_CONST(0) |
| 1543 #define OWR_TX_FIFO_0_WR_DATA_FIELD (_MK_MASK_CONST(0xffffff
ff) << OWR_TX_FIFO_0_WR_DATA_SHIFT) |
| 1544 #define OWR_TX_FIFO_0_WR_DATA_RANGE 31:0 |
| 1545 #define OWR_TX_FIFO_0_WR_DATA_WOFFSET 0x0 |
| 1546 #define OWR_TX_FIFO_0_WR_DATA_DEFAULT _MK_MASK_CONST(0x0) |
| 1547 #define OWR_TX_FIFO_0_WR_DATA_DEFAULT_MASK _MK_MASK_CONST(0
xffffffff) |
| 1548 #define OWR_TX_FIFO_0_WR_DATA_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1549 #define OWR_TX_FIFO_0_WR_DATA_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1550 |
| 1551 |
| 1552 // Register OWR_RX_FIFO_0 |
| 1553 #define OWR_RX_FIFO_0 _MK_ADDR_CONST(0x44) |
| 1554 #define OWR_RX_FIFO_0_SECURE 0x0 |
| 1555 #define OWR_RX_FIFO_0_WORD_COUNT 0x1 |
| 1556 #define OWR_RX_FIFO_0_RESET_VAL _MK_MASK_CONST(0x0) |
| 1557 #define OWR_RX_FIFO_0_RESET_MASK _MK_MASK_CONST(0xfffffff
f) |
| 1558 #define OWR_RX_FIFO_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0) |
| 1559 #define OWR_RX_FIFO_0_SW_DEFAULT_MASK _MK_MASK_CONST(0x0) |
| 1560 #define OWR_RX_FIFO_0_READ_MASK _MK_MASK_CONST(0xfffffff
f) |
| 1561 #define OWR_RX_FIFO_0_WRITE_MASK _MK_MASK_CONST(0x0) |
| 1562 // RX FIFO |
| 1563 #define OWR_RX_FIFO_0_RD_DATA_SHIFT _MK_SHIFT_CONST(0) |
| 1564 #define OWR_RX_FIFO_0_RD_DATA_FIELD (_MK_MASK_CONST(0xffffff
ff) << OWR_RX_FIFO_0_RD_DATA_SHIFT) |
| 1565 #define OWR_RX_FIFO_0_RD_DATA_RANGE 31:0 |
| 1566 #define OWR_RX_FIFO_0_RD_DATA_WOFFSET 0x0 |
| 1567 #define OWR_RX_FIFO_0_RD_DATA_DEFAULT _MK_MASK_CONST(0x0) |
| 1568 #define OWR_RX_FIFO_0_RD_DATA_DEFAULT_MASK _MK_MASK_CONST(0
xffffffff) |
| 1569 #define OWR_RX_FIFO_0_RD_DATA_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1570 #define OWR_RX_FIFO_0_RD_DATA_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1571 |
| 1572 |
| 1573 // Register OWR_STATE_BITS_0 |
| 1574 #define OWR_STATE_BITS_0 _MK_ADDR_CONST(0x48) |
| 1575 #define OWR_STATE_BITS_0_SECURE 0x0 |
| 1576 #define OWR_STATE_BITS_0_WORD_COUNT 0x1 |
| 1577 #define OWR_STATE_BITS_0_RESET_VAL _MK_MASK_CONST(0x0) |
| 1578 #define OWR_STATE_BITS_0_RESET_MASK _MK_MASK_CONST(0xffff) |
| 1579 #define OWR_STATE_BITS_0_SW_DEFAULT_VAL _MK_MASK_CONST(0
x0) |
| 1580 #define OWR_STATE_BITS_0_SW_DEFAULT_MASK _MK_MASK_CONST(0
x0) |
| 1581 #define OWR_STATE_BITS_0_READ_MASK _MK_MASK_CONST(0xffff) |
| 1582 #define OWR_STATE_BITS_0_WRITE_MASK _MK_MASK_CONST(0x0) |
| 1583 // controls reset initialization sequence , rom cmd and mem cmd |
| 1584 #define OWR_STATE_BITS_0_OWR_STATE_SHIFT _MK_SHIFT_CONST(
0) |
| 1585 #define OWR_STATE_BITS_0_OWR_STATE_FIELD (_MK_MASK_CONST(
0xf) << OWR_STATE_BITS_0_OWR_STATE_SHIFT) |
| 1586 #define OWR_STATE_BITS_0_OWR_STATE_RANGE 3:0 |
| 1587 #define OWR_STATE_BITS_0_OWR_STATE_WOFFSET 0x0 |
| 1588 #define OWR_STATE_BITS_0_OWR_STATE_DEFAULT _MK_MASK_CONST(0
x0) |
| 1589 #define OWR_STATE_BITS_0_OWR_STATE_DEFAULT_MASK _MK_MASK_CONST(0
xf) |
| 1590 #define OWR_STATE_BITS_0_OWR_STATE_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1591 #define OWR_STATE_BITS_0_OWR_STATE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1592 |
| 1593 // executes a particular cmd in rom or mem cmd |
| 1594 #define OWR_STATE_BITS_0_CMD_EXECUTE_STATE_SHIFT _MK_SHIF
T_CONST(4) |
| 1595 #define OWR_STATE_BITS_0_CMD_EXECUTE_STATE_FIELD (_MK_MAS
K_CONST(0xf) << OWR_STATE_BITS_0_CMD_EXECUTE_STATE_SHIFT) |
| 1596 #define OWR_STATE_BITS_0_CMD_EXECUTE_STATE_RANGE 7:4 |
| 1597 #define OWR_STATE_BITS_0_CMD_EXECUTE_STATE_WOFFSET 0x0 |
| 1598 #define OWR_STATE_BITS_0_CMD_EXECUTE_STATE_DEFAULT _MK_MASK
_CONST(0x0) |
| 1599 #define OWR_STATE_BITS_0_CMD_EXECUTE_STATE_DEFAULT_MASK _MK_MASK
_CONST(0xf) |
| 1600 #define OWR_STATE_BITS_0_CMD_EXECUTE_STATE_SW_DEFAULT _MK_MASK
_CONST(0x0) |
| 1601 #define OWR_STATE_BITS_0_CMD_EXECUTE_STATE_SW_DEFAULT_MASK
_MK_MASK_CONST(0x0) |
| 1602 |
| 1603 // executes write time slots |
| 1604 #define OWR_STATE_BITS_0_WRITE_STATE_SHIFT _MK_SHIFT_CONST(
8) |
| 1605 #define OWR_STATE_BITS_0_WRITE_STATE_FIELD (_MK_MASK_CONST(
0xf) << OWR_STATE_BITS_0_WRITE_STATE_SHIFT) |
| 1606 #define OWR_STATE_BITS_0_WRITE_STATE_RANGE 11:8 |
| 1607 #define OWR_STATE_BITS_0_WRITE_STATE_WOFFSET 0x0 |
| 1608 #define OWR_STATE_BITS_0_WRITE_STATE_DEFAULT _MK_MASK_CONST(0
x0) |
| 1609 #define OWR_STATE_BITS_0_WRITE_STATE_DEFAULT_MASK _MK_MASK
_CONST(0xf) |
| 1610 #define OWR_STATE_BITS_0_WRITE_STATE_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1611 #define OWR_STATE_BITS_0_WRITE_STATE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1612 |
| 1613 // executes read time slots |
| 1614 #define OWR_STATE_BITS_0_READ_STATE_SHIFT _MK_SHIFT_CONST(
12) |
| 1615 #define OWR_STATE_BITS_0_READ_STATE_FIELD (_MK_MASK_CONST(
0xf) << OWR_STATE_BITS_0_READ_STATE_SHIFT) |
| 1616 #define OWR_STATE_BITS_0_READ_STATE_RANGE 15:12 |
| 1617 #define OWR_STATE_BITS_0_READ_STATE_WOFFSET 0x0 |
| 1618 #define OWR_STATE_BITS_0_READ_STATE_DEFAULT _MK_MASK_CONST(0
x0) |
| 1619 #define OWR_STATE_BITS_0_READ_STATE_DEFAULT_MASK _MK_MASK
_CONST(0xf) |
| 1620 #define OWR_STATE_BITS_0_READ_STATE_SW_DEFAULT _MK_MASK_CONST(0
x0) |
| 1621 #define OWR_STATE_BITS_0_READ_STATE_SW_DEFAULT_MASK _MK_MASK
_CONST(0x0) |
| 1622 |
| 1623 |
| 1624 // |
| 1625 // REGISTER LIST |
| 1626 // |
| 1627 #define LIST_AROWR_REGS(_op_) \ |
| 1628 _op_(OWR_CONTROL_0) \ |
| 1629 _op_(OWR_COMMAND_0) \ |
| 1630 _op_(OWR_EPROM_0) \ |
| 1631 _op_(OWR_WR_RD_TCTL_0) \ |
| 1632 _op_(OWR_RST_PRESENCE_TCTL_0) \ |
| 1633 _op_(OWR_PPM_CORRECTION_TCTL_0) \ |
| 1634 _op_(OWR_PROG_PULSE_TCTL_0) \ |
| 1635 _op_(OWR_READ_ROM0_0) \ |
| 1636 _op_(OWR_READ_ROM1_0) \ |
| 1637 _op_(OWR_INTR_MASK_0) \ |
| 1638 _op_(OWR_INTR_STATUS_0) \ |
| 1639 _op_(OWR_INTR_SOURCE_0) \ |
| 1640 _op_(OWR_INTR_SET_0) \ |
| 1641 _op_(OWR_STATUS_0) \ |
| 1642 _op_(OWR_CRC_0) \ |
| 1643 _op_(OWR_BYTE_CNT_0) \ |
| 1644 _op_(OWR_TX_FIFO_0) \ |
| 1645 _op_(OWR_RX_FIFO_0) \ |
| 1646 _op_(OWR_STATE_BITS_0) |
| 1647 |
| 1648 |
| 1649 // |
| 1650 // ADDRESS SPACES |
| 1651 // |
| 1652 |
| 1653 #define BASE_ADDRESS_OWR 0x00000000 |
| 1654 |
| 1655 // |
| 1656 // AROWR REGISTER BANKS |
| 1657 // |
| 1658 |
| 1659 #define OWR0_FIRST_REG 0x0000 // OWR_CONTROL_0 |
| 1660 #define OWR0_LAST_REG 0x0048 // OWR_STATE_BITS_0 |
| 1661 |
| 1662 #ifndef _MK_SHIFT_CONST |
| 1663 #define _MK_SHIFT_CONST(_constant_) _constant_ |
| 1664 #endif |
| 1665 #ifndef _MK_MASK_CONST |
| 1666 #define _MK_MASK_CONST(_constant_) _constant_ |
| 1667 #endif |
| 1668 #ifndef _MK_ENUM_CONST |
| 1669 #define _MK_ENUM_CONST(_constant_) (_constant_ ## UL) |
| 1670 #endif |
| 1671 #ifndef _MK_ADDR_CONST |
| 1672 #define _MK_ADDR_CONST(_constant_) _constant_ |
| 1673 #endif |
| 1674 |
| 1675 #endif // ifndef ___AROWR_H_INC_ |
OLD | NEW |