]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: tps65217: Add support for IRQs
authorMarcin Niestroj <m.niestroj@grinn-global.com>
Fri, 9 Sep 2016 08:42:02 +0000 (10:42 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 4 Oct 2016 14:48:03 +0000 (15:48 +0100)
commit7f4d08abc0331aa003ccfb1c16b592bdecc98d0c
tree08127ad074d74b7b3e66a2abea909171abd06067
parent6dc081c59ecd449d0625cb1e6524a725021043c9
mfd: tps65217: Add support for IRQs

Add support for handling IRQs: power button, AC and USB power state
changes. Mask and interrupt bits are shared within one register, which
prevents us to use regmap_irq implementation. New irq_domain is created in
order to add interrupt handling for each tps65217's subsystem. IRQ
resources have been added for charger subsystem to be able to notify about
AC and USB state changes.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/Kconfig
drivers/mfd/tps65217.c
include/linux/mfd/tps65217.h