|
@@ -164,6 +164,10 @@
|
|
#define IRAM_SIZE 0x00040000
|
|
#define IRAM_SIZE 0x00040000
|
|
#define IMX_IIM_BASE OCOTP_BASE_ADDR
|
|
#define IMX_IIM_BASE OCOTP_BASE_ADDR
|
|
|
|
|
|
|
|
+#define GPIO_NUMBER(port, index) ((((port)-1)*32)+((index)&31))
|
|
|
|
+#define GPIO_TO_PORT(number) (((number)/32)+1)
|
|
|
|
+#define GPIO_TO_INDEX(number) ((number)&31)
|
|
|
|
+
|
|
#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
|
|
#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
|
|
#include <asm/types.h>
|
|
#include <asm/types.h>
|
|
|
|
|