aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-mxc/mx31.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/arch-mxc/mx31.h')
-rw-r--r--include/asm-arm/arch-mxc/mx31.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/asm-arm/arch-mxc/mx31.h b/include/asm-arm/arch-mxc/mx31.h
index 36a1af495bb3..98e6a4cd1ea9 100644
--- a/include/asm-arm/arch-mxc/mx31.h
+++ b/include/asm-arm/arch-mxc/mx31.h
@@ -347,6 +347,25 @@
347#define SYSTEM_REV_MIN CHIP_REV_1_0 347#define SYSTEM_REV_MIN CHIP_REV_1_0
348#define SYSTEM_REV_NUM 3 348#define SYSTEM_REV_NUM 3
349 349
350/* gpio and gpio based interrupt handling */
351#define GPIO_DR 0x00
352#define GPIO_GDIR 0x04
353#define GPIO_PSR 0x08
354#define GPIO_ICR1 0x0C
355#define GPIO_ICR2 0x10
356#define GPIO_IMR 0x14
357#define GPIO_ISR 0x18
358#define GPIO_INT_LOW_LEV 0x0
359#define GPIO_INT_HIGH_LEV 0x1
360#define GPIO_INT_RISE_EDGE 0x2
361#define GPIO_INT_FALL_EDGE 0x3
362#define GPIO_INT_NONE 0x4
363
364/* Mandatory defines used globally */
365
366/* this CPU supports up to 96 GPIOs */
367#define ARCH_NR_GPIOS 96
368
350#if !defined(__ASSEMBLY__) && !defined(__MXC_BOOT_UNCOMPRESS) 369#if !defined(__ASSEMBLY__) && !defined(__MXC_BOOT_UNCOMPRESS)
351 370
352/* this is a i.MX31 CPU */ 371/* this is a i.MX31 CPU */