]> Pileus Git - ~andy/linux/blobdiff - drivers/mfd/stmpe.h
Merge remote-tracking branch 'spi/fix/grant' into spi-linus
[~andy/linux] / drivers / mfd / stmpe.h
index 7b8e13f5b764dc5fde59a8dcb8389820abe017cd..ff2b09ba8797cfc214d36fada42efe1f1b64a807 100644 (file)
@@ -198,6 +198,55 @@ int stmpe_remove(struct stmpe *stmpe);
 #define STMPE1601_AUTOSLEEP_TIMEOUT_MASK       (0x7)
 #define STPME1601_AUTOSLEEP_ENABLE             (1 << 3)
 
+/*
+ * STMPE1801
+ */
+#define STMPE1801_ID                   0xc110
+#define STMPE1801_NR_INTERNAL_IRQS     5
+#define STMPE1801_IRQ_KEYPAD_COMBI     4
+#define STMPE1801_IRQ_GPIOC            3
+#define STMPE1801_IRQ_KEYPAD_OVER      2
+#define STMPE1801_IRQ_KEYPAD           1
+#define STMPE1801_IRQ_WAKEUP           0
+
+#define STMPE1801_REG_CHIP_ID                  0x00
+#define STMPE1801_REG_SYS_CTRL                 0x02
+#define STMPE1801_REG_INT_CTRL_LOW             0x04
+#define STMPE1801_REG_INT_EN_MASK_LOW          0x06
+#define STMPE1801_REG_INT_STA_LOW              0x08
+#define STMPE1801_REG_INT_EN_GPIO_MASK_LOW     0x0A
+#define STMPE1801_REG_INT_EN_GPIO_MASK_MID     0x0B
+#define STMPE1801_REG_INT_EN_GPIO_MASK_HIGH    0x0C
+#define STMPE1801_REG_INT_STA_GPIO_LOW         0x0D
+#define STMPE1801_REG_INT_STA_GPIO_MID         0x0E
+#define STMPE1801_REG_INT_STA_GPIO_HIGH                0x0F
+#define STMPE1801_REG_GPIO_SET_LOW             0x10
+#define STMPE1801_REG_GPIO_SET_MID             0x11
+#define STMPE1801_REG_GPIO_SET_HIGH            0x12
+#define STMPE1801_REG_GPIO_CLR_LOW             0x13
+#define STMPE1801_REG_GPIO_CLR_MID             0x14
+#define STMPE1801_REG_GPIO_CLR_HIGH            0x15
+#define STMPE1801_REG_GPIO_MP_LOW              0x16
+#define STMPE1801_REG_GPIO_MP_MID              0x17
+#define STMPE1801_REG_GPIO_MP_HIGH             0x18
+#define STMPE1801_REG_GPIO_SET_DIR_LOW         0x19
+#define STMPE1801_REG_GPIO_SET_DIR_MID         0x1A
+#define STMPE1801_REG_GPIO_SET_DIR_HIGH                0x1B
+#define STMPE1801_REG_GPIO_RE_LOW              0x1C
+#define STMPE1801_REG_GPIO_RE_MID              0x1D
+#define STMPE1801_REG_GPIO_RE_HIGH             0x1E
+#define STMPE1801_REG_GPIO_FE_LOW              0x1F
+#define STMPE1801_REG_GPIO_FE_MID              0x20
+#define STMPE1801_REG_GPIO_FE_HIGH             0x21
+#define STMPE1801_REG_GPIO_PULL_UP_LOW         0x22
+#define STMPE1801_REG_GPIO_PULL_UP_MID         0x23
+#define STMPE1801_REG_GPIO_PULL_UP_HIGH                0x24
+
+#define STMPE1801_MSK_SYS_CTRL_RESET           (1 << 7)
+
+#define STMPE1801_MSK_INT_EN_KPC               (1 << 1)
+#define STMPE1801_MSK_INT_EN_GPIO              (1 << 3)
+
 /*
  * STMPE24xx
  */