aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/ab8500-core.c
diff options
context:
space:
mode:
authorSundar R Iyer <sundar.iyer@stericsson.com>2010-09-05 15:18:47 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-09-05 15:19:10 -0400
commit77686517977e77d101c8a7b397717df00a88922b (patch)
tree03e295f699d4795a594f0329e2434df6738b6755 /drivers/mfd/ab8500-core.c
parent144c0f8833d0458e4369a27a53aea8856c665c41 (diff)
Input: add support for PowerOn button on the AB8500 MFD
Add the PowerOn (PonKey) button support to detect power on/off events. Acked-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Sundar R Iyer <sundar.iyer@stericsson.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/mfd/ab8500-core.c')
-rw-r--r--drivers/mfd/ab8500-core.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c
index defa786dee34..b8c4b80e4c43 100644
--- a/drivers/mfd/ab8500-core.c
+++ b/drivers/mfd/ab8500-core.c
@@ -338,6 +338,21 @@ static struct resource ab8500_rtc_resources[] = {
338 }, 338 },
339}; 339};
340 340
341static struct resource ab8500_poweronkey_db_resources[] = {
342 {
343 .name = "ONKEY_DBF",
344 .start = AB8500_INT_PON_KEY1DB_F,
345 .end = AB8500_INT_PON_KEY1DB_F,
346 .flags = IORESOURCE_IRQ,
347 },
348 {
349 .name = "ONKEY_DBR",
350 .start = AB8500_INT_PON_KEY1DB_R,
351 .end = AB8500_INT_PON_KEY1DB_R,
352 .flags = IORESOURCE_IRQ,
353 },
354};
355
341static struct mfd_cell ab8500_devs[] = { 356static struct mfd_cell ab8500_devs[] = {
342 { 357 {
343 .name = "ab8500-gpadc", 358 .name = "ab8500-gpadc",
@@ -354,6 +369,11 @@ static struct mfd_cell ab8500_devs[] = {
354 { .name = "ab8500-usb", }, 369 { .name = "ab8500-usb", },
355 { .name = "ab8500-pwm", }, 370 { .name = "ab8500-pwm", },
356 { .name = "ab8500-regulator", }, 371 { .name = "ab8500-regulator", },
372 {
373 .name = "ab8500-poweron-key",
374 .num_resources = ARRAY_SIZE(ab8500_poweronkey_db_resources),
375 .resources = ab8500_poweronkey_db_resources,
376 },
357}; 377};
358 378
359int __devinit ab8500_init(struct ab8500 *ab8500) 379int __devinit ab8500_init(struct ab8500 *ab8500)