1*fead0fdcSmsaitoh /* $NetBSD: gtreg.h,v 1.7 2021/11/10 17:19:30 msaitoh Exp $ */ 2ff2281b4Smatt 3ff2281b4Smatt /* 4ff2281b4Smatt * Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, Inc. 5ff2281b4Smatt * All rights reserved. 6ff2281b4Smatt * 7ff2281b4Smatt * Redistribution and use in source and binary forms, with or without 8ff2281b4Smatt * modification, are permitted provided that the following conditions 9ff2281b4Smatt * are met: 10ff2281b4Smatt * 1. Redistributions of source code must retain the above copyright 11ff2281b4Smatt * notice, this list of conditions and the following disclaimer. 12ff2281b4Smatt * 2. Redistributions in binary form must reproduce the above copyright 13ff2281b4Smatt * notice, this list of conditions and the following disclaimer in the 14ff2281b4Smatt * documentation and/or other materials provided with the distribution. 15ff2281b4Smatt * 3. All advertising materials mentioning features or use of this software 16ff2281b4Smatt * must display the following acknowledgement: 17ff2281b4Smatt * This product includes software developed for the NetBSD Project by 18ff2281b4Smatt * Allegro Networks, Inc., and Wasabi Systems, Inc. 19ff2281b4Smatt * 4. The name of Allegro Networks, Inc. may not be used to endorse 20ff2281b4Smatt * or promote products derived from this software without specific prior 21ff2281b4Smatt * written permission. 22ff2281b4Smatt * 5. The name of Wasabi Systems, Inc. may not be used to endorse 23ff2281b4Smatt * or promote products derived from this software without specific prior 24ff2281b4Smatt * written permission. 25ff2281b4Smatt * 26ff2281b4Smatt * THIS SOFTWARE IS PROVIDED BY ALLEGRO NETWORKS, INC. AND 27ff2281b4Smatt * WASABI SYSTEMS, INC. ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 28ff2281b4Smatt * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 29ff2281b4Smatt * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 30ff2281b4Smatt * IN NO EVENT SHALL EITHER ALLEGRO NETWORKS, INC. OR WASABI SYSTEMS, INC. 31ff2281b4Smatt * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 32ff2281b4Smatt * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 33ff2281b4Smatt * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 34ff2281b4Smatt * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 35ff2281b4Smatt * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 36ff2281b4Smatt * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 37ff2281b4Smatt * POSSIBILITY OF SUCH DAMAGE. 38ff2281b4Smatt */ 39ff2281b4Smatt 40ff2281b4Smatt #ifndef _DISCOVERY_DEV_GTREG_H_ 41ff2281b4Smatt #define _DISCOVERY_DEV_GTREG_H_ 42ff2281b4Smatt 43ff2281b4Smatt #define GT__BIT(bit) (1U << (bit)) 44ff2281b4Smatt #define GT__MASK(bit) (GT__BIT(bit) - 1) 45ff2281b4Smatt #define GT__EXT(data, bit, len) (((data) >> (bit)) & GT__MASK(len)) 46ff2281b4Smatt #define GT__CLR(data, bit, len) ((data) &= ~(GT__MASK(len) << (bit))) 47ff2281b4Smatt #define GT__INS(new, bit) ((new) << (bit)) 48ff2281b4Smatt 49a748aedcSkiyohara #define GT_SIZE 0x10000 50ff2281b4Smatt 51ff2281b4Smatt /* 52ff2281b4Smatt * Table 30: CPU Address Decode Register Map 53ff2281b4Smatt */ 54ff2281b4Smatt #define GT_SCS0_Low_Decode 0x0008 55ff2281b4Smatt #define GT_SCS0_High_Decode 0x0010 56ff2281b4Smatt #define GT_SCS1_Low_Decode 0x0208 57ff2281b4Smatt #define GT_SCS1_High_Decode 0x0210 58ff2281b4Smatt #define GT_SCS2_Low_Decode 0x0018 59ff2281b4Smatt #define GT_SCS2_High_Decode 0x0020 60ff2281b4Smatt #define GT_SCS3_Low_Decode 0x0218 61ff2281b4Smatt #define GT_SCS3_High_Decode 0x0220 62ff2281b4Smatt #define GT_CS0_Low_Decode 0x0028 63ff2281b4Smatt #define GT_CS0_High_Decode 0x0030 64ff2281b4Smatt #define GT_CS1_Low_Decode 0x0228 65ff2281b4Smatt #define GT_CS1_High_Decode 0x0230 66ff2281b4Smatt #define GT_CS2_Low_Decode 0x0248 67ff2281b4Smatt #define GT_CS2_High_Decode 0x0250 68ff2281b4Smatt #define GT_CS3_Low_Decode 0x0038 69ff2281b4Smatt #define GT_CS3_High_Decode 0x0040 70ff2281b4Smatt #define GT_BootCS_Low_Decode 0x0238 71ff2281b4Smatt #define GT_BootCS_High_Decode 0x0240 72ff2281b4Smatt #define GT_PCI0_IO_Low_Decode 0x0048 73ff2281b4Smatt #define GT_PCI0_IO_High_Decode 0x0050 74ff2281b4Smatt #define GT_PCI0_Mem0_Low_Decode 0x0058 75ff2281b4Smatt #define GT_PCI0_Mem0_High_Decode 0x0060 76ff2281b4Smatt #define GT_PCI0_Mem1_Low_Decode 0x0080 77ff2281b4Smatt #define GT_PCI0_Mem1_High_Decode 0x0088 78ff2281b4Smatt #define GT_PCI0_Mem2_Low_Decode 0x0258 79ff2281b4Smatt #define GT_PCI0_Mem2_High_Decode 0x0260 80ff2281b4Smatt #define GT_PCI0_Mem3_Low_Decode 0x0280 81ff2281b4Smatt #define GT_PCI0_Mem3_High_Decode 0x0288 82ff2281b4Smatt #define GT_PCI1_IO_Low_Decode 0x0090 83ff2281b4Smatt #define GT_PCI1_IO_High_Decode 0x0098 84ff2281b4Smatt #define GT_PCI1_Mem0_Low_Decode 0x00a0 85ff2281b4Smatt #define GT_PCI1_Mem0_High_Decode 0x00a8 86ff2281b4Smatt #define GT_PCI1_Mem1_Low_Decode 0x00b0 87ff2281b4Smatt #define GT_PCI1_Mem1_High_Decode 0x00b8 88ff2281b4Smatt #define GT_PCI1_Mem2_Low_Decode 0x02a0 89ff2281b4Smatt #define GT_PCI1_Mem2_High_Decode 0x02a8 90ff2281b4Smatt #define GT_PCI1_Mem3_Low_Decode 0x02b0 91ff2281b4Smatt #define GT_PCI1_Mem3_High_Decode 0x02b8 92ff2281b4Smatt #define GT_Internal_Decode 0x0068 93ff2281b4Smatt #define GT_CPU0_Low_Decode 0x0290 94ff2281b4Smatt #define GT_CPU0_High_Decode 0x0298 95ff2281b4Smatt #define GT_CPU1_Low_Decode 0x02c0 96ff2281b4Smatt #define GT_CPU1_High_Decode 0x02c8 97ff2281b4Smatt #define GT_PCI0_IO_Remap 0x00f0 98ff2281b4Smatt #define GT_PCI0_Mem0_Remap_Low 0x00f8 99ff2281b4Smatt #define GT_PCI0_Mem0_Remap_High 0x0320 100ff2281b4Smatt #define GT_PCI0_Mem1_Remap_Low 0x0100 101ff2281b4Smatt #define GT_PCI0_Mem1_Remap_High 0x0328 102ff2281b4Smatt #define GT_PCI0_Mem2_Remap_Low 0x02f8 103ff2281b4Smatt #define GT_PCI0_Mem2_Remap_High 0x0330 104ff2281b4Smatt #define GT_PCI0_Mem3_Remap_Low 0x0300 105ff2281b4Smatt #define GT_PCI0_Mem3_Remap_High 0x0338 106ff2281b4Smatt #define GT_PCI1_IO_Remap 0x0108 107ff2281b4Smatt #define GT_PCI1_Mem0_Remap_Low 0x0110 108ff2281b4Smatt #define GT_PCI1_Mem0_Remap_High 0x0340 109ff2281b4Smatt #define GT_PCI1_Mem1_Remap_Low 0x0118 110ff2281b4Smatt #define GT_PCI1_Mem1_Remap_High 0x0348 111ff2281b4Smatt #define GT_PCI1_Mem2_Remap_Low 0x0310 112ff2281b4Smatt #define GT_PCI1_Mem2_Remap_High 0x0350 113ff2281b4Smatt #define GT_PCI1_Mem3_Remap_Low 0x0318 114ff2281b4Smatt #define GT_PCI1_Mem3_Remap_High 0x0358 115ff2281b4Smatt 116ff2281b4Smatt 117ff2281b4Smatt /* 118ff2281b4Smatt * Table 31: CPU Control Register Map 119ff2281b4Smatt */ 120ff2281b4Smatt #define GT_CPU_Cfg 0x0000 121ff2281b4Smatt #define GT_CPU_Mode 0x0120 122ff2281b4Smatt #define GT_CPU_Master_Ctl 0x0160 123ff2281b4Smatt #define GT_CPU_If_Xbar_Ctl_Low 0x0150 124ff2281b4Smatt #define GT_CPU_If_Xbar_Ctl_High 0x0158 125ff2281b4Smatt #define GT_CPU_If_Xbar_Timeout 0x0168 126ff2281b4Smatt #define GT_CPU_Rd_Rsp_Xbar_Ctl_Low 0x0170 127ff2281b4Smatt #define GT_CPU_Rd_Rsp_Xbar_Ctl_High 0x0178 128ff2281b4Smatt 129ff2281b4Smatt /* 130ff2281b4Smatt * Table 32: CPU Sync Barrier Register Map 131ff2281b4Smatt */ 132ff2281b4Smatt #define GT_PCI_Sync_Barrier(bus) (0x00c0 | ((bus) << 3)) 133ff2281b4Smatt #define GT_PCI0_Sync_Barrier 0x00c0 134ff2281b4Smatt #define GT_PCI1_Sync_Barrier 0x00c8 135ff2281b4Smatt 136ff2281b4Smatt /* 137ff2281b4Smatt * Table 33: CPU Access Protection Register Map 138ff2281b4Smatt */ 139ff2281b4Smatt #define GT_Protect_Low_0 0x0180 140ff2281b4Smatt #define GT_Protect_High_0 0x0188 141ff2281b4Smatt #define GT_Protect_Low_1 0x0190 142ff2281b4Smatt #define GT_Protect_High_1 0x0198 143ff2281b4Smatt #define GT_Protect_Low_2 0x01a0 144ff2281b4Smatt #define GT_Protect_High_2 0x01a8 145ff2281b4Smatt #define GT_Protect_Low_3 0x01b0 146ff2281b4Smatt #define GT_Protect_High_3 0x01b8 147ff2281b4Smatt #define GT_Protect_Low_4 0x01c0 148ff2281b4Smatt #define GT_Protect_High_4 0x01c8 149ff2281b4Smatt #define GT_Protect_Low_5 0x01d0 150ff2281b4Smatt #define GT_Protect_High_5 0x01d8 151ff2281b4Smatt #define GT_Protect_Low_6 0x01e0 152ff2281b4Smatt #define GT_Protect_High_6 0x01e8 153ff2281b4Smatt #define GT_Protect_Low_7 0x01f0 154ff2281b4Smatt #define GT_Protect_High_7 0x01f8 155ff2281b4Smatt 156ff2281b4Smatt /* 157ff2281b4Smatt * Table 34: Snoop Control Register Map 158ff2281b4Smatt */ 159ff2281b4Smatt #define GT_Snoop_Base_0 0x0380 160ff2281b4Smatt #define GT_Snoop_Top_0 0x0388 161ff2281b4Smatt #define GT_Snoop_Base_1 0x0390 162ff2281b4Smatt #define GT_Snoop_Top_1 0x0398 163ff2281b4Smatt #define GT_Snoop_Base_2 0x03a0 164ff2281b4Smatt #define GT_Snoop_Top_2 0x03a8 165ff2281b4Smatt #define GT_Snoop_Base_3 0x03b0 166ff2281b4Smatt #define GT_Snoop_Top_3 0x03b8 167ff2281b4Smatt 168ff2281b4Smatt /* 169ff2281b4Smatt * Table 35: CPU Error Report Register Map 170ff2281b4Smatt */ 171ff2281b4Smatt #define GT_CPU_Error_Address_Low 0x0070 172ff2281b4Smatt #define GT_CPU_Error_Address_High 0x0078 173ff2281b4Smatt #define GT_CPU_Error_Data_Low 0x0128 174ff2281b4Smatt #define GT_CPU_Error_Data_High 0x0130 175ff2281b4Smatt #define GT_CPU_Error_Parity 0x0138 176ff2281b4Smatt #define GT_CPU_Error_Cause 0x0140 177ff2281b4Smatt #define GT_CPU_Error_Mask 0x0148 178ff2281b4Smatt 179ff2281b4Smatt #define GT_LowAddr_GET(v) (GT__EXT((v), 0, 12) << 20) 1808a73a79aSkiyohara #define GT_HighAddr_GET(v) \ 1818a73a79aSkiyohara ((v) != 0 ? ((GT__EXT((v), 0, 12) << 20) | 0xfffff) : 0) 1828a73a79aSkiyohara #define GT_LowAddr2_GET(v) (GT__EXT((v), 0, 16) << 16) 1838a73a79aSkiyohara #define GT_HighAddr2_GET(v) \ 1848a73a79aSkiyohara ((v) != 0 ? ((GT__EXT((v), 0, 16) << 16) | 0xffff) : 0) 1858a73a79aSkiyohara #define GT_LADDR_GET(v, mdl) \ 1868a73a79aSkiyohara (((mdl) == MARVELL_DISCOVERY) ? GT_LowAddr_GET(v) : GT_LowAddr2_GET(v)) 1878a73a79aSkiyohara #define GT_HADDR_GET(v, mdl) \ 1888a73a79aSkiyohara (((mdl) == MARVELL_DISCOVERY) ? GT_HighAddr_GET(v) : GT_HighAddr2_GET(v)) 189ff2281b4Smatt 190ff2281b4Smatt #define GT_MPP_Control0 0xf000 191ff2281b4Smatt #define GT_MPP_Control1 0xf004 192ff2281b4Smatt #define GT_MPP_Control2 0xf008 193ff2281b4Smatt #define GT_MPP_Control3 0xf00c 194ff2281b4Smatt 195ff2281b4Smatt #define GT_GPP_IO_Control 0xf100 196ff2281b4Smatt #define GT_GPP_Value 0xf104 197ff2281b4Smatt #define GT_GPP_Interrupt_Cause 0xf108 198ff2281b4Smatt #define GT_GPP_Interrupt_Mask 0xf10c 199a748aedcSkiyohara #define GT_GPP_Level_Control 0xf110 200a748aedcSkiyohara #define GT_GPP_Interrupt_Mask1 0xf114 201a748aedcSkiyohara #define GT_GPP_Value_Set 0xf118 202a748aedcSkiyohara #define GT_GPP_Value_Clear 0xf11c 203ff2281b4Smatt /* 204ff2281b4Smatt * Table 36: SCS[0]* Low Decode Address, Offset: 0x008 205ff2281b4Smatt * Table 38: SCS[1]* Low Decode Address, Offset: 0x208 206ff2281b4Smatt * Table 40: SCS[2]* Low Decode Address, Offset: 0x018 207ff2281b4Smatt * Table 42: SCS[3]* Low Decode Address, Offset: 0x218 208ff2281b4Smatt * Table 44: CS[0]* Low Decode Address, Offset: 0x028 209ff2281b4Smatt * Table 46: CS[1]* Low Decode Address, Offset: 0x228 210ff2281b4Smatt * Table 48: CS[2]* Low Decode Address, Offset: 0x248 211ff2281b4Smatt * Table 50: CS[3]* Low Decode Address, Offset: 0x038 212ff2281b4Smatt * Table 52: BootCS* Low Decode Address, Offset: 0x238 213ff2281b4Smatt * Table 75: CPU 0 Low Decode Address, Offset: 0x290 214ff2281b4Smatt * Table 77: CPU 1 Low Decode Address, Offset: 0x2c0 215ff2281b4Smatt * 216ff2281b4Smatt * 11:00 LowAddr SCS[0] Base Address 217ff2281b4Smatt * 31:12 Reserved Must be 0. 218ff2281b4Smatt */ 219ff2281b4Smatt 220ff2281b4Smatt /* 221ff2281b4Smatt * Table 37: SCS[0]* High Decode Address, Offset: 0x010 222ff2281b4Smatt * Table 39: SCS[1]* High Decode Address, Offset: 0x210 223ff2281b4Smatt * Table 41: SCS[2]* High Decode Address, Offset: 0x020 224ff2281b4Smatt * Table 43: SCS[3]* High Decode Address, Offset: 0x220 225ff2281b4Smatt * Table 45: CS[0]* High Decode Address, Offset: 0x030 226ff2281b4Smatt * Table 47: CS[1]* High Decode Address, Offset: 0x230 227ff2281b4Smatt * Table 49: CS[2]* High Decode Address, Offset: 0x250 228ff2281b4Smatt * Table 51: CS[3]* High Decode Address, Offset: 0x040 229ff2281b4Smatt * Table 53: BootCS* High Decode Address, Offset: 0x240 230ff2281b4Smatt * Table 76: CPU 0 High Decode Address, Offset: 0x298 231ff2281b4Smatt * Table 78: CPU 1 High Decode Address, Offset: 0x2c8 232ff2281b4Smatt * 233ff2281b4Smatt * 11:00 HighAddr SCS[0] Top Address 234ff2281b4Smatt * 31:12 Reserved 235ff2281b4Smatt */ 236ff2281b4Smatt 237ff2281b4Smatt /* 238ff2281b4Smatt * Table 54: PCI_0 I/O Low Decode Address, Offset: 0x048 239ff2281b4Smatt * Table 56: PCI_0 Memory 0 Low Decode Address, Offset: 0x058 240ff2281b4Smatt * Table 58: PCI_0 Memory 1 Low Decode Address, Offset: 0x080 241ff2281b4Smatt * Table 60: PCI_0 Memory 2 Low Decode Address, Offset: 0x258 242ff2281b4Smatt * Table 62: PCI_0 Memory 3 Low Decode Address, Offset: 0x280 243ff2281b4Smatt * Table 64: PCI_1 I/O Low Decode Address, Offset: 0x090 244ff2281b4Smatt * Table 66: PCI_1 Memory 0 Low Decode Address, Offset: 0x0a0 245ff2281b4Smatt * Table 68: PCI_1 Memory 1 Low Decode Address, Offset: 0x0b0 246ff2281b4Smatt * Table 70: PCI_1 Memory 2 Low Decode Address, Offset: 0x2a0 247ff2281b4Smatt * Table 72: PCI_1 Memory 3 Low Decode Address, Offset: 0x2b0 248ff2281b4Smatt * 249ff2281b4Smatt * 11:00 LowAddr PCI IO/Memory Space Base Address 250ff2281b4Smatt * 23:12 Reserved 251ff2281b4Smatt * 26:24 PCISwap PCI Master Data Swap Control (0: Byte Swap; 252ff2281b4Smatt * 1: No swapping; 2: Both byte and word swap; 253ff2281b4Smatt * 3: Word swap; 4..7: Reserved) 254ff2281b4Smatt * 27:27 PCIReq64 PCI master REQ64* policy (Relevant only when 255ff2281b4Smatt * configured to 64-bit PCI bus and not I/O) 256ff2281b4Smatt * 0: Assert s REQ64* only when transaction 257ff2281b4Smatt * is longer than 64-bits. 258ff2281b4Smatt * 1: Always assert REQ64*. 259ff2281b4Smatt * 31:28 Reserved 260ff2281b4Smatt */ 261ff2281b4Smatt #define GT_PCISwap_GET(v) GT__EXT((v), 24, 3) 262ff2281b4Smatt #define GT_PCISwap_ByteSwap 0 263ff2281b4Smatt #define GT_PCISwap_NoSwap 1 264ff2281b4Smatt #define GT_PCISwap_ByteWordSwap 2 265ff2281b4Smatt #define GT_PCISwap_WordSwap 3 266ff2281b4Smatt #define GT_PCI_LowDecode_PCIReq64 GT__BIT(27) 267ff2281b4Smatt 268ff2281b4Smatt /* 269ff2281b4Smatt * Table 55: PCI_0 I/O High Decode Address, Offset: 0x050 270ff2281b4Smatt * Table 57: PCI_0 Memory 0 High Decode Address, Offset: 0x060 271ff2281b4Smatt * Table 59: PCI_0 Memory 1 High Decode Address, Offset: 0x088 272ff2281b4Smatt * Table 61: PCI_0 Memory 2 High Decode Address, Offset: 0x260 273ff2281b4Smatt * Table 63: PCI_0 Memory 3 High Decode Address, Offset: 0x288 274ff2281b4Smatt * Table 65: PCI_1 I/O High Decode Address, Offset: 0x098 275ff2281b4Smatt * Table 67: PCI_1 Memory 0 High Decode Address, Offset: 0x0a8 276ff2281b4Smatt * Table 69: PCI_1 Memory 1 High Decode Address, Offset: 0x0b8 277ff2281b4Smatt * Table 71: PCI_1 Memory 2 High Decode Address, Offset: 0x2a8 278ff2281b4Smatt * Table 73: PCI_1 Memory 3 High Decode Address, Offset: 0x2b8 279ff2281b4Smatt * 280ff2281b4Smatt * 11:00 HighAddr PCI_0 I/O Space Top Address 281ff2281b4Smatt * 31:12 Reserved 282ff2281b4Smatt */ 283ff2281b4Smatt 284ff2281b4Smatt /* 285ff2281b4Smatt * Table 74: Internal Space Decode, Offset: 0x068 286ff2281b4Smatt * 15:00 IntDecode GT64260 Internal Space Base Address 287ff2281b4Smatt * 23:16 Reserved 288ff2281b4Smatt * 26:24 PCISwap Same as PCI_0 Memory 0 Low Decode Address. 289ff2281b4Smatt * NOTE: Reserved for Galileo Technology usage. 290ff2281b4Smatt * Relevant only for PCI master configuration 291ff2281b4Smatt * transactions on the PCI bus. 292ff2281b4Smatt * 31:27 Reserved 293ff2281b4Smatt */ 294ff2281b4Smatt 295ff2281b4Smatt /* 296ff2281b4Smatt * Table 79: PCI_0 I/O Address Remap, Offset: 0x0f0 297ff2281b4Smatt * Table 80: PCI_0 Memory 0 Address Remap Low, Offset: 0x0f8 298ff2281b4Smatt * Table 82: PCI_0 Memory 1 Address Remap Low, Offset: 0x100 299ff2281b4Smatt * Table 84: PCI_0 Memory 2 Address Remap Low, Offset: 0x2f8 300ff2281b4Smatt * Table 86: PCI_0 Memory 3 Address Remap Low, Offset: 0x300 301ff2281b4Smatt * Table 88: PCI_1 I/O Address Remap, Offset: 0x108 302ff2281b4Smatt * Table 89: PCI_1 Memory 0 Address Remap Low, Offset: 0x110 303ff2281b4Smatt * Table 91: PCI_1 Memory 1 Address Remap Low, Offset: 0x118 304ff2281b4Smatt * Table 93: PCI_1 Memory 2 Address Remap Low, Offset: 0x310 305ff2281b4Smatt * Table 95: PCI_1 Memory 3 Address Remap Low, Offset: 0x318 306ff2281b4Smatt * 307ff2281b4Smatt * 11:00 Remap PCI IO/Memory Space Address Remap (31:20) 308ff2281b4Smatt * 31:12 Reserved 309ff2281b4Smatt */ 310ff2281b4Smatt 311ff2281b4Smatt /* 312ff2281b4Smatt * Table 81: PCI_0 Memory 0 Address Remap High, Offset: 0x320 313ff2281b4Smatt * Table 83: PCI_0 Memory 1 Address Remap High, Offset: 0x328 314ff2281b4Smatt * Table 85: PCI_0 Memory 2 Address Remap High, Offset: 0x330 315ff2281b4Smatt * Table 87: PCI_0 Memory 3 Address Remap High, Offset: 0x338 316ff2281b4Smatt * Table 90: PCI_1 Memory 0 Address Remap High, Offset: 0x340 317ff2281b4Smatt * Table 92: PCI_1 Memory 1 Address Remap High, Offset: 0x348 318ff2281b4Smatt * Table 94: PCI_1 Memory 2 Address Remap High, Offset: 0x350 319ff2281b4Smatt * Table 96: PCI_1 Memory 3 Address Remap High, Offset: 0x358 320ff2281b4Smatt * 321ff2281b4Smatt * 31:00 Remap PCI Memory Address Remap (high 32 bits) 322ff2281b4Smatt */ 323ff2281b4Smatt 324ff2281b4Smatt /* 325ff2281b4Smatt * Table 97: CPU Configuration, Offset: 0x000 326ff2281b4Smatt * 07:00 NoMatchCnt CPU Address Miss Counter 327ff2281b4Smatt * 08:08 NoMatchCntEn CPU Address Miss Counter Enable 328ff2281b4Smatt * NOTE: Relevant only if multi-GT is enabled. 329ff2281b4Smatt * (0: Disabled; 1: Enabled) 330ff2281b4Smatt * 09:09 NoMatchCntExt CPU address miss counter MSB 331ff2281b4Smatt * 10:10 Reserved 332ff2281b4Smatt * 11:11 AACKDelay Address Acknowledge Delay 333ff2281b4Smatt * 0: AACK* is asserted one cycle after TS*. 334ff2281b4Smatt * 1: AACK* is asserted two cycles after TS*. 335*fead0fdcSmsaitoh * 12:12 Endianness Must be 0 336ff2281b4Smatt * NOTE: The GT64260 does not support the PowerPC 337ff2281b4Smatt * Little Endian convention 338ff2281b4Smatt * 13:13 Pipeline Pipeline Enable 339ff2281b4Smatt * 0: Disabled. The GT64260 will not respond with 340ff2281b4Smatt * AACK* to a new CPU transaction, before the 341ff2281b4Smatt * previous transaction data phase completes. 342ff2281b4Smatt * 1: Enabled. 343ff2281b4Smatt * 14:14 Reserved 344ff2281b4Smatt * 15:15 TADelay Transfer Acknowledge Delay 345ff2281b4Smatt * 0: TA* is asserted one cycle after AACK* 346ff2281b4Smatt * 1: TA* is asserted two cycles after AACK* 347ff2281b4Smatt * 16:16 RdOOO Read Out of Order Completion 348ff2281b4Smatt * 0: Not Supported, Data is always returned in 349ff2281b4Smatt * order (DTI[0-2] is always driven 350ff2281b4Smatt * 1: Supported 351ff2281b4Smatt * 17:17 StopRetry Relevant only if PCI Retry is enabled 352ff2281b4Smatt * 0: Keep Retry all PCI transactions targeted 353ff2281b4Smatt * to the GT64260. 354ff2281b4Smatt * 1: Stop Retry of PCI transactions. 355ff2281b4Smatt * 18:18 MultiGTDec Multi-GT Address Decode 356ff2281b4Smatt * 0: Normal address decoding 357ff2281b4Smatt * 1: Multi-GT address decoding 358ff2281b4Smatt * 19:19 DPValid CPU DP[0-7] Connection. CPU write parity ... 359ff2281b4Smatt * 0: is not checked. (Not connected) 360ff2281b4Smatt * 1: is checked (Connected) 361ff2281b4Smatt * 21:20 Reserved 362ff2281b4Smatt * 22:22 PErrProp Parity Error Propagation 363ff2281b4Smatt * 0: GT64260 always drives good parity on 364ff2281b4Smatt * DP[0-7] during CPU reads. 365ff2281b4Smatt * 1: GT64260 drives bad parity on DP[0-7] in case 366ff2281b4Smatt * the read response from the target interface 367ff2281b4Smatt * comes with erroneous data indication 368ff2281b4Smatt * (e.g. ECC error from SDRAM interface). 369ff2281b4Smatt * 25:23 Reserved 370ff2281b4Smatt * 26:26 APValid CPU AP[0-3] Connection. CPU address parity ... 371ff2281b4Smatt * 0: is not checked. (Not connected) 372ff2281b4Smatt * 1: is checked (Connected) 373ff2281b4Smatt * 27:27 RemapWrDis Address Remap Registers Write Control 374ff2281b4Smatt * 0: Write to Low Address decode register. 375ff2281b4Smatt * Results in writing of the corresponding 376ff2281b4Smatt * Remap register. 377ff2281b4Smatt * 1: Write to Low Address decode register. No 37856d66eb0Sandvar * effect on the corresponding Remap register. 379ff2281b4Smatt * 28:28 ConfSBDis Configuration Read Sync Barrier Disable 380ff2281b4Smatt * 0: enabled; 1: disabled 381ff2281b4Smatt * 29:29 IOSBDis I/O Read Sync Barrier Disable 382ff2281b4Smatt * 0: enabled; 1: disabled 383ff2281b4Smatt * 30:30 ClkSync Clocks Synchronization 384ff2281b4Smatt * 0: The CPU interface is running with SysClk, 385ff2281b4Smatt * which is asynchronous to TClk. 386ff2281b4Smatt * 1: The CPU interface is running with TClk. 387ff2281b4Smatt * 31:31 Reserved 388ff2281b4Smatt */ 389ff2281b4Smatt #define GT_CPUCfg_NoMatchCnt_GET(v) GT__EXT((v), 0, 8) 390ff2281b4Smatt #define GT_CPUCfg_NoMatchCntEn GT__BIT( 9) 391ff2281b4Smatt #define GT_CPUCfg_NoMatchCntExt GT__BIT(10) 392ff2281b4Smatt #define GT_CPUCfg_AACKDelay GT__BIT(11) 393*fead0fdcSmsaitoh #define GT_CPUCfg_Endianness GT__BIT(12) 394ff2281b4Smatt #define GT_CPUCfg_Pipeline GT__BIT(13) 395ff2281b4Smatt #define GT_CPUCfg_TADelay GT__BIT(15) 396ff2281b4Smatt #define GT_CPUCfg_RdOOO GT__BIT(16) 397ff2281b4Smatt #define GT_CPUCfg_StopRetry GT__BIT(17) 398ff2281b4Smatt #define GT_CPUCfg_MultiGTDec GT__BIT(18) 399ff2281b4Smatt #define GT_CPUCfg_DPValid GT__BIT(19) 400ff2281b4Smatt #define GT_CPUCfg_PErrProp GT__BIT(22) 401ff2281b4Smatt #define GT_CPUCfg_APValid GT__BIT(26) 402ff2281b4Smatt #define GT_CPUCfg_RemapWrDis GT__BIT(27) 403ff2281b4Smatt #define GT_CPUCfg_ConfSBDis GT__BIT(28) 404ff2281b4Smatt #define GT_CPUCfg_IOSBDis GT__BIT(29) 405ff2281b4Smatt #define GT_CPUCfg_ClkSync GT__BIT(30) 406ff2281b4Smatt 407ff2281b4Smatt /* 408ff2281b4Smatt * Table 98: CPU Mode, Offset: 0x120, Read only 409ff2281b4Smatt * 01:00 MultiGTID Multi-GT ID 410ff2281b4Smatt * Represents the ID to which the GT64260 responds 411ff2281b4Smatt * to during a multi-GT address decoding period. 412ff2281b4Smatt * 02:02 MultiGT (0: Single; 1: Multiple) GT configuration 413ff2281b4Smatt * 03:03 RetryEn (0: Don't; 1: Do) Retry PCI transactions 414ff2281b4Smatt * 07:04 CPUType 415ff2281b4Smatt * 0x0-0x3: Reserved 416ff2281b4Smatt * 0x4: 64-bit PowerPC CPU, 60x bus 417ff2281b4Smatt * 0x5: 64-bit PowerPC CPU, MPX bus 418ff2281b4Smatt * 0x6-0xf: Reserved 419ff2281b4Smatt * 31:08 Reserved 420ff2281b4Smatt */ 421ff2281b4Smatt #define GT_CPUMode_MultiGTID_GET(v) GT__EXT(v, 0, 2) 422ff2281b4Smatt #define GT_CPUMode_MultiGT GT__BIT(2) 423ff2281b4Smatt #define GT_CPUMode_RetryEn GT__BIT(3) 424ff2281b4Smatt #define GT_CPUMode_CPUType_GET(v) GT__EXT(v, 4, 4) 425ff2281b4Smatt 426ff2281b4Smatt /* 427ff2281b4Smatt * Table 99: CPU Master Control, Offset: 0x160 428ff2281b4Smatt * 07:00 Reserved 429ff2281b4Smatt * 08:08 IntArb CPU Bus Internal Arbiter Enable 430ff2281b4Smatt * NOTE: Only relevant to 60x bus mode. When 431ff2281b4Smatt * running MPX bus, the GT64260 internal 432ff2281b4Smatt * arbiter must be used. 433ff2281b4Smatt * 0: Disabled. External arbiter is required. 434ff2281b4Smatt * 1: Enabled. Use the GT64260 CPU bus arbiter. 435ff2281b4Smatt * 09:09 IntBusCtl CPU Interface Unit Internal Bus Control 436ff2281b4Smatt * NOTE: This bit must be set to 1. It is reserved 437ff2281b4Smatt * for Galileo Technology usage. 438ff2281b4Smatt * 0: Enable internal bus sharing between master 439ff2281b4Smatt * and slave interfaces. 440ff2281b4Smatt * 1: Disable internal bus sharing between master 441ff2281b4Smatt * and slave interfaces. 442ff2281b4Smatt * 10:10 MWrTrig Master Write Transaction Trigger 443ff2281b4Smatt * 0: With first valid write data 444ff2281b4Smatt * 1: With last valid write data 445ff2281b4Smatt * 11:11 MRdTrig Master Read Response Trigger 446ff2281b4Smatt * 0: With first valid read data 447ff2281b4Smatt * 1: With last valid read data 448ff2281b4Smatt * 12:12 CleanBlock Clean Block Snoop Transaction Support 449ff2281b4Smatt * 0: CPU does not support clean block (603e,750) 450ff2281b4Smatt * 1: CPU supports clean block (604e,G4) 451ff2281b4Smatt * 13:13 FlushBlock Flush Block Snoop Transaction Support 452ff2281b4Smatt * 0: CPU does not support flush block (603e,750) 453ff2281b4Smatt * 1: CPU supports flush block (604e,G4) 454ff2281b4Smatt * 31:14 Reserved 455ff2281b4Smatt */ 456ff2281b4Smatt #define GT_CPUMstrCtl_IntArb GT__BIT(8) 457ff2281b4Smatt #define GT_CPUMstrCtl_IntBusCtl GT__BIT(9) 458ff2281b4Smatt #define GT_CPUMstrCtl_MWrTrig GT__BIT(10) 459ff2281b4Smatt #define GT_CPUMstrCtl_MRdTrig GT__BIT(11) 460ff2281b4Smatt #define GT_CPUMstrCtl_CleanBlock GT__BIT(12) 461ff2281b4Smatt #define GT_CPUMstrCtl_FlushBlock GT__BIT(13) 462ff2281b4Smatt 463ff2281b4Smatt #define GT_ArbSlice_SDRAM 0x0 /* SDRAM interface snoop request */ 464ff2281b4Smatt #define GT_ArbSlice_DEVICE 0x1 /* Device request */ 465ff2281b4Smatt #define GT_ArbSlice_NULL 0x2 /* NULL request */ 466ff2281b4Smatt #define GT_ArbSlice_PCI0 0x3 /* PCI_0 access */ 467ff2281b4Smatt #define GT_ArbSlice_PCI1 0x4 /* PCI_1 access */ 468ff2281b4Smatt #define GT_ArbSlice_COMM 0x5 /* Comm unit access */ 469ff2281b4Smatt #define GT_ArbSlice_IDMA0123 0x6 /* IDMA channels 0/1/2/3 access */ 470ff2281b4Smatt #define GT_ArbSlice_IDMA4567 0x7 /* IDMA channels 4/5/6/7 access */ 471ff2281b4Smatt /* 0x8-0xf: Reserved */ 472ff2281b4Smatt 473ff2281b4Smatt /* Pass in the slice number (from 0..16) as 'n' 474ff2281b4Smatt */ 475ff2281b4Smatt #define GT_XbarCtl_GET_ArbSlice(v, n) GT__EXT((v), (((n) & 7)*4, 4) 476ff2281b4Smatt 477ff2281b4Smatt /* 478ff2281b4Smatt * Table 100: CPU Interface Crossbar Control Low, Offset: 0x150 479ff2281b4Smatt * 03:00 Arb0 Slice 0 of CPU Master pizza Arbiter 480ff2281b4Smatt * 07:04 Arb1 Slice 1 of CPU Master pizza Arbiter 481ff2281b4Smatt * 11:08 Arb2 Slice 2 of CPU Master pizza Arbiter 482ff2281b4Smatt * 15:12 Arb3 Slice 3 of CPU Master pizza Arbiter 483ff2281b4Smatt * 19:16 Arb4 Slice 4 of CPU Master pizza Arbiter 484ff2281b4Smatt * 23:20 Arb5 Slice 5 of CPU Master pizza Arbiter 485ff2281b4Smatt * 27:24 Arb6 Slice 6 of CPU Master pizza Arbiter 486ff2281b4Smatt * 31:28 Arb7 Slice 7 of CPU Master pizza Arbiter 487ff2281b4Smatt */ 488ff2281b4Smatt 489ff2281b4Smatt /* 490ff2281b4Smatt * Table 101: CPU Interface Crossbar Control High, Offset: 0x158 491ff2281b4Smatt * 03:00 Arb8 Slice 8 of CPU Master pizza Arbiter 492ff2281b4Smatt * 07:04 Arb9 Slice 9 of CPU Master pizza Arbiter 493ff2281b4Smatt * 11:08 Arb10 Slice 10 of CPU Master pizza Arbiter 494ff2281b4Smatt * 15:12 Arb11 Slice 11 of CPU Master pizza Arbiter 495ff2281b4Smatt * 19:16 Arb12 Slice 12 of CPU Master pizza Arbiter 496ff2281b4Smatt * 23:20 Arb13 Slice 13 of CPU Master pizza Arbiter 497ff2281b4Smatt * 27:24 Arb14 Slice 14 of CPU Master pizza Arbiter 498ff2281b4Smatt * 31:28 Arb15 Slice 15 of CPU Master pizza Arbiter 499ff2281b4Smatt */ 500ff2281b4Smatt 501ff2281b4Smatt /* 502ff2281b4Smatt * Table 102: CPU Interface Crossbar Timeout, Offset: 0x168 503ff2281b4Smatt * NOTE: Reserved for Galileo Technology usage. 504ff2281b4Smatt * 07:00 Timeout Crossbar Arbiter Timeout Preset Value 505ff2281b4Smatt * 15:08 Reserved 506ff2281b4Smatt * 16:16 TimeoutEn Crossbar Arbiter Timer Enable 507ff2281b4Smatt * (0: Enable; 1: Disable) 508ff2281b4Smatt * 31:17 Reserved 509ff2281b4Smatt */ 510ff2281b4Smatt 511ff2281b4Smatt /* 512ff2281b4Smatt * Table 103: CPU Read Response Crossbar Control Low, Offset: 0x170 513ff2281b4Smatt * 03:00 Arb0 Slice 0 of CPU Slave pizza Arbiter 514ff2281b4Smatt * 07:04 Arb1 Slice 1 of CPU Slave pizza Arbiter 515ff2281b4Smatt * 11:08 Arb2 Slice 2 of CPU Slave pizza Arbiter 516ff2281b4Smatt * 15:12 Arb3 Slice 3 of CPU Slave pizza Arbiter 517ff2281b4Smatt * 19:16 Arb4 Slice 4 of CPU Slave pizza Arbiter 518ff2281b4Smatt * 23:20 Arb5 Slice 5 of CPU Slave pizza Arbiter 519ff2281b4Smatt * 27:24 Arb6 Slice 6 of CPU Slave pizza Arbiter 520ff2281b4Smatt * 31:28 Arb7 Slice 7 of CPU Slave pizza Arbiter 521ff2281b4Smatt */ 522ff2281b4Smatt /* 523ff2281b4Smatt * Table 104: CPU Read Response Crossbar Control High, Offset: 0x178 524ff2281b4Smatt * 03:00 Arb8 Slice 8 of CPU Slave pizza Arbiter 525ff2281b4Smatt * 07:04 Arb9 Slice 9 of CPU Slave pizza Arbiter 526ff2281b4Smatt * 11:08 Arb10 Slice 10 of CPU Slave pizza Arbiter 527ff2281b4Smatt * 15:12 Arb11 Slice 11 of CPU Slave pizza Arbiter 528ff2281b4Smatt * 19:16 Arb12 Slice 12 of CPU Slave pizza Arbiter 529ff2281b4Smatt * 23:20 Arb13 Slice 13 of CPU Slave pizza Arbiter 530ff2281b4Smatt * 27:24 Arb14 Slice 14 of CPU Slave pizza Arbiter 531ff2281b4Smatt * 31:28 Arb15 Slice 15 of CPU Slave pizza Arbiter 532ff2281b4Smatt */ 533ff2281b4Smatt 534ff2281b4Smatt /* 535ff2281b4Smatt * Table 105: PCI_0 Sync Barrier Virtual Register, Offset: 0x0c0 536ff2281b4Smatt * Table 106: PCI_1 Sync Barrier Virtual Register, Offset: 0x0c8 537ff2281b4Smatt * NOTE: The read data is random and should be ignored. 538ff2281b4Smatt * 31:00 SyncBarrier A CPU read from this register creates a 539ff2281b4Smatt * synchronization barrier cycle. 540ff2281b4Smatt */ 541ff2281b4Smatt 542ff2281b4Smatt /* 543ff2281b4Smatt * Table 107: CPU Protect Address 0 Low, Offset: 0x180 544ff2281b4Smatt * Table 109: CPU Protect Address 1 Low, Offset: 0x190 545ff2281b4Smatt * Table 111: CPU Protect Address 2 Low, Offset: 0x1a0 546ff2281b4Smatt * Table 113: CPU Protect Address 3 Low, Offset: 0x1b0 547ff2281b4Smatt * Table 115: CPU Protect Address 4 Low, Offset: 0x1c0 548ff2281b4Smatt * Table 117: CPU Protect Address 5 Low, Offset: 0x1d0 549ff2281b4Smatt * Table 119: CPU Protect Address 6 Low, Offset: 0x1e0 550ff2281b4Smatt * Table 121: CPU Protect Address 7 Low, Offset: 0x1f0 551ff2281b4Smatt * 552ff2281b4Smatt * 11:00 LowAddr CPU Protect Region Base Address 553ff2281b4Smatt * Corresponds to address bits[31:20]. 554ff2281b4Smatt * 15:12 Reserved. Must be 0 555ff2281b4Smatt * 16:16 AccProtect CPU Access Protect 556ff2281b4Smatt * Access is (0: allowed; 1: forbidden) 557ff2281b4Smatt * 17:17 WrProtect CPU Write Protect 558ff2281b4Smatt * Writes are (0: allowed; 1: forbidden) 559ff2281b4Smatt * 18:18 CacheProtect CPU caching protect. Caching (block read) 560ff2281b4Smatt * is (0: allowed; 1: forbidden) 561ff2281b4Smatt * 31:19 Reserved 562ff2281b4Smatt */ 563ff2281b4Smatt #define GT_CPU_AccProtect GT__BIT(16) 564ff2281b4Smatt #define GT_CPU_WrProtect GT__BIT(17) 565ff2281b4Smatt #define GT_CPU_CacheProtect GT__BIT(18) 566ff2281b4Smatt 567ff2281b4Smatt /* 568ff2281b4Smatt * Table 108: CPU Protect Address 0 High, Offset: 0x188 569ff2281b4Smatt * Table 110: CPU Protect Address 1 High, Offset: 0x198 570ff2281b4Smatt * Table 112: CPU Protect Address 2 High, Offset: 0x1a8 571ff2281b4Smatt * Table 114: CPU Protect Address 3 High, Offset: 0x1b8 572ff2281b4Smatt * Table 116: CPU Protect Address 4 High, Offset: 0x1c8 573ff2281b4Smatt * Table 118: CPU Protect Address 5 High, Offset: 0x1d8 574ff2281b4Smatt * Table 120: CPU Protect Address 6 High, Offset: 0x1e8 575ff2281b4Smatt * Table 122: CPU Protect Address 7 High, Offset: 0x1f8 576ff2281b4Smatt * 577ff2281b4Smatt * 11:00 HighAddr CPU Protect Region Top Address 578ff2281b4Smatt * Corresponds to address bits[31:20] 579ff2281b4Smatt * 31:12 Reserved 580ff2281b4Smatt */ 581ff2281b4Smatt 582ff2281b4Smatt /* 583ff2281b4Smatt * Table 123: Snoop Base Address 0, Offset: 0x380 584ff2281b4Smatt * Table 125: Snoop Base Address 1, Offset: 0x390 585ff2281b4Smatt * Table 127: Snoop Base Address 2, Offset: 0x3a0 586ff2281b4Smatt * Table 129: Snoop Base Address 3, Offset: 0x3b0 587ff2281b4Smatt * 588ff2281b4Smatt * 11:00 LowAddr Snoop Region Base Address [31:20] 589ff2281b4Smatt * 15:12 Reserved Must be 0. 590ff2281b4Smatt * 17:16 Snoop Snoop Type 591ff2281b4Smatt * 0x0: No Snoop 592ff2281b4Smatt * 0x1: Snoop to WT region 593ff2281b4Smatt * 0x2: Snoop to WB region 594ff2281b4Smatt * 0x3: Reserved 595ff2281b4Smatt * 31:18 Reserved 596ff2281b4Smatt */ 597ff2281b4Smatt #define GT_Snoop_GET(v) GT__EXT((v), 16, 2) 598ff2281b4Smatt #define GT_Snoop_INS(v) GT__INS((v), 16) 599ff2281b4Smatt #define GT_Snoop_None 0 600ff2281b4Smatt #define GT_Snoop_WT 1 601ff2281b4Smatt #define GT_Snoop_WB 2 602ff2281b4Smatt 603ff2281b4Smatt 604ff2281b4Smatt /* 605ff2281b4Smatt * Table 124: Snoop Top Address 0, Offset: 0x388 606ff2281b4Smatt * Table 126: Snoop Top Address 1, Offset: 0x398 607ff2281b4Smatt * Table 128: Snoop Top Address 2, Offset: 0x3a8 608ff2281b4Smatt * Table 130: Snoop Top Address 3, Offset: 0x3b8 609ff2281b4Smatt * 11:00 HighAddr Snoop Region Top Address [31:20] 610ff2281b4Smatt * 31:12 Reserved 611ff2281b4Smatt */ 612ff2281b4Smatt 613ff2281b4Smatt 614ff2281b4Smatt /* 615ff2281b4Smatt * Table 131: CPU Error Address Low, Offset: 0x070, Read Only. 616ff2281b4Smatt * In case of multiple errors, only the first one is latched. New error 617ff2281b4Smatt * report latching is enabled only after the CPU Error Address Low register 618ff2281b4Smatt * is being read. 619ff2281b4Smatt * 31:00 ErrAddr Latched address bits [31:0] of a CPU 620ff2281b4Smatt * transaction in case of: 621ff2281b4Smatt * o illegal address (failed address decoding) 622ff2281b4Smatt * o access protection violation 623ff2281b4Smatt * o bad data parity 624ff2281b4Smatt * o bad address parity 625ff2281b4Smatt * Upon address latch, no new address are 626ff2281b4Smatt * registered (due to additional error condition), 627ff2281b4Smatt * until the register is being read. 628ff2281b4Smatt */ 629ff2281b4Smatt 630ff2281b4Smatt /* 631ff2281b4Smatt * Table 132: CPU Error Address High, Offset: 0x078, Read Only. 632ff2281b4Smatt * Once data is latched, no new data can be registered (due to additional 633ff2281b4Smatt * error condition), until CPU Error Low Address is being read (which 634ff2281b4Smatt * implies, it should be the last being read by the interrupt handler). 635ff2281b4Smatt * 03:00 Reserved 636ff2281b4Smatt * 07:04 ErrPar Latched address parity bits in case 637ff2281b4Smatt * of bad CPU address parity detection. 638ff2281b4Smatt * 31:08 Reserved 639ff2281b4Smatt */ 640ff2281b4Smatt #define GT_CPUErrorAddrHigh_ErrPar_GET(v) GT__EXT((v), 4, 4) 641ff2281b4Smatt 642ff2281b4Smatt /* 643ff2281b4Smatt * Table 133: CPU Error Data Low, Offset: 0x128, Read only. 644ff2281b4Smatt * 31:00 PErrData Latched data bits [31:0] in case of bad data 645ff2281b4Smatt * parity sampled on write transactions or on 646ff2281b4Smatt * master read transactions. 647ff2281b4Smatt */ 648ff2281b4Smatt 649ff2281b4Smatt /* 650ff2281b4Smatt * Table 134: CPU Error Data High, Offset: 0x130, Read only. 651ff2281b4Smatt * 31:00 PErrData Latched data bits [63:32] in case of bad data 652ff2281b4Smatt * parity sampled on write transactions or on 653ff2281b4Smatt * master read transactions. 654ff2281b4Smatt */ 655ff2281b4Smatt 656ff2281b4Smatt /* 657ff2281b4Smatt * Table 135: CPU Error Parity, Offset: 0x138, Read only. 658ff2281b4Smatt * 07:00 PErrPar Latched data parity bus in case of bad data 659ff2281b4Smatt * parity sampled on write transactions or on 660ff2281b4Smatt * master read transactions. 661ff2281b4Smatt * 31:10 Reserved 662ff2281b4Smatt */ 663ff2281b4Smatt #define GT_CPUErrorParity_PErrPar_GET(v) GT__EXT((v), 0, 8) 664ff2281b4Smatt 665ff2281b4Smatt /* 666ff2281b4Smatt * Table 136: CPU Error Cause, Offset: 0x140 667ff2281b4Smatt * Bits[7:0] are clear only. A cause bit is set upon an error condition 668ff2281b4Smatt * occurrence. Write a 0 value to clear the bit. Writing a 1 value has 66956d66eb0Sandvar * no effect. 670ff2281b4Smatt * 00:00 AddrOut CPU Address Out of Range 671ff2281b4Smatt * 01:01 AddrPErr Bad Address Parity Detected 672ff2281b4Smatt * 02:02 TTErr Transfer Type Violation. 673ff2281b4Smatt * The CPU attempts to burst (read or write) to an 674ff2281b4Smatt * internal register. 675ff2281b4Smatt * 03:03 AccErr Access to a Protected Region 676ff2281b4Smatt * 04:04 WrErr Write to a Write Protected Region 677ff2281b4Smatt * 05:05 CacheErr Read from a Caching protected region 678ff2281b4Smatt * 06:06 WrDataPErr Bad Write Data Parity Detected 679ff2281b4Smatt * 07:07 RdDataPErr Bad Read Data Parity Detected 680ff2281b4Smatt * 26:08 Reserved 681ff2281b4Smatt * 31:27 Sel Specifies the error event currently being 682ff2281b4Smatt * reported in Error Address, Error Data, and 683ff2281b4Smatt * Error Parity registers. 684ff2281b4Smatt * 0x0: AddrOut 685ff2281b4Smatt * 0x1: AddrPErr 686ff2281b4Smatt * 0x2: TTErr 687ff2281b4Smatt * 0x3: AccErr 688ff2281b4Smatt * 0x4: WrErr 689ff2281b4Smatt * 0x5: CacheErr 690ff2281b4Smatt * 0x6: WrDataPErr 691ff2281b4Smatt * 0x7: RdDataPErr 692ff2281b4Smatt * 0x8-0x1f: Reserved 693ff2281b4Smatt */ 694ff2281b4Smatt #define GT_CPUError_AddrOut GT__BIT(GT_CPUError_Sel_AddrOut) 695ff2281b4Smatt #define GT_CPUError_AddrPErr GT__BIT(GT_CPUError_Sel_AddrPErr) 696ff2281b4Smatt #define GT_CPUError_TTErr GT__BIT(GT_CPUError_Sel_TTErr) 697ff2281b4Smatt #define GT_CPUError_AccErr GT__BIT(GT_CPUError_Sel_AccErr) 698ff2281b4Smatt #define GT_CPUError_WrErr GT__BIT(GT_CPUError_Sel_WrPErr) 699ff2281b4Smatt #define GT_CPUError_CacheErr GT__BIT(GT_CPUError_Sel_CachePErr) 700ff2281b4Smatt #define GT_CPUError_WrDataPErr GT__BIT(GT_CPUError_Sel_WrDataPErr) 701ff2281b4Smatt #define GT_CPUError_RdDataPErr GT__BIT(GT_CPUError_Sel_RdDataPErr) 702ff2281b4Smatt 703ff2281b4Smatt #define GT_CPUError_Sel_AddrOut 0 704ff2281b4Smatt #define GT_CPUError_Sel_AddrPErr 1 705ff2281b4Smatt #define GT_CPUError_Sel_TTErr 2 706ff2281b4Smatt #define GT_CPUError_Sel_AccErr 3 707ff2281b4Smatt #define GT_CPUError_Sel_WrErr 4 708ff2281b4Smatt #define GT_CPUError_Sel_CacheErr 5 709ff2281b4Smatt #define GT_CPUError_Sel_WrDataPErr 6 710ff2281b4Smatt #define GT_CPUError_Sel_RdDataPErr 7 711ff2281b4Smatt 712ff2281b4Smatt #define GT_CPUError_Sel_GET(v) GT__EXT((v), 27, 5) 713ff2281b4Smatt 714ff2281b4Smatt /* 715ff2281b4Smatt * Table 137: CPU Error Mask, Offset: 0x148 716ff2281b4Smatt * 00:00 AddrOut If set to 1, enables AddrOut interrupt. 717ff2281b4Smatt * 01:01 AddrPErr If set to 1, enables AddrPErr interrupt. 718ff2281b4Smatt * 02:02 TTErr If set to 1, enables TTErr interrupt. 719ff2281b4Smatt * 03:03 AccErr If set to 1, enables AccErr interrupt. 720ff2281b4Smatt * 04:04 WrErr If set to 1, enables WrErr interrupt. 721ff2281b4Smatt * 05:05 CacheErr If set to 1, enables CacheErr interrupt. 722ff2281b4Smatt * 06:06 WrDataPErr If set to 1, enables WrDataPErr interrupt. 723ff2281b4Smatt * 07:07 RdDataPErr If set to 1, enables RdDataPErr interrupt. 724ff2281b4Smatt * 31:08 Reserved 725ff2281b4Smatt */ 726ff2281b4Smatt 727ff2281b4Smatt /* 728ff2281b4Smatt * Comm Unit Interrupt registers 729ff2281b4Smatt */ 730ff2281b4Smatt #define GT_CommUnitIntr_Cause 0xf310 731ff2281b4Smatt #define GT_CommUnitIntr_Mask 0xf314 732ff2281b4Smatt #define GT_CommUnitIntr_ErrAddr 0xf318 733ff2281b4Smatt 734ff2281b4Smatt #define GT_CommUnitIntr_E0 0x00000007 735ff2281b4Smatt #define GT_CommUnitIntr_E1 0x00000070 736ff2281b4Smatt #define GT_CommUnitIntr_E2 0x00000700 737ff2281b4Smatt #define GT_CommUnitIntr_S0 0x00070000 738ff2281b4Smatt #define GT_CommUnitIntr_S1 0x00700000 739ff2281b4Smatt #define GT_CommUnitIntr_Sel 0x70000000 740ff2281b4Smatt 741ff2281b4Smatt /* 742ff2281b4Smatt * SDRAM Error Report (ECC) Registers 743ff2281b4Smatt */ 744ff2281b4Smatt #define GT_ECC_Data_Lo 0x484 /* latched Error Data (low) */ 745ff2281b4Smatt #define GT_ECC_Data_Hi 0x480 /* latched Error Data (high) */ 746ff2281b4Smatt #define GT_ECC_Addr 0x490 /* latched Error Address */ 747ff2281b4Smatt #define GT_ECC_Rec 0x488 /* latched ECC code from SDRAM */ 748ff2281b4Smatt #define GT_ECC_Calc 0x48c /* latched ECC code from SDRAM */ 749ff2281b4Smatt #define GT_ECC_Ctl 0x494 /* ECC Control */ 750ff2281b4Smatt #define GT_ECC_Count 0x498 /* ECC 1-bit error count */ 751ff2281b4Smatt 752ff2281b4Smatt /* 753ff2281b4Smatt * Watchdog Registers 754ff2281b4Smatt */ 755ff2281b4Smatt #define GT_WDOG_Config 0xb410 756ff2281b4Smatt #define GT_WDOG_Value 0xb414 757ff2281b4Smatt #define GT_WDOG_Value_NMI GT__MASK(24) 758ff2281b4Smatt #define GT_WDOG_Config_Preset GT__MASK(24) 759ff2281b4Smatt #define GT_WDOG_Config_Ctl1a GT__BIT(24) 760ff2281b4Smatt #define GT_WDOG_Config_Ctl1b GT__BIT(25) 761ff2281b4Smatt #define GT_WDOG_Config_Ctl2a GT__BIT(26) 762ff2281b4Smatt #define GT_WDOG_Config_Ctl2b GT__BIT(27) 763ff2281b4Smatt #define GT_WDOG_Config_Enb GT__BIT(31) 764ff2281b4Smatt 765ff2281b4Smatt #define GT_WDOG_NMI_DFLT (GT__MASK(24) & GT_WDOG_Value_NMI) 766ff2281b4Smatt #define GT_WDOG_Preset_DFLT (GT__MASK(22) & GT_WDOG_Config_Preset) 767ff2281b4Smatt 768ff2281b4Smatt /* 769ff2281b4Smatt * Device Bus Interrupts 770ff2281b4Smatt */ 771ff2281b4Smatt #define GT_DEVBUS_ICAUSE 0x4d0 /* Device Interrupt Cause */ 772ff2281b4Smatt #define GT_DEVBUS_IMASK 0x4d4 /* Device Interrupt Mask */ 773ff2281b4Smatt #define GT_DEVBUS_ERR_ADDR 0x4d8 /* Device Error Address */ 774ff2281b4Smatt 775ff2281b4Smatt /* 776ff2281b4Smatt * bit defines for GT_DEVBUS_ICAUSE, GT_DEVBUS_IMASK 777ff2281b4Smatt */ 778ff2281b4Smatt #define GT_DEVBUS_DBurstErr GT__BIT(0) 779ff2281b4Smatt #define GT_DEVBUS_DRdyErr GT__BIT(1) 780ff2281b4Smatt #define GT_DEVBUS_Sel GT__BIT(27) 781ff2281b4Smatt #define GT_DEVBUS_RES ~(GT_DEVBUS_DBurstErr|GT_DEVBUS_DRdyErr|GT_DEVBUS_Sel) 782ff2281b4Smatt 783ff2281b4Smatt 784a748aedcSkiyohara #define ETH0_BASE 0x2400 785a748aedcSkiyohara #define ETH1_BASE 0x2800 786a748aedcSkiyohara #define ETH2_BASE 0x2c00 787a748aedcSkiyohara #define MPSC0_BASE 0x8000 788a748aedcSkiyohara #define MPSC1_BASE 0x9000 789a748aedcSkiyohara 790ff2281b4Smatt #endif /* !_DISCOVERY_DEV_GTREG_H */ 791