diff options
author | Sundar Iyer <sundar.iyer@stericsson.com> | 2010-12-13 05:03:15 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@stericsson.com> | 2010-12-19 19:27:49 +0100 |
commit | 611b7590afa6e6c6b0942b1d3efef17fbb348ef5 (patch) | |
tree | 4fc9c73ea4d1f9a9f80c55fa97dafc95f61bd265 /include | |
parent | mfd/tc3589x: rename tc35892 structs/registers to tc359x (diff) | |
download | linux-611b7590afa6e6c6b0942b1d3efef17fbb348ef5.tar.xz linux-611b7590afa6e6c6b0942b1d3efef17fbb348ef5.zip |
mfd/tc3589x: add block identifier for multiple child devices
Add block identifier to be able to add multiple mfd clients
to the mfd core
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Sundar Iyer <sundar.iyer@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/tc3589x.h | 7 |
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 @@ #include <linux/device.h> +enum tx3589x_block { + TC3589x_BLOCK_GPIO = 1 << 0, + TC3589x_BLOCK_KEYPAD = 1 << 1, +}; + #define TC3589x_RSTCTRL_IRQRST (1 << 4) #define TC3589x_RSTCTRL_TIMRST (1 << 3) #define TC3589x_RSTCTRL_ROTRST (1 << 2) @@ -122,10 +127,12 @@ struct tc3589x_gpio_platform_data { /** * struct tc3589x_platform_data - TC3589x platform data + * @block: bitmask of blocks to enable (use TC3589x_BLOCK_*) * @irq_base: base IRQ number. %TC3589x_NR_IRQS irqs will be used. * @gpio: GPIO-specific platform data */ struct tc3589x_platform_data { + unsigned int block; int irq_base; struct tc3589x_gpio_platform_data *gpio; }; |