Home | History | Annotate | Line # | Download | only in xscale
i80312reg.h revision 1.2
      1 /*-
      2  * Copyright (c) 2001 The NetBSD Foundation, Inc.
      3  * All rights reserved.
      4  *
      5  * This code is derived from software contributed to The NetBSD Foundation
      6  * by
      7  *
      8  * Redistribution and use in source and binary forms, with or without
      9  * modification, are permitted provided that the following conditions
     10  * are met:
     11  * 1. Redistributions of source code must retain the above copyright
     12  *    notice, this list of conditions and the following disclaimer.
     13  * 2. Redistributions in binary form must reproduce the above copyright
     14  *    notice, this list of conditions and the following disclaimer in the
     15  *    documentation and/or other materials provided with the distribution.
     16  * 3. All advertising materials mentioning features or use of this software
     17  *    must display the following acknowledgement:
     18  *        This product includes software developed by the NetBSD
     19  *        Foundation, Inc. and its contributors.
     20  * 4. Neither the name of The NetBSD Foundation nor the names of its
     21  *    contributors may be used to endorse or promote products derived
     22  *    from this software without specific prior written permission.
     23  *
     24  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     25  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     26  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     27  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     28  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     29  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     30  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     31  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     32  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     33  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     34  * POSSIBILITY OF SUCH DAMAGE.
     35  */
     36 
     37 #ifndef _ARM_XSCALE_I80312REG_H_
     38 #define _ARM_XSCALE_I80312REG_H_
     39 /*
     40  * Physical addresses 0x1000..0x1fff are used by the Periphial Memory
     41  * Mapped Registers.
     42  */
     43 
     44 #define	I80312_PMMR_BASE	0x00001000
     45 #define	I80312_PMMR_SIZE	0x00001000
     46 
     47 /*
     48  * PCI-to-PCI Bridge Unit
     49  */
     50 #define	I80312_PPB_BASE		(I80312_PMMR_BASE)
     51 #define	I80312_PPB_SIZE		0x100
     52 /*
     53  * Performance Monitoring Unit
     54  */
     55 #define	I80312_PMU_BASE		(I80312_PPB_BASE  + I80312_PPB_SIZE) /* 0x100 */
     56 #define	I80312_PMU_SIZE		0x100
     57 /*
     58  * Address Translation Unit
     59  */
     60 #define	I80312_ATU_BASE		(I80312_PMU_BASE  + I80312_PMU_SIZE) /* 0x200 */
     61 #define	I80312_ATU_SIZE		0x100
     62 /*
     63  * Messaging Unit
     64  */
     65 #define	I80312_MSG_BASE		(I80312_ATU_BASE  + I80312_ATU_SIZE) /* 0x300 */
     66 #define	I80312_MSG_SIZE		0x100
     67 /*
     68  * DMA Controller
     69  */
     70 #define	I80312_DMA_BASE		(I80312_MSG_BASE  + I80312_MSG_SIZE) /* 0x400 */
     71 #define	I80312_DMA_SIZE		0x100
     72 /*
     73  * Memory Controller
     74  */
     75 #define	I80312_MEM_BASE		(I80312_DMA_BASE  + I80312_DMA_SIZE) /* 0x500 */
     76 #define	I80312_MEM_SIZE		0x100
     77 /*
     78  * Internal Arbitration Unit
     79  */
     80 #define	I80312_IARB_BASE	(I80312_MEM_BASE  + I80312_MEM_SIZE) /* 0x600 */
     81 #define	I80312_IARB_SIZE	0x040
     82 /*
     83  * Bus Interface Unit
     84  */
     85 #define	I80312_BUS_BASE		(I80312_IARB_BASE + I80312_IARB_SIZE)/* 0x640 */
     86 #define	I80312_BUS_SIZE		0x040
     87 /*
     88  * I2C Unit
     89  */
     90 #define	I80312_IIC_BASE		(I80312_BUS_BASE  + I80312_BUS_SIZE) /* 0x680 */
     91 #define	I80312_IIC_SIZE		0x080
     92 /*
     93  * Interrupt Controller
     94  */
     95 #define	I80312_INTC_BASE	(I80312_IIC_BASE  + I80312_IIC_SIZE) /* 0x700 */
     96 #define	I80312_INTC_SIZE	0x100
     97 /*
     98  * Application Accelerator Unit
     99  */
    100 #define	I80312_AAU_BASE		(I80312_INTC_BASE + I80312_INTC_SIZE)/* 0x800 */
    101 #define	I80312_AAU_SIZE		0x100
    102 
    103 /*
    104  * Performance Monitoring Unit
    105  */
    106 #define	I80312_PMU_GTMR		(I80312_PMU_BASE + 0x00)
    107 #define	I80312_PMU_ESR		(I80312_PMU_BASE + 0x04)
    108 #define	I80312_PMU_EMISR	(I80312_PMU_BASE + 0x08)
    109 #define	I80312_PMU_GTSR		(I80312_PMU_BASE + 0x10)
    110 #define	I80312_PMU_PECR1	(I80312_PMU_BASE + 0x14)
    111 #define	I80312_PMU_PECR2	(I80312_PMU_BASE + 0x18)
    112 #define	I80312_PMU_PECR3	(I80312_PMU_BASE + 0x1c)
    113 #define	I80312_PMU_PECR4	(I80312_PMU_BASE + 0x20)
    114 #define	I80312_PMU_PECR5	(I80312_PMU_BASE + 0x24)
    115 #define	I80312_PMU_PECR6	(I80312_PMU_BASE + 0x28)
    116 #define	I80312_PMU_PECR7	(I80312_PMU_BASE + 0x2c)
    117 #define	I80312_PMU_PECR8	(I80312_PMU_BASE + 0x30)
    118 #define	I80312_PMU_PECR9	(I80312_PMU_BASE + 0x34)
    119 #define	I80312_PMU_PECR10	(I80312_PMU_BASE + 0x38)
    120 #define	I80312_PMU_PECR11	(I80312_PMU_BASE + 0x3c)
    121 #define	I80312_PMU_PECR12	(I80312_PMU_BASE + 0x40)
    122 #define	I80312_PMU_PECR13	(I80312_PMU_BASE + 0x44)
    123 #define	I80312_PMU_PECR14	(I80312_PMU_BASE + 0x48)
    124 
    125 /*
    126  * The first 64 bytes are identical to a PCI device's config space.
    127  */
    128 #define	I80312_ATU_PIAL		0x40	/* Pri. Inbound ATU Limit */
    129 #define	I80312_ATU_PIATV	0x44	/* Pri. Inbound ATU Translate Value */
    130 #define	I80312_ATU_SIAM		0x48	/* Sec. Inbound ATU Base Address */
    131 #define	I80312_ATU_SIAL		0x4c	/* Sec. Inbound ATU Limit */
    132 #define	I80312_ATU_SIATV	0x50	/* Sec. Inbound ATU Translate Value */
    133 #define	I80312_ATU_POMWV	0x54	/* Pri. Outbound Memory Window Value */
    134      /* not used		0x58 */
    135 #define	I80312_ATU_POIOWV	0x5c	/* Pri. Outbound I/O Window Value */
    136 #define	I80312_ATU_PODACWVL	0x60	/* Pri. Outbound DAC Window Value (Lo)*/
    137 #define	I80312_ATU_PODACWVH	0x64	/* Pri. Outbound DAC Window Value (Hi)*/
    138 #define	I80312_ATU_SOMWV	0x68	/* Sec. Outbound Memory Window Value */
    139 #define	I80312_ATU_SOIOWV	0x6c	/* Sec. Outbound I/O Window Value */
    140      /* not used		0x70 */
    141 #define	I80312_ATU_ERL		0x74	/* Expansion ROM Limit */
    142 #define	I80312_ATU_ERTV		0x78	/* Expansion ROM Translate Value */
    143      /* not used		0x7c */
    144 #define	I80312_ATU_ACI		0x74	/* ATU Capability Identifier */
    145 #define	I80312_ATU_ATNIP	0x78	/* ATU Next Item Pointer */
    146 #define	I80312_ATU_APM		0x7c	/* ATU Power Management */
    147      /* not used		0x84 */
    148 #define	I80312_ATU_ACR		0x88	/* ATU Configuration */
    149      /* not used		0x8c */
    150 #define	I80312_ATU_PAIS		0x90	/* Pri. ATU Interrupt Status */
    151 #define	I80312_ATU_SAIS		0x94	/* Sec. ATU Interrupt Status */
    152 #define	I80312_ATU_SACS		0x98	/* Sec. ATU Command/Status */
    153 #define	I80312_ATU_SODACWVL	0x9c	/* Sec. Outbound DAC Window Value (lo)*/
    154 #define	I80312_ATU_SODACWVH	0xa0	/* Sec. Outbound DAC Window Value (hi)*/
    155 #define	I80312_ATU_POCCA	0xa4	/* Pri. Outbound Config Address Data */
    156 #define	I80312_ATU_SOCCA	0xa8	/* Sec. Outbound Config Address Data */
    157 #define	I80312_ATU_POCCD	0xac	/* Pri. Outbound Config Cycle Data */
    158 #define	I80312_ATU_SOCCD	0xb0	/* Sec. Outbound Config Cycle Data */
    159 #define	I80312_ATU_PAQC		0xb4	/* Pri. ATU Queue Control */
    160 #define	I80312_ATU_SAQC		0xb8	/* Sec. ATU Queue Control */
    161 #define	I80312_ATU_PAIM		0xbc	/* Pri. ATU Interrupt Mask */
    162 #define	I80312_ATU_SAIM		0xc0	/* Sec. ATU Interrupt Mask */
    163      /* not used		0xc4 .. 0xfc */
    164 
    165      /* not used		0x00 .. 0x0c */
    166 #define	I80312_MSG_IM0		0x10	/* Inbound Message 0 */
    167 #define	I80312_MSG_IM1		0x14	/* Inbound Message 1 */
    168 #define	I80312_MSG_OM0		0x18	/* Outbound Message 0 */
    169 #define	I80312_MSG_OM1		0x1c	/* Outbound Message 1 */
    170 #define	I80312_MSG_ID		0x20	/* Inbound Doorbell */
    171 #define	I80312_MSG_IIS		0x24	/* Inbound Interrupt Status */
    172 #define	I80312_MSG_IIM		0x28	/* Inbound Interrupt Mask */
    173 #define	I80312_MSG_OD		0x2c	/* Outbound Doorbell */
    174 #define	I80312_MSG_OIS		0x30	/* Outbound Interrupt Status */
    175 #define	I80312_MSG_OIM		0x34	/* Outbound Interrupt Mask */
    176      /* not used		0x38 .. 0x4c */
    177 #define	I80312_MSG_MC		0x50	/* MU Configuration */
    178 #define	I80312_MSG_QBA		0x54	/* Queue Base Address */
    179      /* not used		0x58 .. 0x5c */
    180 #define	I80312_MSG_IFHP		0x60	/* Inbound Free Head Pointer */
    181 #define	I80312_MSG_IFTP		0x64	/* Inbound Free Tail Pointer */
    182 #define	I80312_MSG_IPHP		0x68	/* Inbound Post Head Pointer */
    183 #define	I80312_MSG_IPTP		0x6c	/* Inbound Post Tail Pointer */
    184 #define	I80312_MSG_OFHP		0x70	/* Outbound Free Head Pointer */
    185 #define	I80312_MSG_OFTP		0x74	/* Outbound Free Tail Pointer */
    186 #define	I80312_MSG_OPHP		0x78	/* Outbound Post Head Pointer */
    187 #define	I80312_MSG_OPTP		0x7c	/* Outbound Post Tail Pointer */
    188 #define	I80312_MSG_IA		0x80	/* Index Address */
    189      /* not used		0x84 .. 0xfc */
    190 
    191 /*
    192  * DMA Controller
    193  */
    194 #define	I80312_DMA_CHAN0	0x00	/* Channel 0 */
    195 #define	I80312_DMA_CHAN1	0x40	/* Channel 1 */
    196 #define	I80312_DMA_CHAN2	0x80	/* Channel 2 */
    197      /* not used		0xc0 .. 0xfc */
    198 
    199 #define	I80312_DMA_CC		0x00	/* Channel Control */
    200 #define	I80312_DMA_CS		0x04	/* Channel Status */
    201      /* not used		0x08 */
    202 #define	I80312_DMA_DA		0x0c	/* Descriptor Address */
    203 #define	I80312_DMA_NDA		0x10	/* Next Descriptor Address */
    204 #define	I80312_DMA_PA		0x14	/* PCI Address */
    205 #define	I80312_DMA_PUA		0x18	/* PCI Upper Address */
    206 #define	I80312_DMA_IBA		0x1c	/* Internal Bus Address */
    207 #define	I80312_DMA_BC		0x20	/* Byte Count */
    208 #define	I80312_DMA_DC		0x24	/* Descriptor Control */
    209      /* not used		0x28 .. 0x3c */
    210 
    211 /*
    212  * Memory Controller
    213  */
    214 #define	I80312_MEM_SI		0x00	/* SDRAM Initialization */
    215 #define	I80312_MEM_SC		0x04	/* SDRAM Control */
    216 #define	I80312_MEM_SB		0x08	/* SDRAM Base */
    217 #define	I80312_MEM_SB0		0x0c	/* SDRAM Bank 0 Size */
    218 #define	I80312_MEM_SB1		0x10	/* SDRAM Bank 1 Size */
    219      /* not used		0x14 .. 0x30 */
    220 #define	I80312_MEM_EC		0x34	/* ECC Control */
    221 #define	I80312_MEM_EL0		0x38	/* ECC Log 0 */
    222 #define	I80312_MEM_EL1		0x3c	/* ECC Log 1 */
    223 #define	I80312_MEM_EA0		0x40	/* ECC Address 0 */
    224 #define	I80312_MEM_EA1		0x44	/* ECC Address 1 */
    225 #define	I80312_MEM_ET		0x48	/* ECC Test */
    226 #define	I80312_MEM_FB0		0x4c	/* ECC Flash Base 0 */
    227 #define	I80312_MEM_FB1		0x50	/* ECC Flash Base 1 */
    228 #define	I80312_MEM_FB0S		0x54	/* ECC Flash Bank 0 Size */
    229 #define	I80312_MEM_FB1S		0x58	/* ECC Flash Bank 1 Size */
    230 #define	I80312_MEM_FWS1		0x5c	/* ECC Wait State 1 Size */
    231 #define	I80312_MEM_FWS0		0x60	/* ECC Wait State 0 Size */
    232 #define	I80312_MEM_IS		0x65	/* ECC Interrupt Status */
    233 #define	I80312_MEM_RF		0x68	/* ECC Refresh Frequency */
    234 #define	I80312_MEM_RF		0x68	/* ECC Refresh Frequency */
    235 #define	I80312_MEM_RF		0x68	/* ECC Refresh Frequency */
    236 #define	I80312_MEM_RF		0x68	/* ECC Refresh Frequency */
    237      /* not used		0x6c .. 0xfc */
    238 
    239 /*
    240  * Internal Arbitration Unit
    241  */
    242 #define	I80312_ARB_IAC		0x00	/* Internal Aribtration Control */
    243 #define	I80312_ARB_MLT		0x04	/* Master Latency Timer */
    244 #define	I80312_ARB_MTT		0x08	/* Multi-Transaction Timer */
    245      /* not used		0x0c .. 0x3c */
    246 
    247 /*
    248  * Bus(Core) Interface Unit
    249  */
    250      /* not used		0x40 */
    251 #define	I80312_BUS_IS		0x44	/* Interrupt Status */
    252      /* not used		0x4c .. 0x7c */
    253 
    254 /*
    255  * I2C Bus Interface Unit
    256  */
    257 #define	I80312_IIC_CTL		0x80	/* Control */
    258 #define	I80312_IIC_STS		0x84	/* Status */
    259 #define	I80312_IIC_SA		0x88	/* Slave Address */
    260 #define	I80312_IIC_DB		0x8c	/* Data Buffer */
    261 #define	I80312_IIC_CC		0x90	/* Clock Control */
    262 #define	I80312_IIC_BM		0x94	/* Bus Monitor */
    263      /* not used		0x98 .. 0xfc */
    264 
    265 /*
    266  * PCI And Peripheral Interrupt (GPIO) Unit
    267  */
    268 #define	I80312_INTC_IIS		0x00	/* IRQ Interrupt Status */
    269 #define	I80312_INTC_F2IS	0x04	/* FIQ2 Interrupt Status */
    270 #define	I80312_INTC_F1IS	0x08	/* FIQ1 Interrupt Status */
    271      /* not used		0x0c */
    272 #define	I80312_INTC_PDI		0x10	/* Processor Device ID */
    273      /* not used		0x14 .. 0x18 */
    274 #define	I80312_INTC_GOE		0x1c	/* GPIO Output Enable */
    275 #define	I80312_INTC_GID		0x20	/* GPIO Input Data */
    276 #define	I80312_INTC_GOD		0x24	/* GPIO Output Data */
    277      /* not used		0x28 .. 0xfc */
    278 
    279 /*
    280  * Application Accelerator Registers
    281  */
    282 #define	I80312_AAU_CTL		0x00	/* Control */
    283 #define	I80312_AAU_STS		0x04	/* Status */
    284 #define	I80312_AAU_DSCA		0x08	/* Descriptor Address */
    285 #define	I80312_AAU_NDA		0x0c	/* Next Descriptor Address */
    286 #define	I80312_AAU_SA1		0x10	/* i80200 Source Address 1 */
    287 #define	I80312_AAU_SA2		0x14	/* i80200 Source Address 2 */
    288 #define	I80312_AAU_SA3		0x18	/* i80200 Source Address 3 */
    289 #define	I80312_AAU_SA4		0x1c	/* i80200 Source Address 4 */
    290 #define	I80312_AAU_DSTA		0x20	/* i80200 Destination Address */
    291 #define	I80312_AAU_ABC		0x24	/* Accelerator Byte Count */
    292 #define	I80312_AAU_ADC		0x28	/* Accelerator Descriptor Count */
    293 #define	I80312_AAU_SA5		0x2c	/* i80200 Source Address 5 */
    294 #define	I80312_AAU_SA6		0x30	/* i80200 Source Address 6 */
    295 #define	I80312_AAU_SA7		0x34	/* i80200 Source Address 7 */
    296 #define	I80312_AAU_SA8		0x38	/* i80200 Source Address 8 */
    297      /* not used		0x3c .. 0xfc */
    298 
    299 #endif /* _ARM_XSCALE_I80312REG_H_ */
    300