wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1 | /****************************************************************************** |
| 2 | Copyright (c) 2002, Infineon Technologies. All rights reserved. |
| 3 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 4 | No Warranty |
| 5 | Because the program is licensed free of charge, there is no warranty for |
| 6 | the program, to the extent permitted by applicable law. Except when |
| 7 | otherwise stated in writing the copyright holders and/or other parties |
| 8 | provide the program "as is" without warranty of any kind, either |
| 9 | expressed or implied, including, but not limited to, the implied |
| 10 | warranties of merchantability and fitness for a particular purpose. The |
| 11 | entire risk as to the quality and performance of the program is with |
| 12 | you. should the program prove defective, you assume the cost of all |
| 13 | necessary servicing, repair or correction. |
| 14 | |
| 15 | In no event unless required by applicable law or agreed to in writing |
| 16 | will any copyright holder, or any other party who may modify and/or |
| 17 | redistribute the program as permitted above, be liable to you for |
| 18 | damages, including any general, special, incidental or consequential |
| 19 | damages arising out of the use or inability to use the program |
| 20 | (including but not limited to loss of data or data being rendered |
| 21 | inaccurate or losses sustained by you or third parties or a failure of |
| 22 | the program to operate with any other programs), even if such holder or |
| 23 | other party has been advised of the possibility of such damages. |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 24 | ******************************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 25 | |
| 26 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 27 | /***********************************************************************/ |
| 28 | /* Module : WDT register address and bits */ |
| 29 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 30 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 31 | #define INCA_IP_WDT (0xB8000000) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 32 | /***********************************************************************/ |
| 33 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 34 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 35 | /***Reset Status Register Power On***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 36 | #define INCA_IP_WDT_RST_SR ((volatile u32*)(INCA_IP_WDT+ 0x0014)) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 37 | |
| 38 | /***Reset Request Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 39 | #define INCA_IP_WDT_RST_REQ ((volatile u32*)(INCA_IP_WDT+ 0x0010)) |
| 40 | #define INCA_IP_WDT_RST_REQ_SWBOOT (1 << 24) |
| 41 | #define INCA_IP_WDT_RST_REQ_SWCFG (1 << 16) |
| 42 | #define INCA_IP_WDT_RST_REQ_RRPHY (1 << 5) |
| 43 | #define INCA_IP_WDT_RST_REQ_RRHSP (1 << 4) |
| 44 | #define INCA_IP_WDT_RST_REQ_RRFPI (1 << 3) |
| 45 | #define INCA_IP_WDT_RST_REQ_RREXT (1 << 2) |
| 46 | #define INCA_IP_WDT_RST_REQ_RRDSP (1 << 1) |
| 47 | #define INCA_IP_WDT_RST_REQ_RRCPU (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 48 | |
| 49 | /***NMI Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 50 | #define INCA_IP_WDT_NMISR ((volatile u32*)(INCA_IP_WDT+ 0x002C)) |
| 51 | #define INCA_IP_WDT_NMISR_NMIWDT (1 << 2) |
| 52 | #define INCA_IP_WDT_NMISR_NMIPLL (1 << 1) |
| 53 | #define INCA_IP_WDT_NMISR_NMIEXT (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 54 | |
| 55 | /***Manufacturer Identification Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 56 | #define INCA_IP_WDT_MANID ((volatile u32*)(INCA_IP_WDT+ 0x0070)) |
| 57 | #define INCA_IP_WDT_MANID_MANUF (value) (((( 1 << 11) - 1) & (value)) << 5) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 58 | |
| 59 | /***Chip Identification Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 60 | #define INCA_IP_WDT_CHIPID ((volatile u32*)(INCA_IP_WDT+ 0x0074)) |
| 61 | #define INCA_IP_WDT_CHIPID_VERSION (value) (((( 1 << 4) - 1) & (value)) << 28) |
| 62 | #define INCA_IP_WDT_CHIPID_PART_NUMBER (value) (((( 1 << 16) - 1) & (value)) << 12) |
| 63 | #define INCA_IP_WDT_CHIPID_MANID (value) (((( 1 << 11) - 1) & (value)) << 1) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 64 | |
| 65 | /***Redesign Tracing Identification Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 66 | #define INCA_IP_WDT_RTID ((volatile u32*)(INCA_IP_WDT+ 0x0078)) |
| 67 | #define INCA_IP_WDT_RTID_LC (1 << 15) |
| 68 | #define INCA_IP_WDT_RTID_RIX (value) (((( 1 << 3) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 69 | |
| 70 | /***Watchdog Timer Control Register 0***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 71 | #define INCA_IP_WDT_WDT_CON0 ((volatile u32*)(INCA_IP_WDT+ 0x0020)) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 72 | |
| 73 | /***Watchdog Timer Control Register 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 74 | #define INCA_IP_WDT_WDT_CON1 ((volatile u32*)(INCA_IP_WDT+ 0x0024)) |
| 75 | #define INCA_IP_WDT_WDT_CON1_WDTDR (1 << 3) |
| 76 | #define INCA_IP_WDT_WDT_CON1_WDTIR (1 << 2) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 77 | |
| 78 | /***Watchdog Timer Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 79 | #define INCA_IP_WDT_WDT_SR ((volatile u32*)(INCA_IP_WDT+ 0x0028)) |
| 80 | #define INCA_IP_WDT_WDT_SR_WDTTIM (value) (((( 1 << 16) - 1) & (value)) << 16) |
| 81 | #define INCA_IP_WDT_WDT_SR_WDTPR (1 << 5) |
| 82 | #define INCA_IP_WDT_WDT_SR_WDTTO (1 << 4) |
| 83 | #define INCA_IP_WDT_WDT_SR_WDTDS (1 << 3) |
| 84 | #define INCA_IP_WDT_WDT_SR_WDTIS (1 << 2) |
| 85 | #define INCA_IP_WDT_WDT_SR_WDTOE (1 << 1) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 86 | #define INCA_IP_WDT_WDT_SR_WDTAE (1 << 0) |
| 87 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 88 | /***********************************************************************/ |
| 89 | /* Module : CGU register address and bits */ |
| 90 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 91 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 92 | #define INCA_IP_CGU (0xBF107000) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 93 | /***********************************************************************/ |
| 94 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 95 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 96 | /***CGU PLL1 Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 97 | #define INCA_IP_CGU_CGU_PLL1CR ((volatile u32*)(INCA_IP_CGU+ 0x0008)) |
| 98 | #define INCA_IP_CGU_CGU_PLL1CR_SWRST (1 << 31) |
| 99 | #define INCA_IP_CGU_CGU_PLL1CR_EN (1 << 30) |
| 100 | #define INCA_IP_CGU_CGU_PLL1CR_NDIV (value) (((( 1 << 6) - 1) & (value)) << 16) |
| 101 | #define INCA_IP_CGU_CGU_PLL1CR_MDIV (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 102 | |
| 103 | /***CGU PLL0 Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 104 | #define INCA_IP_CGU_CGU_PLL0CR ((volatile u32*)(INCA_IP_CGU+ 0x0000)) |
| 105 | #define INCA_IP_CGU_CGU_PLL0CR_SWRST (1 << 31) |
| 106 | #define INCA_IP_CGU_CGU_PLL0CR_EN (1 << 30) |
| 107 | #define INCA_IP_CGU_CGU_PLL0CR_NDIV (value) (((( 1 << 6) - 1) & (value)) << 16) |
| 108 | #define INCA_IP_CGU_CGU_PLL0CR_MDIV (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 109 | |
| 110 | /***CGU PLL0 Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 111 | #define INCA_IP_CGU_CGU_PLL0SR ((volatile u32*)(INCA_IP_CGU+ 0x0004)) |
| 112 | #define INCA_IP_CGU_CGU_PLL0SR_LOCK (1 << 31) |
| 113 | #define INCA_IP_CGU_CGU_PLL0SR_RCF (1 << 29) |
| 114 | #define INCA_IP_CGU_CGU_PLL0SR_PLLBYP (1 << 15) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 115 | |
| 116 | /***CGU PLL1 Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 117 | #define INCA_IP_CGU_CGU_PLL1SR ((volatile u32*)(INCA_IP_CGU+ 0x000C)) |
| 118 | #define INCA_IP_CGU_CGU_PLL1SR_LOCK (1 << 31) |
| 119 | #define INCA_IP_CGU_CGU_PLL1SR_RCF (1 << 29) |
| 120 | #define INCA_IP_CGU_CGU_PLL1SR_PLLBYP (1 << 15) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 121 | |
| 122 | /***CGU Divider Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 123 | #define INCA_IP_CGU_CGU_DIVCR ((volatile u32*)(INCA_IP_CGU+ 0x0010)) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 124 | |
| 125 | /***CGU Multiplexer Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 126 | #define INCA_IP_CGU_CGU_MUXCR ((volatile u32*)(INCA_IP_CGU+ 0x0014)) |
| 127 | #define INCA_IP_CGU_CGU_MUXCR_SWRST (1 << 31) |
| 128 | #define INCA_IP_CGU_CGU_MUXCR_MUXII (1 << 1) |
| 129 | #define INCA_IP_CGU_CGU_MUXCR_MUXI (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 130 | |
| 131 | /***CGU Fractional Divider Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 132 | #define INCA_IP_CGU_CGU_FDCR ((volatile u32*)(INCA_IP_CGU+ 0x0018)) |
| 133 | #define INCA_IP_CGU_CGU_FDCR_FDEN (1 << 31) |
| 134 | #define INCA_IP_CGU_CGU_FDCR_INTEGER (value) (((( 1 << 12) - 1) & (value)) << 16) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 135 | #define INCA_IP_CGU_CGU_FDCR_FRACTION (value) (((( 1 << 16) - 1) & (value)) << 0) |
| 136 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 137 | /***********************************************************************/ |
| 138 | /* Module : PMU register address and bits */ |
| 139 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 140 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 141 | #define INCA_IP_PMU (0xBF102000) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 142 | /***********************************************************************/ |
| 143 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 144 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 145 | /***PM Global Enable Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 146 | #define INCA_IP_PMU_PM_GEN ((volatile u32*)(INCA_IP_PMU+ 0x0000)) |
| 147 | #define INCA_IP_PMU_PM_GEN_EN16 (1 << 16) |
| 148 | #define INCA_IP_PMU_PM_GEN_EN15 (1 << 15) |
| 149 | #define INCA_IP_PMU_PM_GEN_EN14 (1 << 14) |
| 150 | #define INCA_IP_PMU_PM_GEN_EN13 (1 << 13) |
| 151 | #define INCA_IP_PMU_PM_GEN_EN12 (1 << 12) |
| 152 | #define INCA_IP_PMU_PM_GEN_EN11 (1 << 11) |
| 153 | #define INCA_IP_PMU_PM_GEN_EN10 (1 << 10) |
| 154 | #define INCA_IP_PMU_PM_GEN_EN9 (1 << 9) |
| 155 | #define INCA_IP_PMU_PM_GEN_EN8 (1 << 8) |
| 156 | #define INCA_IP_PMU_PM_GEN_EN7 (1 << 7) |
| 157 | #define INCA_IP_PMU_PM_GEN_EN6 (1 << 6) |
| 158 | #define INCA_IP_PMU_PM_GEN_EN5 (1 << 5) |
| 159 | #define INCA_IP_PMU_PM_GEN_EN4 (1 << 4) |
| 160 | #define INCA_IP_PMU_PM_GEN_EN3 (1 << 3) |
| 161 | #define INCA_IP_PMU_PM_GEN_EN2 (1 << 2) |
| 162 | #define INCA_IP_PMU_PM_GEN_EN0 (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 163 | |
| 164 | /***PM Power Down Enable Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 165 | #define INCA_IP_PMU_PM_PDEN ((volatile u32*)(INCA_IP_PMU+ 0x0008)) |
| 166 | #define INCA_IP_PMU_PM_PDEN_EN16 (1 << 16) |
| 167 | #define INCA_IP_PMU_PM_PDEN_EN15 (1 << 15) |
| 168 | #define INCA_IP_PMU_PM_PDEN_EN14 (1 << 14) |
| 169 | #define INCA_IP_PMU_PM_PDEN_EN13 (1 << 13) |
| 170 | #define INCA_IP_PMU_PM_PDEN_EN12 (1 << 12) |
| 171 | #define INCA_IP_PMU_PM_PDEN_EN11 (1 << 11) |
| 172 | #define INCA_IP_PMU_PM_PDEN_EN10 (1 << 10) |
| 173 | #define INCA_IP_PMU_PM_PDEN_EN9 (1 << 9) |
| 174 | #define INCA_IP_PMU_PM_PDEN_EN8 (1 << 8) |
| 175 | #define INCA_IP_PMU_PM_PDEN_EN7 (1 << 7) |
| 176 | #define INCA_IP_PMU_PM_PDEN_EN5 (1 << 5) |
| 177 | #define INCA_IP_PMU_PM_PDEN_EN4 (1 << 4) |
| 178 | #define INCA_IP_PMU_PM_PDEN_EN3 (1 << 3) |
| 179 | #define INCA_IP_PMU_PM_PDEN_EN2 (1 << 2) |
| 180 | #define INCA_IP_PMU_PM_PDEN_EN0 (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 181 | |
| 182 | /***PM Wake-Up from Power Down Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 183 | #define INCA_IP_PMU_PM_WUP ((volatile u32*)(INCA_IP_PMU+ 0x0010)) |
| 184 | #define INCA_IP_PMU_PM_WUP_WUP16 (1 << 16) |
| 185 | #define INCA_IP_PMU_PM_WUP_WUP15 (1 << 15) |
| 186 | #define INCA_IP_PMU_PM_WUP_WUP14 (1 << 14) |
| 187 | #define INCA_IP_PMU_PM_WUP_WUP13 (1 << 13) |
| 188 | #define INCA_IP_PMU_PM_WUP_WUP12 (1 << 12) |
| 189 | #define INCA_IP_PMU_PM_WUP_WUP11 (1 << 11) |
| 190 | #define INCA_IP_PMU_PM_WUP_WUP10 (1 << 10) |
| 191 | #define INCA_IP_PMU_PM_WUP_WUP9 (1 << 9) |
| 192 | #define INCA_IP_PMU_PM_WUP_WUP8 (1 << 8) |
| 193 | #define INCA_IP_PMU_PM_WUP_WUP7 (1 << 7) |
| 194 | #define INCA_IP_PMU_PM_WUP_WUP5 (1 << 5) |
| 195 | #define INCA_IP_PMU_PM_WUP_WUP4 (1 << 4) |
| 196 | #define INCA_IP_PMU_PM_WUP_WUP3 (1 << 3) |
| 197 | #define INCA_IP_PMU_PM_WUP_WUP2 (1 << 2) |
| 198 | #define INCA_IP_PMU_PM_WUP_WUP0 (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 199 | |
| 200 | /***PM Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 201 | #define INCA_IP_PMU_PM_CR ((volatile u32*)(INCA_IP_PMU+ 0x0014)) |
| 202 | #define INCA_IP_PMU_PM_CR_AWEN (1 << 31) |
| 203 | #define INCA_IP_PMU_PM_CR_SWRST (1 << 30) |
| 204 | #define INCA_IP_PMU_PM_CR_SWCR (1 << 2) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 205 | #define INCA_IP_PMU_PM_CR_CRD (value) (((( 1 << 2) - 1) & (value)) << 0) |
| 206 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 207 | /***********************************************************************/ |
| 208 | /* Module : BCU register address and bits */ |
| 209 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 210 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 211 | #define INCA_IP_BCU (0xB8000100) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 212 | /***********************************************************************/ |
| 213 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 214 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 215 | /***BCU Control Register (0010H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 216 | #define INCA_IP_BCU_BCU_CON ((volatile u32*)(INCA_IP_BCU+ 0x0010)) |
| 217 | #define INCA_IP_BCU_BCU_CON_SPC (value) (((( 1 << 8) - 1) & (value)) << 24) |
| 218 | #define INCA_IP_BCU_BCU_CON_SPE (1 << 19) |
| 219 | #define INCA_IP_BCU_BCU_CON_PSE (1 << 18) |
| 220 | #define INCA_IP_BCU_BCU_CON_DBG (1 << 16) |
| 221 | #define INCA_IP_BCU_BCU_CON_TOUT (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 222 | |
| 223 | /***BCU Error Control Capture Register (0020H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 224 | #define INCA_IP_BCU_BCU_ECON ((volatile u32*)(INCA_IP_BCU+ 0x0020)) |
| 225 | #define INCA_IP_BCU_BCU_ECON_TAG (value) (((( 1 << 4) - 1) & (value)) << 24) |
| 226 | #define INCA_IP_BCU_BCU_ECON_RDN (1 << 23) |
| 227 | #define INCA_IP_BCU_BCU_ECON_WRN (1 << 22) |
| 228 | #define INCA_IP_BCU_BCU_ECON_SVM (1 << 21) |
| 229 | #define INCA_IP_BCU_BCU_ECON_ACK (value) (((( 1 << 2) - 1) & (value)) << 19) |
| 230 | #define INCA_IP_BCU_BCU_ECON_ABT (1 << 18) |
| 231 | #define INCA_IP_BCU_BCU_ECON_RDY (1 << 17) |
| 232 | #define INCA_IP_BCU_BCU_ECON_TOUT (1 << 16) |
| 233 | #define INCA_IP_BCU_BCU_ECON_ERRCNT (value) (((( 1 << 16) - 1) & (value)) << 0) |
| 234 | #define INCA_IP_BCU_BCU_ECON_OPC (value) (((( 1 << 4) - 1) & (value)) << 28) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 235 | |
| 236 | /***BCU Error Address Capture Register (0024 H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 237 | #define INCA_IP_BCU_BCU_EADD ((volatile u32*)(INCA_IP_BCU+ 0x0024)) |
| 238 | #define INCA_IP_BCU_BCU_EADD_FPIADR |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 239 | |
| 240 | /***BCU Error Data Capture Register (0028H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 241 | #define INCA_IP_BCU_BCU_EDAT ((volatile u32*)(INCA_IP_BCU+ 0x0028)) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 242 | #define INCA_IP_BCU_BCU_EDAT_FPIDAT |
| 243 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 244 | /***********************************************************************/ |
| 245 | /* Module : MBC register address and bits */ |
| 246 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 247 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 248 | #define INCA_IP_MBC (0xBF103000) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 249 | /***********************************************************************/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 250 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 251 | |
| 252 | /***Mailbox CPU Configuration Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 253 | #define INCA_IP_MBC_MBC_CFG ((volatile u32*)(INCA_IP_MBC+ 0x0080)) |
| 254 | #define INCA_IP_MBC_MBC_CFG_SWAP (value) (((( 1 << 2) - 1) & (value)) << 6) |
| 255 | #define INCA_IP_MBC_MBC_CFG_RES (1 << 5) |
| 256 | #define INCA_IP_MBC_MBC_CFG_FWID (value) (((( 1 << 4) - 1) & (value)) << 1) |
| 257 | #define INCA_IP_MBC_MBC_CFG_SIZE (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 258 | |
| 259 | /***Mailbox CPU Interrupt Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 260 | #define INCA_IP_MBC_MBC_ISR ((volatile u32*)(INCA_IP_MBC+ 0x0084)) |
| 261 | #define INCA_IP_MBC_MBC_ISR_B3DA (1 << 31) |
| 262 | #define INCA_IP_MBC_MBC_ISR_B2DA (1 << 30) |
| 263 | #define INCA_IP_MBC_MBC_ISR_B1E (1 << 29) |
| 264 | #define INCA_IP_MBC_MBC_ISR_B0E (1 << 28) |
| 265 | #define INCA_IP_MBC_MBC_ISR_WDT (1 << 27) |
| 266 | #define INCA_IP_MBC_MBC_ISR_DS260 (value) (((( 1 << 27) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 267 | |
| 268 | /***Mailbox CPU Mask Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 269 | #define INCA_IP_MBC_MBC_MSK ((volatile u32*)(INCA_IP_MBC+ 0x0088)) |
| 270 | #define INCA_IP_MBC_MBC_MSK_B3DA (1 << 31) |
| 271 | #define INCA_IP_MBC_MBC_MSK_B2DA (1 << 30) |
| 272 | #define INCA_IP_MBC_MBC_MSK_B1E (1 << 29) |
| 273 | #define INCA_IP_MBC_MBC_MSK_B0E (1 << 28) |
| 274 | #define INCA_IP_MBC_MBC_MSK_WDT (1 << 27) |
| 275 | #define INCA_IP_MBC_MBC_MSK_DS260 (value) (((( 1 << 27) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 276 | |
| 277 | /***Mailbox CPU Mask 01 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 278 | #define INCA_IP_MBC_MBC_MSK01 ((volatile u32*)(INCA_IP_MBC+ 0x008C)) |
| 279 | #define INCA_IP_MBC_MBC_MSK01_B3DA (1 << 31) |
| 280 | #define INCA_IP_MBC_MBC_MSK01_B2DA (1 << 30) |
| 281 | #define INCA_IP_MBC_MBC_MSK01_B1E (1 << 29) |
| 282 | #define INCA_IP_MBC_MBC_MSK01_B0E (1 << 28) |
| 283 | #define INCA_IP_MBC_MBC_MSK01_WDT (1 << 27) |
| 284 | #define INCA_IP_MBC_MBC_MSK01_DS260 (value) (((( 1 << 27) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 285 | |
| 286 | /***Mailbox CPU Mask 10 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 287 | #define INCA_IP_MBC_MBC_MSK10 ((volatile u32*)(INCA_IP_MBC+ 0x0090)) |
| 288 | #define INCA_IP_MBC_MBC_MSK10_B3DA (1 << 31) |
| 289 | #define INCA_IP_MBC_MBC_MSK10_B2DA (1 << 30) |
| 290 | #define INCA_IP_MBC_MBC_MSK10_B1E (1 << 29) |
| 291 | #define INCA_IP_MBC_MBC_MSK10_B0E (1 << 28) |
| 292 | #define INCA_IP_MBC_MBC_MSK10_WDT (1 << 27) |
| 293 | #define INCA_IP_MBC_MBC_MSK10_DS260 (value) (((( 1 << 27) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 294 | |
| 295 | /***Mailbox CPU Short Command Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 296 | #define INCA_IP_MBC_MBC_CMD ((volatile u32*)(INCA_IP_MBC+ 0x0094)) |
| 297 | #define INCA_IP_MBC_MBC_CMD_CS270 (value) (((( 1 << 28) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 298 | |
| 299 | /***Mailbox CPU Input Data of Buffer 0***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 300 | #define INCA_IP_MBC_MBC_ID0 ((volatile u32*)(INCA_IP_MBC+ 0x0000)) |
| 301 | #define INCA_IP_MBC_MBC_ID0_INDATA |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 302 | |
| 303 | /***Mailbox CPU Input Data of Buffer 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 304 | #define INCA_IP_MBC_MBC_ID1 ((volatile u32*)(INCA_IP_MBC+ 0x0020)) |
| 305 | #define INCA_IP_MBC_MBC_ID1_INDATA |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 306 | |
| 307 | /***Mailbox CPU Output Data of Buffer 2***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 308 | #define INCA_IP_MBC_MBC_OD2 ((volatile u32*)(INCA_IP_MBC+ 0x0040)) |
| 309 | #define INCA_IP_MBC_MBC_OD2_OUTDATA |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 310 | |
| 311 | /***Mailbox CPU Output Data of Buffer 3***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 312 | #define INCA_IP_MBC_MBC_OD3 ((volatile u32*)(INCA_IP_MBC+ 0x0060)) |
| 313 | #define INCA_IP_MBC_MBC_OD3_OUTDATA |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 314 | |
| 315 | /***Mailbox CPU Control Register of Buffer 0***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 316 | #define INCA_IP_MBC_MBC_CR0 ((volatile u32*)(INCA_IP_MBC+ 0x0004)) |
| 317 | #define INCA_IP_MBC_MBC_CR0_RDYABTFLS (value) (((( 1 << 3) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 318 | |
| 319 | /***Mailbox CPU Control Register of Buffer 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 320 | #define INCA_IP_MBC_MBC_CR1 ((volatile u32*)(INCA_IP_MBC+ 0x0024)) |
| 321 | #define INCA_IP_MBC_MBC_CR1_RDYABTFLS (value) (((( 1 << 3) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 322 | |
| 323 | /***Mailbox CPU Control Register of Buffer 2***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 324 | #define INCA_IP_MBC_MBC_CR2 ((volatile u32*)(INCA_IP_MBC+ 0x0044)) |
| 325 | #define INCA_IP_MBC_MBC_CR2_RDYABTFLS (value) (((( 1 << 3) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 326 | |
| 327 | /***Mailbox CPU Control Register of Buffer 3***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 328 | #define INCA_IP_MBC_MBC_CR3 ((volatile u32*)(INCA_IP_MBC+ 0x0064)) |
| 329 | #define INCA_IP_MBC_MBC_CR3_RDYABTFLS (value) (((( 1 << 3) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 330 | |
| 331 | /***Mailbox CPU Free Space of Buffer 0***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 332 | #define INCA_IP_MBC_MBC_FS0 ((volatile u32*)(INCA_IP_MBC+ 0x0008)) |
| 333 | #define INCA_IP_MBC_MBC_FS0_FS |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 334 | |
| 335 | /***Mailbox CPU Free Space of Buffer 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 336 | #define INCA_IP_MBC_MBC_FS1 ((volatile u32*)(INCA_IP_MBC+ 0x0028)) |
| 337 | #define INCA_IP_MBC_MBC_FS1_FS |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 338 | |
| 339 | /***Mailbox CPU Free Space of Buffer 2***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 340 | #define INCA_IP_MBC_MBC_FS2 ((volatile u32*)(INCA_IP_MBC+ 0x0048)) |
| 341 | #define INCA_IP_MBC_MBC_FS2_FS |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 342 | |
| 343 | /***Mailbox CPU Free Space of Buffer 3***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 344 | #define INCA_IP_MBC_MBC_FS3 ((volatile u32*)(INCA_IP_MBC+ 0x0068)) |
| 345 | #define INCA_IP_MBC_MBC_FS3_FS |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 346 | |
| 347 | /***Mailbox CPU Data Available in Buffer 0***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 348 | #define INCA_IP_MBC_MBC_DA0 ((volatile u32*)(INCA_IP_MBC+ 0x000C)) |
| 349 | #define INCA_IP_MBC_MBC_DA0_DA |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 350 | |
| 351 | /***Mailbox CPU Data Available in Buffer 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 352 | #define INCA_IP_MBC_MBC_DA1 ((volatile u32*)(INCA_IP_MBC+ 0x002C)) |
| 353 | #define INCA_IP_MBC_MBC_DA1_DA |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 354 | |
| 355 | /***Mailbox CPU Data Available in Buffer 2***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 356 | #define INCA_IP_MBC_MBC_DA2 ((volatile u32*)(INCA_IP_MBC+ 0x004C)) |
| 357 | #define INCA_IP_MBC_MBC_DA2_DA |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 358 | |
| 359 | /***Mailbox CPU Data Available in Buffer 3***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 360 | #define INCA_IP_MBC_MBC_DA3 ((volatile u32*)(INCA_IP_MBC+ 0x006C)) |
| 361 | #define INCA_IP_MBC_MBC_DA3_DA |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 362 | |
| 363 | /***Mailbox CPU Input Absolute Pointer of Buffer 0***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 364 | #define INCA_IP_MBC_MBC_IABS0 ((volatile u32*)(INCA_IP_MBC+ 0x0010)) |
| 365 | #define INCA_IP_MBC_MBC_IABS0_IABS |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 366 | |
| 367 | /***Mailbox CPU Input Absolute Pointer of Buffer 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 368 | #define INCA_IP_MBC_MBC_IABS1 ((volatile u32*)(INCA_IP_MBC+ 0x0030)) |
| 369 | #define INCA_IP_MBC_MBC_IABS1_IABS |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 370 | |
| 371 | /***Mailbox CPU Input Absolute Pointer of Buffer 2***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 372 | #define INCA_IP_MBC_MBC_IABS2 ((volatile u32*)(INCA_IP_MBC+ 0x0050)) |
| 373 | #define INCA_IP_MBC_MBC_IABS2_IABS |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 374 | |
| 375 | /***Mailbox CPU Input Absolute Pointer of Buffer 3***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 376 | #define INCA_IP_MBC_MBC_IABS3 ((volatile u32*)(INCA_IP_MBC+ 0x0070)) |
| 377 | #define INCA_IP_MBC_MBC_IABS3_IABS |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 378 | |
| 379 | /***Mailbox CPU Input Temporary Pointer of Buffer 0***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 380 | #define INCA_IP_MBC_MBC_ITMP0 ((volatile u32*)(INCA_IP_MBC+ 0x0014)) |
| 381 | #define INCA_IP_MBC_MBC_ITMP0_ITMP |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 382 | |
| 383 | /***Mailbox CPU Input Temporary Pointer of Buffer 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 384 | #define INCA_IP_MBC_MBC_ITMP1 ((volatile u32*)(INCA_IP_MBC+ 0x0034)) |
| 385 | #define INCA_IP_MBC_MBC_ITMP1_ITMP |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 386 | |
| 387 | /***Mailbox CPU Input Temporary Pointer of Buffer 2***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 388 | #define INCA_IP_MBC_MBC_ITMP2 ((volatile u32*)(INCA_IP_MBC+ 0x0054)) |
| 389 | #define INCA_IP_MBC_MBC_ITMP2_ITMP |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 390 | |
| 391 | /***Mailbox CPU Input Temporary Pointer of Buffer 3***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 392 | #define INCA_IP_MBC_MBC_ITMP3 ((volatile u32*)(INCA_IP_MBC+ 0x0074)) |
| 393 | #define INCA_IP_MBC_MBC_ITMP3_ITMP |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 394 | |
| 395 | /***Mailbox CPU Output Absolute Pointer of Buffer 0***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 396 | #define INCA_IP_MBC_MBC_OABS0 ((volatile u32*)(INCA_IP_MBC+ 0x0018)) |
| 397 | #define INCA_IP_MBC_MBC_OABS0_OABS |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 398 | |
| 399 | /***Mailbox CPU Output Absolute Pointer of Buffer 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 400 | #define INCA_IP_MBC_MBC_OABS1 ((volatile u32*)(INCA_IP_MBC+ 0x0038)) |
| 401 | #define INCA_IP_MBC_MBC_OABS1_OABS |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 402 | |
| 403 | /***Mailbox CPU Output Absolute Pointer of Buffer 2***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 404 | #define INCA_IP_MBC_MBC_OABS2 ((volatile u32*)(INCA_IP_MBC+ 0x0058)) |
| 405 | #define INCA_IP_MBC_MBC_OABS2_OABS |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 406 | |
| 407 | /***Mailbox CPU Output Absolute Pointer of Buffer 3***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 408 | #define INCA_IP_MBC_MBC_OABS3 ((volatile u32*)(INCA_IP_MBC+ 0x0078)) |
| 409 | #define INCA_IP_MBC_MBC_OABS3_OABS |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 410 | |
| 411 | /***Mailbox CPU Output Temporary Pointer of Buffer 0***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 412 | #define INCA_IP_MBC_MBC_OTMP0 ((volatile u32*)(INCA_IP_MBC+ 0x001C)) |
| 413 | #define INCA_IP_MBC_MBC_OTMP0_OTMP |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 414 | |
| 415 | /***Mailbox CPU Output Temporary Pointer of Buffer 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 416 | #define INCA_IP_MBC_MBC_OTMP1 ((volatile u32*)(INCA_IP_MBC+ 0x003C)) |
| 417 | #define INCA_IP_MBC_MBC_OTMP1_OTMP |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 418 | |
| 419 | /***Mailbox CPU Output Temporary Pointer of Buffer 2***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 420 | #define INCA_IP_MBC_MBC_OTMP2 ((volatile u32*)(INCA_IP_MBC+ 0x005C)) |
| 421 | #define INCA_IP_MBC_MBC_OTMP2_OTMP |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 422 | |
| 423 | /***Mailbox CPU Output Temporary Pointer of Buffer 3***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 424 | #define INCA_IP_MBC_MBC_OTMP3 ((volatile u32*)(INCA_IP_MBC+ 0x007C)) |
| 425 | #define INCA_IP_MBC_MBC_OTMP3_OTMP |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 426 | |
| 427 | /***DSP Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 428 | #define INCA_IP_MBC_DCTRL ((volatile u32*)(INCA_IP_MBC+ 0x00A0)) |
| 429 | #define INCA_IP_MBC_DCTRL_BA (1 << 0) |
| 430 | #define INCA_IP_MBC_DCTRL_BMOD (value) (((( 1 << 3) - 1) & (value)) << 1) |
| 431 | #define INCA_IP_MBC_DCTRL_IDL (1 << 4) |
| 432 | #define INCA_IP_MBC_DCTRL_RES (1 << 15) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 433 | |
| 434 | /***DSP Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 435 | #define INCA_IP_MBC_DSTA ((volatile u32*)(INCA_IP_MBC+ 0x00A4)) |
| 436 | #define INCA_IP_MBC_DSTA_IDLE (1 << 0) |
| 437 | #define INCA_IP_MBC_DSTA_PD (1 << 1) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 438 | |
| 439 | /***DSP Test 1 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 440 | #define INCA_IP_MBC_DTST1 ((volatile u32*)(INCA_IP_MBC+ 0x00A8)) |
| 441 | #define INCA_IP_MBC_DTST1_ABORT (1 << 0) |
| 442 | #define INCA_IP_MBC_DTST1_HWF32 (1 << 1) |
| 443 | #define INCA_IP_MBC_DTST1_HWF4M (1 << 2) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 444 | #define INCA_IP_MBC_DTST1_HWFOP (1 << 3) |
| 445 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 446 | /***********************************************************************/ |
| 447 | /* Module : Switch register address and bits */ |
| 448 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 449 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 450 | #define INCA_IP_Switch (0xBF104000) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 451 | /***********************************************************************/ |
| 452 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 453 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 454 | /***Unknown Destination Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 455 | #define INCA_IP_Switch_UN_DEST ((volatile u32*)(INCA_IP_Switch+ 0x0000)) |
| 456 | #define INCA_IP_Switch_UN_DEST_CB (1 << 8) |
| 457 | #define INCA_IP_Switch_UN_DEST_LB (1 << 7) |
| 458 | #define INCA_IP_Switch_UN_DEST_PB (1 << 6) |
| 459 | #define INCA_IP_Switch_UN_DEST_CM (1 << 5) |
| 460 | #define INCA_IP_Switch_UN_DEST_LM (1 << 4) |
| 461 | #define INCA_IP_Switch_UN_DEST_PM (1 << 3) |
| 462 | #define INCA_IP_Switch_UN_DEST_CU (1 << 2) |
| 463 | #define INCA_IP_Switch_UN_DEST_LU (1 << 1) |
| 464 | #define INCA_IP_Switch_UN_DEST_PU (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 465 | |
| 466 | /***VLAN Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 467 | #define INCA_IP_Switch_VLAN_CTRL ((volatile u32*)(INCA_IP_Switch+ 0x0004)) |
| 468 | #define INCA_IP_Switch_VLAN_CTRL_SC (1 << 6) |
| 469 | #define INCA_IP_Switch_VLAN_CTRL_SL (1 << 5) |
| 470 | #define INCA_IP_Switch_VLAN_CTRL_SP (1 << 4) |
| 471 | #define INCA_IP_Switch_VLAN_CTRL_TC (1 << 3) |
| 472 | #define INCA_IP_Switch_VLAN_CTRL_TL (1 << 2) |
| 473 | #define INCA_IP_Switch_VLAN_CTRL_TP (1 << 1) |
| 474 | #define INCA_IP_Switch_VLAN_CTRL_VA (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 475 | |
| 476 | /***PC VLAN Configuration Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 477 | #define INCA_IP_Switch_PC_VLAN ((volatile u32*)(INCA_IP_Switch+ 0x0008)) |
| 478 | #define INCA_IP_Switch_PC_VLAN_PRI (value) (((( 1 << 3) - 1) & (value)) << 12) |
| 479 | #define INCA_IP_Switch_PC_VLAN_VLAN_ID (value) (((( 1 << 12) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 480 | |
| 481 | /***LAN VLAN Configuration Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 482 | #define INCA_IP_Switch_LAN_VLAN ((volatile u32*)(INCA_IP_Switch+ 0x000C)) |
| 483 | #define INCA_IP_Switch_LAN_VLAN_PRI (value) (((( 1 << 3) - 1) & (value)) << 12) |
| 484 | #define INCA_IP_Switch_LAN_VLAN_VLAN_ID (value) (((( 1 << 12) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 485 | |
| 486 | /***CPU VLAN Configuration Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 487 | #define INCA_IP_Switch_CPU_VLAN ((volatile u32*)(INCA_IP_Switch+ 0x0010)) |
| 488 | #define INCA_IP_Switch_CPU_VLAN_PRI (value) (((( 1 << 3) - 1) & (value)) << 12) |
| 489 | #define INCA_IP_Switch_CPU_VLAN_VLAN_ID (value) (((( 1 << 12) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 490 | |
| 491 | /***Priority CoS Mapping Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 492 | #define INCA_IP_Switch_PRI_CoS ((volatile u32*)(INCA_IP_Switch+ 0x0014)) |
| 493 | #define INCA_IP_Switch_PRI_CoS_P7 (1 << 7) |
| 494 | #define INCA_IP_Switch_PRI_CoS_P6 (1 << 6) |
| 495 | #define INCA_IP_Switch_PRI_CoS_P5 (1 << 5) |
| 496 | #define INCA_IP_Switch_PRI_CoS_P4 (1 << 4) |
| 497 | #define INCA_IP_Switch_PRI_CoS_P3 (1 << 3) |
| 498 | #define INCA_IP_Switch_PRI_CoS_P2 (1 << 2) |
| 499 | #define INCA_IP_Switch_PRI_CoS_P1 (1 << 1) |
| 500 | #define INCA_IP_Switch_PRI_CoS_P0 (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 501 | |
| 502 | /***Spanning Tree Port Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 503 | #define INCA_IP_Switch_ST_PT ((volatile u32*)(INCA_IP_Switch+ 0x0018)) |
| 504 | #define INCA_IP_Switch_ST_PT_CPS (value) (((( 1 << 2) - 1) & (value)) << 4) |
| 505 | #define INCA_IP_Switch_ST_PT_LPS (value) (((( 1 << 2) - 1) & (value)) << 2) |
| 506 | #define INCA_IP_Switch_ST_PT_PPS (value) (((( 1 << 2) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 507 | |
| 508 | /***ARL Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 509 | #define INCA_IP_Switch_ARL_CTL ((volatile u32*)(INCA_IP_Switch+ 0x001C)) |
| 510 | #define INCA_IP_Switch_ARL_CTL_CHCC (1 << 15) |
| 511 | #define INCA_IP_Switch_ARL_CTL_CHCL (1 << 14) |
| 512 | #define INCA_IP_Switch_ARL_CTL_CHCP (1 << 13) |
| 513 | #define INCA_IP_Switch_ARL_CTL_CC (1 << 12) |
| 514 | #define INCA_IP_Switch_ARL_CTL_CL (1 << 11) |
| 515 | #define INCA_IP_Switch_ARL_CTL_CP (1 << 10) |
| 516 | #define INCA_IP_Switch_ARL_CTL_CG (1 << 9) |
| 517 | #define INCA_IP_Switch_ARL_CTL_PS (1 << 8) |
| 518 | #define INCA_IP_Switch_ARL_CTL_MRO (1 << 7) |
| 519 | #define INCA_IP_Switch_ARL_CTL_SRC (1 << 6) |
| 520 | #define INCA_IP_Switch_ARL_CTL_ATS (1 << 5) |
| 521 | #define INCA_IP_Switch_ARL_CTL_AGE_TICK_SEL (value) (((( 1 << 3) - 1) & (value)) << 2) |
| 522 | #define INCA_IP_Switch_ARL_CTL_MAF (1 << 1) |
| 523 | #define INCA_IP_Switch_ARL_CTL_ENL (1 << 0) |
| 524 | #define INCA_IP_Switch_ARL_CTL_Res (value) (((( 1 << 19) - 1) & (value)) << 13) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 525 | |
| 526 | /***CPU Access Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 527 | #define INCA_IP_Switch_CPU_ACTL ((volatile u32*)(INCA_IP_Switch+ 0x0020)) |
| 528 | #define INCA_IP_Switch_CPU_ACTL_RA (1 << 31) |
| 529 | #define INCA_IP_Switch_CPU_ACTL_RW (1 << 30) |
| 530 | #define INCA_IP_Switch_CPU_ACTL_Res (value) (((( 1 << 21) - 1) & (value)) << 9) |
| 531 | #define INCA_IP_Switch_CPU_ACTL_AVA (1 << 8) |
| 532 | #define INCA_IP_Switch_CPU_ACTL_IDX (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 533 | |
| 534 | /***CPU Access Data Register 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 535 | #define INCA_IP_Switch_DATA1 ((volatile u32*)(INCA_IP_Switch+ 0x0024)) |
| 536 | #define INCA_IP_Switch_DATA1_Data (value) (((( 1 << 24) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 537 | |
| 538 | /***CPU Access Data Register 2***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 539 | #define INCA_IP_Switch_DATA2 ((volatile u32*)(INCA_IP_Switch+ 0x0028)) |
| 540 | #define INCA_IP_Switch_DATA2_Data |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 541 | |
| 542 | /***CPU Port Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 543 | #define INCA_IP_Switch_CPU_PCTL ((volatile u32*)(INCA_IP_Switch+ 0x002C)) |
| 544 | #define INCA_IP_Switch_CPU_PCTL_DA_PORTS (value) (((( 1 << 3) - 1) & (value)) << 11) |
| 545 | #define INCA_IP_Switch_CPU_PCTL_DAC (1 << 10) |
| 546 | #define INCA_IP_Switch_CPU_PCTL_MA_STATE (value) (((( 1 << 3) - 1) & (value)) << 7) |
| 547 | #define INCA_IP_Switch_CPU_PCTL_MAM (1 << 6) |
| 548 | #define INCA_IP_Switch_CPU_PCTL_MA_Ports (value) (((( 1 << 3) - 1) & (value)) << 3) |
| 549 | #define INCA_IP_Switch_CPU_PCTL_MAC (1 << 2) |
| 550 | #define INCA_IP_Switch_CPU_PCTL_EML (1 << 1) |
| 551 | #define INCA_IP_Switch_CPU_PCTL_EDL (1 << 0) |
| 552 | #define INCA_IP_Switch_CPU_PCTL_Res (value) (((( 1 << 18) - 1) & (value)) << 14) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 553 | |
| 554 | /***DSCP CoS Mapping Register 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 555 | #define INCA_IP_Switch_DSCP_COS1 ((volatile u32*)(INCA_IP_Switch+ 0x0030)) |
| 556 | #define INCA_IP_Switch_DSCP_COS1_DSCP |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 557 | |
| 558 | /***DSCP CoS Mapping Register 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 559 | #define INCA_IP_Switch_DSCP_COS2 ((volatile u32*)(INCA_IP_Switch+ 0x0034)) |
| 560 | #define INCA_IP_Switch_DSCP_COS2_DSCP |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 561 | |
| 562 | /***PC WFQ Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 563 | #define INCA_IP_Switch_PC_WFQ_CTL ((volatile u32*)(INCA_IP_Switch+ 0x0080)) |
| 564 | #define INCA_IP_Switch_PC_WFQ_CTL_P1 (1 << 9) |
| 565 | #define INCA_IP_Switch_PC_WFQ_CTL_P0 (1 << 8) |
| 566 | #define INCA_IP_Switch_PC_WFQ_CTL_WT1 (value) (((( 1 << 3) - 1) & (value)) << 5) |
| 567 | #define INCA_IP_Switch_PC_WFQ_CTL_WT0 (value) (((( 1 << 3) - 1) & (value)) << 2) |
| 568 | #define INCA_IP_Switch_PC_WFQ_CTL_SCH_SEL (value) (((( 1 << 2) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 569 | |
| 570 | /***PC TX Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 571 | #define INCA_IP_Switch_PC_TX_CTL ((volatile u32*)(INCA_IP_Switch+ 0x0084)) |
| 572 | #define INCA_IP_Switch_PC_TX_CTL_ELR (1 << 1) |
| 573 | #define INCA_IP_Switch_PC_TX_CTL_EER (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 574 | |
| 575 | /***LAN WFQ Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 576 | #define INCA_IP_Switch_LAN_WFQ_CTL ((volatile u32*)(INCA_IP_Switch+ 0x0100)) |
| 577 | #define INCA_IP_Switch_LAN_WFQ_CTL_P1 (1 << 9) |
| 578 | #define INCA_IP_Switch_LAN_WFQ_CTL_P0 (1 << 8) |
| 579 | #define INCA_IP_Switch_LAN_WFQ_CTL_WT1 (value) (((( 1 << 3) - 1) & (value)) << 5) |
| 580 | #define INCA_IP_Switch_LAN_WFQ_CTL_WT0 (value) (((( 1 << 3) - 1) & (value)) << 2) |
| 581 | #define INCA_IP_Switch_LAN_WFQ_CTL_SCH_SEL (value) (((( 1 << 2) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 582 | |
| 583 | /***LAN TX Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 584 | #define INCA_IP_Switch_LAN_TX_CTL ((volatile u32*)(INCA_IP_Switch+ 0x0104)) |
| 585 | #define INCA_IP_Switch_LAN_TX_CTL_ELR (1 << 1) |
| 586 | #define INCA_IP_Switch_LAN_TX_CTL_EER (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 587 | |
| 588 | /***CPU WFQ Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 589 | #define INCA_IP_Switch_CPU_WFQ_CTL ((volatile u32*)(INCA_IP_Switch+ 0x0180)) |
| 590 | #define INCA_IP_Switch_CPU_WFQ_CTL_P1 (1 << 9) |
| 591 | #define INCA_IP_Switch_CPU_WFQ_CTL_P0 (1 << 8) |
| 592 | #define INCA_IP_Switch_CPU_WFQ_CTL_WT1 (value) (((( 1 << 3) - 1) & (value)) << 5) |
| 593 | #define INCA_IP_Switch_CPU_WFQ_CTL_WT0 (value) (((( 1 << 3) - 1) & (value)) << 2) |
| 594 | #define INCA_IP_Switch_CPU_WFQ_CTL_SCH_SEL (value) (((( 1 << 2) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 595 | |
| 596 | /***PM PC RX Watermark Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 597 | #define INCA_IP_Switch_PC_WM ((volatile u32*)(INCA_IP_Switch+ 0x0200)) |
| 598 | #define INCA_IP_Switch_PC_WM_RX_WM1 (value) (((( 1 << 8) - 1) & (value)) << 24) |
| 599 | #define INCA_IP_Switch_PC_WM_RX_WM2 (value) (((( 1 << 8) - 1) & (value)) << 16) |
| 600 | #define INCA_IP_Switch_PC_WM_RX_WM3 (value) (((( 1 << 8) - 1) & (value)) << 8) |
| 601 | #define INCA_IP_Switch_PC_WM_RX_WM4 (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 602 | |
| 603 | /***PM LAN RX Watermark Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 604 | #define INCA_IP_Switch_LAN_WM ((volatile u32*)(INCA_IP_Switch+ 0x0204)) |
| 605 | #define INCA_IP_Switch_LAN_WM_RX_WM1 (value) (((( 1 << 8) - 1) & (value)) << 24) |
| 606 | #define INCA_IP_Switch_LAN_WM_RX_WM2 (value) (((( 1 << 8) - 1) & (value)) << 16) |
| 607 | #define INCA_IP_Switch_LAN_WM_RX_WM3 (value) (((( 1 << 8) - 1) & (value)) << 8) |
| 608 | #define INCA_IP_Switch_LAN_WM_RX_WM4 (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 609 | |
| 610 | /***PM CPU RX Watermark Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 611 | #define INCA_IP_Switch_CPU_WM ((volatile u32*)(INCA_IP_Switch+ 0x0208)) |
| 612 | #define INCA_IP_Switch_CPU_WM_RX_WM1 (value) (((( 1 << 8) - 1) & (value)) << 24) |
| 613 | #define INCA_IP_Switch_CPU_WM_RX_WM2 (value) (((( 1 << 8) - 1) & (value)) << 16) |
| 614 | #define INCA_IP_Switch_CPU_WM_RX_WM3 (value) (((( 1 << 8) - 1) & (value)) << 8) |
| 615 | #define INCA_IP_Switch_CPU_WM_RX_WM4 (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 616 | |
| 617 | /***PM CPU RX Watermark Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 618 | #define INCA_IP_Switch_GBL_WM ((volatile u32*)(INCA_IP_Switch+ 0x020C)) |
| 619 | #define INCA_IP_Switch_GBL_WM_GBL_RX_WM1 (value) (((( 1 << 8) - 1) & (value)) << 24) |
| 620 | #define INCA_IP_Switch_GBL_WM_GBL_RX_WM2 (value) (((( 1 << 8) - 1) & (value)) << 16) |
| 621 | #define INCA_IP_Switch_GBL_WM_GBL_RX_WM3 (value) (((( 1 << 8) - 1) & (value)) << 8) |
| 622 | #define INCA_IP_Switch_GBL_WM_GBL_RX_WM4 (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 623 | |
| 624 | /***PM Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 625 | #define INCA_IP_Switch_PM_CTL ((volatile u32*)(INCA_IP_Switch+ 0x0210)) |
| 626 | #define INCA_IP_Switch_PM_CTL_GDN (1 << 3) |
| 627 | #define INCA_IP_Switch_PM_CTL_CDN (1 << 2) |
| 628 | #define INCA_IP_Switch_PM_CTL_LDN (1 << 1) |
| 629 | #define INCA_IP_Switch_PM_CTL_PDN (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 630 | |
| 631 | /***PM Header Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 632 | #define INCA_IP_Switch_PMAC_HD_CTL ((volatile u32*)(INCA_IP_Switch+ 0x0280)) |
| 633 | #define INCA_IP_Switch_PMAC_HD_CTL_RL2 (1 << 21) |
| 634 | #define INCA_IP_Switch_PMAC_HD_CTL_RC (1 << 20) |
| 635 | #define INCA_IP_Switch_PMAC_HD_CTL_CM (1 << 19) |
| 636 | #define INCA_IP_Switch_PMAC_HD_CTL_CV (1 << 18) |
| 637 | #define INCA_IP_Switch_PMAC_HD_CTL_TYPE_LEN (value) (((( 1 << 16) - 1) & (value)) << 2) |
| 638 | #define INCA_IP_Switch_PMAC_HD_CTL_TAG (1 << 1) |
| 639 | #define INCA_IP_Switch_PMAC_HD_CTL_ADD (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 640 | |
| 641 | /***PM Source Address Register 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 642 | #define INCA_IP_Switch_PMAC_SA1 ((volatile u32*)(INCA_IP_Switch+ 0x0284)) |
| 643 | #define INCA_IP_Switch_PMAC_SA1_SA_47_32 (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 644 | |
| 645 | /***PM Source Address Register 2***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 646 | #define INCA_IP_Switch_PMAC_SA2 ((volatile u32*)(INCA_IP_Switch+ 0x0288)) |
| 647 | #define INCA_IP_Switch_PMAC_SA2_SA_31_0 |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 648 | |
| 649 | /***PM Dest Address Register 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 650 | #define INCA_IP_Switch_PMAC_DA1 ((volatile u32*)(INCA_IP_Switch+ 0x028C)) |
| 651 | #define INCA_IP_Switch_PMAC_DA1_DA_47_32 (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 652 | |
| 653 | /***PM Dest Address Register 2***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 654 | #define INCA_IP_Switch_PMAC_DA2 ((volatile u32*)(INCA_IP_Switch+ 0x0290)) |
| 655 | #define INCA_IP_Switch_PMAC_DA2_DA_31_0 |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 656 | |
| 657 | /***PM VLAN Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 658 | #define INCA_IP_Switch_PMAC_VLAN ((volatile u32*)(INCA_IP_Switch+ 0x0294)) |
| 659 | #define INCA_IP_Switch_PMAC_VLAN_PRI (value) (((( 1 << 3) - 1) & (value)) << 13) |
| 660 | #define INCA_IP_Switch_PMAC_VLAN_CFI (1 << 12) |
| 661 | #define INCA_IP_Switch_PMAC_VLAN_VLANID (value) (((( 1 << 12) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 662 | |
| 663 | /***PM TX IPG Counter Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 664 | #define INCA_IP_Switch_PMAC_TX_IPG ((volatile u32*)(INCA_IP_Switch+ 0x0298)) |
| 665 | #define INCA_IP_Switch_PMAC_TX_IPG_IPGCNT (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 666 | |
| 667 | /***PM RX IPG Counter Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 668 | #define INCA_IP_Switch_PMAC_RX_IPG ((volatile u32*)(INCA_IP_Switch+ 0x029C)) |
| 669 | #define INCA_IP_Switch_PMAC_RX_IPG_IPGCNT (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 670 | |
| 671 | /***Mirror Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 672 | #define INCA_IP_Switch_MRR ((volatile u32*)(INCA_IP_Switch+ 0x0300)) |
| 673 | #define INCA_IP_Switch_MRR_MRR (value) (((( 1 << 2) - 1) & (value)) << 6) |
| 674 | #define INCA_IP_Switch_MRR_EC (1 << 5) |
| 675 | #define INCA_IP_Switch_MRR_EL (1 << 4) |
| 676 | #define INCA_IP_Switch_MRR_EP (1 << 3) |
| 677 | #define INCA_IP_Switch_MRR_IC (1 << 2) |
| 678 | #define INCA_IP_Switch_MRR_IL (1 << 1) |
| 679 | #define INCA_IP_Switch_MRR_IP (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 680 | |
| 681 | /***Packet Length Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 682 | #define INCA_IP_Switch_PKT_LEN ((volatile u32*)(INCA_IP_Switch+ 0x0304)) |
| 683 | #define INCA_IP_Switch_PKT_LEN_ADD (1 << 11) |
| 684 | #define INCA_IP_Switch_PKT_LEN_MAX_PKT_LEN (value) (((( 1 << 11) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 685 | |
| 686 | /***MDIO Access Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 687 | #define INCA_IP_Switch_MDIO_ACC ((volatile u32*)(INCA_IP_Switch+ 0x0480)) |
| 688 | #define INCA_IP_Switch_MDIO_ACC_RA (1 << 31) |
| 689 | #define INCA_IP_Switch_MDIO_ACC_RW (1 << 30) |
| 690 | #define INCA_IP_Switch_MDIO_ACC_PHY_ADDR (value) (((( 1 << 5) - 1) & (value)) << 21) |
| 691 | #define INCA_IP_Switch_MDIO_ACC_REG_ADDR (value) (((( 1 << 5) - 1) & (value)) << 16) |
| 692 | #define INCA_IP_Switch_MDIO_ACC_PHY_DATA (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 693 | |
| 694 | /***Ethernet PHY Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 695 | #define INCA_IP_Switch_EPHY ((volatile u32*)(INCA_IP_Switch+ 0x0484)) |
| 696 | #define INCA_IP_Switch_EPHY_SL (1 << 7) |
| 697 | #define INCA_IP_Switch_EPHY_SP (1 << 6) |
| 698 | #define INCA_IP_Switch_EPHY_LL (1 << 5) |
| 699 | #define INCA_IP_Switch_EPHY_LP (1 << 4) |
| 700 | #define INCA_IP_Switch_EPHY_DL (1 << 3) |
| 701 | #define INCA_IP_Switch_EPHY_DP (1 << 2) |
| 702 | #define INCA_IP_Switch_EPHY_PL (1 << 1) |
| 703 | #define INCA_IP_Switch_EPHY_PP (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 704 | |
| 705 | /***Pause Write Enable Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 706 | #define INCA_IP_Switch_PWR_EN ((volatile u32*)(INCA_IP_Switch+ 0x0488)) |
| 707 | #define INCA_IP_Switch_PWR_EN_PL (1 << 1) |
| 708 | #define INCA_IP_Switch_PWR_EN_PP (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 709 | |
| 710 | /***MDIO Configuration Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 711 | #define INCA_IP_Switch_MDIO_CFG ((volatile u32*)(INCA_IP_Switch+ 0x048C)) |
| 712 | #define INCA_IP_Switch_MDIO_CFG_MDS (value) (((( 1 << 2) - 1) & (value)) << 14) |
| 713 | #define INCA_IP_Switch_MDIO_CFG_PHY_LAN_ADDR (value) (((( 1 << 5) - 1) & (value)) << 9) |
| 714 | #define INCA_IP_Switch_MDIO_CFG_PHY_PC_ADDR (value) (((( 1 << 5) - 1) & (value)) << 4) |
| 715 | #define INCA_IP_Switch_MDIO_CFG_UEP (1 << 3) |
| 716 | #define INCA_IP_Switch_MDIO_CFG_PS (1 << 2) |
| 717 | #define INCA_IP_Switch_MDIO_CFG_PT (1 << 1) |
| 718 | #define INCA_IP_Switch_MDIO_CFG_UMM (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 719 | |
| 720 | /***Clock Configuration Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 721 | #define INCA_IP_Switch_CLK_CFG ((volatile u32*)(INCA_IP_Switch+ 0x0500)) |
| 722 | #define INCA_IP_Switch_CLK_CFG_ARL_ID (1 << 9) |
| 723 | #define INCA_IP_Switch_CLK_CFG_CPU_ID (1 << 8) |
| 724 | #define INCA_IP_Switch_CLK_CFG_LAN_ID (1 << 7) |
| 725 | #define INCA_IP_Switch_CLK_CFG_PC_ID (1 << 6) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 726 | #define INCA_IP_Switch_CLK_CFG_SE_ID (1 << 5) |
| 727 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 728 | /***********************************************************************/ |
| 729 | /* Module : SSC1 register address and bits */ |
| 730 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 731 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 732 | #define INCA_IP_SSC1 (0xB8000500) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 733 | /***********************************************************************/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 734 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 735 | |
| 736 | /***Control Register (Programming Mode)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 737 | #define INCA_IP_SSC1_SCC_CON_PRG ((volatile u32*)(INCA_IP_SSC1+ 0x0010)) |
| 738 | #define INCA_IP_SSC1_SCC_CON_PRG_EN (1 << 15) |
| 739 | #define INCA_IP_SSC1_SCC_CON_PRG_MS (1 << 14) |
| 740 | #define INCA_IP_SSC1_SCC_CON_PRG_AREN (1 << 12) |
| 741 | #define INCA_IP_SSC1_SCC_CON_PRG_BEN (1 << 11) |
| 742 | #define INCA_IP_SSC1_SCC_CON_PRG_PEN (1 << 10) |
| 743 | #define INCA_IP_SSC1_SCC_CON_PRG_REN (1 << 9) |
| 744 | #define INCA_IP_SSC1_SCC_CON_PRG_TEN (1 << 8) |
| 745 | #define INCA_IP_SSC1_SCC_CON_PRG_LB (1 << 7) |
| 746 | #define INCA_IP_SSC1_SCC_CON_PRG_PO (1 << 6) |
| 747 | #define INCA_IP_SSC1_SCC_CON_PRG_PH (1 << 5) |
| 748 | #define INCA_IP_SSC1_SCC_CON_PRG_HB (1 << 4) |
| 749 | #define INCA_IP_SSC1_SCC_CON_PRG_BM (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 750 | |
| 751 | /***SCC Control Register (Operating Mode)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 752 | #define INCA_IP_SSC1_SCC_CON_OPR ((volatile u32*)(INCA_IP_SSC1+ 0x0010)) |
| 753 | #define INCA_IP_SSC1_SCC_CON_OPR_EN (1 << 15) |
| 754 | #define INCA_IP_SSC1_SCC_CON_OPR_MS (1 << 14) |
| 755 | #define INCA_IP_SSC1_SCC_CON_OPR_BSY (1 << 12) |
| 756 | #define INCA_IP_SSC1_SCC_CON_OPR_BE (1 << 11) |
| 757 | #define INCA_IP_SSC1_SCC_CON_OPR_PE (1 << 10) |
| 758 | #define INCA_IP_SSC1_SCC_CON_OPR_RE (1 << 9) |
| 759 | #define INCA_IP_SSC1_SCC_CON_OPR_TE (1 << 8) |
| 760 | #define INCA_IP_SSC1_SCC_CON_OPR_BC (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 761 | |
| 762 | /***SSC Write Hardware Modified Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 763 | #define INCA_IP_SSC1_SSC_WHBCON ((volatile u32*)(INCA_IP_SSC1+ 0x0040)) |
| 764 | #define INCA_IP_SSC1_SSC_WHBCON_SETBE (1 << 15) |
| 765 | #define INCA_IP_SSC1_SSC_WHBCON_SETPE (1 << 14) |
| 766 | #define INCA_IP_SSC1_SSC_WHBCON_SETRE (1 << 13) |
| 767 | #define INCA_IP_SSC1_SSC_WHBCON_SETTE (1 << 12) |
| 768 | #define INCA_IP_SSC1_SSC_WHBCON_CLRBE (1 << 11) |
| 769 | #define INCA_IP_SSC1_SSC_WHBCON_CLRPE (1 << 10) |
| 770 | #define INCA_IP_SSC1_SSC_WHBCON_CLRRE (1 << 9) |
| 771 | #define INCA_IP_SSC1_SSC_WHBCON_CLRTE (1 << 8) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 772 | |
| 773 | /***SSC Baudrate Timer Reload Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 774 | #define INCA_IP_SSC1_SSC_BR ((volatile u32*)(INCA_IP_SSC1+ 0x0014)) |
| 775 | #define INCA_IP_SSC1_SSC_BR_BR_VALUE (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 776 | |
| 777 | /***SSC Transmitter Buffer Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 778 | #define INCA_IP_SSC1_SSC_TB ((volatile u32*)(INCA_IP_SSC1+ 0x0020)) |
| 779 | #define INCA_IP_SSC1_SSC_TB_TB_VALUE (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 780 | |
| 781 | /***SSC Receiver Buffer Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 782 | #define INCA_IP_SSC1_SSC_RB ((volatile u32*)(INCA_IP_SSC1+ 0x0024)) |
| 783 | #define INCA_IP_SSC1_SSC_RB_RB_VALUE (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 784 | |
| 785 | /***SSC Receive FIFO Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 786 | #define INCA_IP_SSC1_SSC_RXFCON ((volatile u32*)(INCA_IP_SSC1+ 0x0030)) |
| 787 | #define INCA_IP_SSC1_SSC_RXFCON_RXFITL (value) (((( 1 << 6) - 1) & (value)) << 8) |
| 788 | #define INCA_IP_SSC1_SSC_RXFCON_RXTMEN (1 << 2) |
| 789 | #define INCA_IP_SSC1_SSC_RXFCON_RXFLU (1 << 1) |
| 790 | #define INCA_IP_SSC1_SSC_RXFCON_RXFEN (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 791 | |
| 792 | /***SSC Transmit FIFO Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 793 | #define INCA_IP_SSC1_SSC_TXFCON ((volatile u32*)(INCA_IP_SSC1+ 0x0034)) |
| 794 | #define INCA_IP_SSC1_SSC_TXFCON_RXFITL (value) (((( 1 << 6) - 1) & (value)) << 8) |
| 795 | #define INCA_IP_SSC1_SSC_TXFCON_TXTMEN (1 << 2) |
| 796 | #define INCA_IP_SSC1_SSC_TXFCON_TXFLU (1 << 1) |
| 797 | #define INCA_IP_SSC1_SSC_TXFCON_TXFEN (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 798 | |
| 799 | /***SSC FIFO Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 800 | #define INCA_IP_SSC1_SSC_FSTAT ((volatile u32*)(INCA_IP_SSC1+ 0x0038)) |
| 801 | #define INCA_IP_SSC1_SSC_FSTAT_TXFFL (value) (((( 1 << 6) - 1) & (value)) << 8) |
| 802 | #define INCA_IP_SSC1_SSC_FSTAT_RXFFL (value) (((( 1 << 6) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 803 | |
| 804 | /***SSC Clock Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 805 | #define INCA_IP_SSC1_SSC_CLC ((volatile u32*)(INCA_IP_SSC1+ 0x0000)) |
| 806 | #define INCA_IP_SSC1_SSC_CLC_RMC (value) (((( 1 << 8) - 1) & (value)) << 8) |
| 807 | #define INCA_IP_SSC1_SSC_CLC_DISS (1 << 1) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 808 | #define INCA_IP_SSC1_SSC_CLC_DISR (1 << 0) |
| 809 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 810 | /***********************************************************************/ |
| 811 | /* Module : SSC2 register address and bits */ |
| 812 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 813 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 814 | #define INCA_IP_SSC2 (0xB8000600) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 815 | /***********************************************************************/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 816 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 817 | |
| 818 | /***Control Register (Programming Mode)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 819 | #define INCA_IP_SSC2_SCC_CON_PRG ((volatile u32*)(INCA_IP_SSC2+ 0x0010)) |
| 820 | #define INCA_IP_SSC2_SCC_CON_PRG_EN (1 << 15) |
| 821 | #define INCA_IP_SSC2_SCC_CON_PRG_MS (1 << 14) |
| 822 | #define INCA_IP_SSC2_SCC_CON_PRG_AREN (1 << 12) |
| 823 | #define INCA_IP_SSC2_SCC_CON_PRG_BEN (1 << 11) |
| 824 | #define INCA_IP_SSC2_SCC_CON_PRG_PEN (1 << 10) |
| 825 | #define INCA_IP_SSC2_SCC_CON_PRG_REN (1 << 9) |
| 826 | #define INCA_IP_SSC2_SCC_CON_PRG_TEN (1 << 8) |
| 827 | #define INCA_IP_SSC2_SCC_CON_PRG_LB (1 << 7) |
| 828 | #define INCA_IP_SSC2_SCC_CON_PRG_PO (1 << 6) |
| 829 | #define INCA_IP_SSC2_SCC_CON_PRG_PH (1 << 5) |
| 830 | #define INCA_IP_SSC2_SCC_CON_PRG_HB (1 << 4) |
| 831 | #define INCA_IP_SSC2_SCC_CON_PRG_BM (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 832 | |
| 833 | /***SCC Control Register (Operating Mode)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 834 | #define INCA_IP_SSC2_SCC_CON_OPR ((volatile u32*)(INCA_IP_SSC2+ 0x0010)) |
| 835 | #define INCA_IP_SSC2_SCC_CON_OPR_EN (1 << 15) |
| 836 | #define INCA_IP_SSC2_SCC_CON_OPR_MS (1 << 14) |
| 837 | #define INCA_IP_SSC2_SCC_CON_OPR_BSY (1 << 12) |
| 838 | #define INCA_IP_SSC2_SCC_CON_OPR_BE (1 << 11) |
| 839 | #define INCA_IP_SSC2_SCC_CON_OPR_PE (1 << 10) |
| 840 | #define INCA_IP_SSC2_SCC_CON_OPR_RE (1 << 9) |
| 841 | #define INCA_IP_SSC2_SCC_CON_OPR_TE (1 << 8) |
| 842 | #define INCA_IP_SSC2_SCC_CON_OPR_BC (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 843 | |
| 844 | /***SSC Write Hardware Modified Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 845 | #define INCA_IP_SSC2_SSC_WHBCON ((volatile u32*)(INCA_IP_SSC2+ 0x0040)) |
| 846 | #define INCA_IP_SSC2_SSC_WHBCON_SETBE (1 << 15) |
| 847 | #define INCA_IP_SSC2_SSC_WHBCON_SETPE (1 << 14) |
| 848 | #define INCA_IP_SSC2_SSC_WHBCON_SETRE (1 << 13) |
| 849 | #define INCA_IP_SSC2_SSC_WHBCON_SETTE (1 << 12) |
| 850 | #define INCA_IP_SSC2_SSC_WHBCON_CLRBE (1 << 11) |
| 851 | #define INCA_IP_SSC2_SSC_WHBCON_CLRPE (1 << 10) |
| 852 | #define INCA_IP_SSC2_SSC_WHBCON_CLRRE (1 << 9) |
| 853 | #define INCA_IP_SSC2_SSC_WHBCON_CLRTE (1 << 8) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 854 | |
| 855 | /***SSC Baudrate Timer Reload Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 856 | #define INCA_IP_SSC2_SSC_BR ((volatile u32*)(INCA_IP_SSC2+ 0x0014)) |
| 857 | #define INCA_IP_SSC2_SSC_BR_BR_VALUE (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 858 | |
| 859 | /***SSC Transmitter Buffer Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 860 | #define INCA_IP_SSC2_SSC_TB ((volatile u32*)(INCA_IP_SSC2+ 0x0020)) |
| 861 | #define INCA_IP_SSC2_SSC_TB_TB_VALUE (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 862 | |
| 863 | /***SSC Receiver Buffer Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 864 | #define INCA_IP_SSC2_SSC_RB ((volatile u32*)(INCA_IP_SSC2+ 0x0024)) |
| 865 | #define INCA_IP_SSC2_SSC_RB_RB_VALUE (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 866 | |
| 867 | /***SSC Receive FIFO Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 868 | #define INCA_IP_SSC2_SSC_RXFCON ((volatile u32*)(INCA_IP_SSC2+ 0x0030)) |
| 869 | #define INCA_IP_SSC2_SSC_RXFCON_RXFITL (value) (((( 1 << 6) - 1) & (value)) << 8) |
| 870 | #define INCA_IP_SSC2_SSC_RXFCON_RXTMEN (1 << 2) |
| 871 | #define INCA_IP_SSC2_SSC_RXFCON_RXFLU (1 << 1) |
| 872 | #define INCA_IP_SSC2_SSC_RXFCON_RXFEN (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 873 | |
| 874 | /***SSC Transmit FIFO Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 875 | #define INCA_IP_SSC2_SSC_TXFCON ((volatile u32*)(INCA_IP_SSC2+ 0x0034)) |
| 876 | #define INCA_IP_SSC2_SSC_TXFCON_RXFITL (value) (((( 1 << 6) - 1) & (value)) << 8) |
| 877 | #define INCA_IP_SSC2_SSC_TXFCON_TXTMEN (1 << 2) |
| 878 | #define INCA_IP_SSC2_SSC_TXFCON_TXFLU (1 << 1) |
| 879 | #define INCA_IP_SSC2_SSC_TXFCON_TXFEN (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 880 | |
| 881 | /***SSC FIFO Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 882 | #define INCA_IP_SSC2_SSC_FSTAT ((volatile u32*)(INCA_IP_SSC2+ 0x0038)) |
| 883 | #define INCA_IP_SSC2_SSC_FSTAT_TXFFL (value) (((( 1 << 6) - 1) & (value)) << 8) |
| 884 | #define INCA_IP_SSC2_SSC_FSTAT_RXFFL (value) (((( 1 << 6) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 885 | |
| 886 | /***SSC Clock Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 887 | #define INCA_IP_SSC2_SSC_CLC ((volatile u32*)(INCA_IP_SSC2+ 0x0000)) |
| 888 | #define INCA_IP_SSC2_SSC_CLC_RMC (value) (((( 1 << 8) - 1) & (value)) << 8) |
| 889 | #define INCA_IP_SSC2_SSC_CLC_DISS (1 << 1) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 890 | #define INCA_IP_SSC2_SSC_CLC_DISR (1 << 0) |
| 891 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 892 | /***********************************************************************/ |
| 893 | /* Module : EBU register address and bits */ |
| 894 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 895 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 896 | #define INCA_IP_EBU (0xB8000200) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 897 | /***********************************************************************/ |
| 898 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 899 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 900 | /***EBU Clock Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 901 | #define INCA_IP_EBU_EBU_CLC ((volatile u32*)(INCA_IP_EBU+ 0x0000)) |
| 902 | #define INCA_IP_EBU_EBU_CLC_DISS (1 << 1) |
| 903 | #define INCA_IP_EBU_EBU_CLC_DISR (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 904 | |
| 905 | /***EBU Global Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 906 | #define INCA_IP_EBU_EBU_CON ((volatile u32*)(INCA_IP_EBU+ 0x0010)) |
| 907 | #define INCA_IP_EBU_EBU_CON_DTACS (value) (((( 1 << 3) - 1) & (value)) << 20) |
| 908 | #define INCA_IP_EBU_EBU_CON_DTARW (value) (((( 1 << 3) - 1) & (value)) << 16) |
| 909 | #define INCA_IP_EBU_EBU_CON_TOUTC (value) (((( 1 << 8) - 1) & (value)) << 8) |
| 910 | #define INCA_IP_EBU_EBU_CON_ARBMODE (value) (((( 1 << 2) - 1) & (value)) << 6) |
| 911 | #define INCA_IP_EBU_EBU_CON_ARBSYNC (1 << 5) |
| 912 | #define INCA_IP_EBU_EBU_CON_1 (1 << 3) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 913 | |
| 914 | /***EBU Address Select Register 0***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 915 | #define INCA_IP_EBU_EBU_ADDSEL0 ((volatile u32*)(INCA_IP_EBU+ 0x0020)) |
| 916 | #define INCA_IP_EBU_EBU_ADDSEL0_BASE (value) (((( 1 << 20) - 1) & (value)) << 12) |
| 917 | #define INCA_IP_EBU_EBU_ADDSEL0_MASK (value) (((( 1 << 4) - 1) & (value)) << 4) |
| 918 | #define INCA_IP_EBU_EBU_ADDSEL0_MIRRORE (1 << 1) |
| 919 | #define INCA_IP_EBU_EBU_ADDSEL0_REGEN (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 920 | |
| 921 | /***EBU Address Select Register 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 922 | #define INCA_IP_EBU_EBU_ADDSEL1 ((volatile u32*)(INCA_IP_EBU+ 0x0024)) |
| 923 | #define INCA_IP_EBU_EBU_ADDSEL1_BASE (value) (((( 1 << 20) - 1) & (value)) << 12) |
| 924 | #define INCA_IP_EBU_EBU_ADDSEL1_MASK (value) (((( 1 << 4) - 1) & (value)) << 4) |
| 925 | #define INCA_IP_EBU_EBU_ADDSEL1_MIRRORE (1 << 1) |
| 926 | #define INCA_IP_EBU_EBU_ADDSEL1_REGEN (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 927 | |
| 928 | /***EBU Address Select Register 2***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 929 | #define INCA_IP_EBU_EBU_ADDSEL2 ((volatile u32*)(INCA_IP_EBU+ 0x0028)) |
| 930 | #define INCA_IP_EBU_EBU_ADDSEL2_BASE (value) (((( 1 << 20) - 1) & (value)) << 12) |
| 931 | #define INCA_IP_EBU_EBU_ADDSEL2_MASK (value) (((( 1 << 4) - 1) & (value)) << 4) |
| 932 | #define INCA_IP_EBU_EBU_ADDSEL2_MIRRORE (1 << 1) |
| 933 | #define INCA_IP_EBU_EBU_ADDSEL2_REGEN (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 934 | |
| 935 | /***EBU Bus Configuration Register 0***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 936 | #define INCA_IP_EBU_EBU_BUSCON0 ((volatile u32*)(INCA_IP_EBU+ 0x0060)) |
| 937 | #define INCA_IP_EBU_EBU_BUSCON0_WRDIS (1 << 31) |
| 938 | #define INCA_IP_EBU_EBU_BUSCON0_ALEC (value) (((( 1 << 2) - 1) & (value)) << 29) |
| 939 | #define INCA_IP_EBU_EBU_BUSCON0_BCGEN (value) (((( 1 << 2) - 1) & (value)) << 27) |
| 940 | #define INCA_IP_EBU_EBU_BUSCON0_AGEN (value) (((( 1 << 2) - 1) & (value)) << 24) |
| 941 | #define INCA_IP_EBU_EBU_BUSCON0_CMULTR (value) (((( 1 << 2) - 1) & (value)) << 22) |
| 942 | #define INCA_IP_EBU_EBU_BUSCON0_WAIT (value) (((( 1 << 2) - 1) & (value)) << 20) |
| 943 | #define INCA_IP_EBU_EBU_BUSCON0_WAITINV (1 << 19) |
| 944 | #define INCA_IP_EBU_EBU_BUSCON0_SETUP (1 << 18) |
| 945 | #define INCA_IP_EBU_EBU_BUSCON0_PORTW (value) (((( 1 << 2) - 1) & (value)) << 16) |
| 946 | #define INCA_IP_EBU_EBU_BUSCON0_WAITRDC (value) (((( 1 << 7) - 1) & (value)) << 9) |
| 947 | #define INCA_IP_EBU_EBU_BUSCON0_WAITWRC (value) (((( 1 << 3) - 1) & (value)) << 6) |
| 948 | #define INCA_IP_EBU_EBU_BUSCON0_HOLDC (value) (((( 1 << 2) - 1) & (value)) << 4) |
| 949 | #define INCA_IP_EBU_EBU_BUSCON0_RECOVC (value) (((( 1 << 2) - 1) & (value)) << 2) |
| 950 | #define INCA_IP_EBU_EBU_BUSCON0_CMULT (value) (((( 1 << 2) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 951 | |
| 952 | /***EBU Bus Configuration Register 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 953 | #define INCA_IP_EBU_EBU_BUSCON1 ((volatile u32*)(INCA_IP_EBU+ 0x0064)) |
| 954 | #define INCA_IP_EBU_EBU_BUSCON1_WRDIS (1 << 31) |
| 955 | #define INCA_IP_EBU_EBU_BUSCON1_ALEC (value) (((( 1 << 2) - 1) & (value)) << 29) |
| 956 | #define INCA_IP_EBU_EBU_BUSCON1_BCGEN (value) (((( 1 << 2) - 1) & (value)) << 27) |
| 957 | #define INCA_IP_EBU_EBU_BUSCON1_AGEN (value) (((( 1 << 2) - 1) & (value)) << 24) |
| 958 | #define INCA_IP_EBU_EBU_BUSCON1_CMULTR (value) (((( 1 << 2) - 1) & (value)) << 22) |
| 959 | #define INCA_IP_EBU_EBU_BUSCON1_WAIT (value) (((( 1 << 2) - 1) & (value)) << 20) |
| 960 | #define INCA_IP_EBU_EBU_BUSCON1_WAITINV (1 << 19) |
| 961 | #define INCA_IP_EBU_EBU_BUSCON1_SETUP (1 << 18) |
| 962 | #define INCA_IP_EBU_EBU_BUSCON1_PORTW (value) (((( 1 << 2) - 1) & (value)) << 16) |
| 963 | #define INCA_IP_EBU_EBU_BUSCON1_WAITRDC (value) (((( 1 << 7) - 1) & (value)) << 9) |
| 964 | #define INCA_IP_EBU_EBU_BUSCON1_WAITWRC (value) (((( 1 << 3) - 1) & (value)) << 6) |
| 965 | #define INCA_IP_EBU_EBU_BUSCON1_HOLDC (value) (((( 1 << 2) - 1) & (value)) << 4) |
| 966 | #define INCA_IP_EBU_EBU_BUSCON1_RECOVC (value) (((( 1 << 2) - 1) & (value)) << 2) |
| 967 | #define INCA_IP_EBU_EBU_BUSCON1_CMULT (value) (((( 1 << 2) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 968 | |
| 969 | /***EBU Bus Configuration Register 2***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 970 | #define INCA_IP_EBU_EBU_BUSCON2 ((volatile u32*)(INCA_IP_EBU+ 0x0068)) |
| 971 | #define INCA_IP_EBU_EBU_BUSCON2_WRDIS (1 << 31) |
| 972 | #define INCA_IP_EBU_EBU_BUSCON2_ALEC (value) (((( 1 << 2) - 1) & (value)) << 29) |
| 973 | #define INCA_IP_EBU_EBU_BUSCON2_BCGEN (value) (((( 1 << 2) - 1) & (value)) << 27) |
| 974 | #define INCA_IP_EBU_EBU_BUSCON2_AGEN (value) (((( 1 << 2) - 1) & (value)) << 24) |
| 975 | #define INCA_IP_EBU_EBU_BUSCON2_CMULTR (value) (((( 1 << 2) - 1) & (value)) << 22) |
| 976 | #define INCA_IP_EBU_EBU_BUSCON2_WAIT (value) (((( 1 << 2) - 1) & (value)) << 20) |
| 977 | #define INCA_IP_EBU_EBU_BUSCON2_WAITINV (1 << 19) |
| 978 | #define INCA_IP_EBU_EBU_BUSCON2_SETUP (1 << 18) |
| 979 | #define INCA_IP_EBU_EBU_BUSCON2_PORTW (value) (((( 1 << 2) - 1) & (value)) << 16) |
| 980 | #define INCA_IP_EBU_EBU_BUSCON2_WAITRDC (value) (((( 1 << 7) - 1) & (value)) << 9) |
| 981 | #define INCA_IP_EBU_EBU_BUSCON2_WAITWRC (value) (((( 1 << 3) - 1) & (value)) << 6) |
| 982 | #define INCA_IP_EBU_EBU_BUSCON2_HOLDC (value) (((( 1 << 2) - 1) & (value)) << 4) |
| 983 | #define INCA_IP_EBU_EBU_BUSCON2_RECOVC (value) (((( 1 << 2) - 1) & (value)) << 2) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 984 | #define INCA_IP_EBU_EBU_BUSCON2_CMULT (value) (((( 1 << 2) - 1) & (value)) << 0) |
| 985 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 986 | /***********************************************************************/ |
| 987 | /* Module : SDRAM register address and bits */ |
| 988 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 989 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 990 | #define INCA_IP_SDRAM (0xBF800000) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 991 | /***********************************************************************/ |
| 992 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 993 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 994 | /***MC Access Error Cause Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 995 | #define INCA_IP_SDRAM_MC_ERRCAUSE ((volatile u32*)(INCA_IP_SDRAM+ 0x0100)) |
| 996 | #define INCA_IP_SDRAM_MC_ERRCAUSE_ERR (1 << 31) |
| 997 | #define INCA_IP_SDRAM_MC_ERRCAUSE_PORT (value) (((( 1 << 4) - 1) & (value)) << 16) |
| 998 | #define INCA_IP_SDRAM_MC_ERRCAUSE_CAUSE (value) (((( 1 << 2) - 1) & (value)) << 0) |
| 999 | #define INCA_IP_SDRAM_MC_ERRCAUSE_Res (value) (((( 1 << NaN) - 1) & (value)) << NaN) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1000 | |
| 1001 | /***MC Access Error Address Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1002 | #define INCA_IP_SDRAM_MC_ERRADDR ((volatile u32*)(INCA_IP_SDRAM+ 0x0108)) |
| 1003 | #define INCA_IP_SDRAM_MC_ERRADDR_ADDR |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1004 | |
| 1005 | /***MC I/O General Purpose Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1006 | #define INCA_IP_SDRAM_MC_IOGP ((volatile u32*)(INCA_IP_SDRAM+ 0x0800)) |
| 1007 | #define INCA_IP_SDRAM_MC_IOGP_GPR6 (value) (((( 1 << 4) - 1) & (value)) << 28) |
| 1008 | #define INCA_IP_SDRAM_MC_IOGP_GPR5 (value) (((( 1 << 4) - 1) & (value)) << 24) |
| 1009 | #define INCA_IP_SDRAM_MC_IOGP_GPR4 (value) (((( 1 << 4) - 1) & (value)) << 20) |
| 1010 | #define INCA_IP_SDRAM_MC_IOGP_GPR3 (value) (((( 1 << 4) - 1) & (value)) << 16) |
| 1011 | #define INCA_IP_SDRAM_MC_IOGP_GPR2 (value) (((( 1 << 4) - 1) & (value)) << 12) |
| 1012 | #define INCA_IP_SDRAM_MC_IOGP_CPS (1 << 11) |
| 1013 | #define INCA_IP_SDRAM_MC_IOGP_CLKDELAY (value) (((( 1 << 3) - 1) & (value)) << 8) |
| 1014 | #define INCA_IP_SDRAM_MC_IOGP_CLKRAT (value) (((( 1 << 4) - 1) & (value)) << 4) |
| 1015 | #define INCA_IP_SDRAM_MC_IOGP_RDDEL (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1016 | |
| 1017 | /***MC Self Refresh Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1018 | #define INCA_IP_SDRAM_MC_SELFRFSH ((volatile u32*)(INCA_IP_SDRAM+ 0x0A00)) |
| 1019 | #define INCA_IP_SDRAM_MC_SELFRFSH_PWDS (1 << 1) |
| 1020 | #define INCA_IP_SDRAM_MC_SELFRFSH_PWD (1 << 0) |
| 1021 | #define INCA_IP_SDRAM_MC_SELFRFSH_Res (value) (((( 1 << 30) - 1) & (value)) << 2) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1022 | |
| 1023 | /***MC Enable Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1024 | #define INCA_IP_SDRAM_MC_CTRLENA ((volatile u32*)(INCA_IP_SDRAM+ 0x1000)) |
| 1025 | #define INCA_IP_SDRAM_MC_CTRLENA_ENA (1 << 0) |
| 1026 | #define INCA_IP_SDRAM_MC_CTRLENA_Res (value) (((( 1 << 31) - 1) & (value)) << 1) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1027 | |
| 1028 | /***MC Mode Register Setup Code***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1029 | #define INCA_IP_SDRAM_MC_MRSCODE ((volatile u32*)(INCA_IP_SDRAM+ 0x1008)) |
| 1030 | #define INCA_IP_SDRAM_MC_MRSCODE_UMC (value) (((( 1 << 5) - 1) & (value)) << 7) |
| 1031 | #define INCA_IP_SDRAM_MC_MRSCODE_CL (value) (((( 1 << 3) - 1) & (value)) << 4) |
| 1032 | #define INCA_IP_SDRAM_MC_MRSCODE_WT (1 << 3) |
| 1033 | #define INCA_IP_SDRAM_MC_MRSCODE_BL (value) (((( 1 << 3) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1034 | |
| 1035 | /***MC Configuration Data-word Width Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1036 | #define INCA_IP_SDRAM_MC_CFGDW ((volatile u32*)(INCA_IP_SDRAM+ 0x1010)) |
| 1037 | #define INCA_IP_SDRAM_MC_CFGDW_DW (value) (((( 1 << 4) - 1) & (value)) << 0) |
| 1038 | #define INCA_IP_SDRAM_MC_CFGDW_Res (value) (((( 1 << 28) - 1) & (value)) << 4) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1039 | |
| 1040 | /***MC Configuration Physical Bank 0 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1041 | #define INCA_IP_SDRAM_MC_CFGPB0 ((volatile u32*)(INCA_IP_SDRAM+ 0x1018)) |
| 1042 | #define INCA_IP_SDRAM_MC_CFGPB0_MCSEN0 (value) (((( 1 << 4) - 1) & (value)) << 12) |
| 1043 | #define INCA_IP_SDRAM_MC_CFGPB0_BANKN0 (value) (((( 1 << 4) - 1) & (value)) << 8) |
| 1044 | #define INCA_IP_SDRAM_MC_CFGPB0_ROWW0 (value) (((( 1 << 4) - 1) & (value)) << 4) |
| 1045 | #define INCA_IP_SDRAM_MC_CFGPB0_COLW0 (value) (((( 1 << 4) - 1) & (value)) << 0) |
| 1046 | #define INCA_IP_SDRAM_MC_CFGPB0_Res (value) (((( 1 << 16) - 1) & (value)) << 16) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1047 | |
| 1048 | /***MC Latency Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1049 | #define INCA_IP_SDRAM_MC_LATENCY ((volatile u32*)(INCA_IP_SDRAM+ 0x1038)) |
| 1050 | #define INCA_IP_SDRAM_MC_LATENCY_TRP (value) (((( 1 << 4) - 1) & (value)) << 16) |
| 1051 | #define INCA_IP_SDRAM_MC_LATENCY_TRAS (value) (((( 1 << 4) - 1) & (value)) << 12) |
| 1052 | #define INCA_IP_SDRAM_MC_LATENCY_TRCD (value) (((( 1 << 4) - 1) & (value)) << 8) |
| 1053 | #define INCA_IP_SDRAM_MC_LATENCY_TDPL (value) (((( 1 << 4) - 1) & (value)) << 4) |
| 1054 | #define INCA_IP_SDRAM_MC_LATENCY_TDAL (value) (((( 1 << 4) - 1) & (value)) << 0) |
| 1055 | #define INCA_IP_SDRAM_MC_LATENCY_Res (value) (((( 1 << 12) - 1) & (value)) << 20) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1056 | |
| 1057 | /***MC Refresh Cycle Time Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1058 | #define INCA_IP_SDRAM_MC_TREFRESH ((volatile u32*)(INCA_IP_SDRAM+ 0x1040)) |
| 1059 | #define INCA_IP_SDRAM_MC_TREFRESH_TREF (value) (((( 1 << 13) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1060 | #define INCA_IP_SDRAM_MC_TREFRESH_Res (value) (((( 1 << 19) - 1) & (value)) << 13) |
| 1061 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1062 | /***********************************************************************/ |
| 1063 | /* Module : GPTU register address and bits */ |
| 1064 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1065 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1066 | #define INCA_IP_GPTU (0xB8000300) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1067 | /***********************************************************************/ |
| 1068 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1069 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1070 | /***GPT Clock Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1071 | #define INCA_IP_GPTU_GPT_CLC ((volatile u32*)(INCA_IP_GPTU+ 0x0000)) |
| 1072 | #define INCA_IP_GPTU_GPT_CLC_RMC (value) (((( 1 << 8) - 1) & (value)) << 8) |
| 1073 | #define INCA_IP_GPTU_GPT_CLC_DISS (1 << 1) |
| 1074 | #define INCA_IP_GPTU_GPT_CLC_DISR (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1075 | |
| 1076 | /***GPT Timer 3 Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1077 | #define INCA_IP_GPTU_GPT_T3CON ((volatile u32*)(INCA_IP_GPTU+ 0x0014)) |
| 1078 | #define INCA_IP_GPTU_GPT_T3CON_T3RDIR (1 << 15) |
| 1079 | #define INCA_IP_GPTU_GPT_T3CON_T3CHDIR (1 << 14) |
| 1080 | #define INCA_IP_GPTU_GPT_T3CON_T3EDGE (1 << 13) |
| 1081 | #define INCA_IP_GPTU_GPT_T3CON_BPS1 (value) (((( 1 << 2) - 1) & (value)) << 11) |
| 1082 | #define INCA_IP_GPTU_GPT_T3CON_T3OTL (1 << 10) |
| 1083 | #define INCA_IP_GPTU_GPT_T3CON_T3UD (1 << 7) |
| 1084 | #define INCA_IP_GPTU_GPT_T3CON_T3R (1 << 6) |
| 1085 | #define INCA_IP_GPTU_GPT_T3CON_T3M (value) (((( 1 << 3) - 1) & (value)) << 3) |
| 1086 | #define INCA_IP_GPTU_GPT_T3CON_T3I (value) (((( 1 << 3) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1087 | |
| 1088 | /***GPT Write Hardware Modified Timer 3 Control Register |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1089 | If set and clear bit are written concurrently with 1, the associated bit is not changed.***/ |
| 1090 | #define INCA_IP_GPTU_GPT_WHBT3CON ((volatile u32*)(INCA_IP_GPTU+ 0x004C)) |
| 1091 | #define INCA_IP_GPTU_GPT_WHBT3CON_SETT3CHDIR (1 << 15) |
| 1092 | #define INCA_IP_GPTU_GPT_WHBT3CON_CLRT3CHDIR (1 << 14) |
| 1093 | #define INCA_IP_GPTU_GPT_WHBT3CON_SETT3EDGE (1 << 13) |
| 1094 | #define INCA_IP_GPTU_GPT_WHBT3CON_CLRT3EDGE (1 << 12) |
| 1095 | #define INCA_IP_GPTU_GPT_WHBT3CON_SETT3OTL (1 << 11) |
| 1096 | #define INCA_IP_GPTU_GPT_WHBT3CON_CLRT3OTL (1 << 10) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1097 | |
| 1098 | /***GPT Timer 2 Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1099 | #define INCA_IP_GPTU_GPT_T2CON ((volatile u32*)(INCA_IP_GPTU+ 0x0010)) |
| 1100 | #define INCA_IP_GPTU_GPT_T2CON_TxRDIR (1 << 15) |
| 1101 | #define INCA_IP_GPTU_GPT_T2CON_TxCHDIR (1 << 14) |
| 1102 | #define INCA_IP_GPTU_GPT_T2CON_TxEDGE (1 << 13) |
| 1103 | #define INCA_IP_GPTU_GPT_T2CON_TxIRDIS (1 << 12) |
| 1104 | #define INCA_IP_GPTU_GPT_T2CON_TxRC (1 << 9) |
| 1105 | #define INCA_IP_GPTU_GPT_T2CON_TxUD (1 << 7) |
| 1106 | #define INCA_IP_GPTU_GPT_T2CON_TxR (1 << 6) |
| 1107 | #define INCA_IP_GPTU_GPT_T2CON_TxM (value) (((( 1 << 3) - 1) & (value)) << 3) |
| 1108 | #define INCA_IP_GPTU_GPT_T2CON_TxI (value) (((( 1 << 3) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1109 | |
| 1110 | /***GPT Timer 4 Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1111 | #define INCA_IP_GPTU_GPT_T4CON ((volatile u32*)(INCA_IP_GPTU+ 0x0018)) |
| 1112 | #define INCA_IP_GPTU_GPT_T4CON_TxRDIR (1 << 15) |
| 1113 | #define INCA_IP_GPTU_GPT_T4CON_TxCHDIR (1 << 14) |
| 1114 | #define INCA_IP_GPTU_GPT_T4CON_TxEDGE (1 << 13) |
| 1115 | #define INCA_IP_GPTU_GPT_T4CON_TxIRDIS (1 << 12) |
| 1116 | #define INCA_IP_GPTU_GPT_T4CON_TxRC (1 << 9) |
| 1117 | #define INCA_IP_GPTU_GPT_T4CON_TxUD (1 << 7) |
| 1118 | #define INCA_IP_GPTU_GPT_T4CON_TxR (1 << 6) |
| 1119 | #define INCA_IP_GPTU_GPT_T4CON_TxM (value) (((( 1 << 3) - 1) & (value)) << 3) |
| 1120 | #define INCA_IP_GPTU_GPT_T4CON_TxI (value) (((( 1 << 3) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1121 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1122 | /***GPT Write HW Modified Timer 2 Control Register If set |
| 1123 | and clear bit are written concurrently with 1, the associated bit is not changed.***/ |
| 1124 | #define INCA_IP_GPTU_GPT_WHBT2CON ((volatile u32*)(INCA_IP_GPTU+ 0x0048)) |
| 1125 | #define INCA_IP_GPTU_GPT_WHBT2CON_SETTxCHDIR (1 << 15) |
| 1126 | #define INCA_IP_GPTU_GPT_WHBT2CON_CLRTxCHDIR (1 << 14) |
| 1127 | #define INCA_IP_GPTU_GPT_WHBT2CON_SETTxEDGE (1 << 13) |
| 1128 | #define INCA_IP_GPTU_GPT_WHBT2CON_CLRTxEDGE (1 << 12) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1129 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1130 | /***GPT Write HW Modified Timer 4 Control Register If set |
| 1131 | and clear bit are written concurrently with 1, the associated bit is not changed.***/ |
| 1132 | #define INCA_IP_GPTU_GPT_WHBT4CON ((volatile u32*)(INCA_IP_GPTU+ 0x0050)) |
| 1133 | #define INCA_IP_GPTU_GPT_WHBT4CON_SETTxCHDIR (1 << 15) |
| 1134 | #define INCA_IP_GPTU_GPT_WHBT4CON_CLRTxCHDIR (1 << 14) |
| 1135 | #define INCA_IP_GPTU_GPT_WHBT4CON_SETTxEDGE (1 << 13) |
| 1136 | #define INCA_IP_GPTU_GPT_WHBT4CON_CLRTxEDGE (1 << 12) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1137 | |
| 1138 | /***GPT Capture Reload Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1139 | #define INCA_IP_GPTU_GPT_CAPREL ((volatile u32*)(INCA_IP_GPTU+ 0x0030)) |
| 1140 | #define INCA_IP_GPTU_GPT_CAPREL_CAPREL (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1141 | |
| 1142 | /***GPT Timer 2 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1143 | #define INCA_IP_GPTU_GPT_T2 ((volatile u32*)(INCA_IP_GPTU+ 0x0034)) |
| 1144 | #define INCA_IP_GPTU_GPT_T2_TVAL (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1145 | |
| 1146 | /***GPT Timer 3 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1147 | #define INCA_IP_GPTU_GPT_T3 ((volatile u32*)(INCA_IP_GPTU+ 0x0038)) |
| 1148 | #define INCA_IP_GPTU_GPT_T3_TVAL (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1149 | |
| 1150 | /***GPT Timer 4 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1151 | #define INCA_IP_GPTU_GPT_T4 ((volatile u32*)(INCA_IP_GPTU+ 0x003C)) |
| 1152 | #define INCA_IP_GPTU_GPT_T4_TVAL (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1153 | |
| 1154 | /***GPT Timer 5 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1155 | #define INCA_IP_GPTU_GPT_T5 ((volatile u32*)(INCA_IP_GPTU+ 0x0040)) |
| 1156 | #define INCA_IP_GPTU_GPT_T5_TVAL (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1157 | |
| 1158 | /***GPT Timer 6 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1159 | #define INCA_IP_GPTU_GPT_T6 ((volatile u32*)(INCA_IP_GPTU+ 0x0044)) |
| 1160 | #define INCA_IP_GPTU_GPT_T6_TVAL (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1161 | |
| 1162 | /***GPT Timer 6 Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1163 | #define INCA_IP_GPTU_GPT_T6CON ((volatile u32*)(INCA_IP_GPTU+ 0x0020)) |
| 1164 | #define INCA_IP_GPTU_GPT_T6CON_T6SR (1 << 15) |
| 1165 | #define INCA_IP_GPTU_GPT_T6CON_T6CLR (1 << 14) |
| 1166 | #define INCA_IP_GPTU_GPT_T6CON_BPS2 (value) (((( 1 << 2) - 1) & (value)) << 11) |
| 1167 | #define INCA_IP_GPTU_GPT_T6CON_T6OTL (1 << 10) |
| 1168 | #define INCA_IP_GPTU_GPT_T6CON_T6UD (1 << 7) |
| 1169 | #define INCA_IP_GPTU_GPT_T6CON_T6R (1 << 6) |
| 1170 | #define INCA_IP_GPTU_GPT_T6CON_T6M (value) (((( 1 << 3) - 1) & (value)) << 3) |
| 1171 | #define INCA_IP_GPTU_GPT_T6CON_T6I (value) (((( 1 << 3) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1172 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1173 | /***GPT Write HW Modified Timer 6 Control Register If set |
| 1174 | and clear bit are written concurrently with 1, the associated bit is not changed.***/ |
| 1175 | #define INCA_IP_GPTU_GPT_WHBT6CON ((volatile u32*)(INCA_IP_GPTU+ 0x0054)) |
| 1176 | #define INCA_IP_GPTU_GPT_WHBT6CON_SETT6OTL (1 << 11) |
| 1177 | #define INCA_IP_GPTU_GPT_WHBT6CON_CLRT6OTL (1 << 10) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1178 | |
| 1179 | /***GPT Timer 5 Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1180 | #define INCA_IP_GPTU_GPT_T5CON ((volatile u32*)(INCA_IP_GPTU+ 0x001C)) |
| 1181 | #define INCA_IP_GPTU_GPT_T5CON_T5SC (1 << 15) |
| 1182 | #define INCA_IP_GPTU_GPT_T5CON_T5CLR (1 << 14) |
| 1183 | #define INCA_IP_GPTU_GPT_T5CON_CI (value) (((( 1 << 2) - 1) & (value)) << 12) |
| 1184 | #define INCA_IP_GPTU_GPT_T5CON_T5CC (1 << 11) |
| 1185 | #define INCA_IP_GPTU_GPT_T5CON_CT3 (1 << 10) |
| 1186 | #define INCA_IP_GPTU_GPT_T5CON_T5RC (1 << 9) |
| 1187 | #define INCA_IP_GPTU_GPT_T5CON_T5UDE (1 << 8) |
| 1188 | #define INCA_IP_GPTU_GPT_T5CON_T5UD (1 << 7) |
| 1189 | #define INCA_IP_GPTU_GPT_T5CON_T5R (1 << 6) |
| 1190 | #define INCA_IP_GPTU_GPT_T5CON_T5M (value) (((( 1 << 3) - 1) & (value)) << 3) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1191 | #define INCA_IP_GPTU_GPT_T5CON_T5I (value) (((( 1 << 3) - 1) & (value)) << 0) |
| 1192 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1193 | /***********************************************************************/ |
| 1194 | /* Module : IOM register address and bits */ |
| 1195 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1196 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1197 | #define INCA_IP_IOM (0xBF105000) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1198 | /***********************************************************************/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1199 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1200 | |
| 1201 | /***Receive FIFO***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1202 | #define INCA_IP_IOM_RFIFO ((volatile u32*)(INCA_IP_IOM+ 0x0000)) |
| 1203 | #define INCA_IP_IOM_RFIFO_RXD (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1204 | |
| 1205 | /***Transmit FIFO***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1206 | #define INCA_IP_IOM_XFIFO ((volatile u32*)(INCA_IP_IOM+ 0x0000)) |
| 1207 | #define INCA_IP_IOM_XFIFO_TXD (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1208 | |
| 1209 | /***Interrupt Status Register HDLC***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1210 | #define INCA_IP_IOM_ISTAH ((volatile u32*)(INCA_IP_IOM+ 0x0080)) |
| 1211 | #define INCA_IP_IOM_ISTAH_RME (1 << 7) |
| 1212 | #define INCA_IP_IOM_ISTAH_RPF (1 << 6) |
| 1213 | #define INCA_IP_IOM_ISTAH_RFO (1 << 5) |
| 1214 | #define INCA_IP_IOM_ISTAH_XPR (1 << 4) |
| 1215 | #define INCA_IP_IOM_ISTAH_XMR (1 << 3) |
| 1216 | #define INCA_IP_IOM_ISTAH_XDU (1 << 2) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1217 | |
| 1218 | /***Interrupt Mask Register HDLC***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1219 | #define INCA_IP_IOM_MASKH ((volatile u32*)(INCA_IP_IOM+ 0x0080)) |
| 1220 | #define INCA_IP_IOM_MASKH_RME (1 << 7) |
| 1221 | #define INCA_IP_IOM_MASKH_RPF (1 << 6) |
| 1222 | #define INCA_IP_IOM_MASKH_RFO (1 << 5) |
| 1223 | #define INCA_IP_IOM_MASKH_XPR (1 << 4) |
| 1224 | #define INCA_IP_IOM_MASKH_XMR (1 << 3) |
| 1225 | #define INCA_IP_IOM_MASKH_XDU (1 << 2) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1226 | |
| 1227 | /***Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1228 | #define INCA_IP_IOM_STAR ((volatile u32*)(INCA_IP_IOM+ 0x0084)) |
| 1229 | #define INCA_IP_IOM_STAR_XDOV (1 << 7) |
| 1230 | #define INCA_IP_IOM_STAR_XFW (1 << 6) |
| 1231 | #define INCA_IP_IOM_STAR_RACI (1 << 3) |
| 1232 | #define INCA_IP_IOM_STAR_XACI (1 << 1) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1233 | |
| 1234 | /***Command Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1235 | #define INCA_IP_IOM_CMDR ((volatile u32*)(INCA_IP_IOM+ 0x0084)) |
| 1236 | #define INCA_IP_IOM_CMDR_RMC (1 << 7) |
| 1237 | #define INCA_IP_IOM_CMDR_RRES (1 << 6) |
| 1238 | #define INCA_IP_IOM_CMDR_XTF (1 << 3) |
| 1239 | #define INCA_IP_IOM_CMDR_XME (1 << 1) |
| 1240 | #define INCA_IP_IOM_CMDR_XRES (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1241 | |
| 1242 | /***Mode Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1243 | #define INCA_IP_IOM_MODEH ((volatile u32*)(INCA_IP_IOM+ 0x0088)) |
| 1244 | #define INCA_IP_IOM_MODEH_MDS2 (1 << 7) |
| 1245 | #define INCA_IP_IOM_MODEH_MDS1 (1 << 6) |
| 1246 | #define INCA_IP_IOM_MODEH_MDS0 (1 << 5) |
| 1247 | #define INCA_IP_IOM_MODEH_RAC (1 << 3) |
| 1248 | #define INCA_IP_IOM_MODEH_DIM2 (1 << 2) |
| 1249 | #define INCA_IP_IOM_MODEH_DIM1 (1 << 1) |
| 1250 | #define INCA_IP_IOM_MODEH_DIM0 (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1251 | |
| 1252 | /***Extended Mode Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1253 | #define INCA_IP_IOM_EXMR ((volatile u32*)(INCA_IP_IOM+ 0x008C)) |
| 1254 | #define INCA_IP_IOM_EXMR_XFBS (1 << 7) |
| 1255 | #define INCA_IP_IOM_EXMR_RFBS (value) (((( 1 << 2) - 1) & (value)) << 5) |
| 1256 | #define INCA_IP_IOM_EXMR_SRA (1 << 4) |
| 1257 | #define INCA_IP_IOM_EXMR_XCRC (1 << 3) |
| 1258 | #define INCA_IP_IOM_EXMR_RCRC (1 << 2) |
| 1259 | #define INCA_IP_IOM_EXMR_ITF (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1260 | |
| 1261 | /***SAPI1 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1262 | #define INCA_IP_IOM_SAP1 ((volatile u32*)(INCA_IP_IOM+ 0x0094)) |
| 1263 | #define INCA_IP_IOM_SAP1_SAPI1 (value) (((( 1 << 6) - 1) & (value)) << 2) |
| 1264 | #define INCA_IP_IOM_SAP1_MHA (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1265 | |
| 1266 | /***Receive Frame Byte Count Low***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1267 | #define INCA_IP_IOM_RBCL ((volatile u32*)(INCA_IP_IOM+ 0x0098)) |
| 1268 | #define INCA_IP_IOM_RBCL_RBC(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1269 | |
| 1270 | |
| 1271 | /***SAPI2 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1272 | #define INCA_IP_IOM_SAP2 ((volatile u32*)(INCA_IP_IOM+ 0x0098)) |
| 1273 | #define INCA_IP_IOM_SAP2_SAPI2 (value) (((( 1 << 6) - 1) & (value)) << 2) |
| 1274 | #define INCA_IP_IOM_SAP2_MLA (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1275 | |
| 1276 | /***Receive Frame Byte Count High***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1277 | #define INCA_IP_IOM_RBCH ((volatile u32*)(INCA_IP_IOM+ 0x009C)) |
| 1278 | #define INCA_IP_IOM_RBCH_OV (1 << 4) |
| 1279 | #define INCA_IP_IOM_RBCH_RBC11 (1 << 3) |
| 1280 | #define INCA_IP_IOM_RBCH_RBC10 (1 << 2) |
| 1281 | #define INCA_IP_IOM_RBCH_RBC9 (1 << 1) |
| 1282 | #define INCA_IP_IOM_RBCH_RBC8 (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1283 | |
| 1284 | /***TEI1 Register 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1285 | #define INCA_IP_IOM_TEI1 ((volatile u32*)(INCA_IP_IOM+ 0x009C)) |
| 1286 | #define INCA_IP_IOM_TEI1_TEI1 (value) (((( 1 << 7) - 1) & (value)) << 1) |
| 1287 | #define INCA_IP_IOM_TEI1_EA (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1288 | |
| 1289 | /***Receive Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1290 | #define INCA_IP_IOM_RSTA ((volatile u32*)(INCA_IP_IOM+ 0x00A0)) |
| 1291 | #define INCA_IP_IOM_RSTA_VFR (1 << 7) |
| 1292 | #define INCA_IP_IOM_RSTA_RDO (1 << 6) |
| 1293 | #define INCA_IP_IOM_RSTA_CRC (1 << 5) |
| 1294 | #define INCA_IP_IOM_RSTA_RAB (1 << 4) |
| 1295 | #define INCA_IP_IOM_RSTA_SA1 (1 << 3) |
| 1296 | #define INCA_IP_IOM_RSTA_SA0 (1 << 2) |
| 1297 | #define INCA_IP_IOM_RSTA_TA (1 << 0) |
| 1298 | #define INCA_IP_IOM_RSTA_CR (1 << 1) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1299 | |
| 1300 | /***TEI2 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1301 | #define INCA_IP_IOM_TEI2 ((volatile u32*)(INCA_IP_IOM+ 0x00A0)) |
| 1302 | #define INCA_IP_IOM_TEI2_TEI2 (value) (((( 1 << 7) - 1) & (value)) << 1) |
| 1303 | #define INCA_IP_IOM_TEI2_EA (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1304 | |
| 1305 | /***Test Mode Register HDLC***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1306 | #define INCA_IP_IOM_TMH ((volatile u32*)(INCA_IP_IOM+ 0x00A4)) |
| 1307 | #define INCA_IP_IOM_TMH_TLP (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1308 | |
| 1309 | /***Command/Indication Receive 0***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1310 | #define INCA_IP_IOM_CIR0 ((volatile u32*)(INCA_IP_IOM+ 0x00B8)) |
| 1311 | #define INCA_IP_IOM_CIR0_CODR0 (value) (((( 1 << 4) - 1) & (value)) << 4) |
| 1312 | #define INCA_IP_IOM_CIR0_CIC0 (1 << 3) |
| 1313 | #define INCA_IP_IOM_CIR0_CIC1 (1 << 2) |
| 1314 | #define INCA_IP_IOM_CIR0_SG (1 << 1) |
| 1315 | #define INCA_IP_IOM_CIR0_BAS (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1316 | |
| 1317 | /***Command/Indication Transmit 0***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1318 | #define INCA_IP_IOM_CIX0 ((volatile u32*)(INCA_IP_IOM+ 0x00B8)) |
| 1319 | #define INCA_IP_IOM_CIX0_CODX0 (value) (((( 1 << 4) - 1) & (value)) << 4) |
| 1320 | #define INCA_IP_IOM_CIX0_TBA2 (1 << 3) |
| 1321 | #define INCA_IP_IOM_CIX0_TBA1 (1 << 2) |
| 1322 | #define INCA_IP_IOM_CIX0_TBA0 (1 << 1) |
| 1323 | #define INCA_IP_IOM_CIX0_BAC (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1324 | |
| 1325 | /***Command/Indication Receive 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1326 | #define INCA_IP_IOM_CIR1 ((volatile u32*)(INCA_IP_IOM+ 0x00BC)) |
| 1327 | #define INCA_IP_IOM_CIR1_CODR1 (value) (((( 1 << 6) - 1) & (value)) << 2) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1328 | |
| 1329 | /***Command/Indication Transmit 1***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1330 | #define INCA_IP_IOM_CIX1 ((volatile u32*)(INCA_IP_IOM+ 0x00BC)) |
| 1331 | #define INCA_IP_IOM_CIX1_CODX1 (value) (((( 1 << 6) - 1) & (value)) << 2) |
| 1332 | #define INCA_IP_IOM_CIX1_CICW (1 << 1) |
| 1333 | #define INCA_IP_IOM_CIX1_CI1E (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1334 | |
| 1335 | /***Controller Data Access Reg. (CH10)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1336 | #define INCA_IP_IOM_CDA10 ((volatile u32*)(INCA_IP_IOM+ 0x0100)) |
| 1337 | #define INCA_IP_IOM_CDA10_CDA (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1338 | |
| 1339 | /***Controller Data Access Reg. (CH11)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1340 | #define INCA_IP_IOM_CDA11 ((volatile u32*)(INCA_IP_IOM+ 0x0104)) |
| 1341 | #define INCA_IP_IOM_CDA11_CDA (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1342 | |
| 1343 | /***Controller Data Access Reg. (CH20)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1344 | #define INCA_IP_IOM_CDA20 ((volatile u32*)(INCA_IP_IOM+ 0x0108)) |
| 1345 | #define INCA_IP_IOM_CDA20_CDA (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1346 | |
| 1347 | /***Controller Data Access Reg. (CH21)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1348 | #define INCA_IP_IOM_CDA21 ((volatile u32*)(INCA_IP_IOM+ 0x010C)) |
| 1349 | #define INCA_IP_IOM_CDA21_CDA (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1350 | |
| 1351 | /***Time Slot and Data Port Sel. (CH10)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1352 | #define INCA_IP_IOM_CDA_TSDP10 ((volatile u32*)(INCA_IP_IOM+ 0x0110)) |
| 1353 | #define INCA_IP_IOM_CDA_TSDP10_DPS (1 << 7) |
| 1354 | #define INCA_IP_IOM_CDA_TSDP10_TSS (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1355 | |
| 1356 | /***Time Slot and Data Port Sel. (CH11)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1357 | #define INCA_IP_IOM_CDA_TSDP11 ((volatile u32*)(INCA_IP_IOM+ 0x0114)) |
| 1358 | #define INCA_IP_IOM_CDA_TSDP11_DPS (1 << 7) |
| 1359 | #define INCA_IP_IOM_CDA_TSDP11_TSS (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1360 | |
| 1361 | /***Time Slot and Data Port Sel. (CH20)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1362 | #define INCA_IP_IOM_CDA_TSDP20 ((volatile u32*)(INCA_IP_IOM+ 0x0118)) |
| 1363 | #define INCA_IP_IOM_CDA_TSDP20_DPS (1 << 7) |
| 1364 | #define INCA_IP_IOM_CDA_TSDP20_TSS (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1365 | |
| 1366 | /***Time Slot and Data Port Sel. (CH21)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1367 | #define INCA_IP_IOM_CDA_TSDP21 ((volatile u32*)(INCA_IP_IOM+ 0x011C)) |
| 1368 | #define INCA_IP_IOM_CDA_TSDP21_DPS (1 << 7) |
| 1369 | #define INCA_IP_IOM_CDA_TSDP21_TSS (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1370 | |
| 1371 | /***Time Slot and Data Port Sel. (CH10)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1372 | #define INCA_IP_IOM_CO_TSDP10 ((volatile u32*)(INCA_IP_IOM+ 0x0120)) |
| 1373 | #define INCA_IP_IOM_CO_TSDP10_DPS (1 << 7) |
| 1374 | #define INCA_IP_IOM_CO_TSDP10_TSS (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1375 | |
| 1376 | /***Time Slot and Data Port Sel. (CH11)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1377 | #define INCA_IP_IOM_CO_TSDP11 ((volatile u32*)(INCA_IP_IOM+ 0x0124)) |
| 1378 | #define INCA_IP_IOM_CO_TSDP11_DPS (1 << 7) |
| 1379 | #define INCA_IP_IOM_CO_TSDP11_TSS (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1380 | |
| 1381 | /***Time Slot and Data Port Sel. (CH20)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1382 | #define INCA_IP_IOM_CO_TSDP20 ((volatile u32*)(INCA_IP_IOM+ 0x0128)) |
| 1383 | #define INCA_IP_IOM_CO_TSDP20_DPS (1 << 7) |
| 1384 | #define INCA_IP_IOM_CO_TSDP20_TSS (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1385 | |
| 1386 | /***Time Slot and Data Port Sel. (CH21)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1387 | #define INCA_IP_IOM_CO_TSDP21 ((volatile u32*)(INCA_IP_IOM+ 0x012C)) |
| 1388 | #define INCA_IP_IOM_CO_TSDP21_DPS (1 << 7) |
| 1389 | #define INCA_IP_IOM_CO_TSDP21_TSS (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1390 | |
| 1391 | /***Ctrl. Reg. Contr. Data Access CH1x***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1392 | #define INCA_IP_IOM_CDA1_CR ((volatile u32*)(INCA_IP_IOM+ 0x0138)) |
| 1393 | #define INCA_IP_IOM_CDA1_CR_EN_TBM (1 << 5) |
| 1394 | #define INCA_IP_IOM_CDA1_CR_EN_I1 (1 << 4) |
| 1395 | #define INCA_IP_IOM_CDA1_CR_EN_I0 (1 << 3) |
| 1396 | #define INCA_IP_IOM_CDA1_CR_EN_O1 (1 << 2) |
| 1397 | #define INCA_IP_IOM_CDA1_CR_EN_O0 (1 << 1) |
| 1398 | #define INCA_IP_IOM_CDA1_CR_SWAP (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1399 | |
| 1400 | /***Ctrl. Reg. Contr. Data Access CH1x***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1401 | #define INCA_IP_IOM_CDA2_CR ((volatile u32*)(INCA_IP_IOM+ 0x013C)) |
| 1402 | #define INCA_IP_IOM_CDA2_CR_EN_TBM (1 << 5) |
| 1403 | #define INCA_IP_IOM_CDA2_CR_EN_I1 (1 << 4) |
| 1404 | #define INCA_IP_IOM_CDA2_CR_EN_I0 (1 << 3) |
| 1405 | #define INCA_IP_IOM_CDA2_CR_EN_O1 (1 << 2) |
| 1406 | #define INCA_IP_IOM_CDA2_CR_EN_O0 (1 << 1) |
| 1407 | #define INCA_IP_IOM_CDA2_CR_SWAP (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1408 | |
| 1409 | /***Control Register B-Channel Data***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1410 | #define INCA_IP_IOM_BCHA_CR ((volatile u32*)(INCA_IP_IOM+ 0x0144)) |
| 1411 | #define INCA_IP_IOM_BCHA_CR_EN_BC2 (1 << 4) |
| 1412 | #define INCA_IP_IOM_BCHA_CR_EN_BC1 (1 << 3) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1413 | |
| 1414 | /***Control Register B-Channel Data***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1415 | #define INCA_IP_IOM_BCHB_CR ((volatile u32*)(INCA_IP_IOM+ 0x0148)) |
| 1416 | #define INCA_IP_IOM_BCHB_CR_EN_BC2 (1 << 4) |
| 1417 | #define INCA_IP_IOM_BCHB_CR_EN_BC1 (1 << 3) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1418 | |
| 1419 | /***Control Reg. for HDLC and CI1 Data***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1420 | #define INCA_IP_IOM_DCI_CR ((volatile u32*)(INCA_IP_IOM+ 0x014C)) |
| 1421 | #define INCA_IP_IOM_DCI_CR_DPS_CI1 (1 << 7) |
| 1422 | #define INCA_IP_IOM_DCI_CR_EN_CI1 (1 << 6) |
| 1423 | #define INCA_IP_IOM_DCI_CR_EN_D (1 << 5) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1424 | |
| 1425 | /***Control Reg. for HDLC and CI1 Data***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1426 | #define INCA_IP_IOM_DCIC_CR ((volatile u32*)(INCA_IP_IOM+ 0x014C)) |
| 1427 | #define INCA_IP_IOM_DCIC_CR_DPS_CI0 (1 << 7) |
| 1428 | #define INCA_IP_IOM_DCIC_CR_EN_CI0 (1 << 6) |
| 1429 | #define INCA_IP_IOM_DCIC_CR_DPS_D (1 << 5) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1430 | |
| 1431 | /***Control Reg. Serial Data Strobe x***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1432 | #define INCA_IP_IOM_SDS_CR ((volatile u32*)(INCA_IP_IOM+ 0x0154)) |
| 1433 | #define INCA_IP_IOM_SDS_CR_ENS_TSS (1 << 7) |
| 1434 | #define INCA_IP_IOM_SDS_CR_ENS_TSS_1 (1 << 6) |
| 1435 | #define INCA_IP_IOM_SDS_CR_ENS_TSS_3 (1 << 5) |
| 1436 | #define INCA_IP_IOM_SDS_CR_TSS (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1437 | |
| 1438 | /***Control Register IOM Data***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1439 | #define INCA_IP_IOM_IOM_CR ((volatile u32*)(INCA_IP_IOM+ 0x015C)) |
| 1440 | #define INCA_IP_IOM_IOM_CR_SPU (1 << 7) |
| 1441 | #define INCA_IP_IOM_IOM_CR_CI_CS (1 << 5) |
| 1442 | #define INCA_IP_IOM_IOM_CR_TIC_DIS (1 << 4) |
| 1443 | #define INCA_IP_IOM_IOM_CR_EN_BCL (1 << 3) |
| 1444 | #define INCA_IP_IOM_IOM_CR_CLKM (1 << 2) |
| 1445 | #define INCA_IP_IOM_IOM_CR_Res (1 << 1) |
| 1446 | #define INCA_IP_IOM_IOM_CR_DIS_IOM (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1447 | |
| 1448 | /***Synchronous Transfer Interrupt***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1449 | #define INCA_IP_IOM_STI ((volatile u32*)(INCA_IP_IOM+ 0x0160)) |
| 1450 | #define INCA_IP_IOM_STI_STOV21 (1 << 7) |
| 1451 | #define INCA_IP_IOM_STI_STOV20 (1 << 6) |
| 1452 | #define INCA_IP_IOM_STI_STOV11 (1 << 5) |
| 1453 | #define INCA_IP_IOM_STI_STOV10 (1 << 4) |
| 1454 | #define INCA_IP_IOM_STI_STI21 (1 << 3) |
| 1455 | #define INCA_IP_IOM_STI_STI20 (1 << 2) |
| 1456 | #define INCA_IP_IOM_STI_STI11 (1 << 1) |
| 1457 | #define INCA_IP_IOM_STI_STI10 (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1458 | |
| 1459 | /***Acknowledge Synchronous Transfer Interrupt***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1460 | #define INCA_IP_IOM_ASTI ((volatile u32*)(INCA_IP_IOM+ 0x0160)) |
| 1461 | #define INCA_IP_IOM_ASTI_ACK21 (1 << 3) |
| 1462 | #define INCA_IP_IOM_ASTI_ACK20 (1 << 2) |
| 1463 | #define INCA_IP_IOM_ASTI_ACK11 (1 << 1) |
| 1464 | #define INCA_IP_IOM_ASTI_ACK10 (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1465 | |
| 1466 | /***Mask Synchronous Transfer Interrupt***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1467 | #define INCA_IP_IOM_MSTI ((volatile u32*)(INCA_IP_IOM+ 0x0164)) |
| 1468 | #define INCA_IP_IOM_MSTI_STOV21 (1 << 7) |
| 1469 | #define INCA_IP_IOM_MSTI_STOV20 (1 << 6) |
| 1470 | #define INCA_IP_IOM_MSTI_STOV11 (1 << 5) |
| 1471 | #define INCA_IP_IOM_MSTI_STOV10 (1 << 4) |
| 1472 | #define INCA_IP_IOM_MSTI_STI21 (1 << 3) |
| 1473 | #define INCA_IP_IOM_MSTI_STI20 (1 << 2) |
| 1474 | #define INCA_IP_IOM_MSTI_STI11 (1 << 1) |
| 1475 | #define INCA_IP_IOM_MSTI_STI10 (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1476 | |
| 1477 | /***Configuration Register for Serial Data Strobes***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1478 | #define INCA_IP_IOM_SDS_CONF ((volatile u32*)(INCA_IP_IOM+ 0x0168)) |
| 1479 | #define INCA_IP_IOM_SDS_CONF_SDS_BCL (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1480 | |
| 1481 | /***Monitoring CDA Bits***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1482 | #define INCA_IP_IOM_MCDA ((volatile u32*)(INCA_IP_IOM+ 0x016C)) |
| 1483 | #define INCA_IP_IOM_MCDA_MCDA21 (value) (((( 1 << 2) - 1) & (value)) << 6) |
| 1484 | #define INCA_IP_IOM_MCDA_MCDA20 (value) (((( 1 << 2) - 1) & (value)) << 4) |
| 1485 | #define INCA_IP_IOM_MCDA_MCDA11 (value) (((( 1 << 2) - 1) & (value)) << 2) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1486 | #define INCA_IP_IOM_MCDA_MCDA10 (value) (((( 1 << 2) - 1) & (value)) << 0) |
| 1487 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1488 | /***********************************************************************/ |
| 1489 | /* Module : ASC register address and bits */ |
| 1490 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1491 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1492 | #define INCA_IP_ASC (0xB8000400) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1493 | /***********************************************************************/ |
| 1494 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1495 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1496 | /***ASC Port Input Select Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1497 | #define INCA_IP_ASC_ASC_PISEL ((volatile u32*)(INCA_IP_ASC+ 0x0004)) |
| 1498 | #define INCA_IP_ASC_ASC_PISEL_RIS (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1499 | |
| 1500 | /***ASC Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1501 | #define INCA_IP_ASC_ASC_CON ((volatile u32*)(INCA_IP_ASC+ 0x0010)) |
| 1502 | #define INCA_IP_ASC_ASC_CON_R (1 << 15) |
| 1503 | #define INCA_IP_ASC_ASC_CON_LB (1 << 14) |
| 1504 | #define INCA_IP_ASC_ASC_CON_BRS (1 << 13) |
| 1505 | #define INCA_IP_ASC_ASC_CON_ODD (1 << 12) |
| 1506 | #define INCA_IP_ASC_ASC_CON_FDE (1 << 11) |
| 1507 | #define INCA_IP_ASC_ASC_CON_OE (1 << 10) |
| 1508 | #define INCA_IP_ASC_ASC_CON_FE (1 << 9) |
| 1509 | #define INCA_IP_ASC_ASC_CON_PE (1 << 8) |
| 1510 | #define INCA_IP_ASC_ASC_CON_OEN (1 << 7) |
| 1511 | #define INCA_IP_ASC_ASC_CON_FEN (1 << 6) |
| 1512 | #define INCA_IP_ASC_ASC_CON_PENRXDI (1 << 5) |
| 1513 | #define INCA_IP_ASC_ASC_CON_REN (1 << 4) |
| 1514 | #define INCA_IP_ASC_ASC_CON_STP (1 << 3) |
| 1515 | #define INCA_IP_ASC_ASC_CON_M (value) (((( 1 << 3) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1516 | |
| 1517 | /***ASC Write Hardware Modified Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1518 | #define INCA_IP_ASC_ASC_WHBCON ((volatile u32*)(INCA_IP_ASC+ 0x0050)) |
| 1519 | #define INCA_IP_ASC_ASC_WHBCON_SETOE (1 << 13) |
| 1520 | #define INCA_IP_ASC_ASC_WHBCON_SETFE (1 << 12) |
| 1521 | #define INCA_IP_ASC_ASC_WHBCON_SETPE (1 << 11) |
| 1522 | #define INCA_IP_ASC_ASC_WHBCON_CLROE (1 << 10) |
| 1523 | #define INCA_IP_ASC_ASC_WHBCON_CLRFE (1 << 9) |
| 1524 | #define INCA_IP_ASC_ASC_WHBCON_CLRPE (1 << 8) |
| 1525 | #define INCA_IP_ASC_ASC_WHBCON_SETREN (1 << 5) |
| 1526 | #define INCA_IP_ASC_ASC_WHBCON_CLRREN (1 << 4) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1527 | |
| 1528 | /***ASC Baudrate Timer/Reload Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1529 | #define INCA_IP_ASC_ASC_BTR ((volatile u32*)(INCA_IP_ASC+ 0x0014)) |
| 1530 | #define INCA_IP_ASC_ASC_BTR_BR_VALUE (value) (((( 1 << 13) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1531 | |
| 1532 | /***ASC Fractional Divider Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1533 | #define INCA_IP_ASC_ASC_FDV ((volatile u32*)(INCA_IP_ASC+ 0x0018)) |
| 1534 | #define INCA_IP_ASC_ASC_FDV_FD_VALUE (value) (((( 1 << 9) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1535 | |
| 1536 | /***ASC IrDA Pulse Mode/Width Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1537 | #define INCA_IP_ASC_ASC_PMW ((volatile u32*)(INCA_IP_ASC+ 0x001C)) |
| 1538 | #define INCA_IP_ASC_ASC_PMW_IRPW (1 << 8) |
| 1539 | #define INCA_IP_ASC_ASC_PMW_PW_VALUE (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1540 | |
| 1541 | /***ASC Transmit Buffer Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1542 | #define INCA_IP_ASC_ASC_TBUF ((volatile u32*)(INCA_IP_ASC+ 0x0020)) |
| 1543 | #define INCA_IP_ASC_ASC_TBUF_TD_VALUE (value) (((( 1 << 9) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1544 | |
| 1545 | /***ASC Receive Buffer Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1546 | #define INCA_IP_ASC_ASC_RBUF ((volatile u32*)(INCA_IP_ASC+ 0x0024)) |
| 1547 | #define INCA_IP_ASC_ASC_RBUF_RD_VALUE (value) (((( 1 << 9) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1548 | |
| 1549 | /***ASC Autobaud Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1550 | #define INCA_IP_ASC_ASC_ABCON ((volatile u32*)(INCA_IP_ASC+ 0x0030)) |
| 1551 | #define INCA_IP_ASC_ASC_ABCON_RXINV (1 << 11) |
| 1552 | #define INCA_IP_ASC_ASC_ABCON_TXINV (1 << 10) |
| 1553 | #define INCA_IP_ASC_ASC_ABCON_ABEM (value) (((( 1 << 2) - 1) & (value)) << 8) |
| 1554 | #define INCA_IP_ASC_ASC_ABCON_FCDETEN (1 << 4) |
| 1555 | #define INCA_IP_ASC_ASC_ABCON_ABDETEN (1 << 3) |
| 1556 | #define INCA_IP_ASC_ASC_ABCON_ABSTEN (1 << 2) |
| 1557 | #define INCA_IP_ASC_ASC_ABCON_AUREN (1 << 1) |
| 1558 | #define INCA_IP_ASC_ASC_ABCON_ABEN (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1559 | |
| 1560 | /***Receive FIFO Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1561 | #define INCA_IP_ASC_RXFCON ((volatile u32*)(INCA_IP_ASC+ 0x0040)) |
| 1562 | #define INCA_IP_ASC_RXFCON_RXFITL (value) (((( 1 << 6) - 1) & (value)) << 8) |
| 1563 | #define INCA_IP_ASC_RXFCON_RXTMEN (1 << 2) |
| 1564 | #define INCA_IP_ASC_RXFCON_RXFFLU (1 << 1) |
| 1565 | #define INCA_IP_ASC_RXFCON_RXFEN (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1566 | |
| 1567 | /***Transmit FIFO Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1568 | #define INCA_IP_ASC_TXFCON ((volatile u32*)(INCA_IP_ASC+ 0x0044)) |
| 1569 | #define INCA_IP_ASC_TXFCON_TXFITL (value) (((( 1 << 6) - 1) & (value)) << 8) |
| 1570 | #define INCA_IP_ASC_TXFCON_TXTMEN (1 << 2) |
| 1571 | #define INCA_IP_ASC_TXFCON_TXFFLU (1 << 1) |
| 1572 | #define INCA_IP_ASC_TXFCON_TXFEN (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1573 | |
| 1574 | /***FIFO Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1575 | #define INCA_IP_ASC_FSTAT ((volatile u32*)(INCA_IP_ASC+ 0x0048)) |
| 1576 | #define INCA_IP_ASC_FSTAT_TXFFL (value) (((( 1 << 6) - 1) & (value)) << 8) |
| 1577 | #define INCA_IP_ASC_FSTAT_RXFFL (value) (((( 1 << 6) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1578 | |
| 1579 | /***ASC Write HW Modified Autobaud Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1580 | #define INCA_IP_ASC_ASC_WHBABCON ((volatile u32*)(INCA_IP_ASC+ 0x0054)) |
| 1581 | #define INCA_IP_ASC_ASC_WHBABCON_SETABEN (1 << 1) |
| 1582 | #define INCA_IP_ASC_ASC_WHBABCON_CLRABEN (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1583 | |
| 1584 | /***ASC Autobaud Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1585 | #define INCA_IP_ASC_ASC_ABSTAT ((volatile u32*)(INCA_IP_ASC+ 0x0034)) |
| 1586 | #define INCA_IP_ASC_ASC_ABSTAT_DETWAIT (1 << 4) |
| 1587 | #define INCA_IP_ASC_ASC_ABSTAT_SCCDET (1 << 3) |
| 1588 | #define INCA_IP_ASC_ASC_ABSTAT_SCSDET (1 << 2) |
| 1589 | #define INCA_IP_ASC_ASC_ABSTAT_FCCDET (1 << 1) |
| 1590 | #define INCA_IP_ASC_ASC_ABSTAT_FCSDET (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1591 | |
| 1592 | /***ASC Write HW Modified Autobaud Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1593 | #define INCA_IP_ASC_ASC_WHBABSTAT ((volatile u32*)(INCA_IP_ASC+ 0x0058)) |
| 1594 | #define INCA_IP_ASC_ASC_WHBABSTAT_SETDETWAIT (1 << 9) |
| 1595 | #define INCA_IP_ASC_ASC_WHBABSTAT_CLRDETWAIT (1 << 8) |
| 1596 | #define INCA_IP_ASC_ASC_WHBABSTAT_SETSCCDET (1 << 7) |
| 1597 | #define INCA_IP_ASC_ASC_WHBABSTAT_CLRSCCDET (1 << 6) |
| 1598 | #define INCA_IP_ASC_ASC_WHBABSTAT_SETSCSDET (1 << 5) |
| 1599 | #define INCA_IP_ASC_ASC_WHBABSTAT_CLRSCSDET (1 << 4) |
| 1600 | #define INCA_IP_ASC_ASC_WHBABSTAT_SETFCCDET (1 << 3) |
| 1601 | #define INCA_IP_ASC_ASC_WHBABSTAT_CLRFCCDET (1 << 2) |
| 1602 | #define INCA_IP_ASC_ASC_WHBABSTAT_SETFCSDET (1 << 1) |
| 1603 | #define INCA_IP_ASC_ASC_WHBABSTAT_CLRFCSDET (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1604 | |
| 1605 | /***ASC Clock Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1606 | #define INCA_IP_ASC_ASC_CLC ((volatile u32*)(INCA_IP_ASC+ 0x0000)) |
| 1607 | #define INCA_IP_ASC_ASC_CLC_RMC (value) (((( 1 << 8) - 1) & (value)) << 8) |
| 1608 | #define INCA_IP_ASC_ASC_CLC_DISS (1 << 1) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1609 | #define INCA_IP_ASC_ASC_CLC_DISR (1 << 0) |
| 1610 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1611 | /***********************************************************************/ |
| 1612 | /* Module : DMA register address and bits */ |
| 1613 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1614 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1615 | #define INCA_IP_DMA (0xBF108000) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1616 | /***********************************************************************/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1617 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1618 | |
| 1619 | /***DMA RX Channel 0 Command Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1620 | #define INCA_IP_DMA_DMA_RXCCR0 ((volatile u32*)(INCA_IP_DMA+ 0x0800)) |
| 1621 | #define INCA_IP_DMA_DMA_RXCCR0_LBE (1 << 31) |
| 1622 | #define INCA_IP_DMA_DMA_RXCCR0_HPEN (1 << 30) |
| 1623 | #define INCA_IP_DMA_DMA_RXCCR0_INIT (1 << 2) |
| 1624 | #define INCA_IP_DMA_DMA_RXCCR0_OFF (1 << 1) |
| 1625 | #define INCA_IP_DMA_DMA_RXCCR0_HR (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1626 | |
| 1627 | /***DMA RX Channel 1 Command Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1628 | #define INCA_IP_DMA_DMA_RXCCR1 ((volatile u32*)(INCA_IP_DMA+ 0x0804)) |
| 1629 | #define INCA_IP_DMA_DMA_RXCCR1_LBE (1 << 31) |
| 1630 | #define INCA_IP_DMA_DMA_RXCCR1_HPEN (1 << 30) |
| 1631 | #define INCA_IP_DMA_DMA_RXCCR1_INIT (1 << 2) |
| 1632 | #define INCA_IP_DMA_DMA_RXCCR1_OFF (1 << 1) |
| 1633 | #define INCA_IP_DMA_DMA_RXCCR1_HR (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1634 | |
| 1635 | /***DMA Receive Interrupt Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1636 | #define INCA_IP_DMA_DMA_RXISR ((volatile u32*)(INCA_IP_DMA+ 0x0808)) |
| 1637 | #define INCA_IP_DMA_DMA_RXISR_RDERRx (value) (((( 1 << 2) - 1) & (value)) << 8) |
| 1638 | #define INCA_IP_DMA_DMA_RXISR_CMDCPTx (value) (((( 1 << 2) - 1) & (value)) << 6) |
| 1639 | #define INCA_IP_DMA_DMA_RXISR_EOPx (value) (((( 1 << 2) - 1) & (value)) << 4) |
| 1640 | #define INCA_IP_DMA_DMA_RXISR_CPTx (value) (((( 1 << 2) - 1) & (value)) << 2) |
| 1641 | #define INCA_IP_DMA_DMA_RXISR_HLDx (value) (((( 1 << 2) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1642 | |
| 1643 | /***DMA Receive Interrupt Mask Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1644 | #define INCA_IP_DMA_DMA_RXIMR ((volatile u32*)(INCA_IP_DMA+ 0x080C)) |
| 1645 | #define INCA_IP_DMA_DMA_RXIMR_RDERRx (value) (((( 1 << 2) - 1) & (value)) << 8) |
| 1646 | #define INCA_IP_DMA_DMA_RXIMR_CMDCPTx (value) (((( 1 << 2) - 1) & (value)) << 6) |
| 1647 | #define INCA_IP_DMA_DMA_RXIMR_EOPx (value) (((( 1 << 2) - 1) & (value)) << 4) |
| 1648 | #define INCA_IP_DMA_DMA_RXIMR_CPTx (value) (((( 1 << 2) - 1) & (value)) << 2) |
| 1649 | #define INCA_IP_DMA_DMA_RXIMR_HLDx (value) (((( 1 << 2) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1650 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1651 | /***DMA First Receive Descriptor Addr. for Rx Channel 0 |
| 1652 | ***/ |
| 1653 | #define INCA_IP_DMA_DMA_RXFRDA0 ((volatile u32*)(INCA_IP_DMA+ 0x0810)) |
| 1654 | #define INCA_IP_DMA_DMA_RXFRDA0_RXFRDA (value) (((( 1 << 28) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1655 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1656 | /***DMA First Receive Descriptor Addr. for Rx Channel 1 |
| 1657 | ***/ |
| 1658 | #define INCA_IP_DMA_DMA_RXFRDA1 ((volatile u32*)(INCA_IP_DMA+ 0x0814)) |
| 1659 | #define INCA_IP_DMA_DMA_RXFRDA1_RXFRDA (value) (((( 1 << 28) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1660 | |
| 1661 | /***DMA Receive Channel Polling Time***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1662 | #define INCA_IP_DMA_DMA_RXPOLL ((volatile u32*)(INCA_IP_DMA+ 0x0818)) |
| 1663 | #define INCA_IP_DMA_DMA_RXPOLL_BSZ1 (value) (((( 1 << 2) - 1) & (value)) << 30) |
| 1664 | #define INCA_IP_DMA_DMA_RXPOLL_BSZ0 (value) (((( 1 << 2) - 1) & (value)) << 28) |
| 1665 | #define INCA_IP_DMA_DMA_RXPOLL_RXPOLLTIME (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1666 | |
| 1667 | /***DMA TX Channel 0 Command Register (Voice Port)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1668 | #define INCA_IP_DMA_DMA_TXCCR0 ((volatile u32*)(INCA_IP_DMA+ 0x0880)) |
| 1669 | #define INCA_IP_DMA_DMA_TXCCR0_LBE (1 << 31) |
| 1670 | #define INCA_IP_DMA_DMA_TXCCR0_HPEN (1 << 30) |
| 1671 | #define INCA_IP_DMA_DMA_TXCCR0_HR (1 << 2) |
| 1672 | #define INCA_IP_DMA_DMA_TXCCR0_OFF (1 << 1) |
| 1673 | #define INCA_IP_DMA_DMA_TXCCR0_INIT (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1674 | |
| 1675 | /***DMA TX Channel 1 Command Register (Mangmt Port)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1676 | #define INCA_IP_DMA_DMA_TXCCR1 ((volatile u32*)(INCA_IP_DMA+ 0x0884)) |
| 1677 | #define INCA_IP_DMA_DMA_TXCCR1_LBE (1 << 31) |
| 1678 | #define INCA_IP_DMA_DMA_TXCCR1_HPEN (1 << 30) |
| 1679 | #define INCA_IP_DMA_DMA_TXCCR1_HR (1 << 2) |
| 1680 | #define INCA_IP_DMA_DMA_TXCCR1_OFF (1 << 1) |
| 1681 | #define INCA_IP_DMA_DMA_TXCCR1_INIT (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1682 | |
| 1683 | /***DMA TX Channel 2 Command Register (SSC Port)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1684 | #define INCA_IP_DMA_DMA_TXCCR2 ((volatile u32*)(INCA_IP_DMA+ 0x0888)) |
| 1685 | #define INCA_IP_DMA_DMA_TXCCR2_LBE (1 << 31) |
| 1686 | #define INCA_IP_DMA_DMA_TXCCR2_HPEN (1 << 30) |
| 1687 | #define INCA_IP_DMA_DMA_TXCCR2_HBF (1 << 29) |
| 1688 | #define INCA_IP_DMA_DMA_TXCCR2_HR (1 << 2) |
| 1689 | #define INCA_IP_DMA_DMA_TXCCR2_OFF (1 << 1) |
| 1690 | #define INCA_IP_DMA_DMA_TXCCR2_INIT (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1691 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1692 | /***DMA First Receive Descriptor Addr. for Tx Channel 0 |
| 1693 | ***/ |
| 1694 | #define INCA_IP_DMA_DMA_TXFRDA0 ((volatile u32*)(INCA_IP_DMA+ 0x08A0)) |
| 1695 | #define INCA_IP_DMA_DMA_TXFRDA0_TXFRDA (value) (((( 1 << 28) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1696 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1697 | /***DMA First Receive Descriptor Addr. for Tx Channel 1 |
| 1698 | ***/ |
| 1699 | #define INCA_IP_DMA_DMA_TXFRDA1 ((volatile u32*)(INCA_IP_DMA+ 0x08A4)) |
| 1700 | #define INCA_IP_DMA_DMA_TXFRDA1_TXFRDA (value) (((( 1 << 28) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1701 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1702 | /***DMA First Receive Descriptor Addr. for Tx Channel 2 |
| 1703 | ***/ |
| 1704 | #define INCA_IP_DMA_DMA_TXFRDA2 ((volatile u32*)(INCA_IP_DMA+ 0x08A8)) |
| 1705 | #define INCA_IP_DMA_DMA_TXFRDA2_TXFRDA (value) (((( 1 << 28) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1706 | |
| 1707 | /***DMA Transmit Channel Arbitration Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1708 | #define INCA_IP_DMA_DMA_TXWGT ((volatile u32*)(INCA_IP_DMA+ 0x08C0)) |
| 1709 | #define INCA_IP_DMA_DMA_TXWGT_TX2PR (value) (((( 1 << 2) - 1) & (value)) << 4) |
| 1710 | #define INCA_IP_DMA_DMA_TXWGT_TX1PRI (value) (((( 1 << 2) - 1) & (value)) << 2) |
| 1711 | #define INCA_IP_DMA_DMA_TXWGT_TX0PRI (value) (((( 1 << 2) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1712 | |
| 1713 | /***DMA Transmit Channel Polling Time***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1714 | #define INCA_IP_DMA_DMA_TXPOLL ((volatile u32*)(INCA_IP_DMA+ 0x08C4)) |
| 1715 | #define INCA_IP_DMA_DMA_TXPOLL_BSZ2 (value) (((( 1 << 2) - 1) & (value)) << 30) |
| 1716 | #define INCA_IP_DMA_DMA_TXPOLL_BSZ1 (value) (((( 1 << 2) - 1) & (value)) << 28) |
| 1717 | #define INCA_IP_DMA_DMA_TXPOLL_BSZ0 (value) (((( 1 << 2) - 1) & (value)) << 26) |
| 1718 | #define INCA_IP_DMA_DMA_TXPOLL_TXPOLLTIME (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1719 | |
| 1720 | /***DMA Transmit Interrupt Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1721 | #define INCA_IP_DMA_DMA_TXISR ((volatile u32*)(INCA_IP_DMA+ 0x08C8)) |
| 1722 | #define INCA_IP_DMA_DMA_TXISR_RDERRx (value) (((( 1 << 3) - 1) & (value)) << 12) |
| 1723 | #define INCA_IP_DMA_DMA_TXISR_HLDx (value) (((( 1 << 3) - 1) & (value)) << 9) |
| 1724 | #define INCA_IP_DMA_DMA_TXISR_CPTx (value) (((( 1 << 3) - 1) & (value)) << 6) |
| 1725 | #define INCA_IP_DMA_DMA_TXISR_EOPx (value) (((( 1 << 3) - 1) & (value)) << 3) |
| 1726 | #define INCA_IP_DMA_DMA_TXISR_CMDCPTx (value) (((( 1 << 3) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1727 | |
| 1728 | /***DMA Transmit Interrupt Mask Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1729 | #define INCA_IP_DMA_DMA_TXIMR ((volatile u32*)(INCA_IP_DMA+ 0x08CC)) |
| 1730 | #define INCA_IP_DMA_DMA_TXIMR_RDERRx (value) (((( 1 << 3) - 1) & (value)) << 12) |
| 1731 | #define INCA_IP_DMA_DMA_TXIMR_HLDx (value) (((( 1 << 3) - 1) & (value)) << 9) |
| 1732 | #define INCA_IP_DMA_DMA_TXIMR_CPTx (value) (((( 1 << 3) - 1) & (value)) << 6) |
| 1733 | #define INCA_IP_DMA_DMA_TXIMR_EOPx (value) (((( 1 << 3) - 1) & (value)) << 3) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1734 | #define INCA_IP_DMA_DMA_TXIMR_CMDCPTx (value) (((( 1 << 3) - 1) & (value)) << 0) |
| 1735 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1736 | /***********************************************************************/ |
| 1737 | /* Module : Debug register address and bits */ |
| 1738 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1739 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1740 | #define INCA_IP_Debug (0xBF106000) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1741 | /***********************************************************************/ |
| 1742 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1743 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1744 | /***MCD Break Bus Switch Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1745 | #define INCA_IP_Debug_MCD_BBS ((volatile u32*)(INCA_IP_Debug+ 0x0000)) |
| 1746 | #define INCA_IP_Debug_MCD_BBS_BTP1 (1 << 19) |
| 1747 | #define INCA_IP_Debug_MCD_BBS_BTP0 (1 << 18) |
| 1748 | #define INCA_IP_Debug_MCD_BBS_BSP1 (1 << 17) |
| 1749 | #define INCA_IP_Debug_MCD_BBS_BSP0 (1 << 16) |
| 1750 | #define INCA_IP_Debug_MCD_BBS_BT5EN (1 << 15) |
| 1751 | #define INCA_IP_Debug_MCD_BBS_BT4EN (1 << 14) |
| 1752 | #define INCA_IP_Debug_MCD_BBS_BT5 (1 << 13) |
| 1753 | #define INCA_IP_Debug_MCD_BBS_BT4 (1 << 12) |
| 1754 | #define INCA_IP_Debug_MCD_BBS_BS5EN (1 << 7) |
| 1755 | #define INCA_IP_Debug_MCD_BBS_BS4EN (1 << 6) |
| 1756 | #define INCA_IP_Debug_MCD_BBS_BS5 (1 << 5) |
| 1757 | #define INCA_IP_Debug_MCD_BBS_BS4 (1 << 4) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1758 | |
| 1759 | /***MCD Multiplexer Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1760 | #define INCA_IP_Debug_MCD_MCR ((volatile u32*)(INCA_IP_Debug+ 0x0008)) |
| 1761 | #define INCA_IP_Debug_MCD_MCR_MUX5 (1 << 4) |
| 1762 | #define INCA_IP_Debug_MCD_MCR_MUX4 (1 << 3) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1763 | #define INCA_IP_Debug_MCD_MCR_MUX1 (1 << 0) |
| 1764 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1765 | /***********************************************************************/ |
| 1766 | /* Module : TSF register address and bits */ |
| 1767 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1768 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1769 | #define INCA_IP_TSF (0xB8000900) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1770 | /***********************************************************************/ |
| 1771 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1772 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1773 | /***TSF Configuration Register (0000H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1774 | #define INCA_IP_TSF_TSF_CONF ((volatile u32*)(INCA_IP_TSF+ 0x0000)) |
| 1775 | #define INCA_IP_TSF_TSF_CONF_PWMEN (1 << 2) |
| 1776 | #define INCA_IP_TSF_TSF_CONF_LEDEN (1 << 1) |
| 1777 | #define INCA_IP_TSF_TSF_CONF_KEYEN (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1778 | |
| 1779 | /***Key scan Configuration Register (0004H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1780 | #define INCA_IP_TSF_KEY_CONF ((volatile u32*)(INCA_IP_TSF+ 0x0004)) |
| 1781 | #define INCA_IP_TSF_KEY_CONF_SL (value) (((( 1 << 4) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1782 | |
| 1783 | /***Scan Register Line 0 and 1 (0008H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1784 | #define INCA_IP_TSF_SREG01 ((volatile u32*)(INCA_IP_TSF+ 0x0008)) |
| 1785 | #define INCA_IP_TSF_SREG01_RES1x (value) (((( 1 << 12) - 1) & (value)) << 16) |
| 1786 | #define INCA_IP_TSF_SREG01_RES0x (value) (((( 1 << 13) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1787 | |
| 1788 | /***Scan Register Line 2 and 3 (000CH)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1789 | #define INCA_IP_TSF_SREG23 ((volatile u32*)(INCA_IP_TSF+ 0x000C)) |
| 1790 | #define INCA_IP_TSF_SREG23_RES3x (value) (((( 1 << 10) - 1) & (value)) << 16) |
| 1791 | #define INCA_IP_TSF_SREG23_RES2x (value) (((( 1 << 11) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1792 | |
| 1793 | /***Scan Register Line 4, 5 and 6 (0010H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1794 | #define INCA_IP_TSF_SREG456 ((volatile u32*)(INCA_IP_TSF+ 0x0010)) |
| 1795 | #define INCA_IP_TSF_SREG456_RES6x (value) (((( 1 << 7) - 1) & (value)) << 24) |
| 1796 | #define INCA_IP_TSF_SREG456_RES5x (value) (((( 1 << 8) - 1) & (value)) << 16) |
| 1797 | #define INCA_IP_TSF_SREG456_RES4x (value) (((( 1 << 9) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1798 | |
| 1799 | /***Scan Register Line 7 to 12 (0014H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1800 | #define INCA_IP_TSF_SREG7to12 ((volatile u32*)(INCA_IP_TSF+ 0x0014)) |
| 1801 | #define INCA_IP_TSF_SREG7to12_RES12x (1 << 28) |
| 1802 | #define INCA_IP_TSF_SREG7to12_RES11x (value) (((( 1 << 2) - 1) & (value)) << 24) |
| 1803 | #define INCA_IP_TSF_SREG7to12_RES10x (value) (((( 1 << 3) - 1) & (value)) << 20) |
| 1804 | #define INCA_IP_TSF_SREG7to12_RES9x (value) (((( 1 << 4) - 1) & (value)) << 16) |
| 1805 | #define INCA_IP_TSF_SREG7to12_RES8x (value) (((( 1 << 5) - 1) & (value)) << 8) |
| 1806 | #define INCA_IP_TSF_SREG7to12_RES7x (value) (((( 1 << 6) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1807 | |
| 1808 | /***LEDMUX Configuration Register (0018H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1809 | #define INCA_IP_TSF_LEDMUX_CONF ((volatile u32*)(INCA_IP_TSF+ 0x0018)) |
| 1810 | #define INCA_IP_TSF_LEDMUX_CONF_ETL1 (1 << 25) |
| 1811 | #define INCA_IP_TSF_LEDMUX_CONF_ESTA1 (1 << 24) |
| 1812 | #define INCA_IP_TSF_LEDMUX_CONF_EDPX1 (1 << 23) |
| 1813 | #define INCA_IP_TSF_LEDMUX_CONF_EACT1 (1 << 22) |
| 1814 | #define INCA_IP_TSF_LEDMUX_CONF_ESPD1 (1 << 21) |
| 1815 | #define INCA_IP_TSF_LEDMUX_CONF_ETL0 (1 << 20) |
| 1816 | #define INCA_IP_TSF_LEDMUX_CONF_ESTA0 (1 << 19) |
| 1817 | #define INCA_IP_TSF_LEDMUX_CONF_EDPX0 (1 << 18) |
| 1818 | #define INCA_IP_TSF_LEDMUX_CONF_EACT0 (1 << 17) |
| 1819 | #define INCA_IP_TSF_LEDMUX_CONF_ESPD0 (1 << 16) |
| 1820 | #define INCA_IP_TSF_LEDMUX_CONF_INV (1 << 1) |
| 1821 | #define INCA_IP_TSF_LEDMUX_CONF_NCOL (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1822 | |
| 1823 | /***LED Register (001CH)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1824 | #define INCA_IP_TSF_LED_REG ((volatile u32*)(INCA_IP_TSF+ 0x001C)) |
| 1825 | #define INCA_IP_TSF_LED_REG_Lxy (value) (((( 1 << 24) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1826 | |
| 1827 | /***Pulse Width Modulator 1 and 2 Register (0020H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1828 | #define INCA_IP_TSF_PWM12 ((volatile u32*)(INCA_IP_TSF+ 0x0020)) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1829 | #define INCA_IP_TSF_PWM12_PW2PW1 (value) (((( 1 << NaN) - 1) & (value)) << NaN) |
| 1830 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1831 | /***********************************************************************/ |
| 1832 | /* Module : Ports register address and bits */ |
| 1833 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1834 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1835 | #define INCA_IP_Ports (0xB8000A00) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1836 | /***********************************************************************/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1837 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1838 | |
| 1839 | /***Port 1 Data Output Register (0020H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1840 | #define INCA_IP_Ports_P1_OUT ((volatile u32*)(INCA_IP_Ports+ 0x0020)) |
| 1841 | #define INCA_IP_Ports_P1_OUT_P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1842 | |
| 1843 | |
| 1844 | /***Port 2 Data Output Register (0040H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1845 | #define INCA_IP_Ports_P2_OUT ((volatile u32*)(INCA_IP_Ports+ 0x0040)) |
| 1846 | #define INCA_IP_Ports_P2_OUT_P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1847 | |
| 1848 | |
| 1849 | /***Port 1 Data Input Register (0024H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1850 | #define INCA_IP_Ports_P1_IN ((volatile u32*)(INCA_IP_Ports+ 0x0024)) |
| 1851 | #define INCA_IP_Ports_P1_IN_P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1852 | |
| 1853 | |
| 1854 | /***Port 2 Data Input Register (0044H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1855 | #define INCA_IP_Ports_P2_IN ((volatile u32*)(INCA_IP_Ports+ 0x0044)) |
| 1856 | #define INCA_IP_Ports_P2_IN_P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1857 | |
| 1858 | |
| 1859 | /***Port 1 Direction Register (0028H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1860 | #define INCA_IP_Ports_P1_DIR ((volatile u32*)(INCA_IP_Ports+ 0x0028)) |
| 1861 | #define INCA_IP_Ports_P1_DIR_Port1P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1862 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1863 | #define INCA_IP_Ports_P1_DIR_Port2Pn (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1864 | |
| 1865 | /***Port 2 Direction Register (0048H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1866 | #define INCA_IP_Ports_P2_DIR ((volatile u32*)(INCA_IP_Ports+ 0x0048)) |
| 1867 | #define INCA_IP_Ports_P2_DIR_Port1P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1868 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1869 | #define INCA_IP_Ports_P2_DIR_Port2Pn (value) (((( 1 << 16) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1870 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1871 | /***Port 0 Alternate Function Select Register 0 (000C H) |
| 1872 | ***/ |
| 1873 | #define INCA_IP_Ports_P0_ALTSEL ((volatile u32*)(INCA_IP_Ports+ 0x000C)) |
| 1874 | #define INCA_IP_Ports_P0_ALTSEL_Port0P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1875 | |
| 1876 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1877 | /***Port 1 Alternate Function Select Register 0 (002C H) |
| 1878 | ***/ |
| 1879 | #define INCA_IP_Ports_P1_ALTSEL ((volatile u32*)(INCA_IP_Ports+ 0x002C)) |
| 1880 | #define INCA_IP_Ports_P1_ALTSEL_Port1P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1881 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1882 | #define INCA_IP_Ports_P1_ALTSEL_Port2P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1883 | |
| 1884 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1885 | /***Port 2 Alternate Function Select Register 0 (004C H) |
| 1886 | ***/ |
| 1887 | #define INCA_IP_Ports_P2_ALTSEL ((volatile u32*)(INCA_IP_Ports+ 0x004C)) |
| 1888 | #define INCA_IP_Ports_P2_ALTSEL_Port1P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1889 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1890 | #define INCA_IP_Ports_P2_ALTSEL_Port2P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1891 | |
| 1892 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1893 | /***Port 0 Input Schmitt-Trigger Off Register (0010 H) |
| 1894 | ***/ |
| 1895 | #define INCA_IP_Ports_P0_STOFF ((volatile u32*)(INCA_IP_Ports+ 0x0010)) |
| 1896 | #define INCA_IP_Ports_P0_STOFF_Port0P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1897 | |
| 1898 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1899 | /***Port 1 Input Schmitt-Trigger Off Register (0030 H) |
| 1900 | ***/ |
| 1901 | #define INCA_IP_Ports_P1_STOFF ((volatile u32*)(INCA_IP_Ports+ 0x0030)) |
| 1902 | #define INCA_IP_Ports_P1_STOFF_Port1P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1903 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1904 | #define INCA_IP_Ports_P1_STOFF_Port2P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1905 | |
| 1906 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1907 | /***Port 2 Input Schmitt-Trigger Off Register (0050 H) |
| 1908 | ***/ |
| 1909 | #define INCA_IP_Ports_P2_STOFF ((volatile u32*)(INCA_IP_Ports+ 0x0050)) |
| 1910 | #define INCA_IP_Ports_P2_STOFF_Port1P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1911 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1912 | #define INCA_IP_Ports_P2_STOFF_Port2P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1913 | |
| 1914 | |
| 1915 | /***Port 2 Open Drain Control Register (0054H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1916 | #define INCA_IP_Ports_P2_OD ((volatile u32*)(INCA_IP_Ports+ 0x0054)) |
| 1917 | #define INCA_IP_Ports_P2_OD_Port2P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1918 | |
| 1919 | |
| 1920 | /***Port 0 Pull Up Device Enable Register (0018 H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1921 | #define INCA_IP_Ports_P0_PUDEN ((volatile u32*)(INCA_IP_Ports+ 0x0018)) |
| 1922 | #define INCA_IP_Ports_P0_PUDEN_Port0P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1923 | |
| 1924 | |
| 1925 | /***Port 2 Pull Up Device Enable Register (0058 H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1926 | #define INCA_IP_Ports_P2_PUDEN ((volatile u32*)(INCA_IP_Ports+ 0x0058)) |
| 1927 | #define INCA_IP_Ports_P2_PUDEN_Port2P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1928 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1929 | #define INCA_IP_Ports_P2_PUDEN_Port2P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1930 | |
| 1931 | |
| 1932 | /***Port 0 Pull Up/Pull Down Select Register (001C H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1933 | #define INCA_IP_Ports_P0_PUDSEL ((volatile u32*)(INCA_IP_Ports+ 0x001C)) |
| 1934 | #define INCA_IP_Ports_P0_PUDSEL_Port0P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1935 | |
| 1936 | |
| 1937 | /***Port 2 Pull Up/Pull Down Select Register (005C H)***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1938 | #define INCA_IP_Ports_P2_PUDSEL ((volatile u32*)(INCA_IP_Ports+ 0x005C)) |
| 1939 | #define INCA_IP_Ports_P2_PUDSEL_Port2P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1940 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1941 | #define INCA_IP_Ports_P2_PUDSEL_Port2P(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1942 | |
| 1943 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1944 | /***********************************************************************/ |
| 1945 | /* Module : DES/3DES register address and bits */ |
| 1946 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1947 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1948 | #define INCA_IP_DES_3DES (0xB8000800) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1949 | /***********************************************************************/ |
| 1950 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1951 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1952 | /***DES Input Data High Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1953 | #define INCA_IP_DES_3DES_DES_IHR ((volatile u32*)(INCA_IP_DES_3DES+ 0x0000)) |
| 1954 | #define INCA_IP_DES_3DES_DES_IHR_IH(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1955 | |
| 1956 | |
| 1957 | /***DES Input Data Low Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1958 | #define INCA_IP_DES_3DES_DES_ILR ((volatile u32*)(INCA_IP_DES_3DES+ 0x0004)) |
| 1959 | #define INCA_IP_DES_3DES_DES_ILR_IL(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1960 | |
| 1961 | |
| 1962 | /***DES Key #1 High Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1963 | #define INCA_IP_DES_3DES_DES_K1HR ((volatile u32*)(INCA_IP_DES_3DES+ 0x0008)) |
| 1964 | #define INCA_IP_DES_3DES_DES_K1HR_K1H(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1965 | |
| 1966 | |
| 1967 | /***DES Key #1 Low Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1968 | #define INCA_IP_DES_3DES_DES_K1LR ((volatile u32*)(INCA_IP_DES_3DES+ 0x000C)) |
| 1969 | #define INCA_IP_DES_3DES_DES_K1LR_K1L(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1970 | |
| 1971 | |
| 1972 | /***DES Key #2 High Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1973 | #define INCA_IP_DES_3DES_DES_K2HR ((volatile u32*)(INCA_IP_DES_3DES+ 0x0010)) |
| 1974 | #define INCA_IP_DES_3DES_DES_K2HR_K2H(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1975 | |
| 1976 | |
| 1977 | /***DES Key #2 Low Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1978 | #define INCA_IP_DES_3DES_DES_K2LR ((volatile u32*)(INCA_IP_DES_3DES+ 0x0014)) |
| 1979 | #define INCA_IP_DES_3DES_DES_K2LR_K2L(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1980 | |
| 1981 | |
| 1982 | /***DES Key #3 High Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1983 | #define INCA_IP_DES_3DES_DES_K3HR ((volatile u32*)(INCA_IP_DES_3DES+ 0x0018)) |
| 1984 | #define INCA_IP_DES_3DES_DES_K3HR_K3H(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1985 | |
| 1986 | |
| 1987 | /***DES Key #3 Low Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1988 | #define INCA_IP_DES_3DES_DES_K3LR ((volatile u32*)(INCA_IP_DES_3DES+ 0x001C)) |
| 1989 | #define INCA_IP_DES_3DES_DES_K3LR_K3L(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1990 | |
| 1991 | |
| 1992 | /***DES Initialization Vector High Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1993 | #define INCA_IP_DES_3DES_DES_IVHR ((volatile u32*)(INCA_IP_DES_3DES+ 0x0020)) |
| 1994 | #define INCA_IP_DES_3DES_DES_IVHR_IVH(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 1995 | |
| 1996 | |
| 1997 | /***DES Initialization Vector Low Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1998 | #define INCA_IP_DES_3DES_DES_IVLR ((volatile u32*)(INCA_IP_DES_3DES+ 0x0024)) |
| 1999 | #define INCA_IP_DES_3DES_DES_IVLR_IVL(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2000 | |
| 2001 | |
| 2002 | /***DES Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2003 | #define INCA_IP_DES_3DES_DES_CONTROLR ((volatile u32*)(INCA_IP_DES_3DES+ 0x0028)) |
| 2004 | #define INCA_IP_DES_3DES_DES_CONTROLR_KRE (1 << 31) |
| 2005 | #define INCA_IP_DES_3DES_DES_CONTROLR_DAU (1 << 16) |
| 2006 | #define INCA_IP_DES_3DES_DES_CONTROLR_F(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2007 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2008 | #define INCA_IP_DES_3DES_DES_CONTROLR_O(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2009 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2010 | #define INCA_IP_DES_3DES_DES_CONTROLR_GO (1 << 8) |
| 2011 | #define INCA_IP_DES_3DES_DES_CONTROLR_STP (1 << 7) |
| 2012 | #define INCA_IP_DES_3DES_DES_CONTROLR_IEN (1 << 6) |
| 2013 | #define INCA_IP_DES_3DES_DES_CONTROLR_BUS (1 << 5) |
| 2014 | #define INCA_IP_DES_3DES_DES_CONTROLR_SM (1 << 4) |
| 2015 | #define INCA_IP_DES_3DES_DES_CONTROLR_E_D (1 << 3) |
| 2016 | #define INCA_IP_DES_3DES_DES_CONTROLR_M(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2017 | |
| 2018 | |
| 2019 | /***DES Output Data High Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2020 | #define INCA_IP_DES_3DES_DES_OHR ((volatile u32*)(INCA_IP_DES_3DES+ 0x002C)) |
| 2021 | #define INCA_IP_DES_3DES_DES_OHR_OH(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2022 | |
| 2023 | |
| 2024 | /***DES Output Data Low Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2025 | #define INCA_IP_DES_3DES_DES_OLR ((volatile u32*)(INCA_IP_DES_3DES+ 0x0030)) |
| 2026 | #define INCA_IP_DES_3DES_DES_OLR_OL(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2027 | |
| 2028 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2029 | /***********************************************************************/ |
| 2030 | /* Module : AES register address and bits */ |
| 2031 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2032 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2033 | #define INCA_IP_AES (0xB8000880) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2034 | /***********************************************************************/ |
| 2035 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2036 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2037 | /***AES Input Data 3 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2038 | #define INCA_IP_AES_AES_ID3R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2039 | #define INCA_IP_AES_AES_ID3R_I(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2040 | |
| 2041 | |
| 2042 | /***AES Input Data 2 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2043 | #define INCA_IP_AES_AES_ID2R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2044 | #define INCA_IP_AES_AES_ID2R_I(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2045 | |
| 2046 | |
| 2047 | /***AES Input Data 1 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2048 | #define INCA_IP_AES_AES_ID1R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2049 | #define INCA_IP_AES_AES_ID1R_I(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2050 | |
| 2051 | |
| 2052 | /***AES Input Data 0 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2053 | #define INCA_IP_AES_AES_ID0R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2054 | #define INCA_IP_AES_AES_ID0R_I(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2055 | |
| 2056 | |
| 2057 | /***AES Output Data 3 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2058 | #define INCA_IP_AES_AES_OD3R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2059 | #define INCA_IP_AES_AES_OD3R_O(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2060 | |
| 2061 | |
| 2062 | /***AES Output Data 2 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2063 | #define INCA_IP_AES_AES_OD2R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2064 | #define INCA_IP_AES_AES_OD2R_O(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2065 | |
| 2066 | |
| 2067 | /***AES Output Data 1 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2068 | #define INCA_IP_AES_AES_OD1R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2069 | #define INCA_IP_AES_AES_OD1R_O(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2070 | |
| 2071 | |
| 2072 | /***AES Output Data 0 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2073 | #define INCA_IP_AES_AES_OD0R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2074 | #define INCA_IP_AES_AES_OD0R_O(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2075 | |
| 2076 | |
| 2077 | /***AES Key 7 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2078 | #define INCA_IP_AES_AES_K7R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2079 | #define INCA_IP_AES_AES_K7R_K(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2080 | |
| 2081 | |
| 2082 | /***AES Key 6 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2083 | #define INCA_IP_AES_AES_K6R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2084 | #define INCA_IP_AES_AES_K6R_K(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2085 | |
| 2086 | |
| 2087 | /***AES Key 5 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2088 | #define INCA_IP_AES_AES_K5R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2089 | #define INCA_IP_AES_AES_K5R_K(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2090 | |
| 2091 | |
| 2092 | /***AES Key 4 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2093 | #define INCA_IP_AES_AES_K4R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2094 | #define INCA_IP_AES_AES_K4R_K(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2095 | |
| 2096 | |
| 2097 | /***AES Key 3 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2098 | #define INCA_IP_AES_AES_K3R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2099 | #define INCA_IP_AES_AES_K3R_K(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2100 | |
| 2101 | |
| 2102 | /***AES Key 2 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2103 | #define INCA_IP_AES_AES_K2R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2104 | #define INCA_IP_AES_AES_K2R_K(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2105 | |
| 2106 | |
| 2107 | /***AES Key 1 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2108 | #define INCA_IP_AES_AES_K1R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2109 | #define INCA_IP_AES_AES_K1R_K(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2110 | |
| 2111 | |
| 2112 | /***AES Key 0 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2113 | #define INCA_IP_AES_AES_K0R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2114 | #define INCA_IP_AES_AES_K0R_K(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2115 | |
| 2116 | |
| 2117 | /***AES Initialization Vector 3 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2118 | #define INCA_IP_AES_AES_IV3R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2119 | #define INCA_IP_AES_AES_IV3R_IV(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2120 | |
| 2121 | |
| 2122 | /***AES Initialization Vector 2 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2123 | #define INCA_IP_AES_AES_IV2R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2124 | #define INCA_IP_AES_AES_IV2R_IV(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2125 | |
| 2126 | |
| 2127 | /***AES Initialization Vector 1 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2128 | #define INCA_IP_AES_AES_IV1R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2129 | #define INCA_IP_AES_AES_IV1R_IV(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2130 | |
| 2131 | |
| 2132 | /***AES Initialization Vector 0 Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2133 | #define INCA_IP_AES_AES_IV0R ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2134 | #define INCA_IP_AES_AES_IV0R_IV (value) (((( 1 << 32) - 1) &(value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2135 | |
| 2136 | /***AES Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2137 | #define INCA_IP_AES_AES_CONTROLR ((volatile u32*)(INCA_IP_AES+ 0x0000)) |
| 2138 | #define INCA_IP_AES_AES_CONTROLR_KRE (1 << 31) |
| 2139 | #define INCA_IP_AES_AES_CONTROLR_DAU (1 << 16) |
| 2140 | #define INCA_IP_AES_AES_CONTROLR_PNK (1 << 15) |
| 2141 | #define INCA_IP_AES_AES_CONTROLR_F(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2142 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2143 | #define INCA_IP_AES_AES_CONTROLR_O(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2144 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2145 | #define INCA_IP_AES_AES_CONTROLR_GO (1 << 8) |
| 2146 | #define INCA_IP_AES_AES_CONTROLR_STP (1 << 7) |
| 2147 | #define INCA_IP_AES_AES_CONTROLR_IEN (1 << 6) |
| 2148 | #define INCA_IP_AES_AES_CONTROLR_BUS (1 << 5) |
| 2149 | #define INCA_IP_AES_AES_CONTROLR_SM (1 << 4) |
| 2150 | #define INCA_IP_AES_AES_CONTROLR_E_D (1 << 3) |
| 2151 | #define INCA_IP_AES_AES_CONTROLR_KV (1 << 2) |
| 2152 | #define INCA_IP_AES_AES_CONTROLR_K(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2153 | |
| 2154 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2155 | /***********************************************************************/ |
| 2156 | /* Module : I²C register address and bits */ |
| 2157 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2158 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2159 | #define INCA_IP_IIC (0xB8000700) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2160 | /***********************************************************************/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2161 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2162 | |
| 2163 | /***I²C Port Input Select Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2164 | #define INCA_IP_IIC_IIC_PISEL ((volatile u32*)(INCA_IP_IIC+ 0x0004)) |
| 2165 | #define INCA_IP_IIC_IIC_PISEL_SDAIS(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2166 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2167 | #define INCA_IP_IIC_IIC_PISEL_SCLIS(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2168 | |
| 2169 | |
| 2170 | /***I²C Clock Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2171 | #define INCA_IP_IIC_IIC_CLC ((volatile u32*)(INCA_IP_IIC+ 0x0000)) |
| 2172 | #define INCA_IP_IIC_IIC_CLC_RMC (value) (((( 1 << 8) - 1) & (value)) << 8) |
| 2173 | #define INCA_IP_IIC_IIC_CLC_DISS (1 << 1) |
| 2174 | #define INCA_IP_IIC_IIC_CLC_DISR (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2175 | |
| 2176 | /***I²C System Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2177 | #define INCA_IP_IIC_IIC_SYSCON_0 ((volatile u32*)(INCA_IP_IIC+ 0x0010)) |
| 2178 | #define INCA_IP_IIC_IIC_SYSCON_0_WMEN (1 << 31) |
| 2179 | #define INCA_IP_IIC_IIC_SYSCON_0_CI (value) (((( 1 << 2) - 1) & (value)) << 26) |
| 2180 | #define INCA_IP_IIC_IIC_SYSCON_0_STP (1 << 25) |
| 2181 | #define INCA_IP_IIC_IIC_SYSCON_0_IGE (1 << 24) |
| 2182 | #define INCA_IP_IIC_IIC_SYSCON_0_TRX (1 << 23) |
| 2183 | #define INCA_IP_IIC_IIC_SYSCON_0_INT (1 << 22) |
| 2184 | #define INCA_IP_IIC_IIC_SYSCON_0_ACKDIS (1 << 21) |
| 2185 | #define INCA_IP_IIC_IIC_SYSCON_0_BUM (1 << 20) |
| 2186 | #define INCA_IP_IIC_IIC_SYSCON_0_MOD (value) (((( 1 << 2) - 1) & (value)) << 18) |
| 2187 | #define INCA_IP_IIC_IIC_SYSCON_0_RSC (1 << 17) |
| 2188 | #define INCA_IP_IIC_IIC_SYSCON_0_M10 (1 << 16) |
| 2189 | #define INCA_IP_IIC_IIC_SYSCON_0_RMEN (1 << 15) |
| 2190 | #define INCA_IP_IIC_IIC_SYSCON_0_CO (value) (((( 1 << 3) - 1) & (value)) << 8) |
| 2191 | #define INCA_IP_IIC_IIC_SYSCON_0_IRQE (1 << 7) |
| 2192 | #define INCA_IP_IIC_IIC_SYSCON_0_IRQP (1 << 6) |
| 2193 | #define INCA_IP_IIC_IIC_SYSCON_0_IRQD (1 << 5) |
| 2194 | #define INCA_IP_IIC_IIC_SYSCON_0_BB (1 << 4) |
| 2195 | #define INCA_IP_IIC_IIC_SYSCON_0_LRB (1 << 3) |
| 2196 | #define INCA_IP_IIC_IIC_SYSCON_0_SLA (1 << 2) |
| 2197 | #define INCA_IP_IIC_IIC_SYSCON_0_AL (1 << 1) |
| 2198 | #define INCA_IP_IIC_IIC_SYSCON_0_ADR (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2199 | |
| 2200 | /***I²C System Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2201 | #define INCA_IP_IIC_IIC_SYSCON_1 ((volatile u32*)(INCA_IP_IIC+ 0x0010)) |
| 2202 | #define INCA_IP_IIC_IIC_SYSCON_1_RM (value) (((( 1 << 8) - 1) & (value)) << 24) |
| 2203 | #define INCA_IP_IIC_IIC_SYSCON_1_TRX (1 << 23) |
| 2204 | #define INCA_IP_IIC_IIC_SYSCON_1_INT (1 << 22) |
| 2205 | #define INCA_IP_IIC_IIC_SYSCON_1_ACKDIS (1 << 21) |
| 2206 | #define INCA_IP_IIC_IIC_SYSCON_1_BUM (1 << 20) |
| 2207 | #define INCA_IP_IIC_IIC_SYSCON_1_MOD (value) (((( 1 << 2) - 1) & (value)) << 18) |
| 2208 | #define INCA_IP_IIC_IIC_SYSCON_1_RSC (1 << 17) |
| 2209 | #define INCA_IP_IIC_IIC_SYSCON_1_M10 (1 << 16) |
| 2210 | #define INCA_IP_IIC_IIC_SYSCON_1_RMEN (1 << 15) |
| 2211 | #define INCA_IP_IIC_IIC_SYSCON_1_CO (value) (((( 1 << 3) - 1) & (value)) << 8) |
| 2212 | #define INCA_IP_IIC_IIC_SYSCON_1_IRQE (1 << 7) |
| 2213 | #define INCA_IP_IIC_IIC_SYSCON_1_IRQP (1 << 6) |
| 2214 | #define INCA_IP_IIC_IIC_SYSCON_1_IRQD (1 << 5) |
| 2215 | #define INCA_IP_IIC_IIC_SYSCON_1_BB (1 << 4) |
| 2216 | #define INCA_IP_IIC_IIC_SYSCON_1_LRB (1 << 3) |
| 2217 | #define INCA_IP_IIC_IIC_SYSCON_1_SLA (1 << 2) |
| 2218 | #define INCA_IP_IIC_IIC_SYSCON_1_AL (1 << 1) |
| 2219 | #define INCA_IP_IIC_IIC_SYSCON_1_ADR (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2220 | |
| 2221 | /***I²C System Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2222 | #define INCA_IP_IIC_IIC_SYSCON_2 ((volatile u32*)(INCA_IP_IIC+ 0x0010)) |
| 2223 | #define INCA_IP_IIC_IIC_SYSCON_2_WMEN (1 << 31) |
| 2224 | #define INCA_IP_IIC_IIC_SYSCON_2_CI (value) (((( 1 << 2) - 1) & (value)) << 26) |
| 2225 | #define INCA_IP_IIC_IIC_SYSCON_2_STP (1 << 25) |
| 2226 | #define INCA_IP_IIC_IIC_SYSCON_2_IGE (1 << 24) |
| 2227 | #define INCA_IP_IIC_IIC_SYSCON_2_TRX (1 << 23) |
| 2228 | #define INCA_IP_IIC_IIC_SYSCON_2_INT (1 << 22) |
| 2229 | #define INCA_IP_IIC_IIC_SYSCON_2_ACKDIS (1 << 21) |
| 2230 | #define INCA_IP_IIC_IIC_SYSCON_2_BUM (1 << 20) |
| 2231 | #define INCA_IP_IIC_IIC_SYSCON_2_MOD (value) (((( 1 << 2) - 1) & (value)) << 18) |
| 2232 | #define INCA_IP_IIC_IIC_SYSCON_2_RSC (1 << 17) |
| 2233 | #define INCA_IP_IIC_IIC_SYSCON_2_M10 (1 << 16) |
| 2234 | #define INCA_IP_IIC_IIC_SYSCON_2_WM (value) (((( 1 << 8) - 1) & (value)) << 8) |
| 2235 | #define INCA_IP_IIC_IIC_SYSCON_2_IRQE (1 << 7) |
| 2236 | #define INCA_IP_IIC_IIC_SYSCON_2_IRQP (1 << 6) |
| 2237 | #define INCA_IP_IIC_IIC_SYSCON_2_IRQD (1 << 5) |
| 2238 | #define INCA_IP_IIC_IIC_SYSCON_2_BB (1 << 4) |
| 2239 | #define INCA_IP_IIC_IIC_SYSCON_2_LRB (1 << 3) |
| 2240 | #define INCA_IP_IIC_IIC_SYSCON_2_SLA (1 << 2) |
| 2241 | #define INCA_IP_IIC_IIC_SYSCON_2_AL (1 << 1) |
| 2242 | #define INCA_IP_IIC_IIC_SYSCON_2_ADR (1 << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2243 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2244 | /***I²C Write Hardware Modified System Control Register |
| 2245 | ***/ |
| 2246 | #define INCA_IP_IIC_IIC_WHBSYSCON ((volatile u32*)(INCA_IP_IIC+ 0x0020)) |
| 2247 | #define INCA_IP_IIC_IIC_WHBSYSCON_CLRWMEN (1 << 31) |
| 2248 | #define INCA_IP_IIC_IIC_WHBSYSCON_SETWMEN (1 << 30) |
| 2249 | #define INCA_IP_IIC_IIC_WHBSYSCON_SETSTP (1 << 26) |
| 2250 | #define INCA_IP_IIC_IIC_WHBSYSCON_CLRSTP (1 << 25) |
| 2251 | #define INCA_IP_IIC_IIC_WHBSYSCON_SETTRX (1 << 24) |
| 2252 | #define INCA_IP_IIC_IIC_WHBSYSCON_CLRTRX (1 << 23) |
| 2253 | #define INCA_IP_IIC_IIC_WHBSYSCON_SETACKDIS (1 << 22) |
| 2254 | #define INCA_IP_IIC_IIC_WHBSYSCON_CLRACKDIS (1 << 21) |
| 2255 | #define INCA_IP_IIC_IIC_WHBSYSCON_SETBUM (1 << 20) |
| 2256 | #define INCA_IP_IIC_IIC_WHBSYSCON_CLRBUM (1 << 19) |
| 2257 | #define INCA_IP_IIC_IIC_WHBSYSCON_SETRSC (1 << 17) |
| 2258 | #define INCA_IP_IIC_IIC_WHBSYSCON_CLRRSC (1 << 16) |
| 2259 | #define INCA_IP_IIC_IIC_WHBSYSCON_SETRMEN (1 << 15) |
| 2260 | #define INCA_IP_IIC_IIC_WHBSYSCON_CLRRMEN (1 << 14) |
| 2261 | #define INCA_IP_IIC_IIC_WHBSYSCON_SETIRQE (1 << 10) |
| 2262 | #define INCA_IP_IIC_IIC_WHBSYSCON_SETIRQP (1 << 9) |
| 2263 | #define INCA_IP_IIC_IIC_WHBSYSCON_SETIRQD (1 << 8) |
| 2264 | #define INCA_IP_IIC_IIC_WHBSYSCON_CLRIRQE (1 << 7) |
| 2265 | #define INCA_IP_IIC_IIC_WHBSYSCON_CLRIRQP (1 << 6) |
| 2266 | #define INCA_IP_IIC_IIC_WHBSYSCON_CLRIRQD (1 << 5) |
| 2267 | #define INCA_IP_IIC_IIC_WHBSYSCON_SETAL (1 << 2) |
| 2268 | #define INCA_IP_IIC_IIC_WHBSYSCON_CLRAL (1 << 1) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2269 | |
| 2270 | /***I²C Bus Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2271 | #define INCA_IP_IIC_IIC_BUSCON_0 ((volatile u32*)(INCA_IP_IIC+ 0x0014)) |
| 2272 | #define INCA_IP_IIC_IIC_BUSCON_0_BRPMOD (1 << 31) |
| 2273 | #define INCA_IP_IIC_IIC_BUSCON_0_PREDIV (value) (((( 1 << 2) - 1) & (value)) << 29) |
| 2274 | #define INCA_IP_IIC_IIC_BUSCON_0_ICA9_0 (value) (((( 1 << 10) - 1) & (value)) << 16) |
| 2275 | #define INCA_IP_IIC_IIC_BUSCON_0_BRP (value) (((( 1 << 8) - 1) & (value)) << 8) |
| 2276 | #define INCA_IP_IIC_IIC_BUSCON_0_SCLEN(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2277 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2278 | #define INCA_IP_IIC_IIC_BUSCON_0_SDAEN(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2279 | |
| 2280 | |
| 2281 | /***I²C Bus Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2282 | #define INCA_IP_IIC_IIC_BUSCON_1 ((volatile u32*)(INCA_IP_IIC+ 0x0014)) |
| 2283 | #define INCA_IP_IIC_IIC_BUSCON_1_BRPMOD (1 << 31) |
| 2284 | #define INCA_IP_IIC_IIC_BUSCON_1_PREDIV (value) (((( 1 << 2) - 1) & (value)) << 29) |
| 2285 | #define INCA_IP_IIC_IIC_BUSCON_1_ICA7_1 (value) (((( 1 << 7) - 1) & (value)) << 17) |
| 2286 | #define INCA_IP_IIC_IIC_BUSCON_1_BRP (value) (((( 1 << 8) - 1) & (value)) << 8) |
| 2287 | #define INCA_IP_IIC_IIC_BUSCON_1_SCLEN(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2288 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2289 | #define INCA_IP_IIC_IIC_BUSCON_1_SDAEN(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2290 | |
| 2291 | |
| 2292 | /***I²C Receive Transmit Buffer***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2293 | #define INCA_IP_IIC_IIC_RTB ((volatile u32*)(INCA_IP_IIC+ 0x0018)) |
| 2294 | #define INCA_IP_IIC_IIC_RTB_RTB(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2295 | |
| 2296 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2297 | /***********************************************************************/ |
| 2298 | /* Module : FB register address and bits */ |
| 2299 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2300 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2301 | #define INCA_IP_FB (0xBF880000) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2302 | /***********************************************************************/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2303 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2304 | |
| 2305 | /***FB Access Error Cause Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2306 | #define INCA_IP_FB_FB_ERRCAUSE ((volatile u32*)(INCA_IP_FB+ 0x0100)) |
| 2307 | #define INCA_IP_FB_FB_ERRCAUSE_ERR (1 << 31) |
| 2308 | #define INCA_IP_FB_FB_ERRCAUSE_PORT (value) (((( 1 << 4) - 1) & (value)) << 16) |
| 2309 | #define INCA_IP_FB_FB_ERRCAUSE_CAUSE (value) (((( 1 << 2) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2310 | |
| 2311 | /***FB Access Error Address Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2312 | #define INCA_IP_FB_FB_ERRADDR ((volatile u32*)(INCA_IP_FB+ 0x0108)) |
| 2313 | #define INCA_IP_FB_FB_ERRADDR_ADDR |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2314 | |
| 2315 | /***FB Configuration Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2316 | #define INCA_IP_FB_FB_CFG ((volatile u32*)(INCA_IP_FB+ 0x0800)) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2317 | #define INCA_IP_FB_FB_CFG_SVM (1 << 0) |
| 2318 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2319 | /***********************************************************************/ |
| 2320 | /* Module : SRAM register address and bits */ |
| 2321 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2322 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2323 | #define INCA_IP_SRAM (0xBF980000) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2324 | /***********************************************************************/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2325 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2326 | |
| 2327 | /***SRAM Size Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2328 | #define INCA_IP_SRAM_SRAM_SIZE ((volatile u32*)(INCA_IP_SRAM+ 0x0800)) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2329 | #define INCA_IP_SRAM_SRAM_SIZE_SIZE (value) (((( 1 << 23) - 1) & (value)) << 0) |
| 2330 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2331 | /***********************************************************************/ |
| 2332 | /* Module : BIU register address and bits */ |
| 2333 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2334 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2335 | #define INCA_IP_BIU (0xBFA80000) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2336 | /***********************************************************************/ |
| 2337 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2338 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2339 | /***BIU Identification Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2340 | #define INCA_IP_BIU_BIU_ID ((volatile u32*)(INCA_IP_BIU+ 0x0000)) |
| 2341 | #define INCA_IP_BIU_BIU_ID_ARCH (1 << 16) |
| 2342 | #define INCA_IP_BIU_BIU_ID_ID (value) (((( 1 << 8) - 1) & (value)) << 8) |
| 2343 | #define INCA_IP_BIU_BIU_ID_REV (value) (((( 1 << 8) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2344 | |
| 2345 | /***BIU Access Error Cause Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2346 | #define INCA_IP_BIU_BIU_ERRCAUSE ((volatile u32*)(INCA_IP_BIU+ 0x0100)) |
| 2347 | #define INCA_IP_BIU_BIU_ERRCAUSE_ERR (1 << 31) |
| 2348 | #define INCA_IP_BIU_BIU_ERRCAUSE_PORT (value) (((( 1 << 4) - 1) & (value)) << 16) |
| 2349 | #define INCA_IP_BIU_BIU_ERRCAUSE_CAUSE (value) (((( 1 << 2) - 1) & (value)) << 0) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2350 | |
| 2351 | /***BIU Access Error Address Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2352 | #define INCA_IP_BIU_BIU_ERRADDR ((volatile u32*)(INCA_IP_BIU+ 0x0108)) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2353 | #define INCA_IP_BIU_BIU_ERRADDR_ADDR |
| 2354 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2355 | /***********************************************************************/ |
| 2356 | /* Module : ICU register address and bits */ |
| 2357 | /***********************************************************************/ |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2358 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2359 | #define INCA_IP_ICU (0xBF101000) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2360 | /***********************************************************************/ |
| 2361 | |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2362 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2363 | /***IM0 Interrupt Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2364 | #define INCA_IP_ICU_IM0_ISR ((volatile u32*)(INCA_IP_ICU+ 0x0000)) |
| 2365 | #define INCA_IP_ICU_IM0_ISR_IR(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2366 | |
| 2367 | |
| 2368 | /***IM1 Interrupt Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2369 | #define INCA_IP_ICU_IM1_ISR ((volatile u32*)(INCA_IP_ICU+ 0x0200)) |
| 2370 | #define INCA_IP_ICU_IM1_ISR_IR(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2371 | |
| 2372 | |
| 2373 | /***IM2 Interrupt Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2374 | #define INCA_IP_ICU_IM2_ISR ((volatile u32*)(INCA_IP_ICU+ 0x0400)) |
| 2375 | #define INCA_IP_ICU_IM2_ISR_IR(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2376 | |
| 2377 | |
| 2378 | /***IM0 Interrupt Enable Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2379 | #define INCA_IP_ICU_IM0_IER ((volatile u32*)(INCA_IP_ICU+ 0x0008)) |
| 2380 | #define INCA_IP_ICU_IM0_IER_IR(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2381 | |
| 2382 | |
| 2383 | /***IM1 Interrupt Enable Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2384 | #define INCA_IP_ICU_IM1_IER ((volatile u32*)(INCA_IP_ICU+ 0x0208)) |
| 2385 | #define INCA_IP_ICU_IM1_IER_IR(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2386 | |
| 2387 | |
| 2388 | /***IM2 Interrupt Enable Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2389 | #define INCA_IP_ICU_IM2_IER ((volatile u32*)(INCA_IP_ICU+ 0x0408)) |
| 2390 | #define INCA_IP_ICU_IM2_IER_IR(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2391 | |
| 2392 | |
| 2393 | /***IM0 Interrupt Output Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2394 | #define INCA_IP_ICU_IM0_IOSR ((volatile u32*)(INCA_IP_ICU+ 0x0010)) |
| 2395 | #define INCA_IP_ICU_IM0_IOSR_IR(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2396 | |
| 2397 | |
| 2398 | /***IM1 Interrupt Output Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2399 | #define INCA_IP_ICU_IM1_IOSR ((volatile u32*)(INCA_IP_ICU+ 0x0210)) |
| 2400 | #define INCA_IP_ICU_IM1_IOSR_IR(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2401 | |
| 2402 | |
| 2403 | /***IM2 Interrupt Output Status Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2404 | #define INCA_IP_ICU_IM2_IOSR ((volatile u32*)(INCA_IP_ICU+ 0x0410)) |
| 2405 | #define INCA_IP_ICU_IM2_IOSR_IR(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2406 | |
| 2407 | |
| 2408 | /***IM0 Interrupt Request Set Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2409 | #define INCA_IP_ICU_IM0_IRSR ((volatile u32*)(INCA_IP_ICU+ 0x0018)) |
| 2410 | #define INCA_IP_ICU_IM0_IRSR_IR(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2411 | |
| 2412 | |
| 2413 | /***IM1 Interrupt Request Set Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2414 | #define INCA_IP_ICU_IM1_IRSR ((volatile u32*)(INCA_IP_ICU+ 0x0218)) |
| 2415 | #define INCA_IP_ICU_IM1_IRSR_IR(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2416 | |
| 2417 | |
| 2418 | /***IM2 Interrupt Request Set Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2419 | #define INCA_IP_ICU_IM2_IRSR ((volatile u32*)(INCA_IP_ICU+ 0x0418)) |
| 2420 | #define INCA_IP_ICU_IM2_IRSR_IR(value) (1 << value) |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 2421 | |
| 2422 | |
| 2423 | /***External Interrupt Control Register***/ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 2424 | #define INCA_IP_ICU_ICU_EICR ((volatile u32*)(INCA_IP_ICU+ 0x0B00)) |
| 2425 | #define INCA_IP_ICU_ICU_EICR_EII5 (value) (((( 1 << 3) - 1) & (value)) << 20) |
| 2426 | #define INCA_IP_ICU_ICU_EICR_EII4 (value) (((( 1 << 3) - 1) & (value)) << 16) |
| 2427 | #define INCA_IP_ICU_ICU_EICR_EII3 (value) (((( 1 << 3) - 1) & (value)) << 12) |
| 2428 | #define INCA_IP_ICU_ICU_EICR_EII2 (value) (((( 1 << 3) - 1) & (value)) << 8) |
| 2429 | #define INCA_IP_ICU_ICU_EICR_EII1 (value) (((( 1 << 3) - 1) & (value)) << 4) |
| 2430 | #define INCA_IP_ICU_ICU_EICR_EII0 (value) (((( 1 << 3) - 1) & (value)) << 0) |