diff options
Diffstat (limited to 'arch/arm/plat-mxc/include/mach/hardware.h')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/hardware.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/arch/arm/plat-mxc/include/mach/hardware.h b/arch/arm/plat-mxc/include/mach/hardware.h index a8bfd565dcad..a599f01f8b92 100644 --- a/arch/arm/plat-mxc/include/mach/hardware.h +++ b/arch/arm/plat-mxc/include/mach/hardware.h | |||
@@ -81,11 +81,21 @@ | |||
81 | * AIPS1 0x53f00000+0x100000 -> 0xf5700000+0x100000 | 81 | * AIPS1 0x53f00000+0x100000 -> 0xf5700000+0x100000 |
82 | * AIPS2 0x63f00000+0x100000 -> 0xf5300000+0x100000 | 82 | * AIPS2 0x63f00000+0x100000 -> 0xf5300000+0x100000 |
83 | * mx51: | 83 | * mx51: |
84 | * TZIC 0xe0000000+0x004000 -> 0xf5000000+0x004000 | ||
84 | * IRAM 0x1ffe0000+0x020000 -> 0xf4fe0000+0x020000 | 85 | * IRAM 0x1ffe0000+0x020000 -> 0xf4fe0000+0x020000 |
85 | * DEBUG 0x60000000+0x100000 -> 0xf5000000+0x100000 | ||
86 | * SPBA0 0x70000000+0x100000 -> 0xf5400000+0x100000 | 86 | * SPBA0 0x70000000+0x100000 -> 0xf5400000+0x100000 |
87 | * AIPS1 0x73f00000+0x100000 -> 0xf5700000+0x100000 | 87 | * AIPS1 0x73f00000+0x100000 -> 0xf5700000+0x100000 |
88 | * AIPS2 0x83f00000+0x100000 -> 0xf4300000+0x100000 | 88 | * AIPS2 0x83f00000+0x100000 -> 0xf4300000+0x100000 |
89 | * mx53: | ||
90 | * TZIC 0x0fffc000+0x004000 -> 0xf4bfc000+0x004000 | ||
91 | * SPBA0 0x50000000+0x100000 -> 0xf5400000+0x100000 | ||
92 | * AIPS1 0x53f00000+0x100000 -> 0xf5700000+0x100000 | ||
93 | * AIPS2 0x63f00000+0x100000 -> 0xf5300000+0x100000 | ||
94 | * mx6q: | ||
95 | * SCU 0x00a00000+0x001000 -> 0xf4000000+0x001000 | ||
96 | * CCM 0x020c4000+0x004000 -> 0xf42c4000+0x004000 | ||
97 | * ANATOP 0x020c8000+0x001000 -> 0xf42c8000+0x001000 | ||
98 | * UART4 0x021f0000+0x004000 -> 0xf42f0000+0x004000 | ||
89 | */ | 99 | */ |
90 | #define IMX_IO_P2V(x) ( \ | 100 | #define IMX_IO_P2V(x) ( \ |
91 | 0xf4000000 + \ | 101 | 0xf4000000 + \ |
@@ -97,6 +107,7 @@ | |||
97 | 107 | ||
98 | #include <mach/mxc.h> | 108 | #include <mach/mxc.h> |
99 | 109 | ||
110 | #include <mach/mx6q.h> | ||
100 | #include <mach/mx50.h> | 111 | #include <mach/mx50.h> |
101 | #include <mach/mx51.h> | 112 | #include <mach/mx51.h> |
102 | #include <mach/mx53.h> | 113 | #include <mach/mx53.h> |
@@ -116,4 +127,10 @@ | |||
116 | .type = _type, \ | 127 | .type = _type, \ |
117 | } | 128 | } |
118 | 129 | ||
130 | /* There's a off-by-one betweem the gpio bank number and the gpiochip */ | ||
131 | /* range e.g. GPIO_1_5 is gpio 5 under linux */ | ||
132 | #define IMX_GPIO_NR(bank, nr) (((bank) - 1) * 32 + (nr)) | ||
133 | |||
134 | #define IMX_GPIO_TO_IRQ(gpio) (MXC_GPIO_IRQ_START + (gpio)) | ||
135 | |||
119 | #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */ | 136 | #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */ |