imx31_intrreg.h revision 1.3 1 1.3 martin /* $NetBSD: imx31_intrreg.h,v 1.3 2008/04/28 20:23:14 martin Exp $ */
2 1.2 matt /*-
3 1.2 matt * Copyright (c) 2007 The NetBSD Foundation, Inc.
4 1.2 matt * All rights reserved.
5 1.2 matt *
6 1.2 matt * This code is derived from software contributed to The NetBSD Foundation
7 1.2 matt * by Matt Thomas.
8 1.2 matt *
9 1.2 matt * Redistribution and use in source and binary forms, with or without
10 1.2 matt * modification, are permitted provided that the following conditions
11 1.2 matt * are met:
12 1.2 matt * 1. Redistributions of source code must retain the above copyright
13 1.2 matt * notice, this list of conditions and the following disclaimer.
14 1.2 matt * 2. Redistributions in binary form must reproduce the above copyright
15 1.2 matt * notice, this list of conditions and the following disclaimer in the
16 1.2 matt * documentation and/or other materials provided with the distribution.
17 1.2 matt *
18 1.2 matt * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 1.2 matt * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 1.2 matt * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 1.2 matt * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 1.2 matt * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 1.2 matt * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 1.2 matt * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 1.2 matt * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 1.2 matt * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 1.2 matt * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 1.2 matt * POSSIBILITY OF SUCH DAMAGE.
29 1.2 matt */
30 1.2 matt #ifndef _ARM_IMX_IMX31_INTRREG_H_
31 1.2 matt #define _ARM_IMX_IMX31_INTRREG_H_
32 1.2 matt
33 1.2 matt #define IMX31_INTC_BASE 0x68000000
34 1.2 matt #define IMX31_INTCNTL 0x0000 /* Interrupt Control (RW) */
35 1.2 matt #define IMX31_NIMASK 0x0004 /* Normal Interrupt Mask (RW) */
36 1.2 matt #define IMX31_INTENNUM 0x0008 /* Interrupt Enable Number (RW) */
37 1.2 matt #define IMX31_INTDISNUM 0x000c /* Interrupt Disable Number (RW) */
38 1.2 matt #define IMX31_INTENABLEH 0x0010 /* Interrupt Enable High (RW) */
39 1.2 matt #define IMX31_INTENABLEL 0x0014 /* Interrupt Enable Low (RW) */
40 1.2 matt #define IMX31_INTTYPEH 0x0018 /* Interrupt Type High (RW) */
41 1.2 matt #define IMX31_INTTYPEL 0x001c /* Interrupt Type Low (RW) */
42 1.2 matt #define IMX31_NIPRIORITY7 0x0020 /* Normal Intr Priority Level 7 (RW) */
43 1.2 matt #define IMX31_NIPRIORITY6 0x0024 /* Normal Intr Priority Level 6 (RW) */
44 1.2 matt #define IMX31_NIPRIORITY5 0x0028 /* Normal Intr Priority Level 5 (RW) */
45 1.2 matt #define IMX31_NIPRIORITY4 0x002c /* Normal Intr Priority Level 4 (RW) */
46 1.2 matt #define IMX31_NIPRIORITY3 0x0030 /* Normal Intr Priority Level 3 (RW) */
47 1.2 matt #define IMX31_NIPRIORITY2 0x0034 /* Normal Intr Priority Level 2 (RW) */
48 1.2 matt #define IMX31_NIPRIORITY1 0x0038 /* Normal Intr Priority Level 1 (RW) */
49 1.2 matt #define IMX31_NIPRIORITY0 0x003c /* Normal Intr Priority Level 0 (RW) */
50 1.2 matt #define IMX31_NIVECSR 0x0040 /* Normal Interrupt Vector Status (R) */
51 1.2 matt #define IMX31_FIVECSR 0x0044 /* Fast Interrupt Vector Status (R) */
52 1.2 matt #define IMX31_INTSRCH 0x0048 /* Interrupt Source High (R) */
53 1.2 matt #define IMX31_INTSRCL 0x004c /* Interrupt Source Low (R) */
54 1.2 matt #define IMX31_INTFRCH 0x0050 /* Interrupt Force High (RW) */
55 1.2 matt #define IMX31_INTFRCL 0x0054 /* Interrupt Force Low (RW) */
56 1.2 matt #define IMX31_NIPNDH 0x0058 /* Normal Intr Pending High (R) */
57 1.2 matt #define IMX31_NIPNDL 0x005c /* Normal Intr Pending Low (R) */
58 1.2 matt #define IMX31_FIPNDH 0x0060 /* Fast Intr Pending High (R) */
59 1.2 matt #define IMX31_FIPNDL 0x0064 /* Fast Intr Pending Low (R) */
60 1.2 matt
61 1.2 matt #define IMX31_VECTOR(n) (0x0100 + (n) * 4) /* Vector [N] */
62 1.2 matt
63 1.2 matt #define INTCNTL_ABFLAG (1 << 25) /* Core Arb. Priorty Risen (W1C) */
64 1.2 matt #define INTCNTL_ABFEN (1 << 24) /* ABFLAG Sticky Enable */
65 1.2 matt #define INTCNTL_NIDIS (1 << 22) /* Normal Intr. Disable */
66 1.2 matt #define INTCNTL_FIDIS (1 << 21) /* Fast Intr. Disable */
67 1.2 matt #define INTCNTL_NIAD (1 << 20) /* Normal Intr. Arbiter Rise ARM Lvl */
68 1.2 matt #define INTCNTL_FIAD (1 << 19) /* Fast Intr. Arbiter Rise ARM Level */
69 1.2 matt #define INTCNTL_NM (1 << 18) /* Normal Intr. Mode Control (1=AVIC) */
70 1.2 matt
71 1.2 matt #define NIMASK_DIS_NONE -1
72 1.2 matt
73 1.2 matt /*
74 1.2 matt * INTTYPE (0 = IRQ, 1 = FIQ)
75 1.2 matt */
76 1.2 matt #endif /* _ARM_IMX_IMX31_INTRREG_H_ */
77