summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorRhyland Klein <rklein@nvidia.com>2013-03-12 18:08:07 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2013-04-08 18:00:27 +0200
commit36c772e31fa72006e80d12d1a94db2a326ba00a5 (patch)
treeb097fe3da6bcba78ff641ad248edd85539d38d58 /drivers/mfd
parent751391c74f3d41a8d5c5dd5100385f723660c368 (diff)
downloadblackbird-op-linux-36c772e31fa72006e80d12d1a94db2a326ba00a5.tar.gz
blackbird-op-linux-36c772e31fa72006e80d12d1a94db2a326ba00a5.zip
mfd: tps65090: Add resources for charger
Add irq resources to pass to the charger mfd sub dev so the charger can listen for interrupts. Signed-off-by: Rhyland Klein <rklein@nvidia.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/tps65090.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c
index 98edb5be85c6..88846aeab74f 100644
--- a/drivers/mfd/tps65090.c
+++ b/drivers/mfd/tps65090.c
@@ -56,12 +56,22 @@
#define TPS65090_INT2_MASK_OVERLOAD_FET6 6
#define TPS65090_INT2_MASK_OVERLOAD_FET7 7
+static struct resource charger_resources[] = {
+ {
+ .start = TPS65090_IRQ_VAC_STATUS_CHANGE,
+ .end = TPS65090_IRQ_VAC_STATUS_CHANGE,
+ .flags = IORESOURCE_IRQ,
+ }
+};
+
static struct mfd_cell tps65090s[] = {
{
.name = "tps65090-pmic",
},
{
.name = "tps65090-charger",
+ .num_resources = ARRAY_SIZE(charger_resources),
+ .resources = &charger_resources[0],
},
};
OpenPOWER on IntegriCloud