aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/tc3589x.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mfd/tc3589x.h b/include/linux/mfd/tc3589x.h
index ea1918896f5b..da00958b12d9 100644
--- a/include/linux/mfd/tc3589x.h
+++ b/include/linux/mfd/tc3589x.h
@@ -9,6 +9,11 @@
9 9
10#include <linux/device.h> 10#include <linux/device.h>
11 11
12enum tx3589x_block {
13 TC3589x_BLOCK_GPIO = 1 << 0,
14 TC3589x_BLOCK_KEYPAD = 1 << 1,
15};
16
12#define TC3589x_RSTCTRL_IRQRST (1 << 4) 17#define TC3589x_RSTCTRL_IRQRST (1 << 4)
13#define TC3589x_RSTCTRL_TIMRST (1 << 3) 18#define TC3589x_RSTCTRL_TIMRST (1 << 3)
14#define TC3589x_RSTCTRL_ROTRST (1 << 2) 19#define TC3589x_RSTCTRL_ROTRST (1 << 2)
@@ -122,10 +127,12 @@ struct tc3589x_gpio_platform_data {
122 127
123/** 128/**
124 * struct tc3589x_platform_data - TC3589x platform data 129 * struct tc3589x_platform_data - TC3589x platform data
130 * @block: bitmask of blocks to enable (use TC3589x_BLOCK_*)
125 * @irq_base: base IRQ number. %TC3589x_NR_IRQS irqs will be used. 131 * @irq_base: base IRQ number. %TC3589x_NR_IRQS irqs will be used.
126 * @gpio: GPIO-specific platform data 132 * @gpio: GPIO-specific platform data
127 */ 133 */
128struct tc3589x_platform_data { 134struct tc3589x_platform_data {
135 unsigned int block;
129 int irq_base; 136 int irq_base;
130 struct tc3589x_gpio_platform_data *gpio; 137 struct tc3589x_gpio_platform_data *gpio;
131}; 138};