Aubrey Li | 10ebdd9 | 2007-03-19 01:24:52 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2004 Analog Devices Inc., All Rights Reserved. |
| 3 | * |
| 4 | *********************************************************************************** |
| 5 | * |
| 6 | * This include file contains a list of macro "defines" to enable the programmer |
| 7 | * to use symbolic names for register-access. |
| 8 | * |
| 9 | * ---------------------------- |
| 10 | * revision 0.1 |
| 11 | * date: 2004/03/01 21:23:01; author: joeb |
| 12 | * Initial revision |
| 13 | * |
| 14 | * ---------------------------- |
| 15 | * revision 0.2 |
| 16 | * date: 2004/05/15 16:30:00; author: joeb |
| 17 | * comments: removed I2C/IIC references to TWI, changed GPIO sections |
| 18 | * |
| 19 | * ---------------------------- |
| 20 | * revision 0.3 |
| 21 | * date: 2004/06/08 12:25:00; author: joeb |
| 22 | * comments: renamed some TWI and GPIO registers |
| 23 | * |
| 24 | * ---------------------------- |
| 25 | * revision 0.4 |
| 26 | * date: 2004/06/09 14:25:00; author: joeb |
| 27 | * comments: changed Timer status register to 32-bit, renamed EMAC count registers |
| 28 | * |
| 29 | * ---------------------------- |
| 30 | * revision 0.5 |
| 31 | * date: 2004/08/10 10:25:00; author: joeb |
| 32 | * comments: Renamed EMAC wake-up registers, changed bit-names in EMAC registers |
| 33 | * |
| 34 | * ---------------------------- |
| 35 | * revision 0.6 |
| 36 | * date: 2004/08/17 16:25:00; author: joeb |
| 37 | * comments: Renamed TWI_INT_ENABLE to TWI_INT_MASK |
| 38 | * |
| 39 | * ---------------------------- |
| 40 | * revision 0.7 |
| 41 | * date: 2004/08/18 13:21:00; author: joeb |
| 42 | * comments: Renamed GPIO registers to remove _D, _S, _C, _T suffixes |
| 43 | * |
| 44 | * ---------------------------- |
| 45 | * revision 0.8 |
| 46 | * date: 2004/08/20 10:27:00; author: joeb |
| 47 | * comments: Renamed External DMA to Handshake DMA |
| 48 | * |
| 49 | * ---------------------------- |
| 50 | * revision 0.9 |
| 51 | * date: 2004/08/23 13:42:00; author: joeb |
| 52 | * comments: Renamed Handshake DMA Register Set |
| 53 | * |
| 54 | * ---------------------------- |
| 55 | * revision 0.10 |
| 56 | * date: 2004/10/28 15:40:00; author: joeb |
| 57 | * comments: Shortened EMAC Count Register Names |
| 58 | * |
| 59 | * ---------------------------- |
| 60 | * revision 0.11 |
| 61 | * date: 2004/12/13 11:05:00; author: joeb |
| 62 | * comments: Fixed address pointers - (volatile void **) to (void * volatile *) |
| 63 | * |
| 64 | * ---------------------------- |
| 65 | * revision 0.12 |
| 66 | * date: 2004/12/17 14:25:00; author: joeb |
| 67 | * comments: Replaced C++ Single-Line Comments w/C-standard Comments |
| 68 | * Changed EMAC EQ1024 TX/RX References to GE1024 |
| 69 | * |
| 70 | * ---------------------------- |
| 71 | * revision 0.13 |
| 72 | * date: 2005/01/05 10:50:00; author: joeb |
| 73 | * comments: Removed excess white space in CAN_AM section |
| 74 | * Added support for CAN Macros to Index AM and Mailbox Areas |
| 75 | * |
| 76 | * ---------------------------- |
| 77 | * revision 0.14 |
| 78 | * date: 2005/01/26 14:10:00; author: joeb |
| 79 | * comments: Fixed Typo In EMAC_RXC_PAUSE register |
| 80 | * |
| 81 | * ---------------------------- |
| 82 | * revision 0.15 |
| 83 | * date: 2005/01/27 14:41:00; author: joeb |
| 84 | * comments: Moved Common MMRs to cdefBF534.h |
| 85 | */ |
| 86 | |
| 87 | /* |
| 88 | * System MMR Register Map |
| 89 | */ |
| 90 | |
| 91 | #ifndef _CDEF_BF537_H |
| 92 | #define _CDEF_BF537_H |
| 93 | |
| 94 | /* Include MMRs Common to BF534 */ |
| 95 | #include <asm/arch-bf537/cdefBF534.h> |
| 96 | |
| 97 | /* Include all Core registers and bit definitions */ |
| 98 | #include <asm/arch-bf537/defBF537.h> |
| 99 | |
| 100 | /* Include Macro "Defines" For EMAC (Unique to BF536/BF537 */ |
| 101 | /* 10/100 Ethernet Controller (0xFFC03000 - 0xFFC031FF) */ |
| 102 | #define pEMAC_OPMODE ((volatile unsigned long *)EMAC_OPMODE) |
| 103 | #define pEMAC_ADDRLO ((volatile unsigned long *)EMAC_ADDRLO) |
| 104 | #define pEMAC_ADDRHI ((volatile unsigned long *)EMAC_ADDRHI) |
| 105 | #define pEMAC_HASHLO ((volatile unsigned long *)EMAC_HASHLO) |
| 106 | #define pEMAC_HASHHI ((volatile unsigned long *)EMAC_HASHHI) |
| 107 | #define pEMAC_STAADD ((volatile unsigned long *)EMAC_STAADD) |
| 108 | #define pEMAC_STADAT ((volatile unsigned long *)EMAC_STADAT) |
| 109 | #define pEMAC_FLC ((volatile unsigned long *)EMAC_FLC) |
| 110 | #define pEMAC_VLAN1 ((volatile unsigned long *)EMAC_VLAN1) |
| 111 | #define pEMAC_VLAN2 ((volatile unsigned long *)EMAC_VLAN2) |
| 112 | #define pEMAC_WKUP_CTL ((volatile unsigned long *)EMAC_WKUP_CTL) |
| 113 | #define pEMAC_WKUP_FFMSK0 ((volatile unsigned long *)EMAC_WKUP_FFMSK0) |
| 114 | #define pEMAC_WKUP_FFMSK1 ((volatile unsigned long *)EMAC_WKUP_FFMSK1) |
| 115 | #define pEMAC_WKUP_FFMSK2 ((volatile unsigned long *)EMAC_WKUP_FFMSK2) |
| 116 | #define pEMAC_WKUP_FFMSK3 ((volatile unsigned long *)EMAC_WKUP_FFMSK3) |
| 117 | #define pEMAC_WKUP_FFCMD ((volatile unsigned long *)EMAC_WKUP_FFCMD) |
| 118 | #define pEMAC_WKUP_FFOFF ((volatile unsigned long *)EMAC_WKUP_FFOFF) |
| 119 | #define pEMAC_WKUP_FFCRC0 ((volatile unsigned long *)EMAC_WKUP_FFCRC0) |
| 120 | #define pEMAC_WKUP_FFCRC1 ((volatile unsigned long *)EMAC_WKUP_FFCRC1) |
| 121 | |
| 122 | #define pEMAC_SYSCTL ((volatile unsigned long *)EMAC_SYSCTL) |
| 123 | #define pEMAC_SYSTAT ((volatile unsigned long *)EMAC_SYSTAT) |
| 124 | #define pEMAC_RX_STAT ((volatile unsigned long *)EMAC_RX_STAT) |
| 125 | #define pEMAC_RX_STKY ((volatile unsigned long *)EMAC_RX_STKY) |
| 126 | #define pEMAC_RX_IRQE ((volatile unsigned long *)EMAC_RX_IRQE) |
| 127 | #define pEMAC_TX_STAT ((volatile unsigned long *)EMAC_TX_STAT) |
| 128 | #define pEMAC_TX_STKY ((volatile unsigned long *)EMAC_TX_STKY) |
| 129 | #define pEMAC_TX_IRQE ((volatile unsigned long *)EMAC_TX_IRQE) |
| 130 | |
| 131 | #define pEMAC_MMC_CTL ((volatile unsigned long *)EMAC_MMC_CTL) |
| 132 | #define pEMAC_MMC_RIRQS ((volatile unsigned long *)EMAC_MMC_RIRQS) |
| 133 | #define pEMAC_MMC_RIRQE ((volatile unsigned long *)EMAC_MMC_RIRQE) |
| 134 | #define pEMAC_MMC_TIRQS ((volatile unsigned long *)EMAC_MMC_TIRQS) |
| 135 | #define pEMAC_MMC_TIRQE ((volatile unsigned long *)EMAC_MMC_TIRQE) |
| 136 | |
| 137 | #define pEMAC_RXC_OK ((volatile unsigned long *)EMAC_RXC_OK) |
| 138 | #define pEMAC_RXC_FCS ((volatile unsigned long *)EMAC_RXC_FCS) |
| 139 | #define pEMAC_RXC_ALIGN ((volatile unsigned long *)EMAC_RXC_ALIGN) |
| 140 | #define pEMAC_RXC_OCTET ((volatile unsigned long *)EMAC_RXC_OCTET) |
| 141 | #define pEMAC_RXC_DMAOVF ((volatile unsigned long *)EMAC_RXC_DMAOVF) |
| 142 | #define pEMAC_RXC_UNICST ((volatile unsigned long *)EMAC_RXC_UNICST) |
| 143 | #define pEMAC_RXC_MULTI ((volatile unsigned long *)EMAC_RXC_MULTI) |
| 144 | #define pEMAC_RXC_BROAD ((volatile unsigned long *)EMAC_RXC_BROAD) |
| 145 | #define pEMAC_RXC_LNERRI ((volatile unsigned long *)EMAC_RXC_LNERRI) |
| 146 | #define pEMAC_RXC_LNERRO ((volatile unsigned long *)EMAC_RXC_LNERRO) |
| 147 | #define pEMAC_RXC_LONG ((volatile unsigned long *)EMAC_RXC_LONG) |
| 148 | #define pEMAC_RXC_MACCTL ((volatile unsigned long *)EMAC_RXC_MACCTL) |
| 149 | #define pEMAC_RXC_OPCODE ((volatile unsigned long *)EMAC_RXC_OPCODE) |
| 150 | #define pEMAC_RXC_PAUSE ((volatile unsigned long *)EMAC_RXC_PAUSE) |
| 151 | #define pEMAC_RXC_ALLFRM ((volatile unsigned long *)EMAC_RXC_ALLFRM) |
| 152 | #define pEMAC_RXC_ALLOCT ((volatile unsigned long *)EMAC_RXC_ALLOCT) |
| 153 | #define pEMAC_RXC_TYPED ((volatile unsigned long *)EMAC_RXC_TYPED) |
| 154 | #define pEMAC_RXC_SHORT ((volatile unsigned long *)EMAC_RXC_SHORT) |
| 155 | #define pEMAC_RXC_EQ64 ((volatile unsigned long *)EMAC_RXC_EQ64) |
| 156 | #define pEMAC_RXC_LT128 ((volatile unsigned long *)EMAC_RXC_LT128) |
| 157 | #define pEMAC_RXC_LT256 ((volatile unsigned long *)EMAC_RXC_LT256) |
| 158 | #define pEMAC_RXC_LT512 ((volatile unsigned long *)EMAC_RXC_LT512) |
| 159 | #define pEMAC_RXC_LT1024 ((volatile unsigned long *)EMAC_RXC_LT1024) |
| 160 | #define pEMAC_RXC_GE1024 ((volatile unsigned long *)EMAC_RXC_GE1024) |
| 161 | |
| 162 | #define pEMAC_TXC_OK ((volatile unsigned long *)EMAC_TXC_OK) |
| 163 | #define pEMAC_TXC_1COL ((volatile unsigned long *)EMAC_TXC_1COL) |
| 164 | #define pEMAC_TXC_GT1COL ((volatile unsigned long *)EMAC_TXC_GT1COL) |
| 165 | #define pEMAC_TXC_OCTET ((volatile unsigned long *)EMAC_TXC_OCTET) |
| 166 | #define pEMAC_TXC_DEFER ((volatile unsigned long *)EMAC_TXC_DEFER) |
| 167 | #define pEMAC_TXC_LATECL ((volatile unsigned long *)EMAC_TXC_LATECL) |
| 168 | #define pEMAC_TXC_XS_COL ((volatile unsigned long *)EMAC_TXC_XS_COL) |
| 169 | #define pEMAC_TXC_DMAUND ((volatile unsigned long *)EMAC_TXC_DMAUND) |
| 170 | #define pEMAC_TXC_CRSERR ((volatile unsigned long *)EMAC_TXC_CRSERR) |
| 171 | #define pEMAC_TXC_UNICST ((volatile unsigned long *)EMAC_TXC_UNICST) |
| 172 | #define pEMAC_TXC_MULTI ((volatile unsigned long *)EMAC_TXC_MULTI) |
| 173 | #define pEMAC_TXC_BROAD ((volatile unsigned long *)EMAC_TXC_BROAD) |
| 174 | #define pEMAC_TXC_XS_DFR ((volatile unsigned long *)EMAC_TXC_XS_DFR) |
| 175 | #define pEMAC_TXC_MACCTL ((volatile unsigned long *)EMAC_TXC_MACCTL) |
| 176 | #define pEMAC_TXC_ALLFRM ((volatile unsigned long *)EMAC_TXC_ALLFRM) |
| 177 | #define pEMAC_TXC_ALLOCT ((volatile unsigned long *)EMAC_TXC_ALLOCT) |
| 178 | #define pEMAC_TXC_EQ64 ((volatile unsigned long *)EMAC_TXC_EQ64) |
| 179 | #define pEMAC_TXC_LT128 ((volatile unsigned long *)EMAC_TXC_LT128) |
| 180 | #define pEMAC_TXC_LT256 ((volatile unsigned long *)EMAC_TXC_LT256) |
| 181 | #define pEMAC_TXC_LT512 ((volatile unsigned long *)EMAC_TXC_LT512) |
| 182 | #define pEMAC_TXC_LT1024 ((volatile unsigned long *)EMAC_TXC_LT1024) |
| 183 | #define pEMAC_TXC_GE1024 ((volatile unsigned long *)EMAC_TXC_GE1024) |
| 184 | #define pEMAC_TXC_ABORT ((volatile unsigned long *)EMAC_TXC_ABORT) |
| 185 | |
| 186 | #endif /* _CDEF_BF537_H */ |