diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-03-01 18:43:46 +0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-03-12 12:25:49 +0400 |
commit | df545d1cd01aab3ba3f687d5423e6c3687b069d8 (patch) | |
tree | a492f6d8bfe0ea5d1684d14bf9a6109c749f89dd /include | |
parent | 5c854aaecea0cd7da95ce2170ff305f8273d552d (diff) | |
download | linux-df545d1cd01aab3ba3f687d5423e6c3687b069d8.tar.xz |
mfd: palmas: Provide irq flags through DT/platform data
Currently driver sets the irq type to IRQF_TRIGGER_LOW which is
causing interrupt registration failure in ARM based SoCs as:
[ 0.208479] genirq: Setting trigger mode 8 for irq 118 failed (gic_set_type+0x0/0xf0)
[ 0.208513] dummy 0-0059: Failed to request IRQ 118: -22
Provide the irq flags through platform data if device is registered
through board file or get the irq type from DT node property in place
of hardcoding the irq flag in driver to support multiple platforms.
Also configure the device to generate the interrupt signal according to
flag type.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/palmas.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h index a4d13d7cd001..3bbda22721ea 100644 --- a/include/linux/mfd/palmas.h +++ b/include/linux/mfd/palmas.h @@ -221,6 +221,7 @@ struct palmas_clk_platform_data { }; struct palmas_platform_data { + int irq_flags; int gpio_base; /* bit value to be loaded to the POWER_CTRL register */ |